@wix/auto-patterns 1.37.0 → 1.38.0

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 (167) hide show
  1. package/dist/cjs/components/AutoPatternsApp/AutoPatternsApp.js +1 -1
  2. package/dist/cjs/components/AutoPatternsCollectionComponent/AutoPatternsCollectionComponent.js +1 -1
  3. package/dist/cjs/components/AutoPatternsCollectionPage/AutoPatternsCollectionPage.js +1 -1
  4. package/dist/cjs/components/AutoPatternsCollectionPageContent/AutoPatternsCollectionPageContent.js +1 -1
  5. package/dist/cjs/components/AutoPatternsCollectionPageContent/SkeletonCollection.js +1 -1
  6. package/dist/cjs/components/AutoPatternsCollectionPageFooter/AutoPatternsCollectionPageFooter.js +1 -1
  7. package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +1 -1
  8. package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js +13 -9
  9. package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -1
  10. package/dist/cjs/components/AutoPatternsEntityPage/Fields/Checkbox.js +1 -1
  11. package/dist/cjs/components/AutoPatternsEntityPage/Fields/DateInput.js +1 -1
  12. package/dist/cjs/components/AutoPatternsEntityPage/Fields/DateTime.js +1 -1
  13. package/dist/cjs/components/AutoPatternsEntityPage/Fields/FormFieldInput.js +1 -1
  14. package/dist/cjs/components/AutoPatternsEntityPage/Fields/ImageInput.js +1 -1
  15. package/dist/cjs/components/AutoPatternsEntityPage/Fields/LongText.js +1 -1
  16. package/dist/cjs/components/AutoPatternsEntityPage/Fields/Number.js +1 -1
  17. package/dist/cjs/components/AutoPatternsEntityPage/Fields/ShortText.js +1 -1
  18. package/dist/cjs/components/AutoPatternsEntityPage/Fields/Url.js +1 -1
  19. package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js +1 -1
  20. package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js +1 -1
  21. package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js +1 -1
  22. package/dist/cjs/components/AutoPatternsEntityPage/SkeletonEntity.js +1 -1
  23. package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js +1 -1
  24. package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js +1 -1
  25. package/dist/cjs/components/AutoPatternsEntityPage/ViewModeEntityPage.js +1 -1
  26. package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js +9 -6
  27. package/dist/cjs/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
  28. package/dist/cjs/components/AutoPatternsRoute/AutoPatternsPage.js +1 -1
  29. package/dist/cjs/components/AutoPatternsRoute/AutoPatternsRoutes.js +1 -1
  30. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js +11 -6
  31. package/dist/cjs/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  32. package/dist/cjs/components/AutoPatternsTableGridSwitch/AutoPatternsTableGridSwitch.js +1 -1
  33. package/dist/cjs/components/DynamicIcon.js +1 -1
  34. package/dist/cjs/components/ModalRenderer.js +1 -1
  35. package/dist/cjs/components/filters/DynamicCollectionFilter.js +1 -1
  36. package/dist/cjs/components/filters/StaticCollectionFilter.js +1 -1
  37. package/dist/cjs/components/modals/actions/BulkDeleteModal.js +28 -10
  38. package/dist/cjs/components/modals/actions/BulkDeleteModal.js.map +1 -1
  39. package/dist/cjs/components/modals/actions/CreateModal.js +1 -1
  40. package/dist/cjs/components/modals/actions/EditModal.js +1 -1
  41. package/dist/cjs/counter.js +1 -1
  42. package/dist/cjs/dataSourceAdapters/cms/filterUtils.js +3 -2
  43. package/dist/cjs/dataSourceAdapters/cms/filterUtils.js.map +1 -1
  44. package/dist/cjs/dataSourceAdapters/cms/sortUtils.js +2 -1
  45. package/dist/cjs/dataSourceAdapters/cms/sortUtils.js.map +1 -1
  46. package/dist/cjs/hooks/useBaseTableFeatures.js +6 -3
  47. package/dist/cjs/hooks/useBaseTableFeatures.js.map +1 -1
  48. package/dist/cjs/hooks/useBulkActionToolbar.js +1 -1
  49. package/dist/cjs/hooks/useCollectionPageActions.js +1 -1
  50. package/dist/cjs/hooks/useColumns.js +1 -1
  51. package/dist/cjs/hooks/useCommonCollectionFeatures.js +1 -1
  52. package/dist/cjs/hooks/useDataExtensionProps.js +30 -0
  53. package/dist/cjs/hooks/useDataExtensionProps.js.map +1 -0
  54. package/dist/cjs/hooks/useDragAndDropBaseProps.js +30 -0
  55. package/dist/cjs/hooks/useDragAndDropBaseProps.js.map +1 -0
  56. package/dist/cjs/hooks/useEmptyStates.js +1 -1
  57. package/dist/cjs/hooks/useEntityPageActions.js +1 -1
  58. package/dist/cjs/hooks/useFilters.js +1 -1
  59. package/dist/cjs/hooks/useGridDragAndDrop.js +17 -0
  60. package/dist/cjs/hooks/useGridDragAndDrop.js.map +1 -0
  61. package/dist/cjs/hooks/useGridFeatures.js +4 -1
  62. package/dist/cjs/hooks/useGridFeatures.js.map +1 -1
  63. package/dist/cjs/hooks/useTableDragAndDrop.js +17 -0
  64. package/dist/cjs/hooks/useTableDragAndDrop.js.map +1 -0
  65. package/dist/cjs/hooks/useTableFeatures.js +7 -2
  66. package/dist/cjs/hooks/useTableFeatures.js.map +1 -1
  67. package/dist/cjs/hooks/useTableGridSwitchDragAndDrop.js +17 -0
  68. package/dist/cjs/hooks/useTableGridSwitchDragAndDrop.js.map +1 -0
  69. package/dist/cjs/hooks/useTableGridSwitchFeatures.js +7 -2
  70. package/dist/cjs/hooks/useTableGridSwitchFeatures.js.map +1 -1
  71. package/dist/cjs/providers/AppConfigContext.js +1 -1
  72. package/dist/cjs/providers/AppContext.js +1 -1
  73. package/dist/cjs/providers/AppContextData.js +1 -1
  74. package/dist/cjs/providers/AutoPatternsOverridesContext.js +2 -2
  75. package/dist/cjs/providers/AutoPatternsOverridesContext.js.map +1 -1
  76. package/dist/cjs/providers/ErrorContext.js +1 -1
  77. package/dist/cjs/providers/ItemsContext.js +1 -1
  78. package/dist/cjs/providers/ModalContext.js +1 -1
  79. package/dist/cjs/providers/OptimisticActionsContext.js +1 -1
  80. package/dist/cjs/providers/RootAppProvider.js +1 -1
  81. package/dist/cjs/providers/SchemaContext.js +1 -1
  82. package/dist/cjs/providers/SchemaRegistryContext.js +1 -1
  83. package/dist/cjs/types/CollectionPageConfig.js.map +1 -1
  84. package/dist/cjs/types/DeepPartial.js +4 -0
  85. package/dist/cjs/types/DeepPartial.js.map +1 -0
  86. package/dist/cjs/types/actions/base.js.map +1 -1
  87. package/dist/cjs/types/types.js.map +1 -1
  88. package/dist/cjs/utils/actions/bulkDeleteAction.js +1 -1
  89. package/dist/cjs/utils/actions/createAction.js +1 -1
  90. package/dist/cjs/utils/actions/deleteAction.js +1 -1
  91. package/dist/cjs/utils/actions/updateAction.js +1 -1
  92. package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js +4 -0
  93. package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -1
  94. package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js +7 -4
  95. package/dist/esm/components/AutoPatternsGrid/AutoPatternsGrid.js.map +1 -1
  96. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js +9 -4
  97. package/dist/esm/components/AutoPatternsTable/AutoPatternsTable.js.map +1 -1
  98. package/dist/esm/components/modals/actions/BulkDeleteModal.js +20 -3
  99. package/dist/esm/components/modals/actions/BulkDeleteModal.js.map +1 -1
  100. package/dist/esm/dataSourceAdapters/cms/filterUtils.js +3 -2
  101. package/dist/esm/dataSourceAdapters/cms/filterUtils.js.map +1 -1
  102. package/dist/esm/dataSourceAdapters/cms/sortUtils.js +2 -1
  103. package/dist/esm/dataSourceAdapters/cms/sortUtils.js.map +1 -1
  104. package/dist/esm/hooks/useBaseTableFeatures.js +4 -1
  105. package/dist/esm/hooks/useBaseTableFeatures.js.map +1 -1
  106. package/dist/esm/hooks/useDataExtensionProps.js +18 -0
  107. package/dist/esm/hooks/useDataExtensionProps.js.map +1 -0
  108. package/dist/esm/hooks/useDragAndDropBaseProps.js +27 -0
  109. package/dist/esm/hooks/useDragAndDropBaseProps.js.map +1 -0
  110. package/dist/esm/hooks/useGridDragAndDrop.js +13 -0
  111. package/dist/esm/hooks/useGridDragAndDrop.js.map +1 -0
  112. package/dist/esm/hooks/useGridFeatures.js +4 -1
  113. package/dist/esm/hooks/useGridFeatures.js.map +1 -1
  114. package/dist/esm/hooks/useTableDragAndDrop.js +13 -0
  115. package/dist/esm/hooks/useTableDragAndDrop.js.map +1 -0
  116. package/dist/esm/hooks/useTableFeatures.js +7 -2
  117. package/dist/esm/hooks/useTableFeatures.js.map +1 -1
  118. package/dist/esm/hooks/useTableGridSwitchDragAndDrop.js +13 -0
  119. package/dist/esm/hooks/useTableGridSwitchDragAndDrop.js.map +1 -0
  120. package/dist/esm/hooks/useTableGridSwitchFeatures.js +7 -2
  121. package/dist/esm/hooks/useTableGridSwitchFeatures.js.map +1 -1
  122. package/dist/esm/providers/AutoPatternsOverridesContext.js.map +1 -1
  123. package/dist/esm/types/CollectionPageConfig.js.map +1 -1
  124. package/dist/esm/types/DeepPartial.js +2 -0
  125. package/dist/esm/types/DeepPartial.js.map +1 -0
  126. package/dist/esm/types/actions/base.js.map +1 -1
  127. package/dist/esm/types/types.js.map +1 -1
  128. package/dist/types/components/AutoPatternsEntityPage/EditModeEntityPage.d.ts.map +1 -1
  129. package/dist/types/components/AutoPatternsGrid/AutoPatternsGrid.d.ts.map +1 -1
  130. package/dist/types/components/AutoPatternsTable/AutoPatternsTable.d.ts.map +1 -1
  131. package/dist/types/components/modals/actions/BulkDeleteModal.d.ts.map +1 -1
  132. package/dist/types/hooks/useBaseTableFeatures.d.ts +10 -0
  133. package/dist/types/hooks/useBaseTableFeatures.d.ts.map +1 -1
  134. package/dist/types/hooks/useDataExtensionProps.d.ts +8 -0
  135. package/dist/types/hooks/useDataExtensionProps.d.ts.map +1 -0
  136. package/dist/types/hooks/useDragAndDropBaseProps.d.ts +4 -0
  137. package/dist/types/hooks/useDragAndDropBaseProps.d.ts.map +1 -0
  138. package/dist/types/hooks/useGridDragAndDrop.d.ts +24 -0
  139. package/dist/types/hooks/useGridDragAndDrop.d.ts.map +1 -0
  140. package/dist/types/hooks/useGridFeatures.d.ts +22 -0
  141. package/dist/types/hooks/useGridFeatures.d.ts.map +1 -1
  142. package/dist/types/hooks/useTableDragAndDrop.d.ts +3 -0
  143. package/dist/types/hooks/useTableDragAndDrop.d.ts.map +1 -0
  144. package/dist/types/hooks/useTableFeatures.d.ts +2 -0
  145. package/dist/types/hooks/useTableFeatures.d.ts.map +1 -1
  146. package/dist/types/hooks/useTableGridSwitchDragAndDrop.d.ts +27 -0
  147. package/dist/types/hooks/useTableGridSwitchDragAndDrop.d.ts.map +1 -0
  148. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts +24 -0
  149. package/dist/types/hooks/useTableGridSwitchFeatures.d.ts.map +1 -1
  150. package/dist/types/providers/AutoPatternsOverridesContext.d.ts +6 -0
  151. package/dist/types/providers/AutoPatternsOverridesContext.d.ts.map +1 -1
  152. package/dist/types/types/CollectionPageConfig.d.ts +15 -0
  153. package/dist/types/types/CollectionPageConfig.d.ts.map +1 -1
  154. package/dist/types/types/DeepPartial.d.ts +4 -0
  155. package/dist/types/types/DeepPartial.d.ts.map +1 -0
  156. package/dist/types/types/actions/base.d.ts +5 -0
  157. package/dist/types/types/actions/base.d.ts.map +1 -1
  158. package/dist/types/types/types.d.ts +24 -1
  159. package/dist/types/types/types.d.ts.map +1 -1
  160. package/docs/GETTING_STARTED.md +6 -2
  161. package/mcp-docs/app_config_structure.md +14 -1
  162. package/mcp-docs/auto-patterns-guide.md +282 -80
  163. package/mcp-docs/bulk_actions.md +60 -0
  164. package/mcp-docs/custom_overrides.md +134 -54
  165. package/mcp-docs/schema_config.md +74 -25
  166. package/mcp-docs/wix_fqdn_custom_data_source.md +66 -11
  167. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"names":["useFetchData","useSelector","useTableGridSwitchCollection","useCommonCollectionFeatures","useFilters","useBaseGridFeatures","useBaseTableFeatures","useBaseCollectionParams","useAppContextSync","useCallback","useTableGridSwitchFeatures","config","filterComponent","filtersObject","filterFieldMapping","filters","preset","imagePlacement","visibleFieldIds","gridVisibleFieldIds","renderItem","customColumns","tableVisibleFieldIds","columns","tableColumns","onRowClick","stickyColumns","stickySelectionColumn","showTitleBar","fetchData","searchableFieldIds","Array","from","Set","params","collection","state","items","result","refreshCollection","clearResultAndMoveToStart","force","commonFeatures","collectionState","horizontalScroll"],"sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"sourcesContent":["import { TableGridSwitchConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useSelector, useTableGridSwitchCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\nimport { useBaseCollectionParams } from './useBaseCollectionParams';\nimport { useAppContextSync } from './useAppContextSync';\nimport { useCallback } from 'react';\n\nexport const useTableGridSwitchFeatures = (config: TableGridSwitchConfig) => {\n const { filterComponent, filtersObject, filterFieldMapping } = useFilters(\n config.filters,\n );\n\n const {\n preset,\n imagePlacement,\n visibleFieldIds: gridVisibleFieldIds,\n renderItem,\n } = useBaseGridFeatures(config);\n\n const {\n customColumns,\n visibleFieldIds: tableVisibleFieldIds,\n columns: tableColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n showTitleBar,\n } = useBaseTableFeatures(config);\n\n const { fetchData } = useFetchData({\n searchableFieldIds: Array.from(\n new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds]),\n ),\n filterFieldMapping,\n });\n\n const params = useBaseCollectionParams({\n config: config.collection,\n fetchData,\n filters: filtersObject,\n });\n\n const state = useTableGridSwitchCollection<any>(params);\n const items = useSelector(() => state.collection.result.items);\n\n const refreshCollection = useCallback(() => {\n return () => {\n return state.collection.clearResultAndMoveToStart({ force: true });\n };\n }, [state.collection]);\n\n useAppContextSync(items, refreshCollection);\n\n const commonFeatures = useCommonCollectionFeatures({\n ...config,\n collectionState: state.collection,\n });\n\n return {\n ...commonFeatures,\n state,\n columns: tableColumns,\n filters: filterComponent,\n customColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n horizontalScroll: true,\n // Grid specific features\n imagePlacement,\n preset,\n renderItem,\n showTitleBar,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,WAAW,EAAEC,4BAA4B,QAAQ,eAAe;AACzE,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,WAAW,QAAQ,OAAO;AAEnC,OAAO,MAAMC,0BAA0B,GAAIC,MAA6B,IAAK;EAC3E,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGV,UAAU,CACvEO,MAAM,CAACI,OACT,CAAC;EAED,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,eAAe,EAAEC,mBAAmB;IACpCC;EACF,CAAC,GAAGf,mBAAmB,CAACM,MAAM,CAAC;EAE/B,MAAM;IACJU,aAAa;IACbH,eAAe,EAAEI,oBAAoB;IACrCC,OAAO,EAAEC,YAAY;IACrBC,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBC;EACF,CAAC,GAAGtB,oBAAoB,CAACK,MAAM,CAAC;EAEhC,MAAM;IAAEkB;EAAU,CAAC,GAAG7B,YAAY,CAAC;IACjC8B,kBAAkB,EAAEC,KAAK,CAACC,IAAI,CAC5B,IAAIC,GAAG,CAAC,CAAC,GAAGX,oBAAoB,EAAE,GAAGH,mBAAmB,CAAC,CAC3D,CAAC;IACDL;EACF,CAAC,CAAC;EAEF,MAAMoB,MAAM,GAAG3B,uBAAuB,CAAC;IACrCI,MAAM,EAAEA,MAAM,CAACwB,UAAU;IACzBN,SAAS;IACTd,OAAO,EAAEF;EACX,CAAC,CAAC;EAEF,MAAMuB,KAAK,GAAGlC,4BAA4B,CAAMgC,MAAM,CAAC;EACvD,MAAMG,KAAK,GAAGpC,WAAW,CAAC,MAAMmC,KAAK,CAACD,UAAU,CAACG,MAAM,CAACD,KAAK,CAAC;EAE9D,MAAME,iBAAiB,GAAG9B,WAAW,CAAC,MAAM;IAC1C,OAAO,MAAM;MACX,OAAO2B,KAAK,CAACD,UAAU,CAACK,yBAAyB,CAAC;QAAEC,KAAK,EAAE;MAAK,CAAC,CAAC;IACpE,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACD,UAAU,CAAC,CAAC;EAEtB3B,iBAAiB,CAAC6B,KAAK,EAAEE,iBAAiB,CAAC;EAE3C,MAAMG,cAAc,GAAGvC,2BAA2B,CAAC;IACjD,GAAGQ,MAAM;IACTgC,eAAe,EAAEP,KAAK,CAACD;EACzB,CAAC,CAAC;EAEF,OAAO;IACL,GAAGO,cAAc;IACjBN,KAAK;IACLb,OAAO,EAAEC,YAAY;IACrBT,OAAO,EAAEH,eAAe;IACxBS,aAAa;IACbI,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBiB,gBAAgB,EAAE,IAAI;IACtB;IACA3B,cAAc;IACdD,MAAM;IACNI,UAAU;IACVQ;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useFetchData","useSelector","useTableGridSwitchCollection","useCommonCollectionFeatures","useFilters","useBaseGridFeatures","useBaseTableFeatures","useBaseCollectionParams","useAppContextSync","useCallback","useTableGridSwitchDragAndDrop","useTableGridSwitchFeatures","config","filterComponent","filtersObject","filterFieldMapping","filters","preset","imagePlacement","visibleFieldIds","gridVisibleFieldIds","renderItem","customColumns","tableVisibleFieldIds","columns","tableColumns","onRowClick","stickyColumns","stickySelectionColumn","showTitleBar","dataExtension","fetchData","searchableFieldIds","Array","from","Set","params","collection","dragAndDropProps","state","items","result","refreshCollection","clearResultAndMoveToStart","force","commonFeatures","collectionState","horizontalScroll"],"sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"sourcesContent":["import { TableGridSwitchConfig } from '../types';\nimport { useFetchData } from './useFetchData';\nimport { useSelector, useTableGridSwitchCollection } from '@wix/patterns';\nimport { useCommonCollectionFeatures } from './useCommonCollectionFeatures';\nimport { useFilters } from './useFilters';\nimport { useBaseGridFeatures } from './useBaseGridFeatures';\nimport { useBaseTableFeatures } from './useBaseTableFeatures';\nimport { useBaseCollectionParams } from './useBaseCollectionParams';\nimport { useAppContextSync } from './useAppContextSync';\nimport { useCallback } from 'react';\nimport { useTableGridSwitchDragAndDrop } from './useTableGridSwitchDragAndDrop';\n\nexport const useTableGridSwitchFeatures = (config: TableGridSwitchConfig) => {\n const { filterComponent, filtersObject, filterFieldMapping } = useFilters(\n config.filters,\n );\n\n const {\n preset,\n imagePlacement,\n visibleFieldIds: gridVisibleFieldIds,\n renderItem,\n } = useBaseGridFeatures(config);\n\n const {\n customColumns,\n visibleFieldIds: tableVisibleFieldIds,\n columns: tableColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n showTitleBar,\n dataExtension,\n } = useBaseTableFeatures(config);\n\n const { fetchData } = useFetchData({\n searchableFieldIds: Array.from(\n new Set([...tableVisibleFieldIds, ...gridVisibleFieldIds]),\n ),\n filterFieldMapping,\n });\n\n const params = useBaseCollectionParams({\n config: config.collection,\n fetchData,\n filters: filtersObject,\n });\n\n const dragAndDropProps = useTableGridSwitchDragAndDrop(config);\n\n const state = useTableGridSwitchCollection<any>(params);\n const items = useSelector(() => state.collection.result.items);\n\n const refreshCollection = useCallback(() => {\n return () => {\n return state.collection.clearResultAndMoveToStart({ force: true });\n };\n }, [state.collection]);\n\n useAppContextSync(items, refreshCollection);\n\n const commonFeatures = useCommonCollectionFeatures({\n ...config,\n collectionState: state.collection,\n });\n\n return {\n ...commonFeatures,\n state,\n columns: tableColumns,\n filters: filterComponent,\n customColumns,\n onRowClick,\n stickyColumns,\n stickySelectionColumn,\n horizontalScroll: true,\n // Grid specific features\n imagePlacement,\n preset,\n renderItem,\n showTitleBar,\n dataExtension,\n ...dragAndDropProps,\n };\n};\n"],"mappings":"AACA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,WAAW,EAAEC,4BAA4B,QAAQ,eAAe;AACzE,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,OAAO,MAAMC,0BAA0B,GAAIC,MAA6B,IAAK;EAC3E,MAAM;IAAEC,eAAe;IAAEC,aAAa;IAAEC;EAAmB,CAAC,GAAGX,UAAU,CACvEQ,MAAM,CAACI,OACT,CAAC;EAED,MAAM;IACJC,MAAM;IACNC,cAAc;IACdC,eAAe,EAAEC,mBAAmB;IACpCC;EACF,CAAC,GAAGhB,mBAAmB,CAACO,MAAM,CAAC;EAE/B,MAAM;IACJU,aAAa;IACbH,eAAe,EAAEI,oBAAoB;IACrCC,OAAO,EAAEC,YAAY;IACrBC,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBC,YAAY;IACZC;EACF,CAAC,GAAGxB,oBAAoB,CAACM,MAAM,CAAC;EAEhC,MAAM;IAAEmB;EAAU,CAAC,GAAG/B,YAAY,CAAC;IACjCgC,kBAAkB,EAAEC,KAAK,CAACC,IAAI,CAC5B,IAAIC,GAAG,CAAC,CAAC,GAAGZ,oBAAoB,EAAE,GAAGH,mBAAmB,CAAC,CAC3D,CAAC;IACDL;EACF,CAAC,CAAC;EAEF,MAAMqB,MAAM,GAAG7B,uBAAuB,CAAC;IACrCK,MAAM,EAAEA,MAAM,CAACyB,UAAU;IACzBN,SAAS;IACTf,OAAO,EAAEF;EACX,CAAC,CAAC;EAEF,MAAMwB,gBAAgB,GAAG5B,6BAA6B,CAACE,MAAM,CAAC;EAE9D,MAAM2B,KAAK,GAAGrC,4BAA4B,CAAMkC,MAAM,CAAC;EACvD,MAAMI,KAAK,GAAGvC,WAAW,CAAC,MAAMsC,KAAK,CAACF,UAAU,CAACI,MAAM,CAACD,KAAK,CAAC;EAE9D,MAAME,iBAAiB,GAAGjC,WAAW,CAAC,MAAM;IAC1C,OAAO,MAAM;MACX,OAAO8B,KAAK,CAACF,UAAU,CAACM,yBAAyB,CAAC;QAAEC,KAAK,EAAE;MAAK,CAAC,CAAC;IACpE,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAACF,UAAU,CAAC,CAAC;EAEtB7B,iBAAiB,CAACgC,KAAK,EAAEE,iBAAiB,CAAC;EAE3C,MAAMG,cAAc,GAAG1C,2BAA2B,CAAC;IACjD,GAAGS,MAAM;IACTkC,eAAe,EAAEP,KAAK,CAACF;EACzB,CAAC,CAAC;EAEF,OAAO;IACL,GAAGQ,cAAc;IACjBN,KAAK;IACLf,OAAO,EAAEC,YAAY;IACrBT,OAAO,EAAEH,eAAe;IACxBS,aAAa;IACbI,UAAU;IACVC,aAAa;IACbC,qBAAqB;IACrBmB,gBAAgB,EAAE,IAAI;IACtB;IACA7B,cAAc;IACdD,MAAM;IACNI,UAAU;IACVQ,YAAY;IACZC,aAAa;IACb,GAAGQ;EACL,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","createContext","useContext","AutoPatternsOverridesContext","undefined","AutoPatternsOverridesProvider","_ref","children","value","createElement","Provider","useAutoPatternsOverridesContext","PatternsWizardOverridesProvider"],"sources":["../../../src/providers/AutoPatternsOverridesContext.tsx"],"sourcesContent":["import React, { createContext, useContext, ReactNode } from 'react';\nimport {\n CustomComponentProps,\n CustomActionCellPrimaryActionResolver,\n CustomActionCellSecondaryActionResolver,\n CustomEntityPageActionResolver,\n CustomBulkActionsActionResolver,\n CustomActionCollectionPageActionResolver,\n CustomActionCollectionPageActionOnRowClickResolver,\n IColumnValue,\n SchemaConfig,\n} from '../types';\n\nimport { Section, useOptimisticActions } from '@wix/patterns';\nimport { BadgeSkin, IconElement } from '@wix/design-system';\nimport { collections } from '@wix/data';\n\nexport interface AutoPatternsOverridesContextProps {\n actions?: Record<\n string,\n | CustomActionCellPrimaryActionResolver\n | CustomActionCellSecondaryActionResolver\n | CustomBulkActionsActionResolver\n | CustomEntityPageActionResolver\n | CustomActionCollectionPageActionResolver\n | CustomActionCollectionPageActionOnRowClickResolver\n >;\n columns?: Record<string, (props: IColumnValue<any>) => void>;\n modals?: Record<string, React.FC<any>>;\n emptyState?: Record<string, () => void>;\n components?: Record<string, React.FC<CustomComponentProps>>;\n slots?: Record<string, React.FC>;\n entityPageHeaderSubtitle?: Record<\n string,\n (entity: Record<string, any>) => { text: string }\n >;\n entityPageHeaderBadges?: Record<\n string,\n (entity: Record<string, any>) => {\n text: string;\n skin?: BadgeSkin;\n prefixIcon?: IconElement;\n suffixIcon?: IconElement;\n }[]\n >;\n customDataSources?: Record<\n string,\n (collectionId: string, context: any) => Promise<SchemaConfig>\n >;\n cmsSchema?: Record<string, collections.DataCollection>;\n sections?: Record<string, (item: any) => Section>;\n optimisticActions?: Record<\n string,\n Parameters<typeof useOptimisticActions>[1]\n >;\n}\n\nconst AutoPatternsOverridesContext = createContext<\n AutoPatternsOverridesContextProps | undefined\n>(undefined);\n\nexport const AutoPatternsOverridesProvider: React.FC<{\n children: ReactNode;\n value: AutoPatternsOverridesContextProps;\n}> = ({ children, value }) => {\n return (\n <AutoPatternsOverridesContext.Provider value={value}>\n {children}\n </AutoPatternsOverridesContext.Provider>\n );\n};\n\nexport const useAutoPatternsOverridesContext = ():\n | AutoPatternsOverridesContextProps\n | undefined => {\n return useContext(AutoPatternsOverridesContext);\n};\n\n// For backwards compatibility\nexport interface PatternsWizardOverridesContextProps\n extends AutoPatternsOverridesContextProps {}\nexport const PatternsWizardOverridesProvider = AutoPatternsOverridesProvider;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAmB,OAAO;AAyDnE,MAAMC,4BAA4B,gBAAGF,aAAa,CAEhDG,SAAS,CAAC;AAEZ,OAAO,MAAMC,6BAGX,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACvB,oBACEN,KAAA,CAAAS,aAAA,CAACN,4BAA4B,CAACO,QAAQ;IAACF,KAAK,EAAEA;EAAM,GACjDD,QACoC,CAAC;AAE5C,CAAC;AAED,OAAO,MAAMI,+BAA+B,GAAGA,CAAA,KAE9B;EACf,OAAOT,UAAU,CAACC,4BAA4B,CAAC;AACjD,CAAC;;AAED;;AAGA,OAAO,MAAMS,+BAA+B,GAAGP,6BAA6B","ignoreList":[]}
1
+ {"version":3,"names":["React","createContext","useContext","AutoPatternsOverridesContext","undefined","AutoPatternsOverridesProvider","_ref","children","value","createElement","Provider","useAutoPatternsOverridesContext","PatternsWizardOverridesProvider"],"sources":["../../../src/providers/AutoPatternsOverridesContext.tsx"],"sourcesContent":["import React, { createContext, useContext, ReactNode } from 'react';\nimport {\n CustomComponentProps,\n CustomActionCellPrimaryActionResolver,\n CustomActionCellSecondaryActionResolver,\n CustomEntityPageActionResolver,\n CustomBulkActionsActionResolver,\n CustomActionCollectionPageActionResolver,\n CustomActionCollectionPageActionOnRowClickResolver,\n IColumnValue,\n SchemaConfig,\n} from '../types';\n\nimport { Section, useOptimisticActions } from '@wix/patterns';\nimport { BadgeSkin, IconElement } from '@wix/design-system';\nimport { collections } from '@wix/data';\n\nexport interface AutoPatternsOverridesContextProps {\n actions?: Record<\n string,\n | CustomActionCellPrimaryActionResolver\n | CustomActionCellSecondaryActionResolver\n | CustomBulkActionsActionResolver\n | CustomEntityPageActionResolver\n | CustomActionCollectionPageActionResolver\n | CustomActionCollectionPageActionOnRowClickResolver\n >;\n columns?: Record<string, (props: IColumnValue<any>) => void>;\n modals?: Record<string, React.FC<any>>;\n emptyState?: Record<string, () => void>;\n components?: Record<string, React.FC<CustomComponentProps>>;\n slots?: Record<string, React.FC>;\n entityPageHeaderSubtitle?: Record<\n string,\n (entity: Record<string, any>) => { text: string }\n >;\n entityPageHeaderBadges?: Record<\n string,\n (entity: Record<string, any>) => {\n text: string;\n skin?: BadgeSkin;\n prefixIcon?: IconElement;\n suffixIcon?: IconElement;\n }[]\n >;\n customDataSources?: Record<\n string,\n (collectionId: string, context: any) => Promise<SchemaConfig>\n >;\n cmsSchema?: Record<string, collections.DataCollection>;\n sections?: Record<string, (item: any) => Section>;\n optimisticActions?: Record<\n string,\n Parameters<typeof useOptimisticActions>[1]\n >;\n bulkDeleteModalTitle?: Record<\n string,\n (params: { selectedCount: number; selectedValues: any[] }) => {\n text: string;\n }\n >;\n}\n\nconst AutoPatternsOverridesContext = createContext<\n AutoPatternsOverridesContextProps | undefined\n>(undefined);\n\nexport const AutoPatternsOverridesProvider: React.FC<{\n children: ReactNode;\n value: AutoPatternsOverridesContextProps;\n}> = ({ children, value }) => {\n return (\n <AutoPatternsOverridesContext.Provider value={value}>\n {children}\n </AutoPatternsOverridesContext.Provider>\n );\n};\n\nexport const useAutoPatternsOverridesContext = ():\n | AutoPatternsOverridesContextProps\n | undefined => {\n return useContext(AutoPatternsOverridesContext);\n};\n\n// For backwards compatibility\nexport interface PatternsWizardOverridesContextProps\n extends AutoPatternsOverridesContextProps {}\nexport const PatternsWizardOverridesProvider = AutoPatternsOverridesProvider;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAmB,OAAO;AA+DnE,MAAMC,4BAA4B,gBAAGF,aAAa,CAEhDG,SAAS,CAAC;AAEZ,OAAO,MAAMC,6BAGX,GAAGC,IAAA,IAAyB;EAAA,IAAxB;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAAF,IAAA;EACvB,oBACEN,KAAA,CAAAS,aAAA,CAACN,4BAA4B,CAACO,QAAQ;IAACF,KAAK,EAAEA;EAAM,GACjDD,QACoC,CAAC;AAE5C,CAAC;AAED,OAAO,MAAMI,+BAA+B,GAAGA,CAAA,KAE9B;EACf,OAAOT,UAAU,CAACC,4BAA4B,CAAC;AACjD,CAAC;;AAED;;AAGA,OAAO,MAAMS,+BAA+B,GAAGP,6BAA6B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["ComponentTypeEnum"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport { DateRangeFilterMode, DateRangeOptions } from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AAyaA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ComponentTypeEnum"],"sources":["../../../src/types/CollectionPageConfig.ts"],"sourcesContent":["import { CollectionToolbarFiltersProps } from '@wix/patterns';\nimport { DateRangeFilterMode, DateRangeOptions } from '@wix/patterns/core';\nimport { BaseCollectionConfig } from './types';\nimport {\n ActionCellConfig,\n BulkActionsConfig,\n CollectionPageOnRowClickActionConfig,\n CollectionPagePrimaryActions,\n CollectionPageSecondaryActions,\n} from './actions';\n\nexport interface CollectionPageTitle {\n /**\n * The title text.\n */\n text: string;\n /**\n * Determines whether to hide the number of total entities on the title of the page.\n */\n hideTotal?: boolean;\n}\n\nexport interface CollectionPageSubtitle {\n /**\n * The subtitle text.\n */\n text: string;\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button. defaults to \"Learn More\".\n */\n label?: string;\n };\n}\n\nexport interface CollectionPageConfig {\n /**\n * Route configuration.\n */\n route: {\n /**\n * Route path (relative path).\n */\n path: string;\n };\n /**\n * Page title configuration.\n */\n title: CollectionPageTitle;\n /**\n * Page subtitle configuration.\n */\n subtitle?: CollectionPageSubtitle;\n /**\n * Page-level actions to render in the page header.\n */\n actions?: {\n /**\n * Primary actions.\n */\n primaryActions?: CollectionPagePrimaryActions;\n /**\n * Secondary actions.\n */\n secondaryActions?: CollectionPageSecondaryActions;\n };\n /**\n * Components rendered within the page layout.\n */\n components: ComponentConfig[];\n}\n\nexport interface CollectionComponentConfig\n extends BaseCollectionComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'collection';\n /**\n * Layout items to render.\n */\n layout: LayoutItemConfig[];\n}\n\nexport interface CustomComponentConfig {\n /**\n * Type discriminator.\n */\n type: 'custom';\n /**\n * Identifier that maps to a custom React component provided via overrides.\n */\n id: string;\n}\n\nexport type ComponentConfig = CollectionComponentConfig | CustomComponentConfig;\n\nexport interface LayoutItemConfig {\n /**\n * Rendering mode for the collection component.\n */\n type: 'Table' | 'Grid';\n /**\n * Table-specific configuration.\n */\n table?: TableSpecificConfig;\n /**\n * Grid-specific configuration.\n */\n grid?: GridSpecificConfig;\n}\n\nexport type ColumnsConfig = Column[];\n\nexport interface TableSpecificConfig {\n /**\n * Table columns configuration.\n */\n columns: ColumnsConfig;\n /**\n * Enables custom columns (hide/reorder columns) functionality.\n */\n customColumns?: {\n enabled: boolean;\n };\n /**\n * Number of leading columns that remain sticky on horizontal scroll.\n */\n stickyColumns?: number;\n /**\n * Row click action.\n */\n onRowClick?: CollectionPageOnRowClickActionConfig;\n /**\n * Show column headers (title bar).\n * @default true\n */\n showTitleBar?: boolean;\n /**\n * Sectioning support for table.\n *\n * The `id` must match the identifier of a custom sectioning override component.\n * This allows you to provide a custom React component for table section rendering.\n */\n sections?: {\n id: string;\n };\n /**\n * Data extension configuration.\n */\n dataExtension?: {\n enabled: boolean;\n };\n}\n\nexport interface GridSpecificConfig {\n /**\n * Grid item.\n */\n item: GridItem;\n}\n\nexport interface TableConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig {}\n\nexport interface GridConfig\n extends BaseCollectionComponentConfig,\n GridSpecificConfig {}\n\nexport interface TableGridSwitchConfig\n extends BaseCollectionComponentConfig,\n TableSpecificConfig,\n GridSpecificConfig {}\n\nexport type CollectionConfig = BaseCollectionConfig & {\n /**\n * Default fetch limit (items per page).\n */\n limit?: number;\n /**\n * Reflect search/filters/sort in the URL.\n * @default false\n */\n reflectQueryInUrl?: boolean;\n /**\n * Scope of \"Select All\":\n * - 'all': select the entire collection (server-side).\n * - 'page': select only currently visible items.\n * @default \"all\"\n */\n selectAllScope?: 'page' | 'all';\n /**\n * Selection behavior when data changes:\n * - 'preserve': keep current selections if still valid.\n * - 'clear': clear selection on data refresh.\n * @default \"clear\"\n */\n selectionUpdateMode?: 'preserve' | 'clear';\n /**\n * Enables optimistic UI actions;\n * Identifier that maps to a custom optimistic actions provided via overrides.\n */\n optimisticActions?: {\n id: string;\n };\n /**\n * Pagination strategy:\n * - 'cursor': `find()` must return { items, cursor, total? }\n * - 'offset': `find()` must return { items, hasNext, total? }\n * @default \"offset\"\n */\n paginationMode?: 'cursor' | 'offset';\n};\n\nexport interface BaseCollectionComponentConfig {\n /**\n * Collection data configuration and behavior.\n */\n collection: CollectionConfig;\n /**\n * Entity page to navigate to (by page id) when interacting with rows (e.g. onRowClick/update).\n */\n entityPageId?: string;\n /**\n * Search configuration.\n */\n search?: {\n /**\n * Whether to show the search input.\n * @default true\n */\n shown?: boolean;\n };\n /**\n * Toolbar title configuration.\n */\n toolbarTitle?: ToolbarTitle;\n /**\n * Action cell configuration per row.\n */\n actionCell?: ActionCellConfig;\n /**\n * Empty state configuration.\n */\n emptyState?: EmptyState;\n /**\n * Filters configuration.\n */\n filters?: FiltersConfig;\n /**\n * Bulk action toolbar configuration.\n */\n bulkActionToolbar?: BulkActionsConfig;\n /**\n * Drag and drop configuration.\n */\n dragAndDrop?: {\n /**\n * Whether drag and drop is enabled. When enabled, the schema must support a \"move\" action.\n */\n enabled: boolean;\n };\n}\n\nexport interface ToolbarTitle {\n /**\n * Title text.\n */\n title: string;\n /**\n * Subtitle configuration.\n */\n subtitle?: {\n /**\n * Subtitle text.\n */\n text: string;\n /**\n * Info tooltip content with an optional link.\n */\n info?: {\n content: {\n text: string;\n link?: {\n url: string;\n label: string;\n };\n };\n };\n /**\n * \"Learn more\" link.\n */\n learnMore?: {\n /**\n * Where the link should navigate to.\n */\n url: string;\n /**\n * The label of the link button.\n */\n label?: string;\n };\n };\n /**\n * Show total items on the toolbar.\n * @default false\n */\n showTotal?: boolean;\n /**\n * Limit displayed item count in the toolbar.\n */\n itemsLimit?: number;\n}\n\nexport interface Column {\n /**\n * FieldId to bind the column to.\n */\n id: string;\n /**\n * Column header text.\n */\n name: string;\n /**\n * CSS width value (e.g. '120px', '20%').\n */\n width: string;\n /**\n * Whether the column supports sorting.\n */\n sortable?: boolean;\n /**\n * Initial sort order when the page loads.\n */\n defaultSortOrder?: 'asc' | 'desc';\n /**\n * Current sort mode selected in UI.\n */\n sortMode?: 'asc' | 'desc';\n /**\n * Hide column by default in the custom columns panel.\n * When true, the column will not be shown initially and must be enabled by the user via the customize columns UI.\n */\n defaultHidden?: boolean;\n /**\n * Exclude from the \"customize columns\" selection UI.\n */\n hiddenFromCustomColumnsSelection?: boolean;\n /**\n * Controls whether the \"hide/show\" checkbox for this column is enabled in the custom columns panel.\n * If set to false, the checkbox will be disabled and the user cannot toggle visibility for this column.\n */\n hideable?: boolean;\n /**\n * Prevent column reordering in the customization UI.\n */\n reorderDisabled?: boolean;\n /**\n * Tooltip content to display when hovering over the info icon in the column header.\n */\n tooltipContent?: string;\n}\n\nexport interface GridItem {\n /**\n * FieldId to use as the card title.\n */\n titleFieldId: string;\n /**\n * FieldId to use as the card subtitle.\n */\n subtitleFieldId?: string;\n /**\n * FieldId to use as the card image.\n */\n imageFieldId?: string;\n /**\n * Controls which content is shown in the card (preset):\n * - 'full': shows title and subtitle.\n * - 'title': shows only the title.\n * - 'empty': hides both title and subtitle.\n */\n cardContentMode?: 'full' | 'title' | 'empty'; // Footer is not supported in auto-patterns\n /**\n * Position of the image inside the card layout.\n */\n imagePlacement?: 'top' | 'side';\n}\n\nexport interface EmptyState {\n /**\n * Empty state title.\n */\n title?: string;\n /**\n * Empty state subtitle.\n */\n subtitle?: string;\n /**\n * Image to display in the empty state.\n */\n image?: {\n id: string;\n };\n /**\n * \"Add new\" call-to-action button.\n */\n addNewCta?: {\n id?: string;\n text?: string;\n };\n /**\n * Custom CTA slot (advanced).\n */\n customCta?: {\n id?: string;\n };\n}\n\nexport interface FilterOption {\n value: string;\n label: string;\n}\n\nexport type FilterSelectionMode = 'single' | 'multiple';\n\nexport type FilterOptionType =\n | 'checkbox'\n | 'inlineCheckbox'\n | 'radio'\n | 'select';\n\nexport enum ComponentTypeEnum {\n SINGLE = 'single',\n MULTI_SELECT = 'multi-select',\n RADIO_GROUP = 'radio-group',\n NUMBER = 'number',\n DATE_RANGE = 'date-range',\n}\n\nexport type FilterItems = Filter[];\n\nexport interface FiltersConfig {\n /**\n * Filter items to display.\n */\n items: FilterItems;\n /**\n * Maximum number of filters shown inline before moving to the panel.\n * @default 0 (all in panel).\n */\n maxInlineFilters?: CollectionToolbarFiltersProps['inline'];\n /**\n * Title for the filter panel drawer.\n */\n panelTitle?: string;\n}\n\nexport interface BaseOptionsFilterConfig {\n /**\n * Selection behavior: single choice or multiple choices.\n */\n selectionMode: FilterSelectionMode;\n}\n\nexport interface DateFilterConfig {\n /**\n * Controls behavior: presets only, custom only, or both.\n */\n mode?: DateRangeFilterMode;\n /**\n * Which preset ranges to display (only if mode supports presets).\n */\n presets?: DateRangeOptions;\n /**\n * Whether to include time selection.\n * @default true\n */\n includeTime?: boolean;\n}\n\nexport interface NumberFilterConfig {\n /**\n * Minimum allowed value.\n */\n min?: number;\n /**\n * Maximum allowed value.\n */\n max?: number;\n /**\n * Whether decimal values are allowed.\n */\n allowedDecimals?: boolean;\n}\n\nexport interface BooleanFilterConfig {\n /**\n * Label for the \"true\" option.\n */\n trueLabel?: string;\n /**\n * Label for the \"false\" option.\n */\n falseLabel?: string;\n}\n\nexport interface EnumFilterConfig extends BaseOptionsFilterConfig {\n /**\n * List of available options.\n */\n options: FilterOption[];\n /**\n * Rendering control for option appearance.\n */\n optionType?: FilterOptionType;\n}\n\nexport interface DynamicOptionsFilterConfig extends BaseOptionsFilterConfig {}\n\nexport interface Filter {\n /**\n * Filter unique identifier.\n */\n id: string;\n /**\n * Target field id this filter controls.\n */\n fieldId: string;\n /**\n * Optional filter display name (defaults to field name).\n */\n displayName?: string;\n /**\n * Optional grouping label. Filters with the same `sectionTitle` are grouped together.\n */\n sectionTitle?: string;\n /**\n * Whether the filter item is expanded by default in the panel.\n */\n openByDefault?: boolean;\n /**\n * Label shown in the table/grid tag when the filter is active.\n */\n tagLabel?: string;\n /**\n * Configuration for number inputs (NUMBER fields).\n */\n numberConfig?: NumberFilterConfig;\n /**\n * Configuration for date inputs (DATETIME fields).\n */\n dateConfig?: DateFilterConfig;\n /**\n * Configuration for boolean input labels (BOOLEAN fields).\n */\n booleanConfig?: BooleanFilterConfig;\n /**\n * Configuration for enum inputs (ARRAY/ARRAY_STRING fields).\n */\n enumConfig?: EnumFilterConfig;\n /**\n * Dynamic options configuration (advanced).\n */\n dynamicOptionsConfig?: DynamicOptionsFilterConfig;\n}\n"],"mappings":"AAwbA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeepPartial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../../src/types/DeepPartial.ts"],"sourcesContent":["export type DeepPartial<T> = T extends object\n ? T extends (infer U)[]\n ? DeepPartial<U>[]\n : { [P in keyof T]?: DeepPartial<T[P]> }\n : T;\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/types/actions/base.ts"],"sourcesContent":["export type DividerActionConfig = { type: 'divider' };\n\nexport type BaseActionItemConfig = {\n /**\n * Unique identifier for the action.\n */\n id: string;\n /**\n * Display text for the action button/menu item.\n */\n label?: string;\n /**\n * Visual appearance of the action button (e.g., 'standard', 'destructive', 'primary').\n */\n skin?: string;\n /**\n * BI tracking name.\n */\n biName?: string;\n};\n\nexport interface Feedback {\n /**\n * Success message displayed in a toast notification.\n */\n successToast?: { text: string };\n /**\n * Error message displayed in a toast notification.\n */\n errorToast?: { text: string };\n}\n\nexport interface BaseActionModal {\n /**\n * Modal header title.\n */\n title?: { text: string };\n /**\n * Modal action buttons configuration.\n */\n actions?: {\n /**\n * Submit/confirm button text.\n */\n submit?: { text: string };\n /**\n * Cancel button text.\n */\n cancel?: { text: string };\n };\n /**\n * Toast notifications for action completion.\n */\n feedback?: Feedback;\n}\n\nexport interface ActionModalField {\n /**\n * Field identifier.\n */\n id: string;\n /**\n * Field display label.\n */\n label?: string;\n}\n\nexport interface DeleteActionModal extends BaseActionModal {\n /**\n * Optional description text explaining the delete operation.\n */\n description?: { text: string };\n}\n\nexport interface BulkDeleteActionModal extends DeleteActionModal {}\n\nexport type BulkDeleteAction =\n | {\n mode: 'modal';\n modal: BulkDeleteActionModal;\n }\n | {\n mode: 'custom';\n modal?: never;\n };\n\nexport type DeleteAction = {\n /**\n * Show a confirmation modal.\n */\n mode: 'modal';\n modal: DeleteActionModal;\n};\n\nexport interface BaseActionPage {\n /**\n * Unique identifier.\n */\n id: string;\n}\n\nexport interface ActionModalWithFields extends BaseActionModal {\n /**\n * Form fields to display in the modal.\n */\n fields: ActionModalField[];\n}\n\nexport interface UpdateActionModal extends ActionModalWithFields {}\n\nexport interface CreateActionModal extends ActionModalWithFields {}\n\nexport interface UpdateActionPage extends BaseActionPage {}\n\nexport interface CreateActionPage extends BaseActionPage {}\n\nexport type UpdateAction = {\n /**\n * Navigate to a page for the update operation.\n */\n mode: 'page';\n page: UpdateActionPage;\n};\n\nexport type CreateAction = {\n /**\n * Navigate to a page for the create operation.\n */\n mode: 'page';\n page: CreateActionPage;\n};\n\nexport type CreateActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'create';\n /**\n * Create action implementation configuration.\n */\n create: CreateAction;\n};\n\nexport type UpdateActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'update';\n /**\n * Update action implementation configuration.\n */\n update: UpdateAction;\n};\n\nexport type DeleteActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'delete';\n /**\n * Delete action implementation configuration.\n */\n delete: DeleteAction;\n};\n\nexport type BulkDeleteActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'bulkDelete';\n /**\n * Bulk delete action implementation configuration.\n */\n bulkDelete: BulkDeleteAction;\n};\n\nexport type CustomActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'custom';\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/types/actions/base.ts"],"sourcesContent":["export type DividerActionConfig = { type: 'divider' };\n\nexport type BaseActionItemConfig = {\n /**\n * Unique identifier for the action.\n */\n id: string;\n /**\n * Display text for the action button/menu item.\n */\n label?: string;\n /**\n * Visual appearance of the action button (e.g., 'standard', 'destructive', 'primary').\n */\n skin?: string;\n /**\n * BI tracking name.\n */\n biName?: string;\n};\n\nexport interface Feedback {\n /**\n * Success message displayed in a toast notification.\n */\n successToast?: { text: string };\n /**\n * Error message displayed in a toast notification.\n */\n errorToast?: { text: string };\n}\n\nexport interface BaseActionModal {\n /**\n * Modal header title.\n * Either a static title (text required, id never) or a dynamic title (id required, text never)\n */\n title?: { text: string; id?: never } | { id: string; text?: never };\n /**\n * Modal action buttons configuration.\n */\n actions?: {\n /**\n * Submit/confirm button text.\n */\n submit?: { text: string };\n /**\n * Cancel button text.\n */\n cancel?: { text: string };\n };\n /**\n * Toast notifications for action completion.\n */\n feedback?: Feedback;\n}\n\nexport interface ActionModalField {\n /**\n * Field identifier.\n */\n id: string;\n /**\n * Field display label.\n */\n label?: string;\n}\n\nexport interface DeleteActionModal extends BaseActionModal {\n /**\n * Optional description text explaining the delete operation.\n */\n description?: { text: string };\n}\n\nexport interface BulkDeleteActionModal extends DeleteActionModal {}\n\nexport type BulkDeleteAction =\n | {\n mode: 'modal';\n modal: BulkDeleteActionModal;\n }\n | {\n mode: 'custom';\n modal?: never;\n };\n\nexport type DeleteAction = {\n /**\n * Show a confirmation modal.\n */\n mode: 'modal';\n modal: DeleteActionModal;\n};\n\nexport interface BaseActionPage {\n /**\n * Unique identifier.\n */\n id: string;\n}\n\nexport interface ActionModalWithFields extends BaseActionModal {\n /**\n * Form fields to display in the modal.\n */\n fields: ActionModalField[];\n}\n\nexport interface UpdateActionModal extends ActionModalWithFields {}\n\nexport interface CreateActionModal extends ActionModalWithFields {}\n\nexport interface UpdateActionPage extends BaseActionPage {}\n\nexport interface CreateActionPage extends BaseActionPage {}\n\nexport type UpdateAction = {\n /**\n * Navigate to a page for the update operation.\n */\n mode: 'page';\n page: UpdateActionPage;\n};\n\nexport type CreateAction = {\n /**\n * Navigate to a page for the create operation.\n */\n mode: 'page';\n page: CreateActionPage;\n};\n\nexport type CreateActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'create';\n /**\n * Create action implementation configuration.\n */\n create: CreateAction;\n};\n\nexport type UpdateActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'update';\n /**\n * Update action implementation configuration.\n */\n update: UpdateAction;\n};\n\nexport type DeleteActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'delete';\n /**\n * Delete action implementation configuration.\n */\n delete: DeleteAction;\n};\n\nexport type BulkDeleteActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'bulkDelete';\n /**\n * Bulk delete action implementation configuration.\n */\n bulkDelete: BulkDeleteAction;\n};\n\nexport type CustomActionConfig = BaseActionItemConfig & {\n /**\n * Action type discriminator.\n */\n type: 'custom';\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/types/types.ts"],"sourcesContent":["import { EntityPageConfig } from './EntityPageConfig';\nimport { CollectionPageConfig } from './CollectionPageConfig';\nimport { useOptimisticActions } from '@wix/patterns';\nimport { CursorQueryResult, OffsetQueryResult } from './fetchData';\n\ninterface BaseCollectionConfigCommon {\n /**\n * Collection identifier.\n * - For CMS: the Wix Data collection ID.\n * - For custom sources: the logical collection/entity type ID your data provider recognizes.\n */\n collectionId: string;\n}\n\nexport interface CMSCollectionConfig extends BaseCollectionConfigCommon {\n /**\n * Declares this collection pulls schema/data from Wix CMS.\n */\n entityTypeSource: 'cms';\n /**\n * Optional override for CMS schema metadata.\n * Use this if you already have the schema and want to provide it directly.\n */\n cms?: {\n schema?: { id: string };\n };\n custom?: never;\n}\n\ninterface CustomCollectionConfig extends BaseCollectionConfigCommon {\n /**\n * Declares this collection is backed by a custom data source.\n */\n entityTypeSource: 'custom';\n cms?: never;\n /**\n * Required metadata for custom sources.\n * `id` must match the identifier your custom data source registers under.\n */\n custom: {\n id: string;\n };\n}\n\nexport type BaseCollectionConfig = CMSCollectionConfig | CustomCollectionConfig;\n\nexport type PatternsFieldType =\n | 'SHORT_TEXT'\n | 'LONG_TEXT'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'URL'\n | 'ARRAY'\n | 'REFERENCE'\n | 'IMAGE';\n\nexport interface AppConfig {\n /** List of pages to render and route between. */\n pages: PageConfig[];\n}\n\nexport interface BasePageConfig {\n /**\n * Page unique identifier.\n * - Used for routing, navigation, and cross references (e.g. `entityPageId`, `parentPageId`).\n */\n id: string;\n /**\n * Marks this page as the main landing page of the app.\n * - Exactly one page should have `true`.\n * - Used to determine the default route.\n */\n appMainPage?: boolean;\n}\n\nexport interface CollectionPageConfigType extends BasePageConfig {\n /**\n * Page type discriminator.\n */\n type: 'collectionPage';\n /**\n * Collection page configuration.\n */\n collectionPage: CollectionPageConfig;\n entityPage?: never;\n}\n\nexport interface EntityPageConfigType extends BasePageConfig {\n /**\n * Page type discriminator.\n */\n type: 'entityPage';\n /**\n * Entity page configuration.\n */\n entityPage: EntityPageConfig;\n collectionPage?: never;\n}\n\nexport type PageConfig = CollectionPageConfigType | EntityPageConfigType;\n\nexport type EntityProps = { [key: string]: any };\n\nexport interface IMenuItem<T extends EntityProps = any> {\n item: T;\n}\n\nexport interface IColumnValue<T> {\n value: T;\n row: Record<string, any>;\n}\n\nexport type QueryOperator =\n | 'CONTAINS'\n | 'ENDS_WITH'\n | 'EQ'\n | 'EXISTS'\n | 'GT'\n | 'GTE'\n | 'HAS_ALL'\n | 'HAS_SOME'\n | 'LT'\n | 'LTE'\n | 'NE'\n | 'STARTS_WITH'\n | 'URLIZED';\n\ninterface BaseField {\n /**\n * Field unique identifier (dot-path supported, e.g. 'primaryInfo.email').\n */\n id: string;\n /**\n * Human-readable field display name.\n */\n displayName: string;\n /**\n * Optional validation rules for UI inputs/editing.\n */\n validation?: {\n numberRange?: NumberRange;\n stringLengthRange?: StringLengthRange;\n /**\n * Whether the field is required when creating/updating an entity.\n */\n required: boolean;\n };\n /**\n * Capabilities informing UI and query layer behavior.\n */\n capabilities: {\n /**\n * Operators allowed for querying/filtering this field.\n */\n supportedQueryOperators: QueryOperator[];\n /**\n * Whether the field supports sorting.\n */\n sortable: boolean;\n };\n}\n\nexport interface ReferenceField extends BaseField {\n type: 'REFERENCE';\n referenceMetadata: {\n /**\n * Target collection ID referenced by this field.\n */\n referencedCollectionId: string;\n };\n}\n\nexport interface NonReferenceField extends BaseField {\n type: Exclude<PatternsFieldType, 'REFERENCE'>;\n}\n\nexport type Field = ReferenceField | NonReferenceField;\n\nexport interface NumberRange {\n min?: number;\n max?: number;\n}\n\nexport interface StringLengthRange {\n minLength?: number;\n maxLength?: number;\n}\n\nexport interface Query {\n limit: number;\n offset?: number;\n page: number;\n search?: string;\n cursor?: string | null;\n filters: Record<string, any>;\n sort?: {\n fieldName: string;\n order: 'asc' | 'desc';\n }[];\n}\n\nexport interface SchemaConfig {\n /**\n * Schema unique identifier (usually same as collectionId).\n */\n id: string;\n /**\n * Field registry by fieldId. Undefined value allows reserving keys conditionally.\n */\n fields: Record<string, Field | undefined>;\n /**\n * The fieldId that best represents the entity for titles/selections.\n */\n displayField: string;\n /**\n * The underlying identifier field used by your data source (e.g. '_id').\n */\n idField: string;\n /**\n * Data access layer for entities of this schema.\n */\n actions: {\n /**\n * Fetch a single entity by ID.\n */\n get: (entityId: string) => Promise<any>;\n /**\n * Create a new entity with the provided partial.\n */\n create: (newEntity: Partial<any>) => Promise<any>;\n /**\n * Update an existing entity.\n */\n update: (updatedEntity: any) => Promise<any>;\n /**\n * Delete an entity by ID.\n */\n delete: (entityId: string) => Promise<any>;\n /**\n * Bulk deletion by IDs.\n */\n bulkDelete: (entityIds: string[]) => Promise<any>;\n /**\n * Query for entities with pagination/sort/filter.\n * Return shape depends on pagination mode (see CollectionConfig.paginationMode):\n * - Cursor mode: { items, cursor, total? }\n * - Offset mode (default): { items, hasNext, total? }\n */\n find: (\n query: Query,\n options?: {\n /**\n * Overrides the set of fieldIds used for search term matching.\n */\n searchableFieldIds?: string[];\n /**\n * Maps UI filter ids to underlying fieldIds when they differ.\n */\n filterFieldMapping?: Record<string, { fieldId: string }>;\n },\n ) => Promise<CursorQueryResult | OffsetQueryResult>;\n };\n}\n\nexport type OptimisticActionsParams = Parameters<\n typeof useOptimisticActions\n>[1];\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/types/types.ts"],"sourcesContent":["import { EntityPageConfig } from './EntityPageConfig';\nimport { CollectionPageConfig } from './CollectionPageConfig';\nimport { useOptimisticActions } from '@wix/patterns';\nimport { CursorQueryResult, OffsetQueryResult } from './fetchData';\n\ninterface BaseCollectionConfigCommon {\n /**\n * Collection identifier.\n * - For CMS: the Wix Data collection ID.\n * - For custom sources: the logical collection/entity type ID your data provider recognizes.\n */\n collectionId: string;\n}\n\nexport interface CMSCollectionConfig extends BaseCollectionConfigCommon {\n /**\n * Declares this collection pulls schema/data from Wix CMS.\n */\n entityTypeSource: 'cms';\n /**\n * Optional override for CMS schema metadata.\n * Use this if you already have the schema and want to provide it directly.\n */\n cms?: {\n schema?: { id: string };\n };\n custom?: never;\n}\n\ninterface CustomCollectionConfig extends BaseCollectionConfigCommon {\n /**\n * Declares this collection is backed by a custom data source.\n */\n entityTypeSource: 'custom';\n cms?: never;\n /**\n * Required metadata for custom sources.\n * `id` must match the identifier your custom data source registers under.\n */\n custom: {\n id: string;\n };\n}\n\nexport type BaseCollectionConfig = CMSCollectionConfig | CustomCollectionConfig;\n\nexport type PatternsFieldType =\n | 'SHORT_TEXT'\n | 'LONG_TEXT'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'URL'\n | 'ARRAY'\n | 'REFERENCE'\n | 'IMAGE';\n\nexport interface AppConfig {\n /** List of pages to render and route between. */\n pages: PageConfig[];\n}\n\nexport interface BasePageConfig {\n /**\n * Page unique identifier.\n * - Used for routing, navigation, and cross references (e.g. `entityPageId`, `parentPageId`).\n */\n id: string;\n /**\n * Marks this page as the main landing page of the app.\n * - Exactly one page should have `true`.\n * - Used to determine the default route.\n */\n appMainPage?: boolean;\n}\n\nexport interface CollectionPageConfigType extends BasePageConfig {\n /**\n * Page type discriminator.\n */\n type: 'collectionPage';\n /**\n * Collection page configuration.\n */\n collectionPage: CollectionPageConfig;\n entityPage?: never;\n}\n\nexport interface EntityPageConfigType extends BasePageConfig {\n /**\n * Page type discriminator.\n */\n type: 'entityPage';\n /**\n * Entity page configuration.\n */\n entityPage: EntityPageConfig;\n collectionPage?: never;\n}\n\nexport type PageConfig = CollectionPageConfigType | EntityPageConfigType;\n\nexport type EntityProps = { [key: string]: any };\n\nexport interface IMenuItem<T extends EntityProps = any> {\n item: T;\n}\n\nexport interface IColumnValue<T> {\n value: T;\n row: Record<string, any>;\n}\n\nexport type QueryOperator =\n | 'CONTAINS'\n | 'ENDS_WITH'\n | 'EQ'\n | 'EXISTS'\n | 'GT'\n | 'GTE'\n | 'HAS_ALL'\n | 'HAS_SOME'\n | 'LT'\n | 'LTE'\n | 'NE'\n | 'STARTS_WITH'\n | 'URLIZED';\n\ninterface BaseField {\n /**\n * Field unique identifier (dot-path supported, e.g. 'primaryInfo.email').\n */\n id: string;\n /**\n * Human-readable field display name.\n */\n displayName: string;\n /**\n * Optional validation rules for UI inputs/editing.\n */\n validation?: {\n numberRange?: NumberRange;\n stringLengthRange?: StringLengthRange;\n /**\n * Whether the field is required when creating/updating an entity.\n */\n required: boolean;\n };\n /**\n * Capabilities informing UI and query layer behavior.\n */\n capabilities?: {\n /**\n * Operators allowed for querying/filtering this field.\n */\n supportedQueryOperators: QueryOperator[];\n /**\n * Whether the field supports sorting.\n */\n sortable: boolean;\n };\n}\n\nexport interface ReferenceField extends BaseField {\n type: 'REFERENCE';\n referenceMetadata: {\n /**\n * Target collection ID referenced by this field.\n */\n referencedCollectionId: string;\n };\n}\n\nexport interface NonReferenceField extends BaseField {\n type: Exclude<PatternsFieldType, 'REFERENCE'>;\n}\n\nexport type Field = ReferenceField | NonReferenceField;\n\nexport interface NumberRange {\n min?: number;\n max?: number;\n}\n\nexport interface StringLengthRange {\n minLength?: number;\n maxLength?: number;\n}\n\nexport interface Query {\n limit: number;\n offset?: number;\n page: number;\n search?: string;\n cursor?: string | null;\n filters: Record<string, any>;\n sort?: {\n fieldName: string;\n order: 'asc' | 'desc';\n }[];\n}\n\nexport interface SchemaConfig {\n /**\n * Schema unique identifier (usually same as collectionId).\n */\n id: string;\n /**\n * Field registry by fieldId. Undefined value allows reserving keys conditionally.\n */\n fields: Record<string, Field | undefined>;\n /**\n * The fieldId that best represents the entity for titles/selections.\n */\n displayField: string;\n /**\n * The underlying identifier field used by your data source (e.g. '_id').\n */\n idField: string;\n\n /**\n * Whether the entity supports data extensions\n * Maps to `info.extensible` in the collection schema - map only properties that are relevant or `null` if not extensible */\n extensible?: {\n /**\n * Whether the entity supports filtering on data extensions\n * Maps to `info.extensible.filterable` in the collection schema\n */\n filterable?: boolean;\n } | null;\n /**\n * Whether the schema contains personally identifiable information (PII).\n * Maps to `info.containsPii` in the collection schema\n */\n containsPii?: boolean;\n /**\n * Data access layer for entities of this schema.\n */\n actions: {\n /**\n * Fetch a single entity by ID.\n */\n get: (entityId: string) => Promise<any>;\n /**\n * Create a new entity with the provided partial.\n */\n create: (newEntity: Partial<any>) => Promise<any>;\n /**\n * Update an existing entity.\n */\n update: (updatedEntity: any) => Promise<any>;\n /**\n * Delete an entity by ID.\n */\n delete: (entityId: string) => Promise<any>;\n /**\n * Bulk deletion by IDs.\n */\n bulkDelete: (entityIds: string[]) => Promise<any>;\n /**\n * Query for entities with pagination/sort/filter.\n * Return shape depends on pagination mode (see CollectionConfig.paginationMode):\n * - Cursor mode: { items, cursor, total? }\n * - Offset mode (default): { items, hasNext, total? }\n */\n find: (\n query: Query,\n options?: {\n /**\n * Overrides the set of fieldIds used for search term matching.\n */\n searchableFieldIds?: string[];\n /**\n * Maps UI filter ids to underlying fieldIds when they differ.\n */\n filterFieldMapping?: Record<string, { fieldId: string }>;\n },\n ) => Promise<CursorQueryResult | OffsetQueryResult>;\n /**\n * Reorder an entity within the collection.\n * @param id The ID of the entity to move.\n * @param params.moveAfterId The ID of the entity that should precede the moved entity, or null/undefined to move to start.\n */\n move?: (\n id: string,\n params: {\n moveAfterId: string | null | undefined;\n },\n ) => Promise<void>;\n };\n}\n\nexport type OptimisticActionsParams = Parameters<\n typeof useOptimisticActions\n>[1];\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"EditModeEntityPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsEntityPage/EditModeEntityPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAgB/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IACxC,aAAa,EAAE,oBAAoB,CAAC;CACrC,CAiIA,CAAC"}
1
+ {"version":3,"file":"EditModeEntityPage.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsEntityPage/EditModeEntityPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAgB/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IACxC,aAAa,EAAE,oBAAoB,CAAC;CACrC,CAoIA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,GAAI,oBAE9B,4BAA4B,sBA2B9B,CAAC"}
1
+ {"version":3,"file":"AutoPatternsGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsGrid/AutoPatternsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,GAAI,oBAE9B,4BAA4B,sBA6B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,6BAA6B,sBAsC/B,CAAC"}
1
+ {"version":3,"file":"AutoPatternsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoPatternsTable/AutoPatternsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,oBAE/B,6BAA6B,sBA0C/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BulkDeleteModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/modals/actions/BulkDeleteModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,WAAW,EAAE,qBAAqB,CAAC;IACnC,YAAY,EAAE,uBAAuB,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,GAAI,qCAI7B,oBAAoB,sBAsDtB,CAAC"}
1
+ {"version":3,"file":"BulkDeleteModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/modals/actions/BulkDeleteModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,WAAW,EAAE,qBAAqB,CAAC;IACnC,YAAY,EAAE,uBAAuB,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,GAAI,qCAI7B,oBAAoB,sBAwEtB,CAAC"}
@@ -1,6 +1,16 @@
1
1
  import React from 'react';
2
2
  import { TableConfig } from '../types';
3
3
  export declare const useBaseTableFeatures: (configuration: TableConfig) => {
4
+ dataExtension?: undefined;
5
+ columns: import("@wix/patterns").TableColumn<any>[];
6
+ visibleFieldIds: string[];
7
+ onRowClick: (item: any, index: any) => void | null;
8
+ customColumns: React.JSX.Element | undefined;
9
+ stickyColumns: number | undefined;
10
+ stickySelectionColumn: boolean;
11
+ showTitleBar: boolean;
12
+ } | {
13
+ dataExtension: React.JSX.Element;
4
14
  columns: import("@wix/patterns").TableColumn<any>[];
5
15
  visibleFieldIds: string[];
6
16
  onRowClick: (item: any, index: any) => void | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBaseTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMvC,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW;;;;;;;;CAsC9D,CAAC"}
1
+ {"version":3,"file":"useBaseTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBaseTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;CAwC9D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { TableConfig } from '../types';
2
+ import React from 'react';
3
+ export declare function useDataExtensionProps(tableConfig: TableConfig): {
4
+ dataExtension?: undefined;
5
+ } | {
6
+ dataExtension: React.JSX.Element;
7
+ };
8
+ //# sourceMappingURL=useDataExtensionProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDataExtensionProps.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDataExtensionProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW;;;;EAgB7D"}
@@ -0,0 +1,4 @@
1
+ import { TableProps } from '@wix/patterns';
2
+ import { BaseCollectionComponentConfig } from '../types';
3
+ export declare function useDragAndDropBaseProps(config: BaseCollectionComponentConfig): Pick<TableProps<any, {}>, 'dragAndDropSubmit' | 'dragAndDropCategories' | 'dragAndDropCancel'> | null;
4
+ //# sourceMappingURL=useDragAndDropBaseProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDragAndDropBaseProps.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDragAndDropBaseProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAEzD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,6BAA6B,GACpC,IAAI,CACL,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,EACnB,mBAAmB,GAAG,uBAAuB,GAAG,mBAAmB,CACpE,GAAG,IAAI,CAyBP"}
@@ -0,0 +1,24 @@
1
+ import { GridConfig } from '../types';
2
+ export declare function useGridDragAndDrop(config: GridConfig): {
3
+ dragAndDrop: {
4
+ SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
5
+ displayName: string;
6
+ };
7
+ DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
8
+ displayName: string;
9
+ };
10
+ DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
11
+ displayName: string;
12
+ };
13
+ setStateObject: <T, F extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
14
+ state: import("@wix/patterns/dist/types/state").GridBaseState<T, F>;
15
+ modalsContainerRef: {
16
+ current: HTMLElement | null | undefined;
17
+ };
18
+ }) => void;
19
+ };
20
+ dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
21
+ dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
22
+ dragAndDropCategories?: never[][] | null | undefined;
23
+ } | null;
24
+ //# sourceMappingURL=useGridDragAndDrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGridDragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridDragAndDrop.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;SAWpD"}
@@ -10,6 +10,28 @@ export declare const useGridFeatures: (configuration: GridConfig) => {
10
10
  title: string;
11
11
  };
