@payloadcms/richtext-lexical 3.57.0-canary.7 → 3.57.0-internal.1d2ebbc

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 (108) hide show
  1. package/dist/exports/client/{Field-D5RCNN4A.js → Field-PKJPWZJL.js} +2 -2
  2. package/dist/exports/client/Field-PKJPWZJL.js.map +7 -0
  3. package/dist/exports/client/bundled.css +1 -1
  4. package/dist/exports/client/component-3PENNOM3.js +2 -0
  5. package/dist/exports/client/component-3PENNOM3.js.map +7 -0
  6. package/dist/exports/client/index.js +10 -10
  7. package/dist/exports/client/index.js.map +4 -4
  8. package/dist/exports/client/pendingComponent-WFSCE6LJ.js +2 -0
  9. package/dist/exports/client/pendingComponent-WFSCE6LJ.js.map +7 -0
  10. package/dist/features/align/server/i18n.d.ts.map +1 -1
  11. package/dist/features/align/server/i18n.js +0 -6
  12. package/dist/features/align/server/i18n.js.map +1 -1
  13. package/dist/features/blockquote/server/i18n.d.ts.map +1 -1
  14. package/dist/features/blockquote/server/i18n.js +0 -3
  15. package/dist/features/blockquote/server/i18n.js.map +1 -1
  16. package/dist/features/blocks/server/i18n.d.ts.map +1 -1
  17. package/dist/features/blocks/server/i18n.js +0 -9
  18. package/dist/features/blocks/server/i18n.js.map +1 -1
  19. package/dist/features/heading/client/index.d.ts.map +1 -1
  20. package/dist/features/heading/client/index.js +0 -60
  21. package/dist/features/heading/client/index.js.map +1 -1
  22. package/dist/features/heading/server/i18n.d.ts.map +1 -1
  23. package/dist/features/heading/server/i18n.js +0 -3
  24. package/dist/features/heading/server/i18n.js.map +1 -1
  25. package/dist/features/heading/server/index.d.ts.map +1 -1
  26. package/dist/features/heading/server/index.js +0 -1
  27. package/dist/features/heading/server/index.js.map +1 -1
  28. package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -1
  29. package/dist/features/horizontalRule/server/i18n.js +0 -3
  30. package/dist/features/horizontalRule/server/i18n.js.map +1 -1
  31. package/dist/features/indent/server/i18n.d.ts.map +1 -1
  32. package/dist/features/indent/server/i18n.js +0 -4
  33. package/dist/features/indent/server/i18n.js.map +1 -1
  34. package/dist/features/link/server/i18n.d.ts.map +1 -1
  35. package/dist/features/link/server/i18n.js +0 -4
  36. package/dist/features/link/server/i18n.js.map +1 -1
  37. package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -1
  38. package/dist/features/lists/checklist/server/i18n.js +0 -3
  39. package/dist/features/lists/checklist/server/i18n.js.map +1 -1
  40. package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -1
  41. package/dist/features/lists/orderedList/server/i18n.js +0 -3
  42. package/dist/features/lists/orderedList/server/i18n.js.map +1 -1
  43. package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -1
  44. package/dist/features/lists/unorderedList/server/i18n.js +0 -3
  45. package/dist/features/lists/unorderedList/server/i18n.js.map +1 -1
  46. package/dist/features/paragraph/server/i18n.d.ts.map +1 -1
  47. package/dist/features/paragraph/server/i18n.js +0 -4
  48. package/dist/features/paragraph/server/i18n.js.map +1 -1
  49. package/dist/features/relationship/server/i18n.d.ts.map +1 -1
  50. package/dist/features/relationship/server/i18n.js +0 -3
  51. package/dist/features/relationship/server/i18n.js.map +1 -1
  52. package/dist/features/textState/i18n.d.ts.map +1 -1
  53. package/dist/features/textState/i18n.js +0 -3
  54. package/dist/features/textState/i18n.js.map +1 -1
  55. package/dist/features/upload/client/component/index.d.ts +0 -2
  56. package/dist/features/upload/client/component/index.d.ts.map +1 -1
  57. package/dist/features/upload/client/component/index.js +24 -28
  58. package/dist/features/upload/client/component/index.js.map +1 -1
  59. package/dist/features/upload/client/index.d.ts.map +1 -1
  60. package/dist/features/upload/client/index.js +2 -1
  61. package/dist/features/upload/client/index.js.map +1 -1
  62. package/dist/features/upload/client/nodes/PendingUploadNode.d.ts +17 -0
  63. package/dist/features/upload/client/nodes/PendingUploadNode.d.ts.map +1 -0
  64. package/dist/features/upload/client/nodes/PendingUploadNode.js +57 -0
  65. package/dist/features/upload/client/nodes/PendingUploadNode.js.map +1 -0
  66. package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
  67. package/dist/features/upload/client/nodes/UploadNode.js +0 -6
  68. package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
  69. package/dist/features/upload/client/pendingComponent/index.d.ts +7 -0
  70. package/dist/features/upload/client/pendingComponent/index.d.ts.map +1 -0
  71. package/dist/features/upload/client/{component/pending → pendingComponent}/index.js +1 -1
  72. package/dist/features/upload/client/pendingComponent/index.js.map +1 -0
  73. package/dist/features/upload/client/plugin/index.d.ts +0 -6
  74. package/dist/features/upload/client/plugin/index.d.ts.map +1 -1
  75. package/dist/features/upload/client/plugin/index.js +31 -67
  76. package/dist/features/upload/client/plugin/index.js.map +1 -1
  77. package/dist/features/upload/server/i18n.d.ts.map +1 -1
  78. package/dist/features/upload/server/i18n.js +0 -3
  79. package/dist/features/upload/server/i18n.js.map +1 -1
  80. package/dist/features/upload/server/index.d.ts.map +1 -1
  81. package/dist/features/upload/server/index.js +4 -1
  82. package/dist/features/upload/server/index.js.map +1 -1
  83. package/dist/features/upload/server/nodes/PendingUploadNode.d.ts +42 -0
  84. package/dist/features/upload/server/nodes/PendingUploadNode.d.ts.map +1 -0
  85. package/dist/features/upload/server/nodes/PendingUploadNode.js +92 -0
  86. package/dist/features/upload/server/nodes/PendingUploadNode.js.map +1 -0
  87. package/dist/features/upload/server/nodes/UploadNode.d.ts +0 -16
  88. package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -1
  89. package/dist/features/upload/server/nodes/UploadNode.js +2 -9
  90. package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
  91. package/dist/features/upload/server/nodes/conversions.d.ts +3 -0
  92. package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -1
  93. package/dist/features/upload/server/nodes/conversions.js +20 -20
  94. package/dist/features/upload/server/nodes/conversions.js.map +1 -1
  95. package/dist/field/Field.d.ts.map +1 -1
  96. package/dist/field/Field.js +1 -1
  97. package/dist/field/Field.js.map +1 -1
  98. package/dist/field/bundled.css +1 -1
  99. package/dist/i18n.d.ts.map +1 -1
  100. package/dist/i18n.js +0 -6
  101. package/dist/i18n.js.map +1 -1
  102. package/package.json +6 -6
  103. package/dist/exports/client/Field-D5RCNN4A.js.map +0 -7
  104. package/dist/exports/client/component-VDJI45F2.js +0 -2
  105. package/dist/exports/client/component-VDJI45F2.js.map +0 -7
  106. package/dist/features/upload/client/component/pending/index.d.ts +0 -3
  107. package/dist/features/upload/client/component/pending/index.d.ts.map +0 -1
  108. package/dist/features/upload/client/component/pending/index.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use client";import{a as S,b as R,c as $}from"./chunk-CYLMY5ZJ.js";import{a as x}from"./chunk-INBEEENE.js";import{a as N}from"./chunk-F26IQ5RE.js";import{b as p}from"./chunk-BZZVLW4U.js";import{jsx as e,jsxs as s}from"react/jsx-runtime";import{useLexicalComposerContext as X}from"@lexical/react/LexicalComposerContext.js";import{getTranslation as y}from"@payloadcms/translations";import{Button as h,formatDrawerSlug as Y,Thumbnail as Z,useConfig as ee,useEditDepth as te,usePayloadAPI as oe,useTranslation as ae}from"@payloadcms/ui";import{$getNodeByKey as E}from"lexical";import{isImage as le}from"payload/shared";import{useCallback as f,useId as re,useReducer as se,useRef as ie,useState as ne}from"react";var t="lexical-upload",P={depth:0},ce=i=>{let{data:{fields:T,relationTo:g,value:n},nodeKey:l}=i;if(typeof n=="object")throw new Error("Upload value should be a string or number. The Lexical Upload component should not receive the populated value object.");let{config:{routes:{api:U},serverURL:L},getEntityConfig:F}=ee(),j=ie(null),{uuid:I}=p(),B=te(),[o]=X(),{editorConfig:k,fieldProps:{readOnly:u,schemaPath:A}}=p(),{i18n:b,t:c}=ae(),[_,K]=se(r=>r+1,0),[a]=ne(()=>F({collectionSlug:g})),M=re(),w=Y({slug:"lexical-upload-drawer-"+I+M,depth:B}),{toggleDrawer:O}=x(w,!0),{closeDocumentDrawer:D,DocumentDrawer:W,DocumentDrawerToggler:z}=N({id:n,collectionSlug:a.slug}),[{data:d},{setParams:C}]=oe(`${L}${U}/${a.slug}/${n}`,{initialParams:P}),H=d?.thumbnailURL||d?.url,q=f(()=>{o.update(()=>{E(l)?.remove()})},[o,l]),G=f(r=>{C({...P,cacheBust:_}),K(),D()},[C,_,D]),v=k?.resolvedFeatureMap?.get("upload")?.sanitizedClientFeatureProps.collections?.[a.slug]?.hasExtraFields,J=f((r,Q)=>{o.update(()=>{let m=E(l);if(m){let V={...m.getData(),fields:Q};m.setData(V)}})},[o,l]);return s("div",{className:t,contentEditable:!1,ref:j,children:[s("div",{className:`${t}__card`,children:[s("div",{className:`${t}__topRow`,children:[e("div",{className:`${t}__thumbnail`,children:e(Z,{collectionSlug:g,fileSrc:le(d?.mimeType)?H:null})}),s("div",{className:`${t}__topRowRightPanel`,children:[e("div",{className:`${t}__collectionLabel`,children:y(a.labels.singular,b)}),o.isEditable()&&s("div",{className:`${t}__actions`,children:[v?e(h,{buttonStyle:"icon-label",className:`${t}__upload-drawer-toggler`,disabled:u,el:"button",icon:"edit",onClick:()=>{O()},round:!0,tooltip:c("fields:editRelationship")}):null,e(h,{buttonStyle:"icon-label",className:`${t}__swap-drawer-toggler`,disabled:u,el:"button",icon:"swap",onClick:()=>{o.dispatchCommand($,{replace:{nodeKey:l}})},round:!0,tooltip:c("fields:swapUpload")}),e(h,{buttonStyle:"icon-label",className:`${t}__removeButton`,disabled:u,icon:"x",onClick:r=>{r.preventDefault(),q()},round:!0,tooltip:c("fields:removeUpload")})]})]})]}),e("div",{className:`${t}__bottomRow`,children:e(z,{className:`${t}__doc-drawer-toggler`,children:e("strong",{children:d?.filename})})})]}),n?e(W,{onSave:G}):null,v?e(S,{data:T,drawerSlug:w,drawerTitle:c("general:editLabel",{label:y(a.labels.singular,b)}),featureKey:"upload",handleDrawerSubmit:J,schemaPath:A,schemaPathSuffix:a.slug}):null]})},Se=i=>e(R,{...i,uploads:!0,children:e(ce,{...i})});export{Se as UploadComponent};
