@pitcher/js-api 1.24.0-rc.0 → 1.25.0-beta.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/impact-js-api.spec.json +1 -1
- package/js-api.esm.js +17 -3
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +2 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +12 -0
- package/lib/apps/browser/stores/api.d.ts +2 -0
- package/lib/apps/browser/stores/app.d.ts +2 -0
- package/lib/apps/browser/stores/upload.d.ts +4 -0
- package/lib/apps/canvas-builder/App.helpers.d.ts +2 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +48 -0
- package/lib/apps/canvas-builder/components/container/AiPrompt/AiPromptModal.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.vue.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/RestrictedSectionSelector.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.raw.vue.d.ts +3 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionListStrategySelector.vue.d.ts +7 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelector.vue.d.ts +4 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +5 -2
- package/lib/apps/canvas-builder/composables/useAiPrompt.d.ts +6 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +110 -8
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +6 -2
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -18
- package/lib/apps/canvas-builder/composables/usePrintMode.d.ts +5 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +14 -1
- package/lib/apps/collection-player/App.vue.d.ts +2 -0
- package/lib/apps/collection-player/composables/moving-group-gestures.use.d.ts +5 -5
- package/lib/apps/collection-player/stores/app.store.d.ts +4 -3
- package/lib/apps/collection-player/types/collection-player.type.d.ts +1 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +12 -0
- package/lib/apps/content-selector/stores/api.d.ts +2 -0
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +6 -0
- package/lib/components/CCarousel/CCarousel.vue.d.ts +303 -2
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +1 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +3 -1
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +2 -0
- package/lib/components/CImage/CBrokenImage.vue.d.ts +4 -1
- package/lib/components/CImage/CImage.vue.d.ts +296 -1
- package/lib/components/CSearch/CSearchOnClickWithSuggestions.vue.d.ts +23 -0
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +7 -0
- package/lib/components/CSwitch/CSwitch.vue.d.ts +10 -1
- package/lib/components/CTableInput/CTableInput.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +380 -10
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +184 -3
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +19 -0
- package/lib/components/filters/CSearchFilter.vue.d.ts +14 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -4
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +1 -1
- package/lib/composables/useCanvasLocks.d.ts +1 -0
- package/lib/composables/useCanvasOverlay.d.ts +13 -1
- package/lib/composables/useMetadataSearch.d.ts +19 -0
- package/lib/composables/useWindowEvents.d.ts +4 -3
- package/lib/constants/cdp.const.d.ts +2 -2
- package/lib/main.lib.d.ts +3 -0
- package/lib/sdk/api/HighLevelApi.d.ts +0 -1
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +20 -0
- package/lib/sdk/api/modules/admin/index.d.ts +6 -0
- package/lib/sdk/api/modules/env.d.ts +1 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +20 -0
- package/lib/sdk/api/modules/ui/index.d.ts +6 -0
- package/lib/sdk/main.d.ts +30 -3
- package/lib/sdk/payload.types.d.ts +4 -0
- package/lib/sdk/utils/window.d.ts +1 -0
- package/lib/types/app.d.ts +3 -0
- package/lib/types/core/MetadataFilter.d.ts +32 -0
- package/lib/types/files.d.ts +3 -1
- package/lib/types/instanceSettings.types.d.ts +4 -0
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +3 -0
- package/lib/types/recentFiles.types.d.ts +2 -1
- package/lib/types/search.d.ts +5 -0
- package/lib/util/anchor.d.ts +1 -1
- package/lib/util/image.d.ts +6 -0
- package/lib/util/tree-transformation.util.d.ts +0 -1
- package/lib/util/url.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +0 -2
- package/types/openapi/models/FileCreateRequest.d.ts +1 -0
- package/types/openapi/models/FileStatusEnum.d.ts +3 -1
- package/types/openapi/models/FileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedUserRequest.d.ts +1 -1
- package/types/openapi/models/SearchResult.d.ts +1 -3
- package/types/openapi/models/SharedLink.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreate.d.ts +0 -1
- package/types/openapi/models/SharedLinkCreateRequest.d.ts +0 -1
- package/types/openapi/models/SharedLinkInstance.d.ts +1 -0
- package/types/openapi/models/User.d.ts +1 -1
- package/types/openapi/models/UserRequest.d.ts +1 -1
- package/types/openapi/models/SearchContentDistributionGroup.d.ts +0 -10
- package/types/openapi/models/SearchInstanceAssignmentGroup.d.ts +0 -10
package/impact-js-api.spec.json
CHANGED
package/js-api.esm.js
CHANGED
|
@@ -3131,6 +3131,19 @@ const onlineRestApiHandlers = {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
};
|
|
3133
3133
|
|
|
3134
|
+
function getTopPitcherWindow(current = window) {
|
|
3135
|
+
try {
|
|
3136
|
+
if (current.location.protocol === "file:") {
|
|
3137
|
+
return window.top;
|
|
3138
|
+
}
|
|
3139
|
+
if (current.parent !== current && (current.parent.location.href.includes("pitcher.com") || current.parent.location.href.includes("localhost"))) {
|
|
3140
|
+
return getTopPitcherWindow(current.parent);
|
|
3141
|
+
}
|
|
3142
|
+
} catch (e) {
|
|
3143
|
+
}
|
|
3144
|
+
return current;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3134
3147
|
const TRUNCATE_LENGTH_TRIGGER = 10;
|
|
3135
3148
|
function updateOnlineHandlersEnv(env) {
|
|
3136
3149
|
env && setEnv(env);
|
|
@@ -3225,8 +3238,9 @@ class LowLevelApi extends EventEmitter {
|
|
|
3225
3238
|
}
|
|
3226
3239
|
});
|
|
3227
3240
|
} else {
|
|
3228
|
-
|
|
3229
|
-
|
|
3241
|
+
const targetWindow = getTopPitcherWindow(window);
|
|
3242
|
+
if (typeof targetWindow !== "undefined" && targetWindow) {
|
|
3243
|
+
targetWindow.postMessage(
|
|
3230
3244
|
{
|
|
3231
3245
|
type: "PITCHER_REQUEST",
|
|
3232
3246
|
request: {
|
|
@@ -3464,7 +3478,7 @@ const loadingUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
3464
3478
|
|
|
3465
3479
|
async function updateLocation(payload) {
|
|
3466
3480
|
const pr = await usePostRobot();
|
|
3467
|
-
return pr.send(
|
|
3481
|
+
return pr.send(getTopPitcherWindow(), UI_API_METHOD_TYPES.UI_UPDATE_LOCATION, payload);
|
|
3468
3482
|
}
|
|
3469
3483
|
|
|
3470
3484
|
const locationUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|