12
12
  filters: import("react").JSX.Element | undefined;
13
+ dragAndDropProps: {
14
+ dragAndDrop: {
15
+ SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
16
+ displayName: string;
17
+ };
18
+ DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
19
+ displayName: string;
20
+ };
21
+ DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
22
+ displayName: string;
23
+ };
24
+ setStateObject: <T, F extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
25
+ state: import("@wix/patterns/dist/types/state").GridBaseState<T, F>;
26
+ modalsContainerRef: {
27
+ current: HTMLElement | null | undefined;
28
+ };
29
+ }) => void;
30
+ };
31
+ dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
32
+ dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
33
+ dragAndDropCategories?: never[][] | null | undefined;
34
+ } | null;
13
35
  search: boolean;
14
36
  title: import("react").JSX.Element | undefined;
15
37
  emptyState: import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"useGridFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAUtC,eAAO,MAAM,eAAe,GAAI,eAAe,UAAU;;;;;;;;;;;;;;;;;CA2CxD,CAAC"}
1
+ {"version":3,"file":"useGridFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGridFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAWtC,eAAO,MAAM,eAAe,GAAI,eAAe,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CxD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { TableConfig } from '../types';
2
+ export declare function useTableDragAndDrop(config: TableConfig): {};
3
+ //# sourceMappingURL=useTableDragAndDrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableDragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableDragAndDrop.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,MAWtD"}
@@ -4,6 +4,7 @@ export declare const useTableFeatures: (configuration: TableConfig) => {
4
4
  columns: import("@wix/patterns").TableColumn<any>[];
5
5
  filters: import("react").JSX.Element | undefined;
6
6
  customColumns: import("react").JSX.Element | undefined;
7
+ dragAndDropProps: {};
7
8
  onRowClick: (item: any, index: any) => void | null;
8
9
  stickyColumns: number | undefined;
9
10
  stickySelectionColumn: boolean;
@@ -14,6 +15,7 @@ export declare const useTableFeatures: (configuration: TableConfig) => {
14
15
  displayName: string;
15
16
  };
16
17
  } | undefined;
18
+ dataExtension: import("react").JSX.Element | undefined;
17
19
  search: boolean;
18
20
  title: import("react").JSX.Element | undefined;
19
21
  emptyState: import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAWvC,eAAO,MAAM,gBAAgB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;;;;CAgE1D,CAAC"}
1
+ {"version":3,"file":"useTableFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAYvC,eAAO,MAAM,gBAAgB,GAAI,eAAe,WAAW;;;;;;;;;;;;;;;;;;;;;;;CAqE1D,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { GridConfig } from '../types';
2
+ export declare function useTableGridSwitchDragAndDrop(config: GridConfig): {
3
+ dragAndDrop: {
4
+ grid: {
5
+ SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
9
+ displayName: string;
10
+ };
11
+ DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
12
+ displayName: string;
13
+ };
14
+ setStateObject: <T_3, F_3 extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
15
+ state: import("@wix/patterns/dist/types/state").GridBaseState<T_3, F_3>;
16
+ modalsContainerRef: {
17
+ current: HTMLElement | null | undefined;
18
+ };
19
+ }) => void;
20
+ };
21
+ table: import("@wix/patterns/dist/types/components/TableDragAndDrop").TableDragAndDropType;
22
+ };
23
+ dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
24
+ dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
25
+ dragAndDropCategories?: never[][] | null | undefined;
26
+ } | null;
27
+ //# sourceMappingURL=useTableGridSwitchDragAndDrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableGridSwitchDragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableGridSwitchDragAndDrop.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;SAW/D"}
@@ -1,5 +1,28 @@
1
1
  import { TableGridSwitchConfig } from '../types';
