Wykres commitów

1881 Commity (41a36333ff600b10f0fea35ca78d6dc25a84af0d)

Autor SHA1 Wiadomość Data
Bernhard Bliem 5b2791f18e Make 'Actions' string in Draftail widget translatable 2025-02-21 13:50:21 +00:00
Sage Abdullah cbbc571867 Fix white text on white background in previews for sites that use color-scheme without a background-color 2025-02-21 11:24:10 +00:00
Sage Abdullah f714f8d219
Fix console errors in Draftail tests 2025-02-20 13:53:35 +00:00
Sage Abdullah fd7ec28e3d
Force preview panel scroll behavior to instant to avoid flickering 2025-02-20 13:34:12 +00:00
Thibaud Colas 952ee04f08 Use the correct event listener to adjust minimap positioning (#12896) 2025-02-19 13:43:44 +00:00
Sage Abdullah 3e24fee094 Fix invisible nested menu items #12847 2025-02-19 13:25:42 +00:00
LB (Ben Johnston) 33d30d8105
NPM package updates; `downshift`, `focus-trap-react`, `immer`, `redux`, `uuid` (#12540)
* Update NPM packages (focus-trap-react, downshift, uuid, immer, redux)

## Relevant upgrade release notes

- `focus-trap-react` - v8 to v10
  - https://github.com/focus-trap/focus-trap-react/releases/tag/v9.0.0
  - https://github.com/focus-trap/focus-trap-react/releases/tag/v10.0.0
- `downshift` - v7 to v9
  - https://github.com/downshift-js/downshift/releases/tag/v9.0.0
  - https://github.com/downshift-js/downshift/releases/tag/v8.0.0
  - https://github.com/downshift-js/downshift/blob/master/src/hooks/MIGRATION_V8.md
- `uuid` - v9 to v11
  - https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1100-2024-10-26
  - https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1000-2024-06-07
- `immer` v9 to v10
  - https://github.com/immerjs/immer/releases/tag/v10.0.0
- Update Redux ecosystem
  - https://github.com/reduxjs/redux-thunk/releases/tag/v3.1.0
  - https://github.com/reduxjs/redux/releases/tag/v5.0.0
  - https://github.com/reduxjs/reselect/releases/tag/v5.0.1
  - https://github.com/reduxjs/react-redux/releases/tag/v8.0.0 (note: react-redux cannot be updated further due to React dependency, which is blocked by Draftail)

* Add release notes

---------

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-02-12 03:51:27 +00:00
naina35 182ae8488c
Apply Sass mixed declarations migration in preparation for CSS nesting. Fix #12720 (#12733)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-02-12 03:15:56 +00:00
Srishti Jaiswal e23096f354
Migrate away from deprecated Sass import rules to module system (#12734) 2025-02-11 14:58:31 +00:00
Sage Abdullah c70719bfa6
Ensure block preview is hidden when the user clears out the search input 2025-02-03 14:45:37 +00:00
Thibaud Colas b365206d05
Switch block previews from hover + toggle to toggle only 2025-01-31 15:34:17 +00:00
Thibaud Colas 0193cad5ea
Adjust block chooser styles to match latest designs 2025-01-31 14:48:40 +00:00
Sage Abdullah db87deb0c8 Improve block preview layout for responsiveness and reduced shifting 2025-01-30 15:40:49 +00:00
Thibaud Colas eb4b240791
Add unit tests for rich text block chooser initialisation based on capabilities 2025-01-28 11:11:56 +00:00
Thibaud Colas 4d6c8b87a1
Configure block previews and descriptions in block chooser within rich text 2025-01-28 11:11:56 +00:00
Sage Abdullah 476e7aa35c
Ensure block label and description are scrollable in previews 2025-01-20 17:30:27 +00:00
Sage Abdullah 28d8ba6af7
Improve responsiveness of block preview layout 2025-01-20 17:30:26 +00:00
Sage Abdullah 77bcbf702d
Add preview button with eye icon in block chooser 2025-01-20 17:30:25 +00:00
Sage Abdullah d25a67a4b8
Implement block previews in StreamField block chooser 2025-01-20 17:29:53 +00:00
Thibaud Colas e236919a79 Implement dragndrop safeguard for rich text fields 2025-01-20 17:05:08 +00:00
Thibaud Colas 3cbca376a9 Implement dragndrop for StreamField with sortable.js 2025-01-20 17:05:08 +00:00
Thibaud Colas 1636059bef Fix Tippy destroy preventing further instantiations 2025-01-20 17:05:08 +00:00
Thibaud Colas fe9409f99c Add drag and drop support to InlinePanel 2025-01-20 17:05:08 +00:00
Thibaud Colas 1c3f84f9c2 Clean up inline panel tests, using correct markup 2025-01-20 17:05:08 +00:00
Jatin Bhardwaj b4781e2a90
Added scroll offset to ensure visibility of fields when typing. Fix #7777 (#12759)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-20 13:24:33 +00:00
sag​e 841b36ed18
Prevent main menu from re-rendering when clicking outside while the menu is closed (#12755)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-20 07:33:36 +00:00
Matt Westcott 0ccd99c867 Only replace alt text field if it hasn't been edited from the previous default 2025-01-20 07:20:49 +00:00
Matt Westcott 26f4d07ee1 Populate ImageBlock alt text from default_alt_text when an image is chosen
Fixes #12660
2025-01-20 07:20:49 +00:00
Matt Westcott 1db66a7ded Add default_alt_text to the state dictionary returned by ImageChooser view and used by AdminImageChooser widget 2025-01-20 07:20:49 +00:00
Thibaud Colas 14d16ae823 Remove now-unneeded focus-visible backwards compat 2025-01-17 13:50:12 +00:00
Rishabh Sharma 782aa0e16b
Reduce confusing spacing below StreamField blocks help text. Fix #11888 (#11934)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 10:00:09 +00:00
Ayaan cb11ec3e01
Upgraded sass-loader to remove Sass warnings (#12728)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 08:44:47 +00:00
Sage Abdullah 944fd02dc3 Replace l18n library with Intl-based LocaleController 2025-01-13 13:05:53 +00:00
Srishti Jaiswal 0bba5da337
Correct positioning of comment buttons with DateField, TimeField and DateTimeField. Fix #12214 (#12685)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-13 12:08:56 +00:00
Matt Westcott 784f4bbbb9 Don't set aria-expanded=false on clear(), because clearing in itself doesn't close the menu 2024-12-19 14:10:30 +00:00
Ayaan 1cbb1e8fb2 Remove - extra addClass & aria-label in appendColumnButton and restore aria-expanded="false" in clear method 2024-12-19 13:23:24 +00:00
Ayaan df8a6f219c Added aria-expanded attribute to add new column button (#12680) 2024-12-18 18:03:24 +00:00
LB Johnston ae89829661 Deprecate & rework imports for `window.buildExpandingFormset`
- window.buildExpandingFormset and using the base class `ExpandingFormset` can now be deprecated.
- Move the window global setting to core.js which avoids the need to add the import in editor_js, to align with other future deprecations in core.js
- Add upgrade considerations in release notes
- `ExpandingFormset` is still needed for other existing usage (InlinePanel/MultipleChooserPanel)
- Add additional JSDoc and updates to Eslint to advise developers that this feature is not to be used for new code
2024-12-10 01:42:32 +00:00
LB Johnston 6bc9b0ea40 Adopt Stimulus `w-formset` attributes in Group edit/create view
- Use the Wagtail admin formset mixin to adopt new data attributes on core form parts
- Update the edit/create templates to put the attributes on the remaining elements
- Add basic unit tests for smoke testing data attributes
- Remove CSP incompatible inline scripts approach
- Remove the now unused standalone static build/imports for the group edit view as this will not be needed
- Update Eslint accordingly
2024-12-10 01:42:32 +00:00
LB Johnston 8d35cc57e6 Add initial Stimulus FormsetController `w-formset`
Replaces the core functionality in `client/src/components/ExpandingFormset/index.js` and the Delete callbacks in other usage of the `window.buildExpandingFormset` function.

Provides limitations on add/delete once the min/max have been reached but does not set up any disabling of these buttons as this is currently in the remit of `InlinePanel`.

Includes a full test suite for error handling, updating inputs and nested usage which leverages Stimulus' scope management.

Does not rely on any id attribute structure or wrangling.

Relates to #7915
2024-12-10 01:42:32 +00:00
LB 4020efc4d0 Add JSDoc to exported function in runInlineScripts 2024-12-10 01:42:32 +00:00
LB d42af56220 Create `transition` util to resolve a promise when an animation ends 2024-12-10 01:42:32 +00:00
Matt Westcott 28cde800d9
Correctly initialize page chooser search results for multiple selection 2024-12-04 10:48:46 +00:00
Srishti-j18 c2676af857 Ensure new ListBlock instances get created with unique IDs
Fixes #10074
2024-12-04 19:10:04 +10:00
Ayaan 5837d346d9 Fix initial mode value logic in modeValueChanged
Fix from #12641
2024-12-04 17:35:01 +10:00
Jaivignesh-afk 13951cf7a5 Fix empty `th` elements in admin (accessibility)
- Headings cannot be empty (https://dequeuniversity.com/rules/axe/4.9/empty-table-header)
- Added aria-hidden=true or a suitable label to empty <th> across admin
- Fixes #11596
- Additional related fixes provided in #12203 & #11465
2024-12-04 12:50:13 +10:00
ayaan-qadri acdeb4f8d9 Update privacy-switch class toggle targets to use ZoneController
- Refactor styles for status tag to be more easily used across multiple elements
- Fixes #12611 (accessibility issue with the live link not reflecting update title/tooltips)
2024-12-03 07:53:40 +10:00
ayaan-qadri 4ea2c661c8 Update privacy-switch to avoid toggling classes & instead dispatch an event 2024-12-03 07:53:40 +10:00
ayaan-qadri 3a50b2467a Added switch method & inactive class support to ZoneController
- fixes #12611
2024-12-03 07:53:40 +10:00
LB Johnston 4438f13d5c Add initial implementation of w-rules/RulesController
- Allows a controlled form to have targets that are conditionally enabled based on a rule to match against the form data
- Partial progress for #11045
2024-12-03 07:15:09 +10:00