@payloadcms/richtext-lexical 4.0.0-canary.35 → 4.0.0-canary.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/exports/client/bundled.css +1 -1
  2. package/dist/exports/client/index.js +17 -17
  3. package/dist/exports/client/index.js.map +3 -3
  4. package/dist/features/toolbars/shared/ToolbarDropdown/index.css +12 -11
  5. package/dist/field/bundled.css +1 -1
  6. package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
  7. package/dist/lexical/ui/icons/H3/index.js +13 -6
  8. package/dist/lexical/ui/icons/H3/index.js.map +1 -1
  9. package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
  10. package/dist/lexical/ui/icons/H4/index.js +13 -6
  11. package/dist/lexical/ui/icons/H4/index.js.map +1 -1
  12. package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
  13. package/dist/lexical/ui/icons/H5/index.js +13 -6
  14. package/dist/lexical/ui/icons/H5/index.js.map +1 -1
  15. package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
  16. package/dist/lexical/ui/icons/H6/index.js +13 -6
  17. package/dist/lexical/ui/icons/H6/index.js.map +1 -1
  18. package/dist/utilities/upgradeLexicalData/index.js +6 -3
  19. package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
  20. package/package.json +8 -8
  21. package/dist/dependencyChecker.spec.js +0 -16
  22. package/dist/dependencyChecker.spec.js.map +0 -1
  23. package/dist/features/converters/lexicalToHtml/sync/alignment.spec.js +0 -92
  24. package/dist/features/converters/lexicalToHtml/sync/alignment.spec.js.map +0 -1
  25. package/dist/features/converters/lexicalToJSX/Component/nodeTags.spec.js +0 -114
  26. package/dist/features/converters/lexicalToJSX/Component/nodeTags.spec.js.map +0 -1
  27. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +0 -180
  28. package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +0 -1
  29. package/dist/features/link/markdownTransformer.spec.js +0 -195
  30. package/dist/features/link/markdownTransformer.spec.js.map +0 -1
  31. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.spec.js +0 -65
  32. package/dist/features/toolbars/fixed/client/Toolbar/horizontalWheelScroll.spec.js.map +0 -1
  33. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js +0 -88
  34. package/dist/lexical/utils/markdown/convertFromMarkdownString.spec.js.map +0 -1
  35. package/dist/lexical/utils/url.spec.js +0 -114
  36. package/dist/lexical/utils/url.spec.js.map +0 -1
  37. package/dist/utilities/jsx/jsx.spec.js +0 -178
  38. package/dist/utilities/jsx/jsx.spec.js.map +0 -1
@@ -185,20 +185,21 @@
185
185
  }
186
186
 
187
187
  [data-dropdown-key='text'] {
188
- & .toolbar-popup__dropdown-item {
189
- padding: 0 var(--spacer-4);
188
+ /* Reserved on every item, not just the active one, so the checkmark never overlaps the item icon. */
189
+ & .toolbar-popup__dropdown-item::before {
190
+ content: '';
191
+ flex-shrink: 0;
192
+ width: var(--spacer-3);
193
+ height: var(--spacer-3);
194
+ background-color: currentColor;
195
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12.277 3.584a.5.5 0 0 1 .139.693l-5 7.5a.5.5 0 0 1-.77.077l-3-3a.5.5 0 0 1 .708-.708l2.568 2.57 4.662-6.993a.5.5 0 0 1 .693-.139' fill='black'/%3E%3C/svg%3E");
196
+ mask-size: contain;
197
+ mask-repeat: no-repeat;
198
+ visibility: hidden;
190
199
  }
191
200
 
192
201
  & .toolbar-popup__dropdown-item.active::before {
193
- content: '';
194
- position: absolute;
195
- inset-inline-start: var(--spacer-2-5);
196
- top: 50%;
197
- width: var(--spacer-1);
198
- height: var(--spacer-2);
199
- border: solid var(--color-text-onselected-strong);
200
- border-width: 0 1px 1px 0;
201
- transform: translateY(-60%) rotate(45deg);
202
+ visibility: visible;
202
203
  }
203
204
 
204
205
  .btn__icon {