@strapi/content-manager 0.0.0-experimental.e60ec1829240dae21c1e1d29076681c322288813 → 0.0.0-experimental.f75e3c6d67cc47c64ab37479efdbb7b43be50b78

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 (165) hide show
  1. package/dist/_chunks/{CardDragPreview-DSVYodBX.js → CardDragPreview-C0QyJgRA.js} +10 -14
  2. package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
  3. package/dist/_chunks/{CardDragPreview-ikSG4M46.mjs → CardDragPreview-DOxamsuj.mjs} +7 -9
  4. package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
  5. package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs → ComponentConfigurationPage-CuWgXugY.mjs} +3 -3
  6. package/dist/_chunks/{ComponentConfigurationPage-BPvzFjM7.mjs.map → ComponentConfigurationPage-CuWgXugY.mjs.map} +1 -1
  7. package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js → ComponentConfigurationPage-by0e_kNd.js} +3 -3
  8. package/dist/_chunks/{ComponentConfigurationPage-DjWJdz6Y.js.map → ComponentConfigurationPage-by0e_kNd.js.map} +1 -1
  9. package/dist/_chunks/{ComponentIcon-BBQsYCVn.js → ComponentIcon-BXdiCGQp.js} +8 -2
  10. package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +1 -0
  11. package/dist/_chunks/{ComponentIcon-BOFnK76n.mjs → ComponentIcon-u4bIXTFY.mjs} +9 -3
  12. package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
  13. package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js → EditConfigurationPage-CqBeCPGH.js} +3 -3
  14. package/dist/_chunks/{EditConfigurationPage-Dmv83RlS.js.map → EditConfigurationPage-CqBeCPGH.js.map} +1 -1
  15. package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs → EditConfigurationPage-DbI4KMyz.mjs} +3 -3
  16. package/dist/_chunks/{EditConfigurationPage-DacbqQ_f.mjs.map → EditConfigurationPage-DbI4KMyz.mjs.map} +1 -1
  17. package/dist/_chunks/{EditViewPage-DvNpQkam.js → EditViewPage-ChgloMyO.js} +7 -9
  18. package/dist/_chunks/EditViewPage-ChgloMyO.js.map +1 -0
  19. package/dist/_chunks/{EditViewPage-DDS6H9HO.mjs → EditViewPage-dFPBya9U.mjs} +6 -6
  20. package/dist/_chunks/EditViewPage-dFPBya9U.mjs.map +1 -0
  21. package/dist/_chunks/{Field-6gvGdPBV.mjs → Field-C1nUKcdS.mjs} +500 -608
  22. package/dist/_chunks/Field-C1nUKcdS.mjs.map +1 -0
  23. package/dist/_chunks/{Field-DmVKIAOo.js → Field-dLk-vgLL.js} +552 -661
  24. package/dist/_chunks/Field-dLk-vgLL.js.map +1 -0
  25. package/dist/_chunks/{Form-CPZC9vWa.js → Form-CbXtmHC_.js} +18 -16
  26. package/dist/_chunks/Form-CbXtmHC_.js.map +1 -0
  27. package/dist/_chunks/{Form-DW6K1IH-.mjs → Form-DOlpi7Js.mjs} +16 -13
  28. package/dist/_chunks/Form-DOlpi7Js.mjs.map +1 -0
  29. package/dist/_chunks/{History-Dmr9fmUA.mjs → History-BFNUAiGc.mjs} +29 -40
  30. package/dist/_chunks/History-BFNUAiGc.mjs.map +1 -0
  31. package/dist/_chunks/{History-DeAPlvtv.js → History-BjDfohBr.js} +30 -42
  32. package/dist/_chunks/History-BjDfohBr.js.map +1 -0
  33. package/dist/_chunks/{ListConfigurationPage-DhwvYcNv.mjs → ListConfigurationPage-DDi0KqFm.mjs} +9 -9
  34. package/dist/_chunks/ListConfigurationPage-DDi0KqFm.mjs.map +1 -0
  35. package/dist/_chunks/{ListConfigurationPage-DPCwW5Vr.js → ListConfigurationPage-IQBgWTaa.js} +14 -16
  36. package/dist/_chunks/ListConfigurationPage-IQBgWTaa.js.map +1 -0
  37. package/dist/_chunks/{ListViewPage-BtAwuYLE.mjs → ListViewPage-BPjljUsH.mjs} +21 -41
  38. package/dist/_chunks/ListViewPage-BPjljUsH.mjs.map +1 -0
  39. package/dist/_chunks/{ListViewPage-5ySZ-VUs.js → ListViewPage-CZYGqlvF.js} +28 -48
  40. package/dist/_chunks/ListViewPage-CZYGqlvF.js.map +1 -0
  41. package/dist/_chunks/{NoContentTypePage-DOC_yWOf.js → NoContentTypePage-BOAI6VZ1.js} +3 -3
  42. package/dist/_chunks/NoContentTypePage-BOAI6VZ1.js.map +1 -0
  43. package/dist/_chunks/{NoContentTypePage-DSPxnxxp.mjs → NoContentTypePage-DaWw67K-.mjs} +3 -3
  44. package/dist/_chunks/NoContentTypePage-DaWw67K-.mjs.map +1 -0
  45. package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs → NoPermissionsPage-CZrJH00p.mjs} +2 -2
  46. package/dist/_chunks/{NoPermissionsPage-UWDC-1Tw.mjs.map → NoPermissionsPage-CZrJH00p.mjs.map} +1 -1
  47. package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js → NoPermissionsPage-cYEtLc_e.js} +2 -2
  48. package/dist/_chunks/{NoPermissionsPage-Dwu8rRJu.js.map → NoPermissionsPage-cYEtLc_e.js.map} +1 -1
  49. package/dist/_chunks/{Relations-J8cscLlR.mjs → Relations-DTowyge2.mjs} +66 -56
  50. package/dist/_chunks/Relations-DTowyge2.mjs.map +1 -0
  51. package/dist/_chunks/{Relations-CgWtgnPe.js → Relations-DU6B7irU.js} +70 -61
  52. package/dist/_chunks/Relations-DU6B7irU.js.map +1 -0
  53. package/dist/_chunks/{en-C-V1_90f.js → en-DTULi5-d.js} +3 -1
  54. package/dist/_chunks/{en-C-V1_90f.js.map → en-DTULi5-d.js.map} +1 -1
  55. package/dist/_chunks/{en-MBPul9Su.mjs → en-GCOTL6jR.mjs} +3 -1
  56. package/dist/_chunks/{en-MBPul9Su.mjs.map → en-GCOTL6jR.mjs.map} +1 -1
  57. package/dist/_chunks/{index-CwRRo1V9.mjs → index-BaGHmIir.mjs} +507 -202
  58. package/dist/_chunks/index-BaGHmIir.mjs.map +1 -0
  59. package/dist/_chunks/{index-C6AH2hEl.js → index-CCJeB7Rw.js} +502 -198
  60. package/dist/_chunks/index-CCJeB7Rw.js.map +1 -0
  61. package/dist/_chunks/{layout-jIDzX0Fp.mjs → layout-BinjszSQ.mjs} +10 -10
  62. package/dist/_chunks/layout-BinjszSQ.mjs.map +1 -0
  63. package/dist/_chunks/{layout-B_SXLhqf.js → layout-ni_L9kT1.js} +12 -14
  64. package/dist/_chunks/layout-ni_L9kT1.js.map +1 -0
  65. package/dist/_chunks/{relations-iBMa_OFG.js → relations-CeJAJc5I.js} +2 -2
  66. package/dist/_chunks/{relations-iBMa_OFG.js.map → relations-CeJAJc5I.js.map} +1 -1
  67. package/dist/_chunks/{relations-CuvIgCqI.mjs → relations-c91ji5eR.mjs} +2 -2
  68. package/dist/_chunks/{relations-CuvIgCqI.mjs.map → relations-c91ji5eR.mjs.map} +1 -1
  69. package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +1 -1
  70. package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +1 -1
  71. package/dist/_chunks/usePrev-B9w_-eYc.js +15 -0
  72. package/dist/_chunks/usePrev-B9w_-eYc.js.map +1 -0
  73. package/dist/_chunks/usePrev-DH6iah0A.mjs +16 -0
  74. package/dist/_chunks/usePrev-DH6iah0A.mjs.map +1 -0
  75. package/dist/admin/index.js +2 -1
  76. package/dist/admin/index.js.map +1 -1
  77. package/dist/admin/index.mjs +5 -4
  78. package/dist/admin/src/components/ComponentIcon.d.ts +6 -3
  79. package/dist/admin/src/content-manager.d.ts +3 -3
  80. package/dist/admin/src/exports.d.ts +1 -0
  81. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  82. package/dist/admin/src/hooks/useDocument.d.ts +5 -8
  83. package/dist/admin/src/hooks/useDocumentActions.d.ts +24 -3
  84. package/dist/admin/src/hooks/useDocumentLayout.d.ts +2 -2
  85. package/dist/admin/src/hooks/useDragAndDrop.d.ts +4 -4
  86. package/dist/admin/src/hooks/useKeyboardDragAndDrop.d.ts +1 -1
  87. package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -1
  88. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/BlocksInput.d.ts +3 -3
  89. package/dist/admin/src/pages/EditView/components/FormInputs/Component/Input.d.ts +2 -2
  90. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/ComponentCategory.d.ts +3 -5
  91. package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +1 -1
  92. package/dist/admin/src/pages/EditView/components/FormInputs/Relations.d.ts +10 -18
  93. package/dist/admin/src/pages/EditView/components/FormInputs/UID.d.ts +2 -2
  94. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/EditorLayout.d.ts +3 -49
  95. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/Field.d.ts +2 -2
  96. package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygStyles.d.ts +67 -52
  97. package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +2 -10
  98. package/dist/admin/src/services/api.d.ts +2 -3
  99. package/dist/admin/src/services/components.d.ts +2 -2
  100. package/dist/admin/src/services/contentTypes.d.ts +5 -5
  101. package/dist/admin/src/services/documents.d.ts +29 -17
  102. package/dist/admin/src/services/init.d.ts +2 -2
  103. package/dist/admin/src/services/relations.d.ts +3 -3
  104. package/dist/admin/src/services/uid.d.ts +3 -3
  105. package/dist/admin/src/utils/api.d.ts +4 -18
  106. package/dist/admin/src/utils/validation.d.ts +1 -6
  107. package/dist/server/index.js +273 -196
  108. package/dist/server/index.js.map +1 -1
  109. package/dist/server/index.mjs +281 -204
  110. package/dist/server/index.mjs.map +1 -1
  111. package/dist/server/src/controllers/collection-types.d.ts.map +1 -1
  112. package/dist/server/src/controllers/single-types.d.ts.map +1 -1
  113. package/dist/server/src/controllers/utils/metadata.d.ts +8 -0
  114. package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -0
  115. package/dist/server/src/controllers/validation/dimensions.d.ts +9 -0
  116. package/dist/server/src/controllers/validation/dimensions.d.ts.map +1 -0
  117. package/dist/server/src/controllers/validation/index.d.ts +1 -1
  118. package/dist/server/src/history/services/history.d.ts.map +1 -1
  119. package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
  120. package/dist/server/src/index.d.ts +18 -39
  121. package/dist/server/src/index.d.ts.map +1 -1
  122. package/dist/server/src/services/document-manager.d.ts +13 -12
  123. package/dist/server/src/services/document-manager.d.ts.map +1 -1
  124. package/dist/server/src/services/document-metadata.d.ts +8 -29
  125. package/dist/server/src/services/document-metadata.d.ts.map +1 -1
  126. package/dist/server/src/services/index.d.ts +18 -39
  127. package/dist/server/src/services/index.d.ts.map +1 -1
  128. package/dist/server/src/services/utils/populate.d.ts +8 -1
  129. package/dist/server/src/services/utils/populate.d.ts.map +1 -1
  130. package/dist/shared/contracts/collection-types.d.ts +14 -6
  131. package/dist/shared/contracts/collection-types.d.ts.map +1 -1
  132. package/dist/shared/contracts/relations.d.ts +2 -2
  133. package/dist/shared/contracts/relations.d.ts.map +1 -1
  134. package/package.json +13 -14
  135. package/dist/_chunks/CardDragPreview-DSVYodBX.js.map +0 -1
  136. package/dist/_chunks/CardDragPreview-ikSG4M46.mjs.map +0 -1
  137. package/dist/_chunks/ComponentIcon-BBQsYCVn.js.map +0 -1
  138. package/dist/_chunks/ComponentIcon-BOFnK76n.mjs.map +0 -1
  139. package/dist/_chunks/EditViewPage-DDS6H9HO.mjs.map +0 -1
  140. package/dist/_chunks/EditViewPage-DvNpQkam.js.map +0 -1
  141. package/dist/_chunks/Field-6gvGdPBV.mjs.map +0 -1
  142. package/dist/_chunks/Field-DmVKIAOo.js.map +0 -1
  143. package/dist/_chunks/Form-CPZC9vWa.js.map +0 -1
  144. package/dist/_chunks/Form-DW6K1IH-.mjs.map +0 -1
  145. package/dist/_chunks/History-DeAPlvtv.js.map +0 -1
  146. package/dist/_chunks/History-Dmr9fmUA.mjs.map +0 -1
  147. package/dist/_chunks/ListConfigurationPage-DPCwW5Vr.js.map +0 -1
  148. package/dist/_chunks/ListConfigurationPage-DhwvYcNv.mjs.map +0 -1
  149. package/dist/_chunks/ListViewPage-5ySZ-VUs.js.map +0 -1
  150. package/dist/_chunks/ListViewPage-BtAwuYLE.mjs.map +0 -1
  151. package/dist/_chunks/NoContentTypePage-DOC_yWOf.js.map +0 -1
  152. package/dist/_chunks/NoContentTypePage-DSPxnxxp.mjs.map +0 -1
  153. package/dist/_chunks/Relations-CgWtgnPe.js.map +0 -1
  154. package/dist/_chunks/Relations-J8cscLlR.mjs.map +0 -1
  155. package/dist/_chunks/index-C6AH2hEl.js.map +0 -1
  156. package/dist/_chunks/index-CwRRo1V9.mjs.map +0 -1
  157. package/dist/_chunks/layout-B_SXLhqf.js.map +0 -1
  158. package/dist/_chunks/layout-jIDzX0Fp.mjs.map +0 -1
  159. package/dist/_chunks/urls-CbOsUOoW.mjs +0 -7
  160. package/dist/_chunks/urls-CbOsUOoW.mjs.map +0 -1
  161. package/dist/_chunks/urls-DzZya_gm.js +0 -6
  162. package/dist/_chunks/urls-DzZya_gm.js.map +0 -1
  163. package/dist/admin/src/pages/ListView/components/BulkActions/PublishAction.d.ts +0 -31
  164. package/dist/server/src/controllers/utils/dimensions.d.ts +0 -5
  165. package/dist/server/src/controllers/utils/dimensions.d.ts.map +0 -1
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ const React = require("react");
3
+ const prefixFileUrlWithBackendUrl = (fileURL) => {
4
+ return !!fileURL && fileURL.startsWith("/") ? `${window.strapi.backendURL}${fileURL}` : fileURL;
5
+ };
6
+ const usePrev = (value) => {
7
+ const ref = React.useRef();
8
+ React.useEffect(() => {
9
+ ref.current = value;
10
+ }, [value]);
11
+ return ref.current;
12
+ };
13
+ exports.prefixFileUrlWithBackendUrl = prefixFileUrlWithBackendUrl;
14
+ exports.usePrev = usePrev;
15
+ //# sourceMappingURL=usePrev-B9w_-eYc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrev-B9w_-eYc.js","sources":["../../admin/src/utils/urls.ts","../../admin/src/hooks/usePrev.ts"],"sourcesContent":["const prefixFileUrlWithBackendUrl = (fileURL?: string): string | undefined => {\n return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;\n};\n\nexport { prefixFileUrlWithBackendUrl };\n","import { useEffect, useRef } from 'react';\n\nexport const usePrev = <T>(value: T): T | undefined => {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n"],"names":["useRef","useEffect"],"mappings":";;AAAM,MAAA,8BAA8B,CAAC,YAAyC;AAC5E,SAAO,CAAC,CAAC,WAAW,QAAQ,WAAW,GAAG,IAAI,GAAG,OAAO,OAAO,UAAU,GAAG,OAAO,KAAK;AAC1F;ACAa,MAAA,UAAU,CAAI,UAA4B;AACrD,QAAM,MAAMA,MAAAA;AAEZC,QAAAA,UAAU,MAAM;AACd,QAAI,UAAU;AAAA,EAAA,GACb,CAAC,KAAK,CAAC;AAEV,SAAO,IAAI;AACb;;;"}
@@ -0,0 +1,16 @@
1
+ import { useRef, useEffect } from "react";
2
+ const prefixFileUrlWithBackendUrl = (fileURL) => {
3
+ return !!fileURL && fileURL.startsWith("/") ? `${window.strapi.backendURL}${fileURL}` : fileURL;
4
+ };
5
+ const usePrev = (value) => {
6
+ const ref = useRef();
7
+ useEffect(() => {
8
+ ref.current = value;
9
+ }, [value]);
10
+ return ref.current;
11
+ };
12
+ export {
13
+ prefixFileUrlWithBackendUrl as p,
14
+ usePrev as u
15
+ };
16
+ //# sourceMappingURL=usePrev-DH6iah0A.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrev-DH6iah0A.mjs","sources":["../../admin/src/utils/urls.ts","../../admin/src/hooks/usePrev.ts"],"sourcesContent":["const prefixFileUrlWithBackendUrl = (fileURL?: string): string | undefined => {\n return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;\n};\n\nexport { prefixFileUrlWithBackendUrl };\n","import { useEffect, useRef } from 'react';\n\nexport const usePrev = <T>(value: T): T | undefined => {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n"],"names":[],"mappings":";AAAM,MAAA,8BAA8B,CAAC,YAAyC;AAC5E,SAAO,CAAC,CAAC,WAAW,QAAQ,WAAW,GAAG,IAAI,GAAG,OAAO,OAAO,UAAU,GAAG,OAAO,KAAK;AAC1F;ACAa,MAAA,UAAU,CAAI,UAA4B;AACrD,QAAM,MAAM;AAEZ,YAAU,MAAM;AACd,QAAI,UAAU;AAAA,EAAA,GACb,CAAC,KAAK,CAAC;AAEV,SAAO,IAAI;AACb;"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("../_chunks/index-C6AH2hEl.js");
3
+ const index = require("../_chunks/index-CCJeB7Rw.js");
4
4
  require("@strapi/icons");
