datocms-plugin-sdk 1.1.1 → 2.0.1
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.
- package/dist/cjs/connect.js +75 -214
- package/dist/cjs/connect.js.map +1 -1
- package/dist/cjs/{types.js → ctx/base.js} +1 -1
- package/dist/cjs/ctx/base.js.map +1 -0
- package/dist/cjs/ctx/commonExtras/field.js +3 -0
- package/dist/cjs/ctx/commonExtras/field.js.map +1 -0
- package/dist/cjs/ctx/commonExtras/itemForm.js +3 -0
- package/dist/cjs/ctx/commonExtras/itemForm.js.map +1 -0
- package/dist/cjs/ctx/commonExtras/sizing.js +3 -0
- package/dist/cjs/ctx/commonExtras/sizing.js.map +1 -0
- package/dist/cjs/ctx/pluginFrame.js +3 -0
- package/dist/cjs/ctx/pluginFrame.js.map +1 -0
- package/dist/cjs/hooks/assetSources.js +3 -0
- package/dist/cjs/hooks/assetSources.js.map +1 -0
- package/dist/cjs/hooks/buildItemPresentationInfo.js +3 -0
- package/dist/cjs/hooks/buildItemPresentationInfo.js.map +1 -0
- package/dist/cjs/hooks/contentAreaSidebarItems.js +3 -0
- package/dist/cjs/hooks/contentAreaSidebarItems.js.map +1 -0
- package/dist/cjs/hooks/customBlockStylesForStructuredTextField.js +3 -0
- package/dist/cjs/hooks/customBlockStylesForStructuredTextField.js.map +1 -0
- package/dist/cjs/hooks/customMarksForStructuredTextField.js +3 -0
- package/dist/cjs/hooks/customMarksForStructuredTextField.js.map +1 -0
- package/dist/cjs/hooks/executeFieldDropdownAction.js +3 -0
- package/dist/cjs/hooks/executeFieldDropdownAction.js.map +1 -0
- package/dist/cjs/hooks/executeItemFormDropdownAction.js +3 -0
- package/dist/cjs/hooks/executeItemFormDropdownAction.js.map +1 -0
- package/dist/cjs/hooks/executeItemsDropdownAction.js +3 -0
- package/dist/cjs/hooks/executeItemsDropdownAction.js.map +1 -0
- package/dist/cjs/hooks/executeUploadsDropdownAction.js +3 -0
- package/dist/cjs/hooks/executeUploadsDropdownAction.js.map +1 -0
- package/dist/cjs/hooks/fieldDropdownActions.js +3 -0
- package/dist/cjs/hooks/fieldDropdownActions.js.map +1 -0
- package/dist/cjs/hooks/initialLocationQueryForItemSelector.js +3 -0
- package/dist/cjs/hooks/initialLocationQueryForItemSelector.js.map +1 -0
- package/dist/cjs/hooks/itemCollectionOutlets.js +3 -0
- package/dist/cjs/hooks/itemCollectionOutlets.js.map +1 -0
- package/dist/cjs/hooks/itemFormDropdownActions.js +3 -0
- package/dist/cjs/hooks/itemFormDropdownActions.js.map +1 -0
- package/dist/cjs/hooks/itemFormOutlets.js +3 -0
- package/dist/cjs/hooks/itemFormOutlets.js.map +1 -0
- package/dist/cjs/hooks/itemFormSidebarPanels.js +3 -0
- package/dist/cjs/hooks/itemFormSidebarPanels.js.map +1 -0
- package/dist/cjs/hooks/itemFormSidebars.js +3 -0
- package/dist/cjs/hooks/itemFormSidebars.js.map +1 -0
- package/dist/cjs/hooks/itemsDropdownActions.js +3 -0
- package/dist/cjs/hooks/itemsDropdownActions.js.map +1 -0
- package/dist/cjs/hooks/mainNavigationTabs.js +3 -0
- package/dist/cjs/hooks/mainNavigationTabs.js.map +1 -0
- package/dist/cjs/hooks/manualFieldExtensions.js +3 -0
- package/dist/cjs/hooks/manualFieldExtensions.js.map +1 -0
- package/dist/cjs/hooks/onBeforeItemUpsert.js +3 -0
- package/dist/cjs/hooks/onBeforeItemUpsert.js.map +1 -0
- package/dist/cjs/hooks/onBeforeItemsDestroy.js +3 -0
- package/dist/cjs/hooks/onBeforeItemsDestroy.js.map +1 -0
- package/dist/cjs/hooks/onBeforeItemsPublish.js +3 -0
- package/dist/cjs/hooks/onBeforeItemsPublish.js.map +1 -0
- package/dist/cjs/hooks/onBeforeItemsUnpublish.js +3 -0
- package/dist/cjs/hooks/onBeforeItemsUnpublish.js.map +1 -0
- package/dist/cjs/hooks/onBoot.js +3 -0
- package/dist/cjs/hooks/onBoot.js.map +1 -0
- package/dist/cjs/hooks/overrideFieldExtensions.js +3 -0
- package/dist/cjs/hooks/overrideFieldExtensions.js.map +1 -0
- package/dist/cjs/hooks/renderAssetSource.js +11 -0
- package/dist/cjs/hooks/renderAssetSource.js.map +1 -0
- package/dist/cjs/hooks/renderConfigScreen.js +11 -0
- package/dist/cjs/hooks/renderConfigScreen.js.map +1 -0
- package/dist/cjs/hooks/renderFieldExtension.js +11 -0
- package/dist/cjs/hooks/renderFieldExtension.js.map +1 -0
- package/dist/cjs/hooks/renderItemCollectionOutlet.js +11 -0
- package/dist/cjs/hooks/renderItemCollectionOutlet.js.map +1 -0
- package/dist/cjs/hooks/renderItemFormOutlet.js +11 -0
- package/dist/cjs/hooks/renderItemFormOutlet.js.map +1 -0
- package/dist/cjs/hooks/renderItemFormSidebar.js +11 -0
- package/dist/cjs/hooks/renderItemFormSidebar.js.map +1 -0
- package/dist/cjs/hooks/renderItemFormSidebarPanel.js +11 -0
- package/dist/cjs/hooks/renderItemFormSidebarPanel.js.map +1 -0
- package/dist/cjs/hooks/renderManualFieldExtensionConfigScreen.js +11 -0
- package/dist/cjs/hooks/renderManualFieldExtensionConfigScreen.js.map +1 -0
- package/dist/cjs/hooks/renderModal.js +11 -0
- package/dist/cjs/hooks/renderModal.js.map +1 -0
- package/dist/cjs/hooks/renderPage.js +11 -0
- package/dist/cjs/hooks/renderPage.js.map +1 -0
- package/dist/cjs/hooks/renderUploadSidebar.js +11 -0
- package/dist/cjs/hooks/renderUploadSidebar.js.map +1 -0
- package/dist/cjs/hooks/renderUploadSidebarPanel.js +11 -0
- package/dist/cjs/hooks/renderUploadSidebarPanel.js.map +1 -0
- package/dist/cjs/hooks/settingsAreaSidebarItemGroups.js +3 -0
- package/dist/cjs/hooks/settingsAreaSidebarItemGroups.js.map +1 -0
- package/dist/cjs/hooks/uploadSidebarPanels.js +3 -0
- package/dist/cjs/hooks/uploadSidebarPanels.js.map +1 -0
- package/dist/cjs/hooks/uploadSidebars.js +3 -0
- package/dist/cjs/hooks/uploadSidebars.js.map +1 -0
- package/dist/cjs/hooks/uploadsDropdownActions.js +3 -0
- package/dist/cjs/hooks/uploadsDropdownActions.js.map +1 -0
- package/dist/cjs/hooks/validateManualFieldExtensionParameters.js +3 -0
- package/dist/cjs/hooks/validateManualFieldExtensionParameters.js.map +1 -0
- package/dist/cjs/icon.js +3 -0
- package/dist/cjs/icon.js.map +1 -0
- package/dist/cjs/index.js +46 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/manifest.js +3172 -0
- package/dist/cjs/manifest.js.map +1 -0
- package/dist/cjs/manifestTypes.js +3 -0
- package/dist/cjs/manifestTypes.js.map +1 -0
- package/dist/cjs/shared.js +3 -0
- package/dist/cjs/shared.js.map +1 -0
- package/dist/cjs/utils.js +136 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/connect.d.ts +44 -244
- package/dist/esm/connect.js +74 -212
- package/dist/esm/connect.js.map +1 -1
- package/dist/esm/ctx/base.d.ts +684 -0
- package/dist/esm/ctx/base.js +2 -0
- package/dist/esm/ctx/base.js.map +1 -0
- package/dist/esm/ctx/commonExtras/field.d.ts +29 -0
- package/dist/esm/ctx/commonExtras/field.js +2 -0
- package/dist/esm/ctx/commonExtras/field.js.map +1 -0
- package/dist/esm/ctx/commonExtras/itemForm.d.ts +148 -0
- package/dist/esm/ctx/commonExtras/itemForm.js +2 -0
- package/dist/esm/ctx/commonExtras/itemForm.js.map +1 -0
- package/dist/esm/ctx/commonExtras/sizing.d.ts +23 -0
- package/dist/esm/ctx/commonExtras/sizing.js +2 -0
- package/dist/esm/ctx/commonExtras/sizing.js.map +1 -0
- package/dist/esm/ctx/pluginFrame.d.ts +12 -0
- package/dist/esm/ctx/pluginFrame.js +2 -0
- package/dist/esm/ctx/pluginFrame.js.map +1 -0
- package/dist/esm/hooks/assetSources.d.ts +42 -0
- package/dist/esm/hooks/assetSources.js +2 -0
- package/dist/esm/hooks/assetSources.js.map +1 -0
- package/dist/esm/hooks/buildItemPresentationInfo.d.ts +29 -0
- package/dist/esm/hooks/buildItemPresentationInfo.js +2 -0
- package/dist/esm/hooks/buildItemPresentationInfo.js.map +1 -0
- package/dist/esm/hooks/contentAreaSidebarItems.d.ts +40 -0
- package/dist/esm/hooks/contentAreaSidebarItems.js +2 -0
- package/dist/esm/hooks/contentAreaSidebarItems.js.map +1 -0
- package/dist/esm/hooks/customBlockStylesForStructuredTextField.d.ts +36 -0
- package/dist/esm/hooks/customBlockStylesForStructuredTextField.js +2 -0
- package/dist/esm/hooks/customBlockStylesForStructuredTextField.js.map +1 -0
- package/dist/esm/hooks/customMarksForStructuredTextField.d.ts +57 -0
- package/dist/esm/hooks/customMarksForStructuredTextField.js +2 -0
- package/dist/esm/hooks/customMarksForStructuredTextField.js.map +1 -0
- package/dist/esm/hooks/executeFieldDropdownAction.d.ts +17 -0
- package/dist/esm/hooks/executeFieldDropdownAction.js +2 -0
- package/dist/esm/hooks/executeFieldDropdownAction.js.map +1 -0
- package/dist/esm/hooks/executeItemFormDropdownAction.d.ts +16 -0
- package/dist/esm/hooks/executeItemFormDropdownAction.js +2 -0
- package/dist/esm/hooks/executeItemFormDropdownAction.js.map +1 -0
- package/dist/esm/hooks/executeItemsDropdownAction.d.ts +20 -0
- package/dist/esm/hooks/executeItemsDropdownAction.js +2 -0
- package/dist/esm/hooks/executeItemsDropdownAction.js.map +1 -0
- package/dist/esm/hooks/executeUploadsDropdownAction.d.ts +20 -0
- package/dist/esm/hooks/executeUploadsDropdownAction.js +2 -0
- package/dist/esm/hooks/executeUploadsDropdownAction.js.map +1 -0
- package/dist/esm/hooks/fieldDropdownActions.d.ts +20 -0
- package/dist/esm/hooks/fieldDropdownActions.js +2 -0
- package/dist/esm/hooks/fieldDropdownActions.js.map +1 -0
- package/dist/esm/hooks/initialLocationQueryForItemSelector.d.ts +27 -0
- package/dist/esm/hooks/initialLocationQueryForItemSelector.js +2 -0
- package/dist/esm/hooks/initialLocationQueryForItemSelector.js.map +1 -0
- package/dist/esm/hooks/itemCollectionOutlets.d.ts +31 -0
- package/dist/esm/hooks/itemCollectionOutlets.js +2 -0
- package/dist/esm/hooks/itemCollectionOutlets.js.map +1 -0
- package/dist/esm/hooks/itemFormDropdownActions.d.ts +20 -0
- package/dist/esm/hooks/itemFormDropdownActions.js +2 -0
- package/dist/esm/hooks/itemFormDropdownActions.js.map +1 -0
- package/dist/esm/hooks/itemFormOutlets.d.ts +30 -0
- package/dist/esm/hooks/itemFormOutlets.js +2 -0
- package/dist/esm/hooks/itemFormOutlets.js.map +1 -0
- package/dist/esm/hooks/itemFormSidebarPanels.d.ts +48 -0
- package/dist/esm/hooks/itemFormSidebarPanels.js +2 -0
- package/dist/esm/hooks/itemFormSidebarPanels.js.map +1 -0
- package/dist/esm/hooks/itemFormSidebars.d.ts +38 -0
- package/dist/esm/hooks/itemFormSidebars.js +2 -0
- package/dist/esm/hooks/itemFormSidebars.js.map +1 -0
- package/dist/esm/hooks/itemsDropdownActions.d.ts +23 -0
- package/dist/esm/hooks/itemsDropdownActions.js +2 -0
- package/dist/esm/hooks/itemsDropdownActions.js.map +1 -0
- package/dist/esm/hooks/mainNavigationTabs.d.ts +44 -0
- package/dist/esm/hooks/mainNavigationTabs.js +2 -0
- package/dist/esm/hooks/mainNavigationTabs.js.map +1 -0
- package/dist/esm/hooks/manualFieldExtensions.d.ts +59 -0
- package/dist/esm/hooks/manualFieldExtensions.js +2 -0
- package/dist/esm/hooks/manualFieldExtensions.js.map +1 -0
- package/dist/esm/hooks/onBeforeItemUpsert.d.ts +16 -0
- package/dist/esm/hooks/onBeforeItemUpsert.js +2 -0
- package/dist/esm/hooks/onBeforeItemUpsert.js.map +1 -0
- package/dist/esm/hooks/onBeforeItemsDestroy.d.ts +15 -0
- package/dist/esm/hooks/onBeforeItemsDestroy.js +2 -0
- package/dist/esm/hooks/onBeforeItemsDestroy.js.map +1 -0
- package/dist/esm/hooks/onBeforeItemsPublish.d.ts +15 -0
- package/dist/esm/hooks/onBeforeItemsPublish.js +2 -0
- package/dist/esm/hooks/onBeforeItemsPublish.js.map +1 -0
- package/dist/esm/hooks/onBeforeItemsUnpublish.d.ts +15 -0
- package/dist/esm/hooks/onBeforeItemsUnpublish.js +2 -0
- package/dist/esm/hooks/onBeforeItemsUnpublish.js.map +1 -0
- package/dist/esm/hooks/onBoot.d.ts +11 -0
- package/dist/esm/hooks/onBoot.js +2 -0
- package/dist/esm/hooks/onBoot.js.map +1 -0
- package/dist/esm/hooks/overrideFieldExtensions.d.ts +88 -0
- package/dist/esm/hooks/overrideFieldExtensions.js +2 -0
- package/dist/esm/hooks/overrideFieldExtensions.js.map +1 -0
- package/dist/esm/hooks/renderAssetSource.d.ts +98 -0
- package/dist/esm/hooks/renderAssetSource.js +8 -0
- package/dist/esm/hooks/renderAssetSource.js.map +1 -0
- package/dist/esm/hooks/renderConfigScreen.d.ts +12 -0
- package/dist/esm/hooks/renderConfigScreen.js +8 -0
- package/dist/esm/hooks/renderConfigScreen.js.map +1 -0
- package/dist/esm/hooks/renderFieldExtension.d.ts +20 -0
- package/dist/esm/hooks/renderFieldExtension.js +8 -0
- package/dist/esm/hooks/renderFieldExtension.js.map +1 -0
- package/dist/esm/hooks/renderItemCollectionOutlet.d.ts +15 -0
- package/dist/esm/hooks/renderItemCollectionOutlet.js +8 -0
- package/dist/esm/hooks/renderItemCollectionOutlet.js.map +1 -0
- package/dist/esm/hooks/renderItemFormOutlet.d.ts +16 -0
- package/dist/esm/hooks/renderItemFormOutlet.js +8 -0
- package/dist/esm/hooks/renderItemFormOutlet.js.map +1 -0
- package/dist/esm/hooks/renderItemFormSidebar.d.ts +21 -0
- package/dist/esm/hooks/renderItemFormSidebar.js +8 -0
- package/dist/esm/hooks/renderItemFormSidebar.js.map +1 -0
- package/dist/esm/hooks/renderItemFormSidebarPanel.d.ts +21 -0
- package/dist/esm/hooks/renderItemFormSidebarPanel.js +8 -0
- package/dist/esm/hooks/renderItemFormSidebarPanel.js.map +1 -0
- package/dist/esm/hooks/renderManualFieldExtensionConfigScreen.d.ts +55 -0
- package/dist/esm/hooks/renderManualFieldExtensionConfigScreen.js +8 -0
- package/dist/esm/hooks/renderManualFieldExtensionConfigScreen.js.map +1 -0
- package/dist/esm/hooks/renderModal.d.ts +37 -0
- package/dist/esm/hooks/renderModal.js +8 -0
- package/dist/esm/hooks/renderModal.js.map +1 -0
- package/dist/esm/hooks/renderPage.d.ts +16 -0
- package/dist/esm/hooks/renderPage.js +8 -0
- package/dist/esm/hooks/renderPage.js.map +1 -0
- package/dist/esm/hooks/renderUploadSidebar.d.ts +25 -0
- package/dist/esm/hooks/renderUploadSidebar.js +8 -0
- package/dist/esm/hooks/renderUploadSidebar.js.map +1 -0
- package/dist/esm/hooks/renderUploadSidebarPanel.d.ts +25 -0
- package/dist/esm/hooks/renderUploadSidebarPanel.js +8 -0
- package/dist/esm/hooks/renderUploadSidebarPanel.js.map +1 -0
- package/dist/esm/hooks/settingsAreaSidebarItemGroups.d.ts +53 -0
- package/dist/esm/hooks/settingsAreaSidebarItemGroups.js +2 -0
- package/dist/esm/hooks/settingsAreaSidebarItemGroups.js.map +1 -0
- package/dist/esm/hooks/uploadSidebarPanels.d.ts +48 -0
- package/dist/esm/hooks/uploadSidebarPanels.js +2 -0
- package/dist/esm/hooks/uploadSidebarPanels.js.map +1 -0
- package/dist/esm/hooks/uploadSidebars.d.ts +35 -0
- package/dist/esm/hooks/uploadSidebars.js +2 -0
- package/dist/esm/hooks/uploadSidebars.js.map +1 -0
- package/dist/esm/hooks/uploadsDropdownActions.d.ts +19 -0
- package/dist/esm/hooks/uploadsDropdownActions.js +2 -0
- package/dist/esm/hooks/uploadsDropdownActions.js.map +1 -0
- package/dist/esm/hooks/validateManualFieldExtensionParameters.d.ts +9 -0
- package/dist/esm/hooks/validateManualFieldExtensionParameters.js +2 -0
- package/dist/esm/hooks/validateManualFieldExtensionParameters.js.map +1 -0
- package/dist/esm/icon.d.ts +6 -0
- package/dist/esm/icon.js +2 -0
- package/dist/esm/icon.js.map +1 -0
- package/dist/esm/index.d.ts +57 -12
- package/dist/esm/index.js +46 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/manifest.d.ts +2 -0
- package/dist/esm/manifest.js +3169 -0
- package/dist/esm/manifest.js.map +1 -0
- package/dist/esm/manifestTypes.d.ts +146 -0
- package/dist/esm/manifestTypes.js +2 -0
- package/dist/esm/manifestTypes.js.map +1 -0
- package/dist/esm/shared.d.ts +56 -0
- package/dist/esm/shared.js +2 -0
- package/dist/esm/shared.js.map +1 -0
- package/dist/esm/utils.d.ts +31 -0
- package/dist/esm/utils.js +129 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/types/connect.d.ts +44 -244
- package/dist/types/ctx/base.d.ts +684 -0
- package/dist/types/ctx/commonExtras/field.d.ts +29 -0
- package/dist/types/ctx/commonExtras/itemForm.d.ts +148 -0
- package/dist/types/ctx/commonExtras/sizing.d.ts +23 -0
- package/dist/types/ctx/pluginFrame.d.ts +12 -0
- package/dist/types/hooks/assetSources.d.ts +42 -0
- package/dist/types/hooks/buildItemPresentationInfo.d.ts +29 -0
- package/dist/types/hooks/contentAreaSidebarItems.d.ts +40 -0
- package/dist/types/hooks/customBlockStylesForStructuredTextField.d.ts +36 -0
- package/dist/types/hooks/customMarksForStructuredTextField.d.ts +57 -0
- package/dist/types/hooks/executeFieldDropdownAction.d.ts +17 -0
- package/dist/types/hooks/executeItemFormDropdownAction.d.ts +16 -0
- package/dist/types/hooks/executeItemsDropdownAction.d.ts +20 -0
- package/dist/types/hooks/executeUploadsDropdownAction.d.ts +20 -0
- package/dist/types/hooks/fieldDropdownActions.d.ts +20 -0
- package/dist/types/hooks/initialLocationQueryForItemSelector.d.ts +27 -0
- package/dist/types/hooks/itemCollectionOutlets.d.ts +31 -0
- package/dist/types/hooks/itemFormDropdownActions.d.ts +20 -0
- package/dist/types/hooks/itemFormOutlets.d.ts +30 -0
- package/dist/types/hooks/itemFormSidebarPanels.d.ts +48 -0
- package/dist/types/hooks/itemFormSidebars.d.ts +38 -0
- package/dist/types/hooks/itemsDropdownActions.d.ts +23 -0
- package/dist/types/hooks/mainNavigationTabs.d.ts +44 -0
- package/dist/types/hooks/manualFieldExtensions.d.ts +59 -0
- package/dist/types/hooks/onBeforeItemUpsert.d.ts +16 -0
- package/dist/types/hooks/onBeforeItemsDestroy.d.ts +15 -0
- package/dist/types/hooks/onBeforeItemsPublish.d.ts +15 -0
- package/dist/types/hooks/onBeforeItemsUnpublish.d.ts +15 -0
- package/dist/types/hooks/onBoot.d.ts +11 -0
- package/dist/types/hooks/overrideFieldExtensions.d.ts +88 -0
- package/dist/types/hooks/renderAssetSource.d.ts +98 -0
- package/dist/types/hooks/renderConfigScreen.d.ts +12 -0
- package/dist/types/hooks/renderFieldExtension.d.ts +20 -0
- package/dist/types/hooks/renderItemCollectionOutlet.d.ts +15 -0
- package/dist/types/hooks/renderItemFormOutlet.d.ts +16 -0
- package/dist/types/hooks/renderItemFormSidebar.d.ts +21 -0
- package/dist/types/hooks/renderItemFormSidebarPanel.d.ts +21 -0
- package/dist/types/hooks/renderManualFieldExtensionConfigScreen.d.ts +55 -0
- package/dist/types/hooks/renderModal.d.ts +37 -0
- package/dist/types/hooks/renderPage.d.ts +16 -0
- package/dist/types/hooks/renderUploadSidebar.d.ts +25 -0
- package/dist/types/hooks/renderUploadSidebarPanel.d.ts +25 -0
- package/dist/types/hooks/settingsAreaSidebarItemGroups.d.ts +53 -0
- package/dist/types/hooks/uploadSidebarPanels.d.ts +48 -0
- package/dist/types/hooks/uploadSidebars.d.ts +35 -0
- package/dist/types/hooks/uploadsDropdownActions.d.ts +19 -0
- package/dist/types/hooks/validateManualFieldExtensionParameters.d.ts +9 -0
- package/dist/types/icon.d.ts +6 -0
- package/dist/types/index.d.ts +57 -12
- package/dist/types/manifest.d.ts +2 -0
- package/dist/types/manifestTypes.d.ts +146 -0
- package/dist/types/shared.d.ts +56 -0
- package/dist/types/utils.d.ts +31 -0
- package/manifest.json +3168 -0
- package/package.json +7 -6
- package/src/connect.ts +207 -709
- package/src/ctx/base.ts +746 -0
- package/src/ctx/commonExtras/field.ts +27 -0
- package/src/ctx/commonExtras/itemForm.ts +155 -0
- package/src/ctx/commonExtras/sizing.ts +27 -0
- package/src/ctx/pluginFrame.ts +39 -0
- package/src/hooks/assetSources.ts +45 -0
- package/src/hooks/buildItemPresentationInfo.ts +35 -0
- package/src/hooks/contentAreaSidebarItems.ts +45 -0
- package/src/hooks/customBlockStylesForStructuredTextField.ts +42 -0
- package/src/hooks/customMarksForStructuredTextField.ts +64 -0
- package/src/hooks/executeFieldDropdownAction.ts +28 -0
- package/src/hooks/executeItemFormDropdownAction.ts +26 -0
- package/src/hooks/executeItemsDropdownAction.ts +24 -0
- package/src/hooks/executeUploadsDropdownAction.ts +24 -0
- package/src/hooks/fieldDropdownActions.ts +27 -0
- package/src/hooks/initialLocationQueryForItemSelector.ts +35 -0
- package/src/hooks/itemCollectionOutlets.ts +37 -0
- package/src/hooks/itemFormDropdownActions.ts +27 -0
- package/src/hooks/itemFormOutlets.ts +36 -0
- package/src/hooks/itemFormSidebarPanels.ts +54 -0
- package/src/hooks/itemFormSidebars.ts +44 -0
- package/src/hooks/itemsDropdownActions.ts +28 -0
- package/src/hooks/mainNavigationTabs.ts +47 -0
- package/src/hooks/manualFieldExtensions.ts +82 -0
- package/src/hooks/onBeforeItemUpsert.ts +21 -0
- package/src/hooks/onBeforeItemsDestroy.ts +20 -0
- package/src/hooks/onBeforeItemsPublish.ts +20 -0
- package/src/hooks/onBeforeItemsUnpublish.ts +20 -0
- package/src/hooks/onBoot.ts +13 -0
- package/src/hooks/overrideFieldExtensions.ts +95 -0
- package/src/hooks/renderAssetSource.ts +119 -0
- package/src/hooks/renderConfigScreen.ts +27 -0
- package/src/hooks/renderFieldExtension.ts +46 -0
- package/src/hooks/renderItemCollectionOutlet.ts +35 -0
- package/src/hooks/renderItemFormOutlet.ts +40 -0
- package/src/hooks/renderItemFormSidebar.ts +45 -0
- package/src/hooks/renderItemFormSidebarPanel.ts +46 -0
- package/src/hooks/renderManualFieldExtensionConfigScreen.ts +83 -0
- package/src/hooks/renderModal.ts +54 -0
- package/src/hooks/renderPage.ts +33 -0
- package/src/hooks/renderUploadSidebar.ts +44 -0
- package/src/hooks/renderUploadSidebarPanel.ts +47 -0
- package/src/hooks/settingsAreaSidebarItemGroups.ts +59 -0
- package/src/hooks/uploadSidebarPanels.ts +59 -0
- package/src/hooks/uploadSidebars.ts +38 -0
- package/src/hooks/uploadsDropdownActions.ts +22 -0
- package/src/hooks/validateManualFieldExtensionParameters.ts +12 -0
- package/src/{types.ts → icon.ts} +0 -1739
- package/src/index.ts +49 -4
- package/src/manifest.ts +3375 -0
- package/src/manifestTypes.ts +153 -0
- package/src/shared.ts +67 -0
- package/src/utils.ts +253 -0
- package/dist/cjs/guards.js +0 -19
- package/dist/cjs/guards.js.map +0 -1
- package/dist/cjs/types.js.map +0 -1
- package/dist/esm/guards.d.ts +0 -37
- package/dist/esm/guards.js +0 -16
- package/dist/esm/guards.js.map +0 -1
- package/dist/esm/types.d.ts +0 -1569
- package/dist/esm/types.js +0 -2
- package/dist/esm/types.js.map +0 -1
- package/dist/types/guards.d.ts +0 -37
- package/dist/types/types.d.ts +0 -1569
- package/src/guards.ts +0 -51
- package/types.json +0 -37437
package/dist/types/connect.d.ts
CHANGED
|
@@ -1,245 +1,45 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import type { AssetSourcesHook } from './hooks/assetSources';
|
|
2
|
+
import type { BuildItemPresentationInfoHook } from './hooks/buildItemPresentationInfo';
|
|
3
|
+
import type { ContentAreaSidebarItemsHook } from './hooks/contentAreaSidebarItems';
|
|
4
|
+
import type { CustomBlockStylesForStructuredTextFieldHook } from './hooks/customBlockStylesForStructuredTextField';
|
|
5
|
+
import type { CustomMarksForStructuredTextFieldHook } from './hooks/customMarksForStructuredTextField';
|
|
6
|
+
import type { ExecuteFieldDropdownActionHook } from './hooks/executeFieldDropdownAction';
|
|
7
|
+
import type { ExecuteItemFormDropdownActionHook } from './hooks/executeItemFormDropdownAction';
|
|
8
|
+
import type { ExecuteItemsDropdownActionHook } from './hooks/executeItemsDropdownAction';
|
|
9
|
+
import type { ExecuteUploadsDropdownActionHook } from './hooks/executeUploadsDropdownAction';
|
|
10
|
+
import type { FieldDropdownActionsHook } from './hooks/fieldDropdownActions';
|
|
11
|
+
import type { InitialLocationQueryForItemSelectorHook } from './hooks/initialLocationQueryForItemSelector';
|
|
12
|
+
import type { ItemCollectionOutletsHook } from './hooks/itemCollectionOutlets';
|
|
13
|
+
import type { ItemFormDropdownActionsHook } from './hooks/itemFormDropdownActions';
|
|
14
|
+
import type { ItemFormOutletsHook } from './hooks/itemFormOutlets';
|
|
15
|
+
import type { ItemFormSidebarPanelsHook } from './hooks/itemFormSidebarPanels';
|
|
16
|
+
import type { ItemFormSidebarsHook } from './hooks/itemFormSidebars';
|
|
17
|
+
import type { ItemsDropdownActionsHook } from './hooks/itemsDropdownActions';
|
|
18
|
+
import type { MainNavigationTabsHook } from './hooks/mainNavigationTabs';
|
|
19
|
+
import type { ManualFieldExtensionsHook } from './hooks/manualFieldExtensions';
|
|
20
|
+
import type { OnBeforeItemUpsertHook } from './hooks/onBeforeItemUpsert';
|
|
21
|
+
import type { OnBeforeItemsDestroyHook } from './hooks/onBeforeItemsDestroy';
|
|
22
|
+
import type { OnBeforeItemsPublishHook } from './hooks/onBeforeItemsPublish';
|
|
23
|
+
import type { OnBeforeItemsUnpublishHook } from './hooks/onBeforeItemsUnpublish';
|
|
24
|
+
import type { OnBootHook } from './hooks/onBoot';
|
|
25
|
+
import type { OverrideFieldExtensionsHook } from './hooks/overrideFieldExtensions';
|
|
26
|
+
import { RenderAssetSourceHook } from './hooks/renderAssetSource';
|
|
27
|
+
import { RenderConfigScreenHook } from './hooks/renderConfigScreen';
|
|
28
|
+
import { RenderFieldExtensionHook } from './hooks/renderFieldExtension';
|
|
29
|
+
import { RenderItemCollectionOutletHook } from './hooks/renderItemCollectionOutlet';
|
|
30
|
+
import { RenderItemFormOutletHook } from './hooks/renderItemFormOutlet';
|
|
31
|
+
import { RenderItemFormSidebarHook } from './hooks/renderItemFormSidebar';
|
|
32
|
+
import { RenderItemFormSidebarPanelHook } from './hooks/renderItemFormSidebarPanel';
|
|
33
|
+
import { RenderManualFieldExtensionConfigScreenHook } from './hooks/renderManualFieldExtensionConfigScreen';
|
|
34
|
+
import { RenderModalHook } from './hooks/renderModal';
|
|
35
|
+
import { RenderPageHook } from './hooks/renderPage';
|
|
36
|
+
import { RenderUploadSidebarHook } from './hooks/renderUploadSidebar';
|
|
37
|
+
import { RenderUploadSidebarPanelHook } from './hooks/renderUploadSidebarPanel';
|
|
38
|
+
import type { SettingsAreaSidebarItemGroupsHook } from './hooks/settingsAreaSidebarItemGroups';
|
|
39
|
+
import { UploadSidebarPanelsHook } from './hooks/uploadSidebarPanels';
|
|
40
|
+
import { UploadSidebarsHook } from './hooks/uploadSidebars';
|
|
41
|
+
import type { UploadsDropdownActionsHook } from './hooks/uploadsDropdownActions';
|
|
42
|
+
import type { ValidateManualFieldExtensionParametersHook } from './hooks/validateManualFieldExtensionParameters';
|
|
43
43
|
/** The full options you can pass to the `connect` function */
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
* This function will be called once at boot time and can be used to perform
|
|
47
|
-
* ie. some initial integrity checks on the configuration.
|
|
48
|
-
*
|
|
49
|
-
* @tag boot
|
|
50
|
-
*/
|
|
51
|
-
onBoot: (ctx: OnBootCtx) => void;
|
|
52
|
-
/**
|
|
53
|
-
* This function will be called before destroying records. You can stop the
|
|
54
|
-
* action by returning `false`
|
|
55
|
-
*
|
|
56
|
-
* @tag beforeHooks
|
|
57
|
-
*/
|
|
58
|
-
onBeforeItemsDestroy: (items: Item[], ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* This function will be called before publishing records. You can stop the
|
|
61
|
-
* action by returning `false`
|
|
62
|
-
*
|
|
63
|
-
* @tag beforeHooks
|
|
64
|
-
*/
|
|
65
|
-
onBeforeItemsPublish: (items: Item[], ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
66
|
-
/**
|
|
67
|
-
* This function will be called before unpublishing records. You can stop the
|
|
68
|
-
* action by returning `false`
|
|
69
|
-
*
|
|
70
|
-
* @tag beforeHooks
|
|
71
|
-
*/
|
|
72
|
-
onBeforeItemsUnpublish: (items: Item[], ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
73
|
-
/**
|
|
74
|
-
* This function will be called before saving a new version of a record. You
|
|
75
|
-
* can stop the action by returning `false`
|
|
76
|
-
*
|
|
77
|
-
* @tag beforeHooks
|
|
78
|
-
*/
|
|
79
|
-
onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Use this function to customize the presentation of a record in records
|
|
82
|
-
* collections and "Single link" or "Multiple links" field
|
|
83
|
-
*
|
|
84
|
-
* @tag presentation
|
|
85
|
-
*/
|
|
86
|
-
buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
|
|
87
|
-
/**
|
|
88
|
-
* Use this function to customize the initial filters when opening an record
|
|
89
|
-
* selector via a "Single link" or "Multiple links" field
|
|
90
|
-
*
|
|
91
|
-
* @tag locationQuery
|
|
92
|
-
*/
|
|
93
|
-
initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
|
|
94
|
-
/**
|
|
95
|
-
* Use this function to declare new tabs you want to add in the top-bar of the
|
|
96
|
-
* UI
|
|
97
|
-
*
|
|
98
|
-
* @tag pages
|
|
99
|
-
*/
|
|
100
|
-
mainNavigationTabs: (ctx: IntentCtx) => MainNavigationTab[];
|
|
101
|
-
/**
|
|
102
|
-
* Use this function to declare new navigation sections in the Settings Area
|
|
103
|
-
* sidebar
|
|
104
|
-
*
|
|
105
|
-
* @tag pages
|
|
106
|
-
*/
|
|
107
|
-
settingsAreaSidebarItemGroups: (ctx: IntentCtx) => SettingsAreaSidebarItemGroup[];
|
|
108
|
-
/**
|
|
109
|
-
* Use this function to declare new navigation items in the Content Area
|
|
110
|
-
* sidebar
|
|
111
|
-
*
|
|
112
|
-
* @tag pages
|
|
113
|
-
*/
|
|
114
|
-
contentAreaSidebarItems: (ctx: IntentCtx) => ContentAreaSidebarItem[];
|
|
115
|
-
/**
|
|
116
|
-
* Use this function to declare new field extensions that users will be able
|
|
117
|
-
* to install manually in some field
|
|
118
|
-
*
|
|
119
|
-
* @tag manualFieldExtensions
|
|
120
|
-
*/
|
|
121
|
-
manualFieldExtensions: (ctx: IntentCtx) => ManualFieldExtension[];
|
|
122
|
-
/**
|
|
123
|
-
* Use this function to declare additional sources to be shown when users want
|
|
124
|
-
* to upload new assets
|
|
125
|
-
*
|
|
126
|
-
* @tag assetSources
|
|
127
|
-
*/
|
|
128
|
-
assetSources: (ctx: IntentCtx) => AssetSource[] | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Use this function to declare new sidebar panels to be shown when the user
|
|
131
|
-
* edits records of a particular model
|
|
132
|
-
*
|
|
133
|
-
* @tag sidebarPanels
|
|
134
|
-
*/
|
|
135
|
-
itemFormSidebarPanels: (itemType: ItemType, ctx: IntentCtx) => ItemFormSidebarPanel[];
|
|
136
|
-
/**
|
|
137
|
-
* Use this function to declare new sidebar to be shown when the user edits
|
|
138
|
-
* records of a particular model
|
|
139
|
-
*
|
|
140
|
-
* @tag sidebarPanels
|
|
141
|
-
*/
|
|
142
|
-
itemFormSidebars: (itemType: ItemType, ctx: IntentCtx) => ItemFormSidebar[];
|
|
143
|
-
/**
|
|
144
|
-
* Use this function to declare custom outlets to be shown at the top of the
|
|
145
|
-
* record's editing page
|
|
146
|
-
*
|
|
147
|
-
* @tag itemFormOutlets
|
|
148
|
-
*/
|
|
149
|
-
itemFormOutlets: (itemType: ItemType, ctx: IntentCtx) => ItemFormOutlet[];
|
|
150
|
-
/**
|
|
151
|
-
* Use this function to automatically force one or more field extensions to a
|
|
152
|
-
* particular field
|
|
153
|
-
*
|
|
154
|
-
* @tag forcedFieldExtensions
|
|
155
|
-
*/
|
|
156
|
-
overrideFieldExtensions: (field: Field, ctx: FieldIntentCtx) => FieldExtensionOverride | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* Use this function to define a number of custom marks for a specific
|
|
159
|
-
* Structured Text field
|
|
160
|
-
*
|
|
161
|
-
* @tag structuredText
|
|
162
|
-
*/
|
|
163
|
-
customMarksForStructuredTextField: (field: Field, ctx: FieldIntentCtx) => StructuredTextCustomMark[] | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Use this function to define a number of custom block styles for a specific
|
|
166
|
-
* Structured Text field
|
|
167
|
-
*
|
|
168
|
-
* @tag structuredText
|
|
169
|
-
*/
|
|
170
|
-
customBlockStylesForStructuredTextField: (field: Field, ctx: FieldIntentCtx) => StructuredTextCustomBlockStyle[] | undefined;
|
|
171
|
-
/**
|
|
172
|
-
* This function will be called when the plugin needs to render the plugin's
|
|
173
|
-
* configuration form
|
|
174
|
-
*
|
|
175
|
-
* @tag configScreen
|
|
176
|
-
*/
|
|
177
|
-
renderConfigScreen: (ctx: RenderConfigScreenCtx) => void;
|
|
178
|
-
/**
|
|
179
|
-
* This function will be called when the plugin needs to render a specific
|
|
180
|
-
* page (see the `mainNavigationTabs`, `settingsAreaSidebarItemGroups` and
|
|
181
|
-
* `contentAreaSidebarItems` functions)
|
|
182
|
-
*
|
|
183
|
-
* @tag pages
|
|
184
|
-
*/
|
|
185
|
-
renderPage: (pageId: string, ctx: RenderPageCtx) => void;
|
|
186
|
-
/**
|
|
187
|
-
* This function will be called when the plugin requested to open a modal (see
|
|
188
|
-
* the `openModal` function)
|
|
189
|
-
*
|
|
190
|
-
* @tag modals
|
|
191
|
-
*/
|
|
192
|
-
renderModal: (modalId: string, ctx: RenderModalCtx) => void;
|
|
193
|
-
/**
|
|
194
|
-
* This function will be called when the plugin needs to render a sidebar
|
|
195
|
-
* panel (see the `itemFormSidebarPanels` function)
|
|
196
|
-
*
|
|
197
|
-
* @tag sidebarPanels
|
|
198
|
-
*/
|
|
199
|
-
renderItemFormSidebarPanel: (sidebarPaneId: string, ctx: RenderItemFormSidebarPanelCtx) => void;
|
|
200
|
-
/**
|
|
201
|
-
* This function will be called when the plugin needs to render a sidebar (see
|
|
202
|
-
* the `itemFormSidebars` function)
|
|
203
|
-
*
|
|
204
|
-
* @tag sidebarPanels
|
|
205
|
-
*/
|
|
206
|
-
renderItemFormSidebar: (sidebarId: string, ctx: RenderItemFormSidebarCtx) => void;
|
|
207
|
-
/**
|
|
208
|
-
* This function will be called when the plugin needs to render an outlet (see
|
|
209
|
-
* the `itemFormOutlets` function)
|
|
210
|
-
*
|
|
211
|
-
* @tag itemFormOutlets
|
|
212
|
-
*/
|
|
213
|
-
renderItemFormOutlet: (itemFormOutletId: string, ctx: RenderItemFormOutletCtx) => void;
|
|
214
|
-
/**
|
|
215
|
-
* This function will be called when the user selects one of the plugin's
|
|
216
|
-
* asset sources to upload a new media file.
|
|
217
|
-
*
|
|
218
|
-
* @tag assetSources
|
|
219
|
-
*/
|
|
220
|
-
renderAssetSource: (assetSourceId: string, ctx: RenderAssetSourceCtx) => void;
|
|
221
|
-
/**
|
|
222
|
-
* This function will be called when the plugin needs to render a field
|
|
223
|
-
* extension (see the `manualFieldExtensions` and `overrideFieldExtensions`
|
|
224
|
-
* functions)
|
|
225
|
-
*
|
|
226
|
-
* @tag forcedFieldExtensions
|
|
227
|
-
*/
|
|
228
|
-
renderFieldExtension: (fieldExtensionId: string, ctx: RenderFieldExtensionCtx) => void;
|
|
229
|
-
/**
|
|
230
|
-
* This function will be called when the plugin needs to render the
|
|
231
|
-
* configuration form for installing a field extension inside a particular
|
|
232
|
-
* field
|
|
233
|
-
*
|
|
234
|
-
* @tag manualFieldExtensions
|
|
235
|
-
*/
|
|
236
|
-
renderManualFieldExtensionConfigScreen: (fieldExtensionId: string, ctx: RenderManualFieldExtensionConfigScreenCtx) => void;
|
|
237
|
-
/**
|
|
238
|
-
* This function will be called each time the configuration object changes. It
|
|
239
|
-
* must return an object containing possible validation errors
|
|
240
|
-
*
|
|
241
|
-
* @tag manualFieldExtensions
|
|
242
|
-
*/
|
|
243
|
-
validateManualFieldExtensionParameters: (fieldExtensionId: string, parameters: Record<string, unknown>) => Record<string, unknown> | Promise<Record<string, unknown>>;
|
|
244
|
-
};
|
|
245
|
-
export declare function connect(configuration?: Partial<FullConnectParameters>): Promise<void>;
|
|
44
|
+
export type FullConnectParameters = AssetSourcesHook & BuildItemPresentationInfoHook & ContentAreaSidebarItemsHook & CustomBlockStylesForStructuredTextFieldHook & CustomMarksForStructuredTextFieldHook & ExecuteFieldDropdownActionHook & ExecuteItemFormDropdownActionHook & ExecuteItemsDropdownActionHook & ExecuteUploadsDropdownActionHook & FieldDropdownActionsHook & InitialLocationQueryForItemSelectorHook & ItemCollectionOutletsHook & ItemFormDropdownActionsHook & ItemFormOutletsHook & ItemFormSidebarPanelsHook & ItemFormSidebarsHook & ItemsDropdownActionsHook & MainNavigationTabsHook & ManualFieldExtensionsHook & OnBeforeItemsDestroyHook & OnBeforeItemsPublishHook & OnBeforeItemsUnpublishHook & OnBeforeItemUpsertHook & OnBootHook & OverrideFieldExtensionsHook & RenderAssetSourceHook & RenderConfigScreenHook & RenderFieldExtensionHook & RenderItemCollectionOutletHook & RenderItemFormOutletHook & RenderItemFormSidebarHook & RenderItemFormSidebarPanelHook & RenderManualFieldExtensionConfigScreenHook & RenderModalHook & RenderPageHook & RenderUploadSidebarHook & RenderUploadSidebarPanelHook & SettingsAreaSidebarItemGroupsHook & UploadsDropdownActionsHook & UploadSidebarPanelsHook & UploadSidebarsHook & ValidateManualFieldExtensionParametersHook;
|
|
45
|
+
export declare function connect(rawConfiguration?: Partial<FullConnectParameters>): Promise<void>;
|