Wykres commitów

11112 Commity (09431f7b22b51e29d91fdbbe3e64f046103fafb0)

Autor SHA1 Wiadomość Data
Susan Dreher 09431f7b22 Sanitize return_url (#6909) 2021-03-25 19:09:11 +00:00
Sagar Agarwal 400bc57536 Add type="button" to 'set privacy button' (#6882) 2021-03-25 14:01:27 +00:00
Sagar Agarwal f9d1ec0bf7 Fix pagination url for 'view users in a group' (#6880) 2021-03-25 13:23:18 +00:00
Matt Westcott 571b9e1918 Add example of a widget adapter class 2021-03-23 18:57:53 +00:00
Matt Westcott 3e2c928e2f Add StreamField context to block examples 2021-03-23 18:57:53 +00:00
Matt Westcott 9f084fff6d Add StreamField to title of BoundBlocks page 2021-03-23 18:57:53 +00:00
Matt Westcott 746a95ede0 Release notes for telepath StreamField implementation 2021-03-23 18:57:53 +00:00
Matt Westcott 82002df7aa Extend streamfield customisation docs to point to the widget API 2021-03-23 18:57:53 +00:00
Matt Westcott 0f75fb14f1 Add reference page for the client-side widget API 2021-03-23 18:57:53 +00:00
Matt Westcott b3c39216f2 Create a 'streamfield' subsection within the reference docs 2021-03-23 18:57:53 +00:00
Matt Westcott 11d612e6d6 Extend explanation of StructValue 2021-03-23 18:57:53 +00:00
Matt Westcott e190afd878 Fix backticks 2021-03-23 18:57:53 +00:00
Matt Westcott c7fd13b20c Split off StreamField customisation docs into a new page 2021-03-23 18:57:53 +00:00
Matt Westcott 30f6a66107 Add section on min_num / max_num / block_counts 2021-03-23 18:57:53 +00:00
Matt Westcott 241e06e9af Fix references to block classes in release notes 2021-03-23 18:57:53 +00:00
Matt Westcott cd4e77033f Expand title
"How to use StreamField" is a pretty useless title unless you already know what StreamField is, in which case you don't need the howto... I'll go with "How to use StreamField for mixed content" so that it's at least vaguely result-focused (while still keeping "how to" and "StreamField" as keywords).
2021-03-23 18:57:53 +00:00
Matt Westcott a3b6a15b8e Add howto documentation for StructBlock / ListBlock / StreamBlock 2021-03-23 18:57:53 +00:00
Matt Westcott f3e33f849f Convert StreamField reference to proper class definition markup 2021-03-23 18:57:53 +00:00
Matt Westcott 37c2326150 Split up StreamField documentation [skip ci] 2021-03-23 18:57:53 +00:00
Jacob Topp-Mugglestone 2d6dc1679a
Merge pull request #6934 from wagtail/react-redux-update
React redux update
2021-03-23 10:54:03 +00:00
flocker1 9cf1ddf7e2 Fixed spelling ('Haloween' -> 'Halloween') 2021-03-23 08:58:48 +00:00
Andy Babic 26561b2ea5 Remove redundant 'filter_page_type' helper methods 2021-03-23 08:57:48 +00:00
Karl Hobley 47b9c040ec Update React Redux to 7.2.2 2021-03-19 17:10:57 +00:00
Karl Hobley 7b0d671100 Update React to 16.14 2021-03-19 14:01:50 +00:00
Matt Westcott ee71bd3d07 Add 'disabled' styles for streamfield controls
Follows on from #6802 and #6799.
2021-03-17 23:32:59 +00:00
Matt Westcott d3e58f7908 Delay slidedown animation to fix layout
Without this, the animation expands from somewhere in the middle of the block
2021-03-17 23:32:59 +00:00
Matt Westcott f18a15e142 Animate ListBlock / StreamBlock insertion controls on insert/delete
This reduces the jumpiness on insertion and deletion. For nested sequences, it's not possible to eliminate the jump entirely without editing the CSS, because the insert button is `display: inline-block` which gives it a minimum height of the containing block's line-height - as a result, this spacing appears immediately as soon as the block changes from display:none to visible.
2021-03-17 23:32:59 +00:00
Matt Westcott 7361b0901f Make animation an explicit flag on deleteBlock / duplicateBlock (and test in non-animated mode) 2021-03-17 23:32:58 +00:00
Matt Westcott 773da59107 Update lint comments for typescript-eslint 2021-03-17 23:32:58 +00:00
Matt Westcott d5c174e027 Don't focus date pickers when adding new blocks
While focusing on the first child field of a new block is generally a good thing, focusing a date field opens the date picker, which looks clunky when you've not explicitly requested it. Introduce a 'soft' focus flag to indicate that we only want to focus the field if it can be done unobtrusively.
2021-03-17 23:32:58 +00:00
dex 019e2eab42 Duplicate block - editor docs 2021-03-17 23:32:57 +00:00
Karl Hobley ca3d6df80f Telepath: Catch JavaScript errors from widget rendering 2021-03-17 23:32:57 +00:00
Matt Westcott 30fee96d37 update telepath-unpack to 0.0.2 to fix module imports 2021-03-17 23:32:57 +00:00
Matt Westcott f2ddbe74fd install telepath from pypi 2021-03-17 23:32:57 +00:00
Matt Westcott ba9487b753 Move telepath.py into an external package 2021-03-17 23:32:56 +00:00
Matt Westcott 31a6e5b0a8 Move telepath.js into an external package 2021-03-17 23:32:56 +00:00
Matt Westcott 56ea3feca3 Support customising media handling on AdapterRegistry 2021-03-17 23:32:56 +00:00
Matt Westcott b82348e307 Add an AdapterRegistry class to replace the global adapters dict
This will allow packages such as Wagtail to define their own 'sandboxed' registries containing package-specific adapters - in Wagtail's case we want this so that we can take over the details of serving static JS (so that we don't need to add telepath to INSTALLED_APPS and can use the Wagtail-specific versioned_static helper).
2021-03-17 23:32:55 +00:00
Matt Westcott 3ac3ffd005 Eliminate top-level uses of versioned_static. Fixes #6801 2021-03-17 23:32:55 +00:00
Matt Westcott a5a33db3ff stylelint fix 2021-03-17 23:32:55 +00:00
Karl Hobley 9df8b3cad8 Merge Wagtail customisations into Streamfield SCSS 2021-03-17 23:32:55 +00:00
Karl Hobley caf8a7f2d7 Import SCSS from react-streamfield 2021-03-17 23:32:54 +00:00
Karl Hobley 0360cf4c2f Telepath: Validation of block counts 2021-03-17 23:32:54 +00:00
Matt Westcott 4ee65760fe Add BaseSequenceBlock superclass 2021-03-17 23:32:54 +00:00
Matt Westcott 320c639255 standardise on 'inserter' as the catch-all name for insertPosition / menu
it's probably going to end up as part of the public api (so we can do myStreamBlock.inserters[0].open()), so best to give it a suitably snappy name
2021-03-17 23:32:53 +00:00
Matt Westcott 10abdd5a4b Make _onRequestInsert methods match 2021-03-17 23:32:53 +00:00
Matt Westcott 570780f38c Introduce a low-level _insert method used by the onRequestInsert handler
This method will be suitable for pulling out into a common superclass. Having matching method signatures for ListBlock._insert and StreamBlock_insert means that the glue code for handling onRequestInsert can be shared, while the public insert methods of ListBlock and StreamBlock remain distinct (because having to pass a block type / definition to ListBlock.insert would be a pretty bad public API).
2021-03-17 23:32:53 +00:00
Matt Westcott 490529d0b1 Pull out _createChild / _createInsertionControl methods from insert
This starts to make the insert logic generic, and irons out the awkwardness of having to pass groupedChildBlockDefs as an extra option on StreamBlockMenu
2021-03-17 23:32:53 +00:00
Matt Westcott 8d63599552 Add a shared superclass for StreamBlockMenu and InsertPosition 2021-03-17 23:32:52 +00:00
Matt Westcott 88b5c4966d Standardise on onRequestInsert as callback for inserting blocks
This makes it generic to both StreamBlock and ListBlock: the callback passes an index number and a dict of container-specific options (empty for ListBlock, and a 'type' option for StreamBlock)
2021-03-17 23:32:52 +00:00