5
5
  exports.DocumentRBAC = index.DocumentRBAC;
6
+ exports.buildValidParams = index.buildValidParams;
6
7
  exports.default = index.index;
7
8
  exports.unstable_useDocument = index.useDocument;
8
9
  exports.unstable_useDocumentActions = index.useDocumentActions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,10 +1,11 @@
1
- import { k, J, G, K, f, e } from "../_chunks/index-CwRRo1V9.mjs";
1
+ import { k, c, K, J, L, f, e } from "../_chunks/index-BaGHmIir.mjs";
2
2
  import "@strapi/icons";
3
3
  export {
4
4
  k as DocumentRBAC,
5
- J as default,
6
- G as unstable_useDocument,
7
- K as unstable_useDocumentActions,
5
+ c as buildValidParams,
6
+ K as default,
7
+ J as unstable_useDocument,
8
+ L as unstable_useDocumentActions,
8
9
  f as unstable_useDocumentLayout,
9
10
  e as useDocumentRBAC
10
11
  };
@@ -1,8 +1,11 @@
1
+ import * as React from 'react';
2
+ import { FlexProps } from '@strapi/design-system';
1
3
  import type { Struct } from '@strapi/types';
2
- interface ComponentIconProps {
4
+ interface ComponentIconProps extends FlexProps {
3
5
  showBackground?: boolean;
4
6
  icon?: Struct.ContentTypeSchemaInfo['icon'];
5
7
  }
6
- declare const ComponentIcon: ({ showBackground, icon }: ComponentIconProps) => import("react/jsx-runtime").JSX.Element;
7
- export { ComponentIcon };
8
+ declare const ComponentIcon: ({ showBackground, icon, ...props }: ComponentIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const COMPONENT_ICONS: Record<string, React.ComponentType<any>>;
10
+ export { ComponentIcon, COMPONENT_ICONS };
8
11
  export type { ComponentIconProps };
@@ -39,9 +39,9 @@ interface ListViewContext {
39
39
  */
40
40
  collectionType: string;
41
41
  /**
42
- * TODO: add comment
42
+ * The current selected documents in the table
43
43
  */
44
- documentIds: string[];
44
+ documents: Document[];
45
45
  /**
46
46
  * The current content-type's model.
47
47
  */
@@ -68,7 +68,7 @@ interface HeaderActionComponent extends DescriptionComponent<HeaderActionProps,
68
68
  interface BulkActionComponentProps extends ListViewContext {
69
69
  }
70
70
  interface BulkActionComponent extends DescriptionComponent<BulkActionComponentProps, BulkActionDescription> {
71
- actionType?: 'delete' | 'publish' | 'unpublish';
71
+ type?: 'delete' | 'publish' | 'unpublish';
72
72
  }
73
73
  declare class ContentManagerPlugin {
74
74
  /**
@@ -3,6 +3,7 @@
3
3
  * When we move the CM plugin back to its package, we won't need this
4
4
  * but should still export the same things.
5
5
  */
6
+ export { buildValidParams } from './utils/api';
6
7
  export { useDocument as unstable_useDocument } from './hooks/useDocument';
7
8
  export { useDocumentActions as unstable_useDocumentActions } from './hooks/useDocumentActions';
8
9
  export { useDocumentLayout as unstable_useDocumentLayout } from './hooks/useDocumentLayout';
@@ -8,5 +8,5 @@ declare const useGetHistoryVersionsQuery: import("@reduxjs/toolkit/dist/query/re
8
8
  contentType: import("@strapi/types/dist/uid").ContentType;
9
9
  documentId?: Data.ID | undefined;
10
10
  locale?: string | undefined;
11
- } & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../../utils/api").QueryArguments, unknown, import("../../utils/api").BaseQueryError>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", GetHistoryVersions.Response, "contentManagerApi">>, useRestoreVersionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<RestoreVersion, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../../utils/api").QueryArguments, unknown, import("../../utils/api").BaseQueryError>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", RestoreHistoryVersion.Response, "contentManagerApi">>;
11
+ } & Partial<Pick<import("../../../../shared/contracts/history-versions").Pagination, "page" | "pageSize">>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", GetHistoryVersions.Response, "adminApi">>, useRestoreVersionMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<RestoreVersion, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "ComponentConfiguration" | "ContentTypesConfiguration" | "ContentTypeSettings" | "Document" | "InitialData" | "HistoryVersion" | "Relations", RestoreHistoryVersion.Response, "adminApi">>;
12
12
  export { useGetHistoryVersionsQuery, useRestoreVersionMutation };
@@ -3,11 +3,12 @@
3
3
  * this sounds expensive but actually, it's really not. Because we have redux-toolkit-query
4
4
  * being a cache layer so if nothing invalidates the cache, we don't fetch again.
5
5
  */
6
+ import { FormErrors } from '@strapi/admin/strapi-admin';
7
+ import { Modules } from '@strapi/types';
6
8
  import { useGetDocumentQuery } from '../services/documents';
7
9
  import { ComponentsDictionary } from './useContentTypeSchema';
8
10
  import type { FindOne } from '../../../shared/contracts/collection-types';
9
11
  import type { ContentType } from '../../../shared/contracts/content-types';
10
- import type { MessageDescriptor, PrimitiveType } from 'react-intl';
11
12
  interface UseDocumentArgs {
12
13
  collectionType: string;
13
14
  model: string;
@@ -30,9 +31,7 @@ type UseDocument = (args: UseDocumentArgs, opts?: UseDocumentOpts) => {
30
31
  * This is the schema of the content type, it is not the same as the layout.
31
32
  */
32
33
  schema?: Schema;
33
- validate: (document: Document) => null | Record<string, MessageDescriptor & {
34
- values?: Record<string, PrimitiveType>;
35
- }>;
34
+ validate: (document: Document) => null | FormErrors;
36
35
  };
37
36
  /**
38
37
  * @alpha
@@ -72,16 +71,14 @@ declare const useDoc: () => {
72
71
  * by their uid.
73
72
  */
74
73
  components: ComponentsDictionary;
75
- document?: import("@strapi/types/dist/modules/documents").AnyDocument | undefined;
74
+ document?: Modules.Documents.AnyDocument | undefined;
76
75
  meta?: import("../../../shared/contracts/collection-types").DocumentMetadata | undefined;
77
76
  isLoading: boolean;
78
77
  /**
79
78
  * This is the schema of the content type, it is not the same as the layout.
80
79
  */
81
80
  schema?: ContentType | undefined;
82
- validate: (document: Document) => null | Record<string, MessageDescriptor & {
83
- values?: Record<string, PrimitiveType>;
84
- }>;
81
+ validate: (document: Document) => null | FormErrors;
85
82
  collectionType: string;
86
83
  model: string;
87
84
  id: string | undefined;
@@ -2,12 +2,18 @@ import { SerializedError } from '@reduxjs/toolkit';
2
2
  import { type TrackingEvent } from '@strapi/admin/strapi-admin';
3
3
  import { BaseQueryError } from '../utils/api';
4
4
  import type { Document } from './useDocument';
5
- import type { AutoClone, Clone, Create, Delete, Discard, FindOne, Publish, Update, Unpublish } from '../../../shared/contracts/collection-types';
5
+ import type { AutoClone, Clone, Create, Delete, BulkDelete, Discard, FindOne, Publish, Update, Unpublish, BulkPublish, BulkUnpublish } from '../../../shared/contracts/collection-types';
6
6
  type OperationResponse<TResponse extends {
7
7
  data: any;
8
- meta: any;
8
+ meta?: any;
9
9
  error?: any;
10
- }> = Pick<TResponse, 'data' | 'meta'> | {
10
+ }> = Pick<TResponse, 'data'> | Pick<TResponse, 'data' | 'meta'> | {
11
+ error: BaseQueryError | SerializedError;
12
+ };
13
+ type BulkOperationResponse<TResponse extends {
14
+ data: any;
15
+ error?: any;
16
+ }> = Pick<TResponse, 'data'> | {
11
17
  error: BaseQueryError | SerializedError;
12
18
  };
13
19
  type UseDocumentActions = () => {
@@ -41,6 +47,11 @@ type UseDocumentActions = () => {
41
47
  }, trackerProperty?: Extract<TrackingEvent, {
42
48
  name: 'willDeleteEntry' | 'didDeleteEntry' | 'didNotDeleteEntry';
43
49
  }>['properties']) => Promise<OperationResponse<Delete.Response>>;
50
+ deleteMany: (args: {
51
+ model: string;
52
+ documentIds: string[];
53
+ params?: object;
54
+ }) => Promise<BulkOperationResponse<BulkDelete.Response>>;
44
55
  discard: (args: {
45
56
  collectionType: string;
46
57
  model: string;
@@ -59,6 +70,11 @@ type UseDocumentActions = () => {
59
70
  documentId?: string;
60
71
  params?: object;
61
72
  }, document: Partial<Document>) => Promise<OperationResponse<Publish.Response>>;
73
+ publishMany: (args: {
74
+ model: string;
75
+ documentIds: string[];
76
+ params?: object;
77
+ }) => Promise<BulkOperationResponse<BulkPublish.Response>>;
62
78
  update: (args: {
63
79
  collectionType: string;
64
80
  model: string;
@@ -73,6 +89,11 @@ type UseDocumentActions = () => {
73
89
  documentId?: string;
74
90
  params?: object;
75
91
  }, discardDraft?: boolean) => Promise<OperationResponse<Unpublish.Response>>;
92
+ unpublishMany: (args: {
93
+ model: string;
94
+ documentIds: string[];
95
+ params?: object;
96
+ }) => Promise<BulkOperationResponse<BulkUnpublish.Response>>;
76
97
  };
77
98
  /**
78
99
  * @alpha
@@ -93,7 +93,7 @@ declare const DEFAULT_SETTINGS: {
93
93
  * const { model } = useParams<{ model: string }>();
94
94
  * const { edit: { schema: layout } } = useDocumentLayout(model);
95
95
  *
96
- * return layout.map(panel => panel.map(row => row.map(field => <Field {...field} />)))
96
+ * return layout.map(panel => panel.map(row => row.map(field => <Field.Root {...field} />)))
97
97
  * ```
98
98
  *
99
99
  */
@@ -103,7 +103,7 @@ declare const useDocumentLayout: UseDocumentLayout;
103
103
  * content-manager because it won't work as intended.
104
104
  */
105
105
  declare const useDocLayout: () => {
106
- error?: BaseQueryError | SerializedError | undefined;
106
+ error?: SerializedError | BaseQueryError | undefined;
107
107
  isLoading: boolean;
108
108
  /**
109
109
  * This is the layout for the edit view,
@@ -23,15 +23,15 @@ interface UseDragAndDropOptions<TIndex extends number | Array<number> = number,
23
23
  dropSensitivity?: (typeof DROP_SENSITIVITY)[keyof typeof DROP_SENSITIVITY];
24
24
  }
25
25
  type Identifier = ReturnType<HandlerManager['getHandlerId']>;
26
- type UseDragAndDropReturn<Element extends HTMLElement = HTMLElement> = [
26
+ type UseDragAndDropReturn<E extends Element = HTMLElement> = [
27
27
  props: {
28
28
  handlerId: Identifier;
29
29
  isDragging: boolean;
30
- handleKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
30
+ handleKeyDown: <E extends Element>(event: React.KeyboardEvent<E>) => void;
31
31
  isOverDropTarget: boolean;
32
32
  direction: (typeof DIRECTIONS)[keyof typeof DIRECTIONS] | null;
33
33
  },
34
- objectRef: React.RefObject<Element>,
34
+ objectRef: React.RefObject<E>,
35
35
  dropRef: ConnectDropTarget,
36
36
  dragRef: ConnectDragSource,
37
37
  dragPreviewRef: ConnectDragPreview
@@ -47,5 +47,5 @@ declare const useDragAndDrop: <TIndex extends number | number[], TItem extends {
47
47
  } = {
48
48
  [key: string]: unknown;
49
49
  index: TIndex;
50
- }, Element extends HTMLElement = HTMLElement>(active: boolean, { type, index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity, }: UseDragAndDropOptions<TIndex, TItem>) => UseDragAndDropReturn<Element>;
50
+ }, E extends Element = HTMLElement>(active: boolean, { type, index, item, onStart, onEnd, onGrabItem, onDropItem, onCancel, onMoveItem, dropSensitivity, }: UseDragAndDropOptions<TIndex, TItem>) => UseDragAndDropReturn<E>;
51
51
  export { useDragAndDrop, UseDragAndDropReturn, UseDragAndDropOptions, DIRECTIONS, DROP_SENSITIVITY, };
@@ -11,4 +11,4 @@ export type UseKeyboardDragAndDropCallbacks<TIndex extends number | Array<number
11
11
  *
12
12
  * @internal - You should use `useDragAndDrop` instead.
13
13
  */
14
- export declare const useKeyboardDragAndDrop: <TIndex extends number | number[] = number>(active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>) => React.KeyboardEventHandler<HTMLButtonElement>;
14
+ export declare const useKeyboardDragAndDrop: <TIndex extends number | number[] = number>(active: boolean, index: TIndex, { onCancel, onDropItem, onGrabItem, onMoveItem }: UseKeyboardDragAndDropCallbacks<TIndex>) => <E extends Element>(e: React.KeyboardEvent<E>) => void;
@@ -44,7 +44,9 @@ interface NotificationOptions {
44
44
  interface ModalOptions {
45
45
  type: 'modal';
46
46
  title: string;
47
- content: React.ReactNode;
47
+ content: React.ComponentType<{
48
+ onClose: () => void;
49
+ }> | React.ReactNode;
48
50
  footer: React.ComponentType<{
49
51
  onClose: () => void;
50
52
  }> | React.ReactNode;
@@ -5,7 +5,7 @@ interface BlocksInputProps extends Omit<InputProps, 'type'> {
5
5
  labelAction?: React.ReactNode;
6
6
  type: Schema.Attribute.Blocks['type'];
7
7
  }
8
- declare const BlocksInput: React.ForwardRefExoticComponent<BlocksInputProps & React.RefAttributes<{
8
+ declare const MemoizedBlocksInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<BlocksInputProps & React.RefAttributes<{
9
9
  focus: () => void;
10
- }>>;
11
- export { BlocksInput };
10
+ }>>>;
11
+ export { MemoizedBlocksInput as BlocksInput };
@@ -13,6 +13,6 @@ interface ComponentInputProps extends Omit<Extract<EditFieldLayout, {
13
13
  */
14
14
  layout: EditFieldLayout[][];
15
15
  }
16
- declare const ComponentInput: ({ label, required, name, attribute, disabled, labelAction, ...props }: ComponentInputProps) => import("react/jsx-runtime").JSX.Element;
17
- export { ComponentInput };
16
+ declare const MemoizedComponentInput: React.MemoExoticComponent<({ label, required, name, attribute, disabled, labelAction, ...props }: ComponentInputProps) => import("react/jsx-runtime").JSX.Element>;
17
+ export { MemoizedComponentInput as ComponentInput };
18
18
  export type { ComponentInputProps };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AccordionVariant } from '@strapi/design-system';
2
+ import { Accordion } from '@strapi/design-system';
3
3
  interface ComponentCategoryProps {
4
4
  category: string;
5
5
  components?: Array<{
@@ -7,11 +7,9 @@ interface ComponentCategoryProps {
7
7
  displayName: string;
8
8
  icon?: string;
9
9
  }>;
10
- isOpen?: boolean;
11
10
  onAddComponent: (componentUid: string) => React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLDivElement>;
12
- onToggle: (category: string) => void;
13
- variant?: AccordionVariant;
11
+ variant?: Accordion.Variant;
14
12
  }
15
- declare const ComponentCategory: ({ category, components, variant, isOpen, onAddComponent, onToggle, }: ComponentCategoryProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const ComponentCategory: ({ category, components, variant, onAddComponent, }: ComponentCategoryProps) => import("react/jsx-runtime").JSX.Element;
16
14
  export { ComponentCategory };
17
15
  export type { ComponentCategoryProps };
@@ -9,6 +9,6 @@ interface DynamicZoneProps extends Omit<Extract<EditFieldLayout, {
9
9
  type: 'dynamiczone';
10
10
  }>, 'size' | 'hint'>, Pick<InputProps, 'hint'>, Pick<DynamicZoneLabelProps, 'labelAction'> {
11
11
  }
12
- declare const DynamicZone: ({ attribute, disabled, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const DynamicZone: ({ attribute, disabled: disabledProp, hint, label, labelAction, name, required, }: DynamicZoneProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export { DynamicZone, useDynamicZone };
14
14
  export type { DynamicZoneProps };
@@ -1,26 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { type InputProps } from '@strapi/admin/strapi-admin';
3
+ import { FlexComponent } from '@strapi/design-system';
3
4
  import { type EditFieldLayout } from '../../../../hooks/useDocumentLayout';
4
5
  interface RelationsFieldProps extends Omit<Extract<EditFieldLayout, {
5
6
  type: 'relation';
6
7
  }>, 'size' | 'hint'>, Pick<InputProps, 'hint'> {
7
8
  }
8
- /**
9
- * TODO: we get a rather ugly flash when we remove a single relation from the list leaving
10
- * no other relations when we press save. The initial relation re-renders, probably because
11
- * of the lag in the Form cleaning it's "disconnect" array, whilst our data has not been invalidated.
12
- *
13
- * Could we invalidate relation data on the document actions? Should we?
14
- */
15
- /**
16
- * @internal
17
- * @description The relations field holds a lot of domain logic for handling relations which is rather complicated
18
- * At present we do not expose this to plugin developers, however, they are able to overwrite it themselves should
19
- * they wish to do so.
20
- */
21
- declare const RelationsField: React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>;
22
- declare const FlexWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("@strapi/design-system").FlexProps<"div">, never>;
23
- declare const DisconnectButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
24
- declare const LinkEllipsis: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@strapi/design-system").LinkProps & React.RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
25
- export { RelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
9
+ declare const FlexWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").FlexProps<"div">, "ref"> & React.RefAttributes<unknown>, "ref"> & {
10
+ ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
11
+ }, never>> & Omit<FlexComponent, keyof React.Component<any, {}, any>>;
12
+ declare const DisconnectButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
13
+ declare const LinkEllipsis: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").LinkProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>, "ref"> & {
14
+ ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
15
+ }, never>> & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "a">(props: React.PropsWithoutRef<import("@strapi/design-system").LinkProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof React.Component<any, {}, any>>;
16
+ declare const MemoizedRelationsField: React.MemoExoticComponent<React.ForwardRefExoticComponent<RelationsFieldProps & React.RefAttributes<HTMLDivElement>>>;
17
+ export { MemoizedRelationsField as RelationsInput, FlexWrapper, DisconnectButton, LinkEllipsis };
26
18
  export type { RelationsFieldProps };
@@ -4,6 +4,6 @@ import type { Schema } from '@strapi/types';
4
4
  interface UIDInputProps extends Omit<InputProps, 'type'> {
5
5
  type: Schema.Attribute.TypeOf<Schema.Attribute.UID>;
6
6
  }
7
- declare const UIDInput: React.ForwardRefExoticComponent<UIDInputProps & React.RefAttributes<any>>;
8
- export { UIDInput };
7
+ declare const MemoizedUIDInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<UIDInputProps & React.RefAttributes<any>>>;
8
+ export { MemoizedUIDInput as UIDInput };
9
9
  export type { UIDInputProps };
@@ -7,54 +7,8 @@ interface EditorLayoutProps {
7
7
  onCollapse: () => void;
8
8
  }
9
9
  declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
10
- declare const ExpandButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Pick<import("styled-components").CSSProperties, "position" | "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "zIndex" | "transition" | "animation" | "textAlign" | "textTransform"> & {
11
- _hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
12
- background?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"colors", "background">;
13
- basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
14
- borderColor?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
15
- color?: keyof import("@strapi/design-system/dist/themes/colors").Colors | undefined;
16
- flex?: import("csstype").Property.Flex<string | number> | undefined;
17
- fontSize?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
18
- grow?: import("csstype").Property.FlexGrow | undefined;
19
- hasRadius?: boolean | undefined;
20
- hiddenS?: boolean | undefined;
21
- hiddenXS?: boolean | undefined;
22
- padding?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"padding">;
23
- paddingBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
24
- paddingLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
25
- paddingRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
26
- paddingTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
27
- margin?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"margin">;
28
- marginLeft?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
29
- marginBottom?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
30
- marginRight?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
31
- marginTop?: import("@strapi/design-system/dist/helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
32
- shadow?: keyof import("@strapi/design-system/dist/themes/colors").Shadows | undefined;
33
- shrink?: import("csstype").Property.FlexShrink | undefined;
34
- lineHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
35
- width?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "width">;
36
- minWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
37
- maxWidth?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
38
- height?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "height">;
39
- minHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
40
- maxHeight?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
41
- top?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "top">;
42
- left?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "left">;
43
- bottom?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "bottom">;
44
- right?: import("@strapi/design-system/dist/types").DefaultThemeOrCSSProp<"spaces", "right">;
45
- borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
46
- borderStyle?: import("csstype").Property.BorderStyle | undefined;
47
- borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
48
- children?: React.ReactNode;
49
- as?: string | React.ComponentType<any> | undefined;
50
- forwardedAs?: string | React.ComponentType<any> | undefined;
51
- } & {
52
- alignItems?: import("csstype").Property.AlignItems | undefined;
53
- direction?: import("csstype").Property.FlexDirection | undefined;
54
- gap?: any;
55
- inline?: boolean | undefined;
56
- justifyContent?: import("csstype").Property.JustifyContent | undefined;
57
- wrap?: import("csstype").Property.FlexWrap | undefined;
58
- } & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
10
+ declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<Omit<import("@strapi/design-system").BaseButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>, "ref"> & {
11
+ ref?: ((instance: unknown) => void) | React.RefObject<unknown> | null | undefined;
12
+ }, never>> & Omit<(<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("@strapi/design-system").BaseButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode), keyof React.Component<any, {}, any>>;
59
13
  export { EditorLayout, ExpandButton };
60
14
  export type { EditorLayoutProps };
@@ -6,6 +6,6 @@ interface WysiwygProps extends Omit<InputProps, 'type'> {
6
6
  labelAction?: React.ReactNode;
7
7
  type: Schema.Attribute.RichText['type'];
8
8
  }
9
- declare const Wysiwyg: React.ForwardRefExoticComponent<WysiwygProps & React.RefAttributes<EditorApi>>;
10
- export { Wysiwyg };
9
+ declare const MemoizedWysiwyg: React.MemoExoticComponent<React.ForwardRefExoticComponent<WysiwygProps & React.RefAttributes<EditorApi>>>;
10
+ export { MemoizedWysiwyg as Wysiwyg };
11
11
  export type { WysiwygProps };