@payloadcms/richtext-lexical 3.21.0 → 3.23.0-canary.597254e

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 (123) hide show
  1. package/dist/exports/client/Field-ZQTPXWY3.js +2 -0
  2. package/dist/exports/client/Field-ZQTPXWY3.js.map +7 -0
  3. package/dist/exports/client/bundled.css +1 -1
  4. package/dist/exports/client/{chunk-JKFXKPNG.js → chunk-CIY6PKN6.js} +2 -2
  5. package/dist/exports/client/chunk-CIY6PKN6.js.map +7 -0
  6. package/dist/exports/client/chunk-KEEUF5NK.js +2 -0
  7. package/dist/exports/client/chunk-KEEUF5NK.js.map +7 -0
  8. package/dist/exports/client/chunk-PUXDVIHC.js +2 -0
  9. package/dist/exports/client/chunk-PUXDVIHC.js.map +7 -0
  10. package/dist/exports/client/{component-VJVZFYZJ.js → component-P5K7Z5NW.js} +2 -2
  11. package/dist/exports/client/componentInline-UG3ZWWJY.js +2 -0
  12. package/dist/exports/client/index.js +10 -10
  13. package/dist/exports/client/index.js.map +3 -3
  14. package/dist/features/blocks/client/component/index.d.ts.map +1 -1
  15. package/dist/features/blocks/client/component/index.js +61 -30
  16. package/dist/features/blocks/client/component/index.js.map +1 -1
  17. package/dist/features/blocks/client/component/removeEmptyArrayValues.js +1 -1
  18. package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -1
  19. package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
  20. package/dist/features/blocks/client/componentInline/index.js +42 -13
  21. package/dist/features/blocks/client/componentInline/index.js.map +1 -1
  22. package/dist/features/blocks/client/index.d.ts.map +1 -1
  23. package/dist/features/blocks/client/index.js +7 -4
  24. package/dist/features/blocks/client/index.js.map +1 -1
  25. package/dist/features/blocks/client/markdownTransformer.js +1 -1
  26. package/dist/features/blocks/client/markdownTransformer.js.map +1 -1
  27. package/dist/features/blocks/server/linesFromMatchToContentAndPropsString.js +4 -4
  28. package/dist/features/blocks/server/linesFromMatchToContentAndPropsString.js.map +1 -1
  29. package/dist/features/blocks/server/markdownTransformer.d.ts.map +1 -1
  30. package/dist/features/blocks/server/markdownTransformer.js +5 -4
  31. package/dist/features/blocks/server/markdownTransformer.js.map +1 -1
  32. package/dist/features/blocks/server/validate.d.ts.map +1 -1
  33. package/dist/features/blocks/server/validate.js +9 -3
  34. package/dist/features/blocks/server/validate.js.map +1 -1
  35. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -1
  36. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +12 -10
  37. package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
  38. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -1
  39. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +39 -31
  40. package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
  41. package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -1
  42. package/dist/features/experimental_table/markdownTransformer.js +6 -2
  43. package/dist/features/experimental_table/markdownTransformer.js.map +1 -1
  44. package/dist/features/heading/markdownTransformer.js +1 -1
  45. package/dist/features/heading/markdownTransformer.js.map +1 -1
  46. package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -1
  47. package/dist/features/link/client/plugins/autoLink/index.js +35 -35
  48. package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
  49. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +1 -1
  50. package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
  51. package/dist/features/link/nodes/LinkNode.d.ts.map +1 -1
  52. package/dist/features/link/nodes/LinkNode.js +4 -6
  53. package/dist/features/link/nodes/LinkNode.js.map +1 -1
  54. package/dist/features/link/server/baseFields.d.ts.map +1 -1
  55. package/dist/features/link/server/baseFields.js +5 -8
  56. package/dist/features/link/server/baseFields.js.map +1 -1
  57. package/dist/features/link/server/validate.d.ts.map +1 -1
  58. package/dist/features/link/server/validate.js +9 -3
  59. package/dist/features/link/server/validate.js.map +1 -1
  60. package/dist/features/lists/shared/markdown.js.map +1 -1
  61. package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
  62. package/dist/features/toolbars/inline/client/Toolbar/index.js +1 -1
  63. package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
  64. package/dist/features/typesClient.d.ts +2 -1
  65. package/dist/features/typesClient.d.ts.map +1 -1
  66. package/dist/features/typesClient.js.map +1 -1
  67. package/dist/features/upload/server/feature.server.d.ts.map +1 -1
  68. package/dist/features/upload/server/feature.server.js +10 -8
  69. package/dist/features/upload/server/feature.server.js.map +1 -1
  70. package/dist/features/upload/server/validate.d.ts.map +1 -1
  71. package/dist/features/upload/server/validate.js +9 -3
  72. package/dist/features/upload/server/validate.js.map +1 -1
  73. package/dist/field/Field.d.ts +1 -1
  74. package/dist/field/Field.d.ts.map +1 -1
  75. package/dist/field/Field.js +17 -7
  76. package/dist/field/Field.js.map +1 -1
  77. package/dist/field/bundled.css +1 -1
  78. package/dist/field/index.d.ts.map +1 -1
  79. package/dist/field/index.js +23 -18
  80. package/dist/field/index.js.map +1 -1
  81. package/dist/field/rscEntry.d.ts.map +1 -1
  82. package/dist/field/rscEntry.js +1 -0
  83. package/dist/field/rscEntry.js.map +1 -1
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +6 -2
  86. package/dist/index.js.map +1 -1
  87. package/dist/lexical/config/client/loader.d.ts +3 -2
  88. package/dist/lexical/config/client/loader.d.ts.map +1 -1
  89. package/dist/lexical/config/client/loader.js +2 -0
  90. package/dist/lexical/config/client/loader.js.map +1 -1
  91. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +12 -0
  92. package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -1
  93. package/dist/lexical/plugins/DecoratorPlugin/index.js +198 -19
  94. package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
  95. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -1
  96. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +10 -4
  97. package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
  98. package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -1
  99. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -1
  100. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +2 -1
  101. package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -1
  102. package/dist/utilities/buildInitialState.d.ts +1 -0
  103. package/dist/utilities/buildInitialState.d.ts.map +1 -1
  104. package/dist/utilities/buildInitialState.js +2 -0
  105. package/dist/utilities/buildInitialState.js.map +1 -1
  106. package/dist/utilities/createClientFeature.d.ts +2 -1
  107. package/dist/utilities/createClientFeature.d.ts.map +1 -1
  108. package/dist/utilities/createClientFeature.js +2 -0
  109. package/dist/utilities/createClientFeature.js.map +1 -1
  110. package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -1
  111. package/dist/utilities/fieldsDrawer/DrawerContent.js +11 -3
  112. package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
  113. package/package.json +6 -6
  114. package/dist/exports/client/Field-LOLYH42M.js +0 -2
  115. package/dist/exports/client/Field-LOLYH42M.js.map +0 -7
  116. package/dist/exports/client/chunk-JKFXKPNG.js.map +0 -7
  117. package/dist/exports/client/chunk-KDV47ZNZ.js +0 -2
  118. package/dist/exports/client/chunk-KDV47ZNZ.js.map +0 -7
  119. package/dist/exports/client/chunk-QP2NYEWJ.js +0 -2
  120. package/dist/exports/client/chunk-QP2NYEWJ.js.map +0 -7
  121. package/dist/exports/client/componentInline-DTNGYZCL.js +0 -2
  122. /package/dist/exports/client/{component-VJVZFYZJ.js.map → component-P5K7Z5NW.js.map} +0 -0
  123. /package/dist/exports/client/{componentInline-DTNGYZCL.js.map → componentInline-UG3ZWWJY.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/utilities/fieldsDrawer/Drawer.tsx", "../../../src/utilities/fieldsDrawer/DrawerContent.tsx", "../../../src/features/relationship/client/utils/EnabledRelationshipsCondition.tsx", "../../../src/features/upload/client/drawer/commands.ts"],
4
- "sourcesContent": ["'use client'\nimport type { ClientField, Data, FormState, JsonObject } from 'payload'\n\nimport { Drawer, EditDepthProvider, useModal } from '@payloadcms/ui'\nimport React from 'react'\n\nimport { DrawerContent } from './DrawerContent.js'\n\nexport type FieldsDrawerProps = {\n readonly className?: string\n readonly data?: Data\n readonly drawerSlug: string\n readonly drawerTitle?: string\n readonly featureKey: string\n readonly fieldMapOverride?: ClientField[]\n readonly handleDrawerSubmit: (fields: FormState, data: JsonObject) => void\n readonly schemaFieldsPathOverride?: string\n readonly schemaPath: string\n readonly schemaPathSuffix?: string\n}\n\n/**\n * This FieldsDrawer component can be used to easily create a Drawer that contains a form with fields within your feature.\n * The fields are taken directly from the schema map based on your `featureKey` and `schemaPathSuffix`. Thus, this can only\n * be used if you provide your field schema inside the `generateSchemaMap` prop of your feature.server.ts.\n */\nexport const FieldsDrawer: React.FC<FieldsDrawerProps> = ({\n className,\n data,\n drawerSlug,\n drawerTitle,\n featureKey,\n fieldMapOverride,\n handleDrawerSubmit,\n schemaFieldsPathOverride,\n schemaPath,\n schemaPathSuffix,\n}) => {\n const { closeModal } = useModal()\n // The Drawer only renders its children (and itself) if it's open. Thus, by extracting the main content\n // to DrawerContent, this should be faster\n return (\n <EditDepthProvider>\n <Drawer className={className} slug={drawerSlug} title={drawerTitle ?? ''}>\n <DrawerContent\n data={data}\n featureKey={featureKey}\n fieldMapOverride={fieldMapOverride}\n handleDrawerSubmit={(args, args2) => {\n // Simply close drawer - no need for useLexicalDrawer here as at this point,\n // we don't need to restore the cursor position. This is handled by the useEffect in useLexicalDrawer.\n closeModal(drawerSlug)\n\n // Actual drawer submit logic needs to be triggered after the drawer is closed.\n // That's because the lexical selection / cursor restore logic that is striggerer by\n // `useLexicalDrawer` neeeds to be triggered before any editor.update calls that may happen\n // in the `handleDrawerSubmit` function.\n setTimeout(() => {\n handleDrawerSubmit(args, args2)\n }, 1)\n }}\n schemaFieldsPathOverride={schemaFieldsPathOverride}\n schemaPath={schemaPath}\n schemaPathSuffix={schemaPathSuffix}\n />\n </Drawer>\n </EditDepthProvider>\n )\n}\n", "'use client'\nimport type { FormState } from 'payload'\n\nimport {\n Form,\n FormSubmit,\n RenderFields,\n useDocumentInfo,\n useServerFunctions,\n useTranslation,\n} from '@payloadcms/ui'\nimport { abortAndIgnore } from '@payloadcms/ui/shared'\nimport React, { useCallback, useEffect, useRef, useState } from 'react'\nimport { v4 as uuid } from 'uuid'\n\nimport type { FieldsDrawerProps } from './Drawer.js'\n\nimport { useEditorConfigContext } from '../../lexical/config/client/EditorConfigProvider.js'\n\nexport const DrawerContent: React.FC<Omit<FieldsDrawerProps, 'drawerSlug' | 'drawerTitle'>> = ({\n data,\n featureKey,\n fieldMapOverride,\n handleDrawerSubmit,\n schemaFieldsPathOverride,\n schemaPath,\n schemaPathSuffix,\n}) => {\n const { t } = useTranslation()\n const { id, collectionSlug, getDocPreferences, globalSlug } = useDocumentInfo()\n\n const onChangeAbortControllerRef = useRef(new AbortController())\n\n const [initialState, setInitialState] = useState<false | FormState | undefined>(false)\n\n const {\n fieldProps: { featureClientSchemaMap, permissions },\n } = useEditorConfigContext()\n\n const { getFormState } = useServerFunctions()\n\n const schemaFieldsPath =\n schemaFieldsPathOverride ??\n `${schemaPath}.lexical_internal_feature.${featureKey}${schemaPathSuffix ? `.${schemaPathSuffix}` : ''}`\n\n const fields: any = fieldMapOverride ?? featureClientSchemaMap[featureKey]?.[schemaFieldsPath] // Field Schema\n\n useEffect(() => {\n const controller = new AbortController()\n\n const awaitInitialState = async () => {\n const { state } = await getFormState({\n id,\n collectionSlug,\n data: data ?? {},\n docPermissions: {\n fields: true,\n },\n docPreferences: await getDocPreferences(),\n globalSlug,\n operation: 'update',\n renderAllFields: true,\n schemaPath: schemaFieldsPath,\n signal: controller.signal,\n })\n\n setInitialState(state)\n }\n\n void awaitInitialState()\n\n return () => {\n abortAndIgnore(controller)\n }\n }, [schemaFieldsPath, id, data, getFormState, collectionSlug, globalSlug, getDocPreferences])\n\n const onChange = useCallback(\n async ({ formState: prevFormState }: { formState: FormState }) => {\n abortAndIgnore(onChangeAbortControllerRef.current)\n\n const controller = new AbortController()\n onChangeAbortControllerRef.current = controller\n\n const { state } = await getFormState({\n id,\n collectionSlug,\n docPermissions: {\n fields: true,\n },\n docPreferences: await getDocPreferences(),\n formState: prevFormState,\n globalSlug,\n operation: 'update',\n schemaPath: schemaFieldsPath,\n signal: controller.signal,\n })\n\n if (!state) {\n return prevFormState\n }\n\n return state\n },\n [getFormState, id, collectionSlug, getDocPreferences, globalSlug, schemaFieldsPath],\n )\n\n // cleanup effect\n useEffect(() => {\n return () => {\n abortAndIgnore(onChangeAbortControllerRef.current)\n }\n }, [])\n\n if (initialState === false) {\n return null\n }\n\n return (\n <Form\n beforeSubmit={[onChange]}\n disableValidationOnSubmit\n fields={Array.isArray(fields) ? fields : []}\n initialState={initialState}\n onChange={[onChange]}\n onSubmit={handleDrawerSubmit}\n uuid={uuid()}\n >\n <RenderFields\n fields={Array.isArray(fields) ? fields : []}\n forceRender\n parentIndexPath=\"\"\n parentPath=\"\" // See Blocks feature path for details as for why this is empty\n parentSchemaPath={schemaFieldsPath}\n permissions={permissions}\n readOnly={false}\n />\n <FormSubmit>{t('fields:saveChanges')}</FormSubmit>\n </Form>\n )\n}\n", "'use client'\nimport type { ClientCollectionConfig, ClientUser, VisibleEntities } from 'payload'\n\nimport { useAuth, useConfig, useEntityVisibility } from '@payloadcms/ui'\nimport * as React from 'react'\n\ntype Options = {\n uploads: boolean\n user: ClientUser\n visibleEntities: VisibleEntities\n}\n\ntype FilteredCollectionsT = (\n collections: ClientCollectionConfig[],\n options?: Options,\n) => ClientCollectionConfig[]\n\nconst filterRichTextCollections: FilteredCollectionsT = (collections, options) => {\n return collections.filter(({ slug, admin: { enableRichTextRelationship }, upload }) => {\n if (!options?.visibleEntities.collections.includes(slug)) {\n return false\n }\n\n if (options?.uploads) {\n return enableRichTextRelationship && Boolean(upload) === true\n }\n\n return upload ? false : enableRichTextRelationship\n })\n}\n\nexport const EnabledRelationshipsCondition: React.FC<{\n children: any\n FallbackComponent?: React.FC\n uploads?: boolean\n}> = (props) => {\n const { children, FallbackComponent, uploads = false, ...rest } = props\n const {\n config: { collections },\n } = useConfig()\n const { user } = useAuth()\n const { visibleEntities } = useEntityVisibility()\n\n const [enabledCollectionSlugs] = React.useState(() =>\n filterRichTextCollections(collections, { uploads, user: user!, visibleEntities }).map(\n ({ slug }) => slug,\n ),\n )\n\n if (!enabledCollectionSlugs.length) {\n return FallbackComponent ? <FallbackComponent {...rest} /> : null\n }\n\n return React.cloneElement(children, { ...rest, enabledCollectionSlugs })\n}\n", "'use client'\nimport type { LexicalCommand } from 'lexical'\n\nimport { createCommand } from 'lexical'\n\nexport const INSERT_UPLOAD_WITH_DRAWER_COMMAND: LexicalCommand<{\n replace: { nodeKey: string } | false\n}> = createCommand('INSERT_UPLOAD_WITH_DRAWER_COMMAND')\n"],
5
- "mappings": "wCAAA,OAAAA,KAAAC,MAAA,iEAGA,OAASC,UAAAA,EAAQC,qBAAAA,EAAmBC,YAAAA,MAAgB,iBACpD,MAAkB,0DCDlB,OACEC,QAAAA,EACAC,cAAAA,EACAC,gBAAAA,EACAC,mBAAAA,EACAC,sBAAAA,EACAC,kBAAAA,MACK,iBACP,OAASC,kBAAAA,MAAsB,wBAC/B,OAAgBC,eAAAA,EAAaC,aAAAA,EAAWC,UAAAA,EAAQC,YAAAA,MAAgB,QAChE,OAASC,MAAMC,MAAY,OAMpB,IAAMC,EAAiFA,CAAC,CAC7FC,KAAAA,EACAC,WAA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f,EAAA,EAAA,EAAtDe,CAAsD,CAAA,IAAAA,EAAA,GAAAf,EAAA,EAAA,IAAAE,GAAAF,EAAA,EAAA,IAAAY,GAAAZ,EAAA,EAAA,IAAAG,EAAA,CAAA,IAAAc,EAAAjB,EAAA,EAAA,IAAAY,GAAAZ,EAAA,EAAA,IAAAG,GAG3Bc,EAAA,CAAA,GAAKd,EAAIS,uBAAAA,CAAA,EAAyBZ,EAAA,EAAA,EAAAY,EAAAZ,EAAA,EAAA,EAAAG,EAAAH,EAAA,EAAA,EAAAiB,GAAAA,EAAAjB,EAAA,EAAA,EAA/De,EAAAG,eAAmBhB,EAAUe,CAAkC,EAAAjB,EAAA,EAAA,EAAAE,EAAAF,EAAA,EAAA,EAAAY,EAAAZ,EAAA,EAAA,EAAAG,EAAAH,EAAA,EAAA,EAAAe,CAAA,MAAAA,EAAAf,EAAA,EAAA,EAAA,OAA/De,CAA+D,EAlBnE,SAAAJ,EAAAP,EAAA,CAUE,GAAA,CAAAd,KAAAA,CAAA,EAAAc,EAAQ,OAAKd,CAAA,CC1CpB,OAAS6B,iBAAAA,MAAqB,UAEvB,IAAMC,GAERD,EAAc,mCAAA",
6
- "names": ["c", "_c", "Drawer", "EditDepthProvider", "useModal", "Form", "FormSubmit", "RenderFields", "useDocumentInfo", "useServerFunctions", "useTranslation", "abortAndIgnore", "useCallback", "useEffect", "useRef", "useState", "v4", "uuid", "DrawerContent", "data", "featureKey", "fieldMapOverride", "handleDrawerSubmit", "schemaFieldsPathOverride", "schemaPath", "schemaPathSuffix", "t", "useTranslation", "id", "collectionSlug", "getDocPreferences", "globalSlug", "useDocumentInfo", "onChangeAbortControllerRef", "useRef", "AbortController", "initialState", "setInitialState", "useState", "fieldProps", "featureClientSchemaMap", "permissions", "useEditorConfigContext", "getFormState", "useServerFunctions", "schemaFieldsPath", "fields", "useEffect", "controller", "state", "docPermissions", "docPreferences", "operation", "renderAllFields", "signal", "abortAndIgnore", "onChange", "useCallback", "formState", "prevFormState", "current", "_jsxs", "Form", "beforeSubmit", "disableValidationOnSubmit", "Array", "isArray", "onSubmit", "uuid", "_jsx", "RenderFields", "forceRender", "parentIndexPath", "parentPath", "parentSchemaPath", "readOnly", "FormSubmit", "FieldsDrawer", "t0", "$", "_c", "className", "data", "drawerSlug", "drawerTitle", "featureKey", "fieldMapOverride", "handleDrawerSubmit", "schemaFieldsPathOverride", "schemaPath", "schemaPathSuffix", "closeModal", "useModal", "t1", "t2", "args", "args2", "setTimeout", "t3", "_jsx", "EditDepthProvider", "children", "Drawer", "slug", "title", "DrawerContent", "c", "_c", "useAuth", "useConfig", "useEntityVisibility", "React", "filterRichTextCollections", "collections", "options", "filter", "slug", "admin", "enableRichTextRelationship", "upload", "visibleEntities", "includes", "uploads", "Boolean", "EnabledRelationshipsCondition", "props", "$", "FallbackComponent", "children", "rest", "t0", "undefined", "config", "t1", "user", "t2", "map", "_temp", "enabledCollectionSlugs", "useState", "length", "t3", "_jsx", "t4", "cloneElement", "createCommand", "INSERT_UPLOAD_WITH_DRAWER_COMMAND"]
7
- }
@@ -1,2 +0,0 @@
1
- "use client";import{a,b}from"./chunk-KDV47ZNZ.js";import"./chunk-INBEEENE.js";import"./chunk-3LGFOM34.js";export{b as InlineBlockComponent,a as useInlineBlockComponentContext};
2
- //# sourceMappingURL=componentInline-DTNGYZCL.js.map