2
2
  export declare const useTableGridSwitchFeatures: (config: TableGridSwitchConfig) => {
3
+ dragAndDrop?: {
4
+ grid: {
5
+ SortableContext: (<T, F extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/GridDragAndDropDndKit/GridSortableContext").GridSortableContextProps<T, F>) => import("react").JSX.Element) & {
6
+ displayName: string;
7
+ };
8
+ DraggableCard: (<T_1, F_1 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardProps<T_1, F_1>) => import("react").JSX.Element) & {
9
+ displayName: string;
10
+ };
11
+ DraggableCardOverlay: (<T_2, F_2 extends import("@wix/patterns").FiltersMap>(props: import("@wix/patterns/dist/types/components/DragAndDrop").DraggableCardOverlayProps<T_2, F_2>) => import("react").ReactPortal) & {
12
+ displayName: string;
13
+ };
14
+ setStateObject: <T_3, F_3 extends import("@wix/patterns").FiltersMap>({ state, modalsContainerRef, }: {
15
+ state: import("@wix/patterns/dist/types/state").GridBaseState<T_3, F_3>;
16
+ modalsContainerRef: {
17
+ current: HTMLElement | null | undefined;
18
+ };
19
+ }) => void;
20
+ };
21
+ table: import("@wix/patterns/dist/types/components/TableDragAndDrop").TableDragAndDropType;
22
+ } | undefined;
23
+ dragAndDropSubmit?: import("@wix/patterns").DragAndDropSubmit<any, {}> | undefined;
24
+ dragAndDropCancel?: import("@wix/patterns/dist/types/components/DragAndDrop").DragAndDropCancel<any, {}> | undefined;
25
+ dragAndDropCategories?: never[][] | null | undefined;
3
26
  state: import("@wix/patterns").TableGridSwitchState<any, import("@wix/patterns").OptionalFiltersMap>;