2
+ //# sourceMappingURL=component-3PENNOM3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/features/upload/client/component/index.tsx"],
4
+ "sourcesContent": ["'use client'\nimport type { ClientCollectionConfig, Data, FormState, JsonObject } from 'payload'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { getTranslation } from '@payloadcms/translations'\nimport {\n Button,\n formatDrawerSlug,\n Thumbnail,\n useConfig,\n useEditDepth,\n usePayloadAPI,\n useTranslation,\n} from '@payloadcms/ui'\nimport { $getNodeByKey } from 'lexical'\nimport { isImage } from 'payload/shared'\nimport React, { useCallback, useId, useReducer, useRef, useState } from 'react'\n\nimport type { BaseClientFeatureProps } from '../../../typesClient.js'\nimport type { UploadData } from '../../server/nodes/UploadNode.js'\nimport type { UploadFeaturePropsClient } from '../index.js'\nimport type { UploadNode } from '../nodes/UploadNode.js'\n\nimport { useEditorConfigContext } from '../../../../lexical/config/client/EditorConfigProvider.js'\nimport { FieldsDrawer } from '../../../../utilities/fieldsDrawer/Drawer.js'\nimport { useLexicalDocumentDrawer } from '../../../../utilities/fieldsDrawer/useLexicalDocumentDrawer.js'\nimport { useLexicalDrawer } from '../../../../utilities/fieldsDrawer/useLexicalDrawer.js'\nimport { EnabledRelationshipsCondition } from '../../../relationship/client/utils/EnabledRelationshipsCondition.js'\nimport { INSERT_UPLOAD_WITH_DRAWER_COMMAND } from '../drawer/commands.js'\nimport './index.scss'\n\nconst baseClass = 'lexical-upload'\n\nconst initialParams = {\n depth: 0,\n}\n\nexport type ElementProps = {\n data: UploadData\n nodeKey: string\n}\n\nconst Component: React.FC<ElementProps> = (props) => {\n const {\n data: { fields, relationTo, value },\n nodeKey,\n } = props\n\n if (typeof value === 'object') {\n throw new Error(\n 'Upload value should be a string or number. The Lexical Upload component should not receive the populated value object.',\n )\n }\n\n const {\n config: {\n routes: { api },\n serverURL,\n },\n getEntityConfig,\n } = useConfig()\n const uploadRef = useRef<HTMLDivElement | null>(null)\n const { uuid } = useEditorConfigContext()\n const editDepth = useEditDepth()\n const [editor] = useLexicalComposerContext()\n\n const {\n editorConfig,\n fieldProps: { readOnly, schemaPath },\n } = useEditorConfigContext()\n\n const { i18n, t } = useTranslation()\n const [cacheBust, dispatchCacheBust] = useReducer((state) => state + 1, 0)\n const [relatedCollection] = useState<ClientCollectionConfig>(() =>\n getEntityConfig({ collectionSlug: relationTo }),\n )\n\n const componentID = useId()\n\n const extraFieldsDrawerSlug = formatDrawerSlug({\n slug: `lexical-upload-drawer-` + uuid + componentID, // There can be multiple upload components, each with their own drawer, in one single editor => separate them by componentID\n depth: editDepth,\n })\n\n // Need to use hook to initialize useEffect that restores cursor position\n const { toggleDrawer } = useLexicalDrawer(extraFieldsDrawerSlug, true)\n\n const { closeDocumentDrawer, DocumentDrawer, DocumentDrawerToggler } = useLexicalDocumentDrawer({\n id: value,\n collectionSlug: relatedCollection.slug,\n })\n\n // Get the referenced document\n const [{ data }, { setParams }] = usePayloadAPI(\n `${serverURL}${api}/${relatedCollection.slug}/${value}`,\n { initialParams },\n )\n\n const thumbnailSRC = data?.thumbnailURL || data?.url\n\n const removeUpload = useCallback(() => {\n editor.update(() => {\n $getNodeByKey(nodeKey)?.remove()\n })\n }, [editor, nodeKey])\n\n const updateUpload = useCallback(\n (data: Data) => {\n setParams({\n ...initialParams,\n cacheBust, // do this to get the usePayloadAPI to re-fetch the data even though the URL string hasn't changed\n })\n\n dispatchCacheBust()\n closeDocumentDrawer()\n },\n [setParams, cacheBust, closeDocumentDrawer],\n )\n\n const hasExtraFields = (\n editorConfig?.resolvedFeatureMap?.get('upload')\n ?.sanitizedClientFeatureProps as BaseClientFeatureProps<UploadFeaturePropsClient>\n ).collections?.[relatedCollection.slug]?.hasExtraFields\n\n const onExtraFieldsDrawerSubmit = useCallback(\n (_: FormState, data: JsonObject) => {\n // Update lexical node (with key nodeKey) with new data\n editor.update(() => {\n const uploadNode: null | UploadNode = $getNodeByKey(nodeKey)\n if (uploadNode) {\n const newData: UploadData = {\n ...uploadNode.getData(),\n fields: data,\n }\n uploadNode.setData(newData)\n }\n })\n },\n [editor, nodeKey],\n )\n\n return (\n <div className={baseClass} contentEditable={false} ref={uploadRef}>\n <div className={`${baseClass}__card`}>\n <div className={`${baseClass}__topRow`}>\n <div className={`${baseClass}__thumbnail`}>\n <Thumbnail\n collectionSlug={relationTo}\n fileSrc={isImage(data?.mimeType) ? thumbnailSRC : null}\n />\n </div>\n <div className={`${baseClass}__topRowRightPanel`}>\n <div className={`${baseClass}__collectionLabel`}>\n {getTranslation(relatedCollection.labels.singular, i18n)}\n </div>\n {editor.isEditable() && (\n <div className={`${baseClass}__actions`}>\n {hasExtraFields ? (\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__upload-drawer-toggler`}\n disabled={readOnly}\n el=\"button\"\n icon=\"edit\"\n onClick={() => {\n toggleDrawer()\n }}\n round\n tooltip={t('fields:editRelationship')}\n />\n ) : null}\n\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__swap-drawer-toggler`}\n disabled={readOnly}\n el=\"button\"\n icon=\"swap\"\n onClick={() => {\n editor.dispatchCommand(INSERT_UPLOAD_WITH_DRAWER_COMMAND, {\n replace: { nodeKey },\n })\n }}\n round\n tooltip={t('fields:swapUpload')}\n />\n <Button\n buttonStyle=\"icon-label\"\n className={`${baseClass}__removeButton`}\n disabled={readOnly}\n icon=\"x\"\n onClick={(e) => {\n e.preventDefault()\n removeUpload()\n }}\n round\n tooltip={t('fields:removeUpload')}\n />\n </div>\n )}\n </div>\n </div>\n <div className={`${baseClass}__bottomRow`}>\n <DocumentDrawerToggler className={`${baseClass}__doc-drawer-toggler`}>\n <strong>{data?.filename}</strong>\n </DocumentDrawerToggler>\n </div>\n </div>\n {value ? <DocumentDrawer onSave={updateUpload} /> : null}\n {hasExtraFields ? (\n <FieldsDrawer\n data={fields}\n drawerSlug={extraFieldsDrawerSlug}\n drawerTitle={t('general:editLabel', {\n label: getTranslation(relatedCollection.labels.singular, i18n),\n })}\n featureKey=\"upload\"\n handleDrawerSubmit={onExtraFieldsDrawerSubmit}\n schemaPath={schemaPath}\n schemaPathSuffix={relatedCollection.slug}\n />\n ) : null}\n </div>\n )\n}\n\nexport const UploadComponent = (props: ElementProps): React.ReactNode => {\n return (\n <EnabledRelationshipsCondition {...props} uploads>\n <Component {...props} />\n </EnabledRelationshipsCondition>\n )\n}\n"],
5
+ "mappings": "6OAGA,OAASA,6BAAAA,MAAiC,2CAC1C,OAASC,kBAAAA,MAAsB,2BAC/B,OACEC,UAAAA,EACAC,oBAAAA,EACAC,aAAAA,EACAC,aAAAA,GACAC,gBAAAA,GACAC,iBAAAA,GACAC,kBAAAA,OACK,iBACP,OAASC,iBAAAA,MAAqB,UAC9B,OAASC,WAAAA,OAAe,iBACxB,OAAgBC,eAAAA,EAAaC,SAAAA,GAAOC,cAAAA,GAAYC,UAAAA,GAAQC,YAAAA,OAAgB,QAexE,IAAMC,EAAY,iBAEZC,EAAgB,CACpBC,MAAO,CACT,EAOMC,GAAqCC,GAAA,CACzC,GAAM,CACJC,KAAM,CAAEC,OAAAA,EAAQC,WAAAA,EAAYC,MAAAA,CAAK,EACjCC,QAAAA,CAAO,EACLL,EAEJ,GAAI,OAAOI,GAAU,SACnB,MAAM,IAAIE,MACR,wHAAA,EAIJ,GAAM,CACJC,OAAQ,CACNC,OAAQ,CAAEC,IAAAA,CAAG,EACbC,UAAAA,CAAS,EAEXC,gBAAAA,CAAe,EACbC,GAAA,EACEC,EAAYC,GAA8B,IAAA,EAC1C,CAAEC,KAAAA,CAAI,EAAKC,EAAA,EACXC,EAAYC,GAAA,EACZ,CAACC,CAAA,EAAUC,EAAA,EAEX,CACJC,aAAAA,EACAC,WAAY,CAAEC,SAAAA,EAAUC,WAAAA,CAAU,CAAE,EAClCR,EAAA,EAEE,CAAES,KAAAA,EAAMC,EAAAA,CAAC,EAAKC,GAAA,EACd,CAACC,EAAWC,CAAA,EAAq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AMrB+C,EAAC,MAAA,CAAIH,UAAW,GAAG1E,CAAA,uBACjB6E,EAAC7B,EAAA,CAAsB0B,UAAW,GAAG1E,CAAA,gCACnC6E,EAAC,SAAA,UAAQxE,GAAM8F,kBAIpB3F,EAAQqE,EAAC9B,EAAA,CAAeqD,OAAQvC,IAAmB,KACnDC,EACCe,EAACwB,EAAA,CACChG,KAAMC,EACNgG,WAAY7D,EACZ8D,YAAazE,EAAE,oBAAqB,CAClC0E,MAAOtB,EAAe9C,EAAkB+C,OAAOC,SAAUvD,CAAA,CAC3D,CAAA,EACA4E,WAAW,SACXC,mBAAoBvC,EACpBvC,WAAYA,EACZ+E,iBAAkBvE,EAAkBO,OAEpC,IAAA,GAGV,EAEaiE,GAAmBxG,GAE5ByE,EAACgC,EAAA,CAA+B,GAAGzG,EAAO0G,QAAO,YAC/CjC,EAAC1E,GAAA,CAAW,GAAGC",
6
+ "names": ["useLexicalComposerContext", "getTranslation", "Button", "formatDrawerSlug", "Thumbnail", "useConfig", "useEditDepth", "usePayloadAPI", "useTranslation", "$getNodeByKey", "isImage", "useCallback", "useId", "useReducer", "useRef", "useState", "baseClass", "initialParams", "depth", "Component", "props", "data", "fields", "relationTo", "value", "nodeKey", "Error", "config", "routes", "api", "serverURL", "getEntityConfig", "useConfig", "uploadRef", "useRef", "uuid", "useEditorConfigContext", "editDepth", "useEditDepth", "editor", "useLexicalComposerContext", "editorConfig", "fieldProps", "readOnly", "schemaPath", "i18n", "t", "useTranslation", "cacheBust", "dispatchCacheBust", "useReducer", "state", "relatedCollection", "useState", "collectionSlug", "componentID", "useId", "extraFieldsDrawerSlug", "formatDrawerSlug", "slug", "toggleDrawer", "useLexicalDrawer", "closeDocumentDrawer", "DocumentDrawer", "DocumentDrawerToggler", "useLexicalDocumentDrawer", "id", "setParams", "usePayloadAPI", "thumbnailSRC", "thumbnailURL", "url", "removeUpload", "useCallback", "update", "$getNodeByKey", "remove", "updateUpload", "hasExtraFields", "resolvedFeatureMap", "get", "sanitizedClientFeatureProps", "collections", "onExtraFieldsDrawerSubmit", "_", "uploadNode", "newData", "getData", "setData", "_jsxs", "className", "contentEditable", "ref", "_jsx", "Thumbnail", "fileSrc", "isImage", "mimeType", "getTranslation", "labels", "singular", "isEditable", "Button", "buttonStyle", "disabled", "el", "icon", "onClick", "round", "tooltip", "dispatchCommand", "INSERT_UPLOAD_WITH_DRAWER_COMMAND", "replace", "e", "preventDefault", "filename", "onSave", "FieldsDrawer", "drawerSlug", "drawerTitle", "label", "featureKey", "handleDrawerSubmit", "schemaPathSuffix", "UploadComponent", "EnabledRelationshipsCondition", "uploads"]
7
+ }