@pitcher/js-api 1.19.0 → 1.20.0-beta.14
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/js-api.esm.d.ts +1 -0
- package/js-api.esm.js +3643 -0
- package/js-api.esm.js.map +1 -0
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/api/apps/apps.queries.d.ts +3 -0
- package/lib/api/canvases/canvases.queries.d.ts +15 -0
- package/lib/api/events/events.helpers.d.ts +29 -0
- package/lib/api/events/events.queries.d.ts +10 -0
- package/lib/api/users/users.queries.d.ts +5 -0
- package/lib/apps/browser/composables/useAppEmit.d.ts +3 -0
- package/lib/apps/browser/stores/api.d.ts +646 -0
- package/lib/apps/browser/stores/api.test.d.ts +1 -0
- package/lib/apps/browser/stores/app.d.ts +94 -0
- package/lib/apps/browser/stores/app.test.d.ts +1 -0
- package/lib/apps/browser/stores/upload.d.ts +111 -0
- package/lib/apps/browser/stores/upload.types.d.ts +18 -0
- package/lib/apps/browser/util/file.d.ts +3 -0
- package/lib/apps/canvas-builder/App.helpers.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/Link/Link.util.d.ts +13 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +12724 -0
- package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +12 -0
- package/lib/apps/canvas-builder/composables/useCanvasExit.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +1782 -0
- package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +25 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +35 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.spec.d.ts +1 -0
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +30 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +85 -0
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +9 -0
- package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +14 -0
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +14 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +51 -0
- package/lib/apps/canvas-builder/composables/useFetchSectionAnalytics.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +12 -0
- package/lib/apps/canvas-builder/composables/useNavigatorDrawer.d.ts +6 -0
- package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +5 -0
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +53 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +16 -0
- package/lib/apps/canvas-builder/composables/useSectionNavigation.d.ts +16 -0
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +34 -0
- package/lib/apps/canvas-builder/constants/canvas.const.d.ts +15 -0
- package/lib/apps/canvas-builder/constants/defaults.const.d.ts +1 -0
- package/lib/apps/canvas-builder/constants/index.d.ts +3 -0
- package/lib/apps/canvas-builder/constants/sizes.d.ts +2 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +467 -0
- package/lib/apps/canvas-builder/types/font-awesome.types.d.ts +2 -0
- package/lib/apps/canvas-builder/types/recommendations.types.d.ts +28 -0
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +44 -0
- package/lib/apps/canvas-builder/util/canvas.util.test.d.ts +1 -0
- package/lib/apps/canvas-builder/util/clone.d.ts +1 -0
- package/lib/apps/canvas-builder/util/file.util.d.ts +6 -0
- package/lib/apps/canvas-builder/util/tree.d.ts +25 -0
- package/lib/apps/canvas-builder/util/tree.test.d.ts +1 -0
- package/lib/apps/canvas-builder/util/url.d.ts +5 -0
- package/lib/apps/canvas-builder/util/url.test.d.ts +1 -0
- package/lib/apps/content-selector/appTypes.d.ts +44 -0
- package/lib/apps/content-selector/stores/app.d.ts +83 -0
- package/lib/apps/content-selector/util/file.d.ts +3 -0
- package/lib/apps/content-selector/util/media-type.util.d.ts +1 -0
- package/lib/apps/notes/composables/useFullscreenNotesHeartbeat.d.ts +3 -0
- package/lib/apps/notes/composables/useNotesApp.d.ts +3 -0
- package/lib/components/CCatalogIqSwitcher/CCatalogIqSwitcher.types.d.ts +7 -0
- package/lib/components/CConfigEditor/CConfigEditor.types.d.ts +7 -0
- package/lib/components/CConfigEditor/CConfigEditor.validators.d.ts +4 -0
- package/lib/components/CContactSelector/CContactSelector.types.d.ts +4 -0
- package/lib/components/CDataTable/CDataTableEdit.use.d.ts +22 -0
- package/lib/components/CFileViewer/CFileViewer.types.d.ts +7 -0
- package/lib/components/CFileViewer/CFileViewer.use.d.ts +47 -0
- package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +16 -0
- package/lib/components/CFileViewer/pageThumbnailFavorite.use.d.ts +10 -0
- package/lib/components/CFileViewer/pdfEvents.use.d.ts +4 -0
- package/lib/components/CGlobalSearch/CGlobalSearch.types.d.ts +23 -0
- package/lib/components/CGlobalSearch/GlobalSearch.use.d.ts +24 -0
- package/lib/components/CGlobalSearch/Shortcuts.use.d.ts +11 -0
- package/lib/components/CMultiSelect/CMultiSelect.test.d.ts +1 -0
- package/lib/components/CQuickFilters/CQuickFilters.types.d.ts +4 -0
- package/lib/components/CRichTextEditor/constants.d.ts +1 -0
- package/lib/components/CRichTextEditor/extensions/bulletListExtended.d.ts +16 -0
- package/lib/components/CRichTextEditor/extensions/headingExtended.d.ts +10 -0
- package/lib/components/CRichTextEditor/extensions/mentionSuggestions.d.ts +11 -0
- package/lib/components/CRichTextEditor/extensions/paragraphExtended.d.ts +26 -0
- package/lib/components/CRichTextEditor/extensions/textStyleExtended.d.ts +10 -0
- package/lib/components/CSingleSelect/CSingleSelect.test.d.ts +1 -0
- package/lib/components/CUsersGroupsAccessManage/CUsersGroupsAccessManage.types.d.ts +56 -0
- package/lib/components/CVirtualTable/CVirtualTable.test.d.ts +1 -0
- package/lib/components/CVirtualTable/CVirtualTableRow.test.d.ts +1 -0
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +40 -0
- package/lib/components/canvases/CanvasesManagementFilters.use.d.ts +7 -0
- package/lib/components/canvases/CanvasesManagementToolbarFilters.use.d.ts +20 -0
- package/lib/components/filters/CDateRangeFilter.test.d.ts +1 -0
- package/lib/components/filters/CSelectFilter.test.d.ts +1 -0
- package/lib/components/filters/filter.const.d.ts +1 -0
- package/lib/components/filters/filter.util.d.ts +2 -0
- package/lib/components/filters/filter.util.spec.d.ts +1 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.use.d.ts +11 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +9 -0
- package/lib/composables/appEmit.use.d.ts +3 -0
- package/lib/composables/bulkActions.use.d.ts +12 -0
- package/lib/composables/fileViewerSettings.use.d.ts +8 -0
- package/lib/composables/recentFiles.use.d.ts +12 -0
- package/lib/composables/useAssetUpload.d.ts +6 -0
- package/lib/composables/useBindValidation.d.ts +206 -0
- package/lib/composables/useCanvasOverlay.d.ts +20 -0
- package/lib/composables/useCanvasTablesPagination.d.ts +13 -0
- package/lib/composables/useConfirmation.d.ts +23 -0
- package/lib/composables/useConnectUpload.d.ts +5 -0
- package/lib/composables/useDetailsView.d.ts +19 -0
- package/lib/composables/useFetchUsers.d.ts +18 -0
- package/lib/composables/useInfiniteScroll.d.ts +13 -0
- package/lib/composables/useInstalledApps.d.ts +3 -0
- package/lib/composables/useLocation.d.ts +26 -0
- package/lib/composables/useLocationAPI.d.ts +39 -0
- package/lib/composables/useLocationListeners.d.ts +8 -0
- package/lib/composables/useLocationManipulation.d.ts +37 -0
- package/lib/composables/usePdfInterpolation.d.ts +9 -0
- package/lib/composables/useTheme.d.ts +9 -0
- package/lib/composables/useThemeVars.d.ts +30 -0
- package/lib/composables/useToast.d.ts +14 -0
- package/lib/composables/useWindowEvents.d.ts +20 -0
- package/lib/constants/cdp.const.d.ts +41 -0
- package/lib/constants/config.const.d.ts +1 -0
- package/lib/constants/conventions.const.d.ts +3 -0
- package/lib/constants/i18n.const.d.ts +13 -0
- package/lib/constants/modal.const.d.ts +9 -0
- package/lib/constants/more.const.d.ts +1 -0
- package/lib/constants/recentFiles.const.d.ts +4 -0
- package/lib/constants/tables.const.d.ts +4 -0
- package/lib/constants/timers.const.d.ts +1 -0
- package/lib/constants/uploads.const.d.ts +8 -0
- package/lib/constants/url.const.d.ts +2 -0
- package/lib/custom-naive-locales/el.d.ts +124 -0
- package/lib/directives/autofocus.d.ts +4 -0
- package/lib/directives/clickOutside.d.ts +8 -0
- package/lib/directives/draggable.d.ts +4 -0
- package/lib/directives/tooltip.d.ts +4 -0
- package/lib/main.lib.d.ts +182 -0
- package/lib/plugins/vueQuery.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +130 -0
- package/lib/sdk/api/HighLevelApi.spec.d.ts +1 -0
- package/lib/sdk/api/LowLevelApi.d.ts +18 -0
- package/lib/sdk/api/LowLevelApi.spec.d.ts +1 -0
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +89 -0
- package/lib/sdk/api/modules/admin/env.admin.d.ts +10 -0
- package/lib/sdk/api/modules/admin/files.admin.d.ts +49 -0
- package/lib/sdk/api/modules/admin/index.d.ts +40 -0
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +11 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +67 -0
- package/lib/sdk/api/modules/canvas.d.ts +56 -0
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +10 -0
- package/lib/sdk/api/modules/dsr/index.d.ts +9 -0
- package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +1 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +39 -0
- package/lib/sdk/api/modules/env.d.ts +7 -0
- package/lib/sdk/api/modules/events.d.ts +7 -0
- package/lib/sdk/api/modules/favorites.d.ts +8 -0
- package/lib/sdk/api/modules/feedback.d.ts +3 -0
- package/lib/sdk/api/modules/files.d.ts +35 -0
- package/lib/sdk/api/modules/folders.d.ts +21 -0
- package/lib/sdk/api/modules/index.d.ts +19 -0
- package/lib/sdk/api/modules/languages.d.ts +8 -0
- package/lib/sdk/api/modules/metadataTemplates.d.ts +4 -0
- package/lib/sdk/api/modules/notifications.d.ts +3 -0
- package/lib/sdk/api/modules/open.d.ts +4 -0
- package/lib/sdk/api/modules/pspdfkit.d.ts +23 -0
- package/lib/sdk/api/modules/query.d.ts +3 -0
- package/lib/sdk/api/modules/search.d.ts +4 -0
- package/lib/sdk/api/modules/sync.d.ts +9 -0
- package/lib/sdk/api/modules/toast.d.ts +4 -0
- package/lib/sdk/api/modules/track.d.ts +4 -0
- package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +3 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +29 -0
- package/lib/sdk/api/modules/ui/content.ui.d.ts +24 -0
- package/lib/sdk/api/modules/ui/index.d.ts +44 -0
- package/lib/sdk/api/modules/ui/loading.ui.d.ts +1 -0
- package/lib/sdk/api/modules/ui/location.ui.d.ts +3 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +6 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +115 -0
- package/lib/sdk/api/modules/users.d.ts +7 -0
- package/lib/sdk/api/modules/webView.d.ts +4 -0
- package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +232 -0
- package/lib/sdk/main.d.ts +564 -0
- package/lib/sdk/main.spec.d.ts +1 -0
- package/lib/sdk/main.umd-esm.d.ts +1 -0
- package/lib/sdk/payload.types.d.ts +56 -0
- package/lib/sdk/utils/assert.d.ts +3 -0
- package/lib/sdk/utils/assert.spec.d.ts +1 -0
- package/lib/sdk/utils/cleanUrl.d.ts +1 -0
- package/lib/sdk/utils/eventEmitter.d.ts +17 -0
- package/lib/sdk/utils/eventEmitter.spec.d.ts +1 -0
- package/lib/sdk/utils/httpFetch.d.ts +15 -0
- package/lib/sdk/utils/isodate.d.ts +1 -0
- package/lib/sdk/utils/isodate.spec.d.ts +1 -0
- package/lib/sdk/utils/object.d.ts +1 -0
- package/lib/sdk/utils/object.spec.d.ts +1 -0
- package/lib/sdk/utils/postrobot.d.ts +1 -0
- package/lib/theme/canvasUiUnoPreset.d.ts +4 -0
- package/lib/theme/daisyUi.d.ts +1 -0
- package/lib/theme/light.const.d.ts +4 -0
- package/lib/theme/light.d.ts +2185 -0
- package/lib/theme/main.d.ts +3 -0
- package/lib/theme/theme-overrides.d.ts +1 -0
- package/lib/theme/theme.types.d.ts +29 -0
- package/lib/theme/theme.utils.d.ts +3 -0
- package/lib/types/app.d.ts +59 -0
- package/lib/types/call.d.ts +43 -0
- package/lib/types/canvasActions.d.ts +12 -0
- package/lib/types/canvases.d.ts +23 -0
- package/lib/types/dataTable.d.ts +6 -0
- package/lib/types/favorites.d.ts +5 -0
- package/lib/types/fileViewerSettings.types.d.ts +3 -0
- package/lib/types/files.d.ts +38 -0
- package/lib/types/i18n.types.d.ts +1 -0
- package/lib/types/iframes.d.ts +24 -0
- package/lib/types/instance.types.d.ts +18 -0
- package/lib/types/instanceSettings.types.d.ts +23 -0
- package/lib/types/launchDarkly.types.d.ts +40 -0
- package/lib/types/organization.types.d.ts +14 -0
- package/lib/types/organizationMetadata.types.d.ts +4 -0
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/lib/types/paginatedData.d.ts +6 -0
- package/lib/types/recentFiles.types.d.ts +4 -0
- package/lib/types/sectionPopularity.d.ts +30 -0
- package/lib/types/sfdc.d.ts +125 -0
- package/lib/types/toast.d.ts +4 -0
- package/lib/types/translations.d.ts +5 -0
- package/lib/types/ts.d.ts +10 -0
- package/lib/types/users.d.ts +12 -0
- package/lib/types/vueVirtualScroller.d.ts +4 -0
- package/lib/util/anchor.d.ts +2 -0
- package/lib/util/array.d.ts +5 -0
- package/lib/util/array.spec.d.ts +1 -0
- package/lib/util/canvas-manager.util.d.ts +4 -0
- package/lib/util/casing.d.ts +4 -0
- package/lib/util/casing.spec.d.ts +1 -0
- package/lib/util/color.d.ts +4 -0
- package/lib/util/date.d.ts +12 -0
- package/lib/util/date.spec.d.ts +1 -0
- package/lib/util/dev.util.d.ts +2 -0
- package/lib/util/dom.d.ts +15 -0
- package/lib/util/font.spec.d.ts +1 -0
- package/lib/util/font.util.d.ts +7 -0
- package/lib/util/fullscreen.util.d.ts +16 -0
- package/lib/util/handlebars.d.ts +1 -0
- package/lib/util/image.d.ts +1 -0
- package/lib/util/location.spec.d.ts +1 -0
- package/lib/util/location.util.d.ts +1 -0
- package/lib/util/message-event.d.ts +1 -0
- package/lib/util/message-event.spec.d.ts +1 -0
- package/lib/util/navigation.util.d.ts +7 -0
- package/lib/util/network.d.ts +16 -0
- package/lib/util/network.spec.d.ts +1 -0
- package/lib/util/number.d.ts +4 -0
- package/lib/util/number.spec.d.ts +1 -0
- package/lib/util/object.d.ts +1 -0
- package/lib/util/object.spec.d.ts +1 -0
- package/lib/util/query.d.ts +6 -0
- package/lib/util/reactive.d.ts +4 -0
- package/lib/util/reactive.spec.d.ts +1 -0
- package/lib/util/string.d.ts +4 -0
- package/lib/util/timer.d.ts +2 -0
- package/lib/util/timer.spec.d.ts +1 -0
- package/lib/util/translations.d.ts +8 -0
- package/lib/util/translations.spec.d.ts +1 -0
- package/lib/util/tsHelpers.d.ts +14 -0
- package/lib/util/user.d.ts +4 -0
- package/lib/util/userAgents.d.ts +8 -0
- package/package.json +7 -2
- package/types/openapi/index.d.ts +255 -0
- package/types/openapi/models/AccessTypeEnum.d.ts +8 -0
- package/types/openapi/models/Account.d.ts +4 -0
- package/types/openapi/models/AccountRequest.d.ts +4 -0
- package/types/openapi/models/App.d.ts +21 -0
- package/types/openapi/models/AppInstallationRequest.d.ts +4 -0
- package/types/openapi/models/AppOrganization.d.ts +4 -0
- package/types/openapi/models/AppOrganizationRequest.d.ts +4 -0
- package/types/openapi/models/AppPublish.d.ts +8 -0
- package/types/openapi/models/AppRelease.d.ts +10 -0
- package/types/openapi/models/AppRequest.d.ts +9 -0
- package/types/openapi/models/AppTypeEnum.d.ts +8 -0
- package/types/openapi/models/AppsDBEntry.d.ts +4 -0
- package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
- package/types/openapi/models/AuthToken.d.ts +7 -0
- package/types/openapi/models/AuthTokenRequest.d.ts +7 -0
- package/types/openapi/models/BulkDeleteErrorDetail.d.ts +5 -0
- package/types/openapi/models/BulkDeleteRequest.d.ts +6 -0
- package/types/openapi/models/BulkDeleteResponse.d.ts +6 -0
- package/types/openapi/models/BulkUpdateMetadata.d.ts +6 -0
- package/types/openapi/models/BulkUpdateMetadataOperationEnum.d.ts +8 -0
- package/types/openapi/models/BulkUpdateMetadataRequest.d.ts +9 -0
- package/types/openapi/models/BulkUpdateMetadataResult.d.ts +4 -0
- package/types/openapi/models/BulkUpdateTags.d.ts +6 -0
- package/types/openapi/models/BulkUpdateTagsOperationEnum.d.ts +8 -0
- package/types/openapi/models/BulkUpdateTagsRequest.d.ts +9 -0
- package/types/openapi/models/BulkUpdateTagsResult.d.ts +4 -0
- package/types/openapi/models/Canvas.d.ts +29 -0
- package/types/openapi/models/CanvasCreate.d.ts +36 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +25 -0
- package/types/openapi/models/CanvasRecommendedFile.d.ts +46 -0
- package/types/openapi/models/CanvasRecommendedFiles.d.ts +5 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +36 -0
- package/types/openapi/models/CanvasSection.d.ts +10 -0
- package/types/openapi/models/CanvasUpdate.d.ts +36 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +22 -0
- package/types/openapi/models/Collaboration.d.ts +16 -0
- package/types/openapi/models/CollaborationCreate.d.ts +16 -0
- package/types/openapi/models/CollaborationCreateRequest.d.ts +10 -0
- package/types/openapi/models/CollaborationRequest.d.ts +5 -0
- package/types/openapi/models/CollaborationRoleEnum.d.ts +4 -0
- package/types/openapi/models/ConnectedService.d.ts +9 -0
- package/types/openapi/models/ContentDistributionGroup.d.ts +12 -0
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +13 -0
- package/types/openapi/models/ContentDistributionGroupCreateRequest.d.ts +5 -0
- package/types/openapi/models/ContentDistributionGroupMembership.d.ts +8 -0
- package/types/openapi/models/ContentDistributionGroupMembershipCreate.d.ts +8 -0
- package/types/openapi/models/ContentDistributionGroupMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/ContentDistributionGroupRequest.d.ts +4 -0
- package/types/openapi/models/DefaultExpiresAtEnum.d.ts +16 -0
- package/types/openapi/models/DeletedApp.d.ts +23 -0
- package/types/openapi/models/DeletedCanvas.d.ts +31 -0
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +15 -0
- package/types/openapi/models/DeletedEnvironment.d.ts +15 -0
- package/types/openapi/models/DeletedFavorite.d.ts +20 -0
- package/types/openapi/models/DeletedFile.d.ts +48 -0
- package/types/openapi/models/DeletedFolder.d.ts +18 -0
- package/types/openapi/models/DeletedInstance.d.ts +25 -0
- package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +15 -0
- package/types/openapi/models/DeletedMetadataTemplate.d.ts +18 -0
- package/types/openapi/models/DeletedRegion.d.ts +13 -0
- package/types/openapi/models/DownloadTypeEnum.d.ts +10 -0
- package/types/openapi/models/Environment.d.ts +13 -0
- package/types/openapi/models/EnvironmentRequest.d.ts +5 -0
- package/types/openapi/models/Event.d.ts +18 -0
- package/types/openapi/models/EventAttendee.d.ts +5 -0
- package/types/openapi/models/EventAttendeeRequest.d.ts +5 -0
- package/types/openapi/models/EventExternalObject.d.ts +10 -0
- package/types/openapi/models/EventExternalObjectContentTypeEnum.d.ts +12 -0
- package/types/openapi/models/EventExternalObjectRequest.d.ts +10 -0
- package/types/openapi/models/EventRequest.d.ts +17 -0
- package/types/openapi/models/EventStatusEnum.d.ts +10 -0
- package/types/openapi/models/Favorite.d.ts +18 -0
- package/types/openapi/models/FavoriteCreate.d.ts +12 -0
- package/types/openapi/models/FavoriteCreateRequest.d.ts +7 -0
- package/types/openapi/models/FavoriteFile.d.ts +6 -0
- package/types/openapi/models/FavoriteFileRequest.d.ts +3 -0
- package/types/openapi/models/FavoriteUpdate.d.ts +12 -0
- package/types/openapi/models/FavoriteUpdateRequest.d.ts +6 -0
- package/types/openapi/models/File.d.ts +46 -0
- package/types/openapi/models/FileAnalytics.d.ts +16 -0
- package/types/openapi/models/FileAnalyticsResult.d.ts +9 -0
- package/types/openapi/models/FileContentTypeEnum.d.ts +16 -0
- package/types/openapi/models/FileCreate.d.ts +51 -0
- package/types/openapi/models/FileCreateRequest.d.ts +27 -0
- package/types/openapi/models/FilePermission.d.ts +4 -0
- package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
- package/types/openapi/models/FileRequest.d.ts +16 -0
- package/types/openapi/models/FileRetrieve.d.ts +51 -0
- package/types/openapi/models/FileRevision.d.ts +8 -0
- package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/FileStatusEnum.d.ts +8 -0
- package/types/openapi/models/FileTypeEnum.d.ts +10 -0
- package/types/openapi/models/FileUpdate.d.ts +51 -0
- package/types/openapi/models/FileUpdateRequest.d.ts +20 -0
- package/types/openapi/models/FileVersion.d.ts +5 -0
- package/types/openapi/models/Folder.d.ts +16 -0
- package/types/openapi/models/FolderCreate.d.ts +32 -0
- package/types/openapi/models/FolderCreateRequest.d.ts +19 -0
- package/types/openapi/models/FolderFile.d.ts +15 -0
- package/types/openapi/models/FolderFolder.d.ts +8 -0
- package/types/openapi/models/FolderRetrieve.d.ts +25 -0
- package/types/openapi/models/FolderUpdate.d.ts +32 -0
- package/types/openapi/models/FolderUpdateRequest.d.ts +16 -0
- package/types/openapi/models/Instance.d.ts +23 -0
- package/types/openapi/models/InstanceAnalytics.d.ts +18 -0
- package/types/openapi/models/InstanceAnalyticsChangePercentages.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsCurrentPeriod.d.ts +13 -0
- package/types/openapi/models/InstanceAnalyticsFile.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsFileActivity.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsFileRequest.d.ts +3 -0
- package/types/openapi/models/InstanceAnalyticsInactiveUsers.d.ts +5 -0
- package/types/openapi/models/InstanceAnalyticsInactiveUsersRequest.d.ts +4 -0
- package/types/openapi/models/InstanceAnalyticsLoginResult.d.ts +5 -0
- package/types/openapi/models/InstanceAssignmentGroup.d.ts +12 -0
- package/types/openapi/models/InstanceAssignmentGroupMembership.d.ts +8 -0
- package/types/openapi/models/InstanceAssignmentGroupMembershipCreate.d.ts +8 -0
- package/types/openapi/models/InstanceAssignmentGroupMembershipCreateRequest.d.ts +4 -0
- package/types/openapi/models/InstanceAssignmentGroupRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembership.d.ts +12 -0
- package/types/openapi/models/InstanceMembershipCreate.d.ts +12 -0
- package/types/openapi/models/InstanceMembershipCreateRequest.d.ts +8 -0
- package/types/openapi/models/InstanceMembershipGroup.d.ts +11 -0
- package/types/openapi/models/InstanceMembershipGroupRequest.d.ts +3 -0
- package/types/openapi/models/InstanceMembershipRequest.d.ts +5 -0
- package/types/openapi/models/InstanceMembershipRoleEnum.d.ts +8 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +10 -0
- package/types/openapi/models/InstanceMembershipUserRequest.d.ts +4 -0
- package/types/openapi/models/InstanceMembershipUserStatusEnum.d.ts +6 -0
- package/types/openapi/models/InstanceRequest.d.ts +11 -0
- package/types/openapi/models/InstanceUpdate.d.ts +19 -0
- package/types/openapi/models/InstanceUpdateRequest.d.ts +8 -0
- package/types/openapi/models/Invitation.d.ts +11 -0
- package/types/openapi/models/InvitationRequest.d.ts +3 -0
- package/types/openapi/models/InvitationStatusEnum.d.ts +4 -0
- package/types/openapi/models/LanguageEnum.d.ts +12 -0
- package/types/openapi/models/MetadataTemplate.d.ts +16 -0
- package/types/openapi/models/MetadataTemplateField.d.ts +14 -0
- package/types/openapi/models/MetadataTemplateFieldRequest.d.ts +14 -0
- package/types/openapi/models/MetadataTemplateFieldTypeEnum.d.ts +16 -0
- package/types/openapi/models/MetadataTemplateOption.d.ts +4 -0
- package/types/openapi/models/MetadataTemplateOptionRequest.d.ts +4 -0
- package/types/openapi/models/MetadataTemplateRequest.d.ts +7 -0
- package/types/openapi/models/MetadataTemplateSection.d.ts +6 -0
- package/types/openapi/models/MetadataTemplateSectionRequest.d.ts +6 -0
- package/types/openapi/models/MiniCanvas.d.ts +4 -0
- package/types/openapi/models/MiniCanvasRequest.d.ts +3 -0
- package/types/openapi/models/MiniContentDistributionGroup.d.ts +5 -0
- package/types/openapi/models/MiniContentDistributionGroupRequest.d.ts +3 -0
- package/types/openapi/models/MiniEnvironment.d.ts +5 -0
- package/types/openapi/models/MiniEnvironmentRequest.d.ts +4 -0
- package/types/openapi/models/MiniEvent.d.ts +5 -0
- package/types/openapi/models/MiniEventRequest.d.ts +4 -0
- package/types/openapi/models/MiniFile.d.ts +4 -0
- package/types/openapi/models/MiniFileRequest.d.ts +3 -0
- package/types/openapi/models/MiniFolder.d.ts +4 -0
- package/types/openapi/models/MiniFolderRequest.d.ts +3 -0
- package/types/openapi/models/MiniInstance.d.ts +4 -0
- package/types/openapi/models/MiniInstanceRequest.d.ts +3 -0
- package/types/openapi/models/MiniPage.d.ts +4 -0
- package/types/openapi/models/MiniPageRequest.d.ts +3 -0
- package/types/openapi/models/MiniRegion.d.ts +4 -0
- package/types/openapi/models/MiniRegionRequest.d.ts +3 -0
- package/types/openapi/models/MiniSharedLink.d.ts +4 -0
- package/types/openapi/models/MiniSharedLinkRequest.d.ts +3 -0
- package/types/openapi/models/MiniUser.d.ts +5 -0
- package/types/openapi/models/MiniUserRequest.d.ts +3 -0
- package/types/openapi/models/MostActiveUser.d.ts +7 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
- package/types/openapi/models/Organization.d.ts +10 -0
- package/types/openapi/models/OrganizationAnalytics.d.ts +16 -0
- package/types/openapi/models/OrganizationAnalyticsCurrentPeriod.d.ts +13 -0
- package/types/openapi/models/OrganizationAnalyticsInactiveUsers.d.ts +5 -0
- package/types/openapi/models/OrganizationAnalyticsInactiveUsersRequest.d.ts +4 -0
- package/types/openapi/models/OrganizationAnalyticsInstance.d.ts +10 -0
- package/types/openapi/models/OrganizationAnalyticsLoginResult.d.ts +5 -0
- package/types/openapi/models/OrganizationAnalyticsTop3Instances.d.ts +13 -0
- package/types/openapi/models/OrganizationBranding.d.ts +6 -0
- package/types/openapi/models/OrganizationBrandingColors.d.ts +4 -0
- package/types/openapi/models/OrganizationChangePercentages.d.ts +6 -0
- package/types/openapi/models/OrganizationUpdate.d.ts +8 -0
- package/types/openapi/models/OrganizationUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PSPDFKitAuthPayload.d.ts +3 -0
- package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +3 -0
- package/types/openapi/models/PSPDFKitToken.d.ts +7 -0
- package/types/openapi/models/PSPDFKitTokenRequest.d.ts +3 -0
- package/types/openapi/models/PaginatedAppList.d.ts +8 -0
- package/types/openapi/models/PaginatedAppReleaseList.d.ts +8 -0
- package/types/openapi/models/PaginatedAuthTokenList.d.ts +8 -0
- package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
- package/types/openapi/models/PaginatedCollaborationList.d.ts +8 -0
- package/types/openapi/models/PaginatedContentDistributionGroupList.d.ts +8 -0
- package/types/openapi/models/PaginatedContentDistributionGroupMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedEnvironmentList.d.ts +8 -0
- package/types/openapi/models/PaginatedEventList.d.ts +8 -0
- package/types/openapi/models/PaginatedFavoriteList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedFolderList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceAssignmentGroupList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceAssignmentGroupMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceList.d.ts +8 -0
- package/types/openapi/models/PaginatedInstanceMembershipList.d.ts +8 -0
- package/types/openapi/models/PaginatedInvitationList.d.ts +8 -0
- package/types/openapi/models/PaginatedMetadataTemplateList.d.ts +8 -0
- package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
- package/types/openapi/models/PaginatedRegionList.d.ts +8 -0
- package/types/openapi/models/PaginatedRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedSearchResultList.d.ts +9 -0
- package/types/openapi/models/PaginatedStorageRegionList.d.ts +8 -0
- package/types/openapi/models/PaginatedUserList.d.ts +8 -0
- package/types/openapi/models/PatchedAppRequest.d.ts +9 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +22 -0
- package/types/openapi/models/PatchedCollaborationRequest.d.ts +5 -0
- package/types/openapi/models/PatchedContentDistributionGroupRequest.d.ts +4 -0
- package/types/openapi/models/PatchedEnvironmentRequest.d.ts +5 -0
- package/types/openapi/models/PatchedEventRequest.d.ts +17 -0
- package/types/openapi/models/PatchedFavoriteUpdateRequest.d.ts +6 -0
- package/types/openapi/models/PatchedFileRequest.d.ts +16 -0
- package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +20 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +16 -0
- package/types/openapi/models/PatchedInstanceAssignmentGroupRequest.d.ts +4 -0
- package/types/openapi/models/PatchedInstanceMembershipRequest.d.ts +5 -0
- package/types/openapi/models/PatchedInstanceUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PatchedMetadataTemplateRequest.d.ts +7 -0
- package/types/openapi/models/PatchedOrganizationUpdateRequest.d.ts +8 -0
- package/types/openapi/models/PatchedRegionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedUserRequest.d.ts +12 -0
- package/types/openapi/models/Region.d.ts +11 -0
- package/types/openapi/models/RegionRequest.d.ts +3 -0
- package/types/openapi/models/Revision.d.ts +8 -0
- package/types/openapi/models/RevisionRequest.d.ts +3 -0
- package/types/openapi/models/SearchApp.d.ts +6 -0
- package/types/openapi/models/SearchCanvas.d.ts +5 -0
- package/types/openapi/models/SearchContentDistributionGroup.d.ts +11 -0
- package/types/openapi/models/SearchFile.d.ts +9 -0
- package/types/openapi/models/SearchInstanceAssignmentGroup.d.ts +11 -0
- package/types/openapi/models/SearchResult.d.ts +8 -0
- package/types/openapi/models/SearchUser.d.ts +5 -0
- package/types/openapi/models/SharedLink.d.ts +16 -0
- package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
- package/types/openapi/models/SharedLinkCreate.d.ts +16 -0
- package/types/openapi/models/SharedLinkCreateRequest.d.ts +6 -0
- package/types/openapi/models/SharedLinkInstance.d.ts +6 -0
- package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
- package/types/openapi/models/SharedLinkOrganization.d.ts +6 -0
- package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
- package/types/openapi/models/StorageRegion.d.ts +5 -0
- package/types/openapi/models/StorageRegionEnum.d.ts +10 -0
- package/types/openapi/models/Tag.d.ts +3 -0
- package/types/openapi/models/UploadCreate.d.ts +8 -0
- package/types/openapi/models/UploadCreateRequest.d.ts +5 -0
- package/types/openapi/models/User.d.ts +23 -0
- package/types/openapi/models/UserRequest.d.ts +12 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
+
import { AppFile } from '../../../types/app';
|
|
4
|
+
|
|
5
|
+
declare function onSectionListUpdateHook({ sectionHookIframes, sectionListIds, sectionListComponentId, activeCanvas, }: {
|
|
6
|
+
sectionHookIframes?: Record<string, HTMLIFrameElement>;
|
|
7
|
+
sectionListIds: CanvasRetrieve['id'][];
|
|
8
|
+
sectionListComponentId: ComponentNode['id'];
|
|
9
|
+
activeCanvas: CanvasRetrieve;
|
|
10
|
+
}): void;
|
|
11
|
+
declare function onCanvasUpdatedHook({ hookIframes, activeCanvas, }: {
|
|
12
|
+
hookIframes?: Record<string, HTMLIFrameElement>;
|
|
13
|
+
activeCanvas: CanvasRetrieve;
|
|
14
|
+
}): void;
|
|
15
|
+
declare function getEmbeddableSrc(app: AppFile): string | undefined;
|
|
16
|
+
declare function setHookRefs(iframeEl: HTMLIFrameElement | null, app: AppFile, hookEvent: string): void;
|
|
17
|
+
declare function cleanup(app: AppFile, hookEvent: string): void;
|
|
18
|
+
export default function useCanvasHooks(): {
|
|
19
|
+
onSectionListUpdateHook: typeof onSectionListUpdateHook;
|
|
20
|
+
onCanvasUpdatedHook: typeof onCanvasUpdatedHook;
|
|
21
|
+
getEmbeddableSrc: typeof getEmbeddableSrc;
|
|
22
|
+
setHookRefs: typeof setHookRefs;
|
|
23
|
+
cleanup: typeof cleanup;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { ComponentNode, SectionListProps } from '@canvas-builder/types/canvas';
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
|
+
|
|
5
|
+
type AnimationDirection = 'Left' | 'Right';
|
|
6
|
+
declare function goToNextPage(): void;
|
|
7
|
+
declare function goToPreviousPage(): void;
|
|
8
|
+
declare function goToPage(componentId: ComponentNode['id'], sectionId?: CanvasRetrieve['id'], options?: {
|
|
9
|
+
scrollToTop: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
declare function reset(): void;
|
|
12
|
+
export default function useCanvasPages(): {
|
|
13
|
+
activeSectionId: ComputedRef<string | null>;
|
|
14
|
+
activeSectionTheme: ComputedRef<Record<string, any> | null>;
|
|
15
|
+
canvasPages: ComputedRef<ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps>[][]>;
|
|
16
|
+
currentPageIndex: import('vue').Ref<number>;
|
|
17
|
+
currentSectionList: ComputedRef<{
|
|
18
|
+
sectionListId: string;
|
|
19
|
+
sectionListIndex: number;
|
|
20
|
+
} | {
|
|
21
|
+
sectionListId: null;
|
|
22
|
+
sectionListIndex: number;
|
|
23
|
+
}>;
|
|
24
|
+
sectionListIndexMap: import('vue').Ref<Record<string, number>>;
|
|
25
|
+
presentationProgress: ComputedRef<number[]>;
|
|
26
|
+
isFirstPage: ComputedRef<boolean>;
|
|
27
|
+
isLastPage: ComputedRef<boolean>;
|
|
28
|
+
goToNextPage: typeof goToNextPage;
|
|
29
|
+
goToPreviousPage: typeof goToPreviousPage;
|
|
30
|
+
goToPage: typeof goToPage;
|
|
31
|
+
reset: typeof reset;
|
|
32
|
+
keepActivePageValid: () => void;
|
|
33
|
+
animationDirection: import('vue').Ref<"" | AnimationDirection>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
+
import { ComponentNode, SectionComponentOverrides } from '@canvas-builder/types/canvas';
|
|
4
|
+
|
|
5
|
+
declare function discardOverridesConfirmationOptions(t: (input: string) => string, callback: () => void): {
|
|
6
|
+
title: string;
|
|
7
|
+
content: string;
|
|
8
|
+
confirmText: string;
|
|
9
|
+
cancelText: string;
|
|
10
|
+
hasExit: boolean;
|
|
11
|
+
onConfirm: () => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
declare function cleanup(): void;
|
|
14
|
+
export default function useCanvasSectionOverrides(): {
|
|
15
|
+
getComponentOverrides: (data: Ref<ComponentNode["data"]>, id: Ref<ComponentNode["id"]>, sectionId?: Ref<CanvasRetrieve["id"]>) => import('vue').ComputedRef<{
|
|
16
|
+
data: (import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps) | undefined;
|
|
17
|
+
is_removed: boolean;
|
|
18
|
+
}>;
|
|
19
|
+
discardOverridesConfirmationOptions: typeof discardOverridesConfirmationOptions;
|
|
20
|
+
overrideSectionComponentData: ({ usedInSectionId, componentId, componentData, afterSiblingId, remove, }: {
|
|
21
|
+
usedInSectionId: CanvasRetrieve["id"];
|
|
22
|
+
componentId: ComponentNode["id"];
|
|
23
|
+
componentData?: ComponentNode["data"];
|
|
24
|
+
afterSiblingId?: ComponentNode["id"];
|
|
25
|
+
remove?: boolean;
|
|
26
|
+
}) => void;
|
|
27
|
+
cleanup: typeof cleanup;
|
|
28
|
+
sectionComponentOverrides: Ref<SectionComponentOverrides>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { File, FileTypeEnum } from '../../../../types/openapi/index';
|
|
2
|
+
import { CanvasTheme } from '../../../main.lib';
|
|
3
|
+
|
|
4
|
+
export declare enum ThemeComponentOptionEnum {
|
|
5
|
+
'COLOR_PICKER' = 0,
|
|
6
|
+
'PADDING' = 1,
|
|
7
|
+
'SPACING' = 2
|
|
8
|
+
}
|
|
9
|
+
export interface ThemePadding {
|
|
10
|
+
top: number;
|
|
11
|
+
right: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
left: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const DEFAULT_GLOBAL_COMPONENT_SPACING = 32;
|
|
16
|
+
export declare const DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL = 4;
|
|
17
|
+
declare function cleanup(): void;
|
|
18
|
+
declare function addFontStyleElements(fontName?: string, url?: string): Promise<void>;
|
|
19
|
+
declare function loadCustomFonts(listFiles: (params: any) => Promise<File[]>): Promise<void>;
|
|
20
|
+
declare function setFontAndFetchAsset(fontName?: string, url?: string): Promise<void>;
|
|
21
|
+
declare function updateThemeProperties(theme: Partial<CanvasTheme>): void;
|
|
22
|
+
export default function useCanvasTheme(): {
|
|
23
|
+
canvasBgColor: import('vue').Ref<string>;
|
|
24
|
+
globalComponentSpacing: import('vue').Ref<number>;
|
|
25
|
+
font: import('vue').Ref<string>;
|
|
26
|
+
customFonts: import('vue').Ref<{
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly global_id: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
readonly type: FileTypeEnum;
|
|
31
|
+
readonly size: number | null;
|
|
32
|
+
readonly status: import('../../../../types/openapi/index').FileStatusEnum;
|
|
33
|
+
readonly content_type: import('../../../../types/openapi/index').FileContentTypeEnum;
|
|
34
|
+
readonly content_extension: string | null;
|
|
35
|
+
readonly content_length: number | null;
|
|
36
|
+
readonly content_url: string | null;
|
|
37
|
+
readonly original_extension: string | null;
|
|
38
|
+
readonly thumbnail_url: string | null;
|
|
39
|
+
download_type?: import('../../../../types/openapi/index').DownloadTypeEnum;
|
|
40
|
+
readonly zip_size: number | null;
|
|
41
|
+
readonly zip_url: string | null;
|
|
42
|
+
access_type?: import('../../../../types/openapi/index').AccessTypeEnum;
|
|
43
|
+
readonly role: import('../../../../types/openapi/index').CollaborationRoleEnum;
|
|
44
|
+
permissions?: {
|
|
45
|
+
can_download?: boolean;
|
|
46
|
+
can_share?: boolean;
|
|
47
|
+
} | undefined;
|
|
48
|
+
metadata?: Record<string, any>;
|
|
49
|
+
app_metadata?: Record<string, any>;
|
|
50
|
+
tags?: Array<string>;
|
|
51
|
+
readonly published_at: string | null;
|
|
52
|
+
expires_at?: string | null;
|
|
53
|
+
readonly instance_id: string;
|
|
54
|
+
folder_id?: string;
|
|
55
|
+
readonly shared_link: {
|
|
56
|
+
readonly url: string;
|
|
57
|
+
short_url?: string | null;
|
|
58
|
+
};
|
|
59
|
+
readonly owned_by: {
|
|
60
|
+
readonly id: number;
|
|
61
|
+
readonly name: string;
|
|
62
|
+
email?: string;
|
|
63
|
+
};
|
|
64
|
+
readonly created_at: string;
|
|
65
|
+
readonly created_by: {
|
|
66
|
+
readonly id: number;
|
|
67
|
+
readonly name: string;
|
|
68
|
+
email?: string;
|
|
69
|
+
};
|
|
70
|
+
readonly modified_at: string;
|
|
71
|
+
readonly modified_by: {
|
|
72
|
+
readonly id: number;
|
|
73
|
+
readonly name: string;
|
|
74
|
+
email?: string;
|
|
75
|
+
};
|
|
76
|
+
}[]>;
|
|
77
|
+
isEditingCanvasTheme: import('vue').Ref<boolean>;
|
|
78
|
+
isFluid: import('vue').Ref<boolean>;
|
|
79
|
+
addFontStyleElements: typeof addFontStyleElements;
|
|
80
|
+
loadCustomFonts: typeof loadCustomFonts;
|
|
81
|
+
setFontAndFetchAsset: typeof setFontAndFetchAsset;
|
|
82
|
+
cleanup: typeof cleanup;
|
|
83
|
+
updateThemeProperties: typeof updateThemeProperties;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
2
|
+
import { ComponentNode, ComponentNodeVisible } from '@canvas-builder/types/canvas';
|
|
3
|
+
|
|
4
|
+
export default function useCanvasVisibility(): {
|
|
5
|
+
getComponentDefaultVisibility: (type: ComponentNode["type"], mode?: keyof ComponentNodeVisible) => boolean;
|
|
6
|
+
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps>[];
|
|
7
|
+
getVisibleKey: () => keyof ComponentNodeVisible | undefined;
|
|
8
|
+
shouldRenderComponentWrapper: (c: ComponentNode, sectionId?: CanvasRetrieve["id"]) => boolean | undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
+
|
|
4
|
+
declare function resetClickedOnSection(): void;
|
|
5
|
+
declare function setClickedOnSection(sectionListId: ComponentNode['id'], sectionId: CanvasRetrieve['id']): void;
|
|
6
|
+
export default function useCanvasTheme(): {
|
|
7
|
+
clickedOnSection: Readonly<import('vue').Ref<{
|
|
8
|
+
readonly sectionListId: ComponentNode["id"];
|
|
9
|
+
readonly sectionId: CanvasRetrieve["id"];
|
|
10
|
+
} | undefined>>;
|
|
11
|
+
resetClickedOnSection: typeof resetClickedOnSection;
|
|
12
|
+
setClickedOnSection: typeof setClickedOnSection;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
|
+
|
|
5
|
+
export default function ({ id, usedInSectionId, when_used_in_section, }: {
|
|
6
|
+
id: Ref<ComponentNode['id']>;
|
|
7
|
+
usedInSectionId: Ref<CanvasRetrieve['id']>;
|
|
8
|
+
when_used_in_section: Ref<ComponentNode['when_used_in_section']>;
|
|
9
|
+
}): import('vue').ComputedRef<{
|
|
10
|
+
hasSomethingEditable: boolean;
|
|
11
|
+
canEdit: boolean;
|
|
12
|
+
canRemove: boolean;
|
|
13
|
+
canDuplicate: boolean;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ComponentTypes, MultimediaProps, ComponentNode, ContentGridProps } from '@canvas-builder/types/canvas';
|
|
2
|
+
import { Selection } from '@content-selector/appTypes';
|
|
3
|
+
import { FileContentTypeEnum, FileRetrieve } from '../../../../types/openapi';
|
|
4
|
+
import { SelectedPage, SelectedFile, SelectorType, SelectedExternalLink, SelectedAsset } from '@content-selector/stores/app';
|
|
5
|
+
|
|
6
|
+
type ContentSelectorPayload = {
|
|
7
|
+
id: ComponentNode['id'] | null;
|
|
8
|
+
componentType: Extract<ComponentTypes, ComponentTypes.ContentGrid | ComponentTypes.Multimedia>;
|
|
9
|
+
selections?: Selection[];
|
|
10
|
+
allowedSelectorTypes?: SelectorType[];
|
|
11
|
+
allowedContentTypes?: FileContentTypeEnum[];
|
|
12
|
+
allowedAssetContentTypes?: FileContentTypeEnum[];
|
|
13
|
+
maxSelections?: number;
|
|
14
|
+
};
|
|
15
|
+
declare function clearContentSelectorMode(): void;
|
|
16
|
+
declare function setContentSelectorMode(payload: ContentSelectorPayload): void;
|
|
17
|
+
declare function prepareContentGridNodeData({ selectedItems, filesById, node, }: {
|
|
18
|
+
selectedItems: (SelectedFile | SelectedPage)[];
|
|
19
|
+
filesById: Record<FileRetrieve['id'], FileRetrieve>;
|
|
20
|
+
node?: ComponentNode<ContentGridProps>;
|
|
21
|
+
}): ContentGridProps;
|
|
22
|
+
declare function prepareMultimediaNodeData({ selectedItems, }: {
|
|
23
|
+
selectedItems: (SelectedExternalLink | SelectedAsset)[];
|
|
24
|
+
}): MultimediaProps | undefined;
|
|
25
|
+
export default function (): {
|
|
26
|
+
clearContentSelectorMode: typeof clearContentSelectorMode;
|
|
27
|
+
contentSelectorMode: import('vue').Ref<false | {
|
|
28
|
+
id: ComponentNode["id"] | null;
|
|
29
|
+
componentType: Extract<ComponentTypes, ComponentTypes.ContentGrid | ComponentTypes.Multimedia>;
|
|
30
|
+
selections?: ({
|
|
31
|
+
fileId: FileRetrieve["id"];
|
|
32
|
+
type: "file" | "page";
|
|
33
|
+
pageIndex?: number;
|
|
34
|
+
} | {
|
|
35
|
+
url: string;
|
|
36
|
+
type: "external_link";
|
|
37
|
+
content_type: "video" | "image";
|
|
38
|
+
} | {
|
|
39
|
+
fileId: FileRetrieve["id"];
|
|
40
|
+
type: "asset";
|
|
41
|
+
})[] | undefined;
|
|
42
|
+
allowedSelectorTypes?: SelectorType[];
|
|
43
|
+
allowedContentTypes?: FileContentTypeEnum[];
|
|
44
|
+
allowedAssetContentTypes?: FileContentTypeEnum[];
|
|
45
|
+
maxSelections?: number;
|
|
46
|
+
}>;
|
|
47
|
+
setContentSelectorMode: typeof setContentSelectorMode;
|
|
48
|
+
prepareContentGridNodeData: typeof prepareContentGridNodeData;
|
|
49
|
+
prepareMultimediaNodeData: typeof prepareMultimediaNodeData;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { AppFile } from '../../../types/app';
|
|
3
|
+
|
|
4
|
+
export declare function useInstalledEmbeddables(): {
|
|
5
|
+
isFetching: import('vue').Ref<boolean>;
|
|
6
|
+
installedEmbeddablesById: import('vue').Ref<Record<string, AppFile> | null>;
|
|
7
|
+
refetchedFor: Record<string, boolean>;
|
|
8
|
+
shouldUseDeviceUrl: ComputedRef<boolean | undefined>;
|
|
9
|
+
refetch: (fileId?: AppFile["id"]) => void;
|
|
10
|
+
cleanup: () => void;
|
|
11
|
+
getDeviceUrl: (fileId?: AppFile["id"]) => string | undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { PitcherInfo } from '../../../types/app';
|
|
3
|
+
import { ContentGridProps, CanvasBuilderProps } from '@canvas-builder/types/canvas';
|
|
4
|
+
import { RecommendedContent } from '@canvas-builder/types/recommendations.types';
|
|
5
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
6
|
+
import { InstanceSettings } from '../../../types/instanceSettings.types';
|
|
7
|
+
|
|
8
|
+
declare function autofillCanvasContentGridsWithAi(filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>): Promise<void>;
|
|
9
|
+
declare function autofillSectionContentGridsWithAi(filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>): Promise<void>;
|
|
10
|
+
declare function autofillSectionContentGridsWithMatchingProperties(sectionId: CanvasRetrieve['id'], options: {
|
|
11
|
+
filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>;
|
|
12
|
+
http: AxiosInstance;
|
|
13
|
+
pitcherInfo: PitcherInfo;
|
|
14
|
+
instanceSettings: InstanceSettings;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
declare function autofillCanvasContentGridsWithMatchingProperties(options: {
|
|
17
|
+
filesFetcher: NonNullable<CanvasBuilderProps['listFiles']>;
|
|
18
|
+
http: AxiosInstance;
|
|
19
|
+
pitcherInfo: PitcherInfo;
|
|
20
|
+
instanceSettings?: InstanceSettings;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
declare function cleanup(): void;
|
|
23
|
+
export default function useRecommendations(): {
|
|
24
|
+
contextSections: import('vue').ComputedRef<{
|
|
25
|
+
id: CanvasRetrieve["id"];
|
|
26
|
+
list_header_html?: string;
|
|
27
|
+
recommended?: boolean;
|
|
28
|
+
removed_by_user?: boolean;
|
|
29
|
+
}[]>;
|
|
30
|
+
listHeaderHtmlBySectionId: import('vue').ComputedRef<Record<string, string>>;
|
|
31
|
+
recommendationStrategy: import('vue').ComputedRef<"force" | "suggest" | undefined>;
|
|
32
|
+
recommendedContent: import('vue').ComputedRef<{
|
|
33
|
+
content_grids?: RecommendedContent;
|
|
34
|
+
sections?: {
|
|
35
|
+
[key: CanvasRetrieve["id"]]: {
|
|
36
|
+
content_grids?: RecommendedContent;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
recommendedSectionIds: import('vue').ComputedRef<string[]>;
|
|
41
|
+
standaloneSectionContentGridsWithMatchingPropertiesPreviewData: import('vue').Ref<Record<string, ContentGridProps>>;
|
|
42
|
+
autofillCanvasContentGridsWithAi: typeof autofillCanvasContentGridsWithAi;
|
|
43
|
+
autofillCanvasContentGridsWithMatchingProperties: typeof autofillCanvasContentGridsWithMatchingProperties;
|
|
44
|
+
autofillSectionContentGridsWithAi: typeof autofillSectionContentGridsWithAi;
|
|
45
|
+
autofillSectionContentGridsWithMatchingProperties: typeof autofillSectionContentGridsWithMatchingProperties;
|
|
46
|
+
previewStandaloneSectionContentGridsWithMatchingProperties: (options: {
|
|
47
|
+
filesFetcher: NonNullable<CanvasBuilderProps["listFiles"]>;
|
|
48
|
+
http: AxiosInstance;
|
|
49
|
+
pitcherInfo: PitcherInfo;
|
|
50
|
+
}) => Promise<void>;
|
|
51
|
+
cleanup: typeof cleanup;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentNode } from '@canvas-builder/types/canvas';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
|
|
4
|
+
export default function useReorderComponent(): {
|
|
5
|
+
activeComponent: Ref<ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps> | null>;
|
|
6
|
+
activeChildren: import('vue').WritableComputedRef<ComponentNode<import('@canvas-builder/types/canvas').GridProps | import('@canvas-builder/types/canvas').GridItemProps | import('@canvas-builder/types/canvas').TextProps | import('@canvas-builder/types/canvas').CarouselProps | import('@canvas-builder/types/canvas').MultimediaProps | import('@canvas-builder/types/canvas').EmbeddableProps | import('@canvas-builder/types/canvas').ContentGridProps | import('@canvas-builder/types/canvas').SectionListProps | import('@canvas-builder/types/canvas').HtmlProps | import('@canvas-builder/types/canvas').LinkProps | import('@canvas-builder/types/canvas').PageBreakProps | import('@canvas-builder/types/canvas').PageProps | import('@canvas-builder/types/canvas').TimelineProps>[]>;
|
|
7
|
+
activeTitle: ComputedRef<string>;
|
|
8
|
+
isNewFeatureEnabled: ComputedRef<boolean>;
|
|
9
|
+
isContentVisible: Ref<boolean>;
|
|
10
|
+
initialize: () => void;
|
|
11
|
+
getTitle: (component: ComponentNode) => string;
|
|
12
|
+
selectParentComponent: (component: ComponentNode) => void;
|
|
13
|
+
setActiveComponentId: (id: string | null) => void;
|
|
14
|
+
resetActiveComponentId: () => void;
|
|
15
|
+
toggleContentVisibility: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export default function useSectionNavigation(contentRef: Ref<{
|
|
4
|
+
$el: HTMLElement;
|
|
5
|
+
} | null>, navigationItems: ComputedRef<{
|
|
6
|
+
id: string;
|
|
7
|
+
sectionId?: string;
|
|
8
|
+
}[]>, activeNavigationItems: Ref<{
|
|
9
|
+
id: string;
|
|
10
|
+
sectionId?: string;
|
|
11
|
+
previewMode?: boolean;
|
|
12
|
+
}[]>, isEditMode: Ref<boolean>): {
|
|
13
|
+
scrollTo: (id: string, sectionId?: string) => void;
|
|
14
|
+
navigateTo: (index: number | null) => void;
|
|
15
|
+
activeIndex: Ref<number>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { SectionPopularityCategory, SectionExtra } from '../../../types/sectionPopularity';
|
|
3
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
4
|
+
|
|
5
|
+
type SorterFunction = (item: CanvasRetrieve) => string | number | boolean;
|
|
6
|
+
type OrderDirection = 'asc' | 'desc';
|
|
7
|
+
declare function calculateTrendline(data: number[]): number;
|
|
8
|
+
declare function getPopularityCategory(value: number): SectionPopularityCategory.NONE | SectionPopularityCategory.POPULAR;
|
|
9
|
+
export default function useSectionPopularity(filters?: ComputedRef<Record<string, any>>): {
|
|
10
|
+
calculateTrendline: typeof calculateTrendline;
|
|
11
|
+
engagingSections: ComputedRef<{
|
|
12
|
+
id: string;
|
|
13
|
+
popularity: import('../../../types/sectionPopularity').SectionPopularity;
|
|
14
|
+
engagement: import('../../../types/sectionPopularity').SectionEngagement;
|
|
15
|
+
views: number;
|
|
16
|
+
}[]>;
|
|
17
|
+
getOrderingConfiguration: ({ sortByMetadata }?: {
|
|
18
|
+
sortByMetadata?: boolean;
|
|
19
|
+
}) => [SorterFunction, OrderDirection][];
|
|
20
|
+
getPopularityCategory: typeof getPopularityCategory;
|
|
21
|
+
getSystemFilterSectionIds: () => string[] | null;
|
|
22
|
+
isEngagingFilterActive: ComputedRef<false | [string, any] | undefined>;
|
|
23
|
+
isLatestFilterActive: ComputedRef<false | [string, any] | undefined>;
|
|
24
|
+
isPopularFilterActive: ComputedRef<false | [string, any] | undefined>;
|
|
25
|
+
isRecommendedFilterActive: ComputedRef<false | [string, any] | undefined>;
|
|
26
|
+
popularityDict: import('vue').Ref<Record<string, SectionExtra>>;
|
|
27
|
+
popularSections: ComputedRef<{
|
|
28
|
+
id: string;
|
|
29
|
+
popularity: import('../../../types/sectionPopularity').SectionPopularity;
|
|
30
|
+
engagement: import('../../../types/sectionPopularity').SectionEngagement;
|
|
31
|
+
views: number;
|
|
32
|
+
}[]>;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentTypes } from '@canvas-builder/types/canvas';
|
|
2
|
+
|
|
3
|
+
export declare const componentMeta: Record<ComponentTypes, ComponentMeta>;
|
|
4
|
+
export declare const defaultWhenUsedInSection: {
|
|
5
|
+
is_editable: boolean;
|
|
6
|
+
is_removable: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const aspectRatios: readonly ["unlocked", "16:9", "16:10", "4:3", "1:1"];
|
|
9
|
+
export declare const aspectRatioClasses: {
|
|
10
|
+
readonly '16:9': "aspect-ratio-video";
|
|
11
|
+
readonly '16:10': "aspect-ratio-[16/10]";
|
|
12
|
+
readonly '1:1': "aspect-ratio-square";
|
|
13
|
+
readonly '4:3': "aspect-ratio-[4/3]";
|
|
14
|
+
readonly unlocked: "";
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_FONT = "Roboto";
|