4
27
  columns: import("@wix/patterns").TableColumn<any>[];
5
28
  filters: import("react").JSX.Element | undefined;
@@ -17,6 +40,7 @@ export declare const useTableGridSwitchFeatures: (config: TableGridSwitchConfig)
17
40
  title: string;
18
41
  };
19
42
  showTitleBar: boolean;
43
+ dataExtension: import("react").JSX.Element | undefined;
20
44
  search: boolean;
21
45
  title: import("react").JSX.Element | undefined;
22
46
  emptyState: import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"useTableGridSwitchFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAWjD,eAAO,MAAM,0BAA0B,GAAI,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;CAmEvE,CAAC"}
1
+ {"version":3,"file":"useTableGridSwitchFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableGridSwitchFeatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAYjD,eAAO,MAAM,0BAA0B,GAAI,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEvE,CAAC"}
@@ -23,6 +23,12 @@ export interface AutoPatternsOverridesContextProps {
23
23
  cmsSchema?: Record<string, collections.DataCollection>;
24
24
  sections?: Record<string, (item: any) => Section>;
25
25
  optimisticActions?: Record<string, Parameters<typeof useOptimisticActions>[1]>;
26
+ bulkDeleteModalTitle?: Record<string, (params: {
27
+ selectedCount: number;
28
+ selectedValues: any[];
29
+ }) => {
30
+ text: string;
31
+ }>;
26
32
  }
