12200 Commits

Author SHA1 Message Date
Madhuri Sandbhor
e76bef0e65
[Blocks Editor] Link popover save button disabled state (#18332)
* link save button disabled attribute added

* updated Link text field placeholder

* removed empty url check from submit

* minor changes
2023-10-06 14:29:15 +02:00
Simone
628d1d69a0
check if the block field value is an array if it is not null (#18334) 2023-10-06 12:28:53 +02:00
Rémi de Juvigny
8ebb00ad03
Fix code blocks shrinking (#18322) 2023-10-06 11:28:40 +02:00
Rémi de Juvigny
2937bb9237
[Blocks] Fix links colors (#18325)
* Fix links not using design system color

* Inherit text color in modifiers
2023-10-06 11:18:24 +02:00
Madhuri Sandbhor
3dc168a35e
[Blocks Editor] Description and placeholder added (#18239)
* placeholder and hint added for blocks

* test case updated

* props destructing not required
2023-10-06 09:53:26 +02:00
Rémi de Juvigny
87b94a07d4
Disable link button when editor is disabled (#18324) 2023-10-06 09:36:12 +02:00
Madhuri Sandbhor
3c14eca8ac
[Blocks Editor] Fix enter key on empty list (#18296)
* fix: enter on empty list

* jsdoc added for replaceListWithEmptyBlock()
2023-10-05 14:59:02 +02:00
Simone
830f20034a
[Blocks editor] Add the list ordered and list unordered options in the block selector (#18290)
* add the lists to the dropdown, change the options order

* use the hook to retrieve icon and label for the list buttons

* remove unused icons

* fix test issues

* refactor code to use block store

* fix comment
2023-10-05 13:12:23 +02:00
Simone
46010896d6
[Blocks editor] Manage click Enter twice on the same line (#18255)
* refactor handle enter key function

* remove comment

* add a unit test

* refactor the solution to handle other possible scenarios

* fix some review comments

* change variable implementation based on review comment

* change comments
2023-10-05 09:32:03 +02:00
Rémi de Juvigny
7708cb098d
[Blocks] Replace alpha warnings by beta warnings (#18278)
* Replace alpha warnings by beta warnings

* Fix alert variant
2023-10-05 09:17:48 +02:00
Rémi de Juvigny
59735af153
Fix code block styles (#18283) 2023-10-04 16:42:00 +02:00
Rémi de Juvigny
ab5a18e8aa
Set fixed 512px height for the whole editor (#18284) 2023-10-04 14:16:45 +02:00
Madhuri Sandbhor
502bd29738
[Blocks Editor] Fix empty list backspace issue (#18260)
* fixed backspace key for empty list

* fixed backspace key for empty list

* added a check for handleBackspaceKey

* test case updated for ordered-list, colocated code for list block
2023-10-04 12:48:08 +02:00
markkaylor
9b2cfe1ae1
Fix blocks config (list, sort, filter, main field) (#18207) 2023-10-04 11:28:13 +02:00
markkaylor
a9e8ad6a64
Fix focus on select (#18193) 2023-10-04 11:22:11 +02:00
Fernando Chávez
428049c401
[Rich Text Editor] Add link plugin and buttons (#18195)
* add link plugin and buttons

* fix validations

* apply josh & madhuri feedback

* apply madhuri feedback

* apply mark's feedback

* fix tests
2023-10-04 10:23:23 +02:00
Rémi de Juvigny
3f54767ebc
[Blocks editor] Handle multi line quotes (#18200)
* Handle enter on quotes

* Add test case

* Remove italic style

* Remove log
2023-10-03 15:16:34 +02:00
Simone
493eb0a58d
[Blocks editor] Manage mixed blocks selection (#18181)
* first draft multiblocks selection fix

* refactor multi blocks selection logic

* remove useless console log

* refactor getAchorBlockKey based on comments

* change test order

* refactor the search using matchNode

* add some comments to explain the useEffect

* fix comments syntax and typos

* fix comments syntax
2023-10-03 14:25:33 +02:00
Simone
08a62df085
Merge branch 'main' into feature/rich-text-editor 2023-10-03 09:10:18 +02:00
markkaylor
35cf6eed94
chore: bump design-system from 1.11.0 to 1.12.0 (#18241) 2023-10-02 18:21:23 +01:00
markkaylor
14a5e2fae8
[RTE] Make images truly void (#18205) 2023-10-02 18:43:35 +02:00
Josh
d8c13912ba
chore: update eslint (#18240)
* chore: update eslint deps & fix lint issues

* chore: update prettier

* fix: packagejson

* Revert "chore: update prettier"

This reverts commit 65f82dfa5b3b0a925fb0d86c20a7e555015c7b48.
2023-10-02 17:29:23 +01:00
Josh
2b6cb7373c
chore: remove stylelint (#18242) 2023-10-02 17:27:43 +01:00
Ben Irvin
954e2ebf1f
Merge pull request #18180 from strapi/fix/17955-validation-allows-empty-objects 2023-10-02 09:34:05 +02:00
dependabot[bot]
b17d8327e4
Bump browserslist from 4.21.4 to 4.22.1
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.21.4 to 4.22.1.
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.21.4...4.22.1)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-01 22:58:47 +00:00
markkaylor
e7e82d57df
Fix skipped test (#18206) 2023-09-29 14:12:35 +02:00
Rémi de Juvigny
b974c5d334 Feedback code cleanup 2023-09-29 11:59:44 +02:00
Rémi de Juvigny
061bb5d2d7 Don't require disabled on BlocksEditor 2023-09-29 11:26:24 +02:00
Rémi de Juvigny
0a68e8db1f Merge remote-tracking branch 'origin/feature/rich-text-editor' into rich-text-editor/disabled 2023-09-29 11:25:06 +02:00
Rémi de Juvigny
974b12af61
Merge pull request #18178 from strapi/rich-text-editor/new-i18n-icon
[Blocks editor] Show i18n icon on localized blocks fields
2023-09-29 09:39:59 +02:00
Ben Irvin
79ca6debec
Merge branch 'main' into fix/17955-validation-allows-empty-objects 2023-09-28 17:46:27 +02:00
Rémi de Juvigny
631cee14d1 Fix tests 2023-09-28 17:31:59 +02:00
Rémi de Juvigny
db3d81b221 Remove separator from toolbar 2023-09-28 16:46:03 +02:00
Rémi de Juvigny
0a55527ebb Apply disabled color to icon buttons 2023-09-28 16:36:08 +02:00
Rémi de Juvigny
1a44a05306 Merge remote-tracking branch 'origin/feature/rich-text-editor' into rich-text-editor/disabled 2023-09-28 15:36:58 +02:00
Jean-Sébastien Herbaux
d010ff3a1e
Merge pull request #18197 from strapi/releases/4.14.0 2023-09-28 15:30:50 +02:00
Madhuri Sandbhor
6b5aae907b
image save functionality updated (#18184) 2023-09-28 15:27:40 +02:00
Convly
09b6d7a4b4 v4.14.0 2023-09-28 13:58:40 +02:00
Rémi de Juvigny
5e88b8f170 Restore radix toolbar dependency 2023-09-28 10:21:50 +02:00
Patrict J
b39586bf8d
fix(content-manager): relations input search not found (#18110)
* Update Relations searchFor to send new optional params

* Update relations.js to accept new optional search operation

* Update relations.js, reduce and default

* Update useRelation.js, change to actual operand

* Update useRelation.js, change _m to _filter

* Update relations.js, change _m to _filter

* Add operator check

* remove template literals

* update test on useRelation
2023-09-28 09:20:00 +01:00
Rémi de Juvigny
ee654b5fa3 Handle disabled 2023-09-27 17:20:50 +02:00
Convly
6bbcdf8d2a Fix the shared types resolving for Common.Schemas 2023-09-27 16:53:09 +02:00
Convly
4bf987e13d Add 'blocks' to the Model's attributes 2023-09-27 15:26:11 +02:00
Convly
155adbfa37 Add Attribute.Blocks to Attribute.Any 2023-09-27 14:52:44 +02:00
Convly
bfb8637195 Add missing blocks attribute types 2023-09-27 14:47:07 +02:00
Ben Irvin
26753c2c6f allow empty objects in validator 2023-09-27 11:56:41 +02:00
Rémi de Juvigny
3f44fcb54f Enforce editable state 2023-09-27 11:43:37 +02:00
Rémi de Juvigny
4466387ad0 Add i18n icon 2023-09-27 11:34:42 +02:00
Simone
24fa848ba3
Add new Blocks rich text editor (alpha) (#18166)
Co-authored-by: Madhuri Sandbhor <madhurisandbhor@gmail.com>
Co-authored-by: markkaylor <mark.kaylor@strapi.io>
Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io>
Co-authored-by: Madhuri Sandbhor <madhuri.sandbhor@strapi.io>
2023-09-26 17:21:44 +02:00
Simone
733e80c18c
Update design system and icons version to 1.11.0 (#18170)
* update design systema and icons version

* remove generated types in the getstarted
2023-09-26 16:41:10 +02:00