27
33
  export declare const AutoPatternsOverridesProvider: React.FC<{
28
34
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"AutoPatternsOverridesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/AutoPatternsOverridesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AACp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AC/B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,UAAU,CAAC,EAAE,WAAW,CAAC;QACzB,UAAU,CAAC,EAAE,WAAW,CAAC;KAC1B,EAAE,CACJ,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CACxB,MAAM,EACN,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,YAAY,CAAC,CAC9D,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,CACxB,MAAM,EACN,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAC3C,CAAC;CACH;AAMD,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,iCAAiC,CAAC;CAC1C,CAMA,CAAC;AAEF,eAAO,MAAM,+BAA+B,QACxC,iCAAiC,GACjC,SAEH,CAAC;AAGF,MAAM,WAAW,mCACf,SAAQ,iCAAiC;CAAG;AAC9C,eAAO,MAAM,+BAA+B;cAnBhC,SAAS;WACZ,iCAAiC;EAkBkC,CAAC"}
1
+ {"version":3,"file":"AutoPatternsOverridesContext.d.ts","sourceRoot":"","sources":["../../../src/providers/AutoPatternsOverridesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,qCAAqC,EACrC,uCAAuC,EACvC,8BAA8B,EAC9B,+BAA+B,EAC/B,wCAAwC,EACxC,kDAAkD,EAClD,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CA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,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,CACxB,MAAM,EACN,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,YAAY,CAAC,CAC9D,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,CACxB,MAAM,EACN,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAC3C,CAAC;IACF,oBAAoB,CAAC,EAAE,MAAM,CAC3B,MAAM,EACN,CAAC,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,GAAG,EAAE,CAAA;KAAE,KAAK;QAC5D,IAAI,EAAE,MAAM,CAAC;KACd,CACF,CAAC;CACH;AAMD,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC;IACnD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,iCAAiC,CAAC;CAC1C,CAMA,CAAC;AAEF,eAAO,MAAM,+BAA+B,QACxC,iCAAiC,GACjC,SAEH,CAAC;AAGF,MAAM,WAAW,mCACf,SAAQ,iCAAiC;CAAG;AAC9C,eAAO,MAAM,+BAA+B;cAnBhC,SAAS;WACZ,iCAAiC;EAkBkC,CAAC"}
@@ -136,6 +136,12 @@ export interface TableSpecificConfig {
136
136
  sections?: {
137
137
  id: string;
138
138
  };
139
+ /**
140
+ * Data extension configuration.
141
+ */
142
+ dataExtension?: {
143
+ enabled: boolean;
144
+ };
139
145
  }
140
146
  export interface GridSpecificConfig {
141
147
  /**
@@ -227,6 +233,15 @@ export interface BaseCollectionComponentConfig {
227
233
  * Bulk action toolbar configuration.
228
234
  */
229
235
  bulkActionToolbar?: BulkActionsConfig;
236
+ /**
237
+ * Drag and drop configuration.
238
+ */
239
+ dragAndDrop?: {
240
+ /**
241
+ * Whether drag and drop is enabled. When enabled, the schema must support a "move" action.
242
+ */
243
+ enabled: boolean;
244
+ };
230
245
  }
231
246
  export interface ToolbarTitle {
232
247
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionPageConfig.d.ts","sourceRoot":"","sources":["../../../src/types/CollectionPageConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oCAAoC,EACpC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE;QACL;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,cAAc,CAAC,EAAE,4BAA4B,CAAC;QAC9C;;WAEG;QACH,gBAAgB,CAAC,EAAE,8BAA8B,C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kBAAkB;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC/D;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;CAAG;AAE9E,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;CACnD"}
1
+ {"version":3,"file":"CollectionPageConfig.d.ts","sourceRoot":"","sources":["../../../src/types/CollectionPageConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EA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,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC/D;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;CAAG;AAE9E,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;CACnD"}
@@ -0,0 +1,4 @@
1
+ export type DeepPartial<T> = T extends object ? T extends (infer U)[] ? DeepPartial<U>[] : {
2
+ [P in keyof T]?: DeepPartial<T[P]>;
3
+ } : T;
4
+ //# sourceMappingURL=DeepPartial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../../src/types/DeepPartial.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACnB,WAAW,CAAC,CAAC,CAAC,EAAE,GAChB;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACxC,CAAC,CAAC"}
@@ -36,9 +36,14 @@ export interface Feedback {
36
36
  export interface BaseActionModal {
37
37
  /**
38
38
  * Modal header title.
39
+ * Either a static title (text required, id never) or a dynamic title (id required, text never)
39
40
  */
40
41
  title?: {
41
42
  text: string;
43
+ id?: never;
44
+ } | {
45
+ id: string;
46
+ text?: never;
42
47
  };
43
48
  /**
44
49
  * Modal action buttons configuration.
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/types/actions/base.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,MAAM,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QAC1B;;WAEG;QACH,MAAM,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;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