@pitcher/js-api 1.22.0 → 1.23.0-rc.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/js-api.esm.js +52 -43
- 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/browser/stores/api.d.ts +0 -12
- package/lib/apps/canvas-builder/App.vue.d.ts +256 -177
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +0 -2
- package/lib/apps/canvas-builder/components/ui/Block/Block.vue.d.ts +11 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/tracking.use.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +4 -4
- package/lib/apps/canvas-builder/components/ui/SectionList/Execution/SectionListExecution.vue.d.ts +10 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorItem.vue.d.ts +3 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +570 -0
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +837 -0
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +126 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +9 -5
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +23 -4
- package/lib/apps/canvas-builder/types/canvas.d.ts +40 -4
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -2
- package/lib/apps/canvas-selector/stores/app.d.ts +14 -0
- package/lib/apps/content-selector/appTypes.d.ts +2 -0
- package/lib/apps/content-selector/stores/app.d.ts +1 -0
- package/lib/components/CApexChart/CApexChartLine.vue.d.ts +7 -3
- package/lib/components/CConfigEditor/CConfigEditor.validators.d.ts +3 -1
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +3 -0
- package/lib/components/{CCreateTemplateOrSectionModal/CCreateTemplateOrSectionModal.vue.d.ts → CCreateTemplateSectionBlockModal/CCreateTemplateSectionBlockModal.vue.d.ts} +2 -1
- package/lib/components/CFilePanel/CFilePanel.use.d.ts +12 -0
- package/lib/components/CFilePanel/CFilePanel.vue.d.ts +14 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +196 -6
- package/lib/components/CFileViewer/CFileViewerTop.vue.d.ts +6 -4
- package/lib/components/CFileViewer/pdf/CFileViewer.pageThumbMetadata.pdf.use.d.ts +8 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.annotations.use.d.ts +2 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.use.d.ts +4 -2
- package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +5 -4
- package/lib/components/CFileViewer/pdf/CFileViewerCopyPagesMetadata.pdf.vue.d.ts +13 -0
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawer.pdf.vue.d.ts +26 -0
- package/lib/components/CFileViewer/pdf/CFileViewerPageDrawerSelectPage.vue.d.ts +15 -0
- package/lib/components/CInfoBadge/CInfoBadge.vue.d.ts +5 -2
- package/lib/components/CJsonEditor/CJsonEditor.vue.d.ts +5 -1
- package/lib/components/CRichTextEditor/components/CContentLinkToolbar.vue.d.ts +10 -0
- package/lib/components/CRichTextEditor/components/CInsertDropdown.vue.d.ts +2 -0
- package/lib/components/CRichTextEditor/extensions/contentLink.d.ts +22 -0
- package/lib/components/CSingleFileSelector/CSingleFileSelector.vue.d.ts +28 -0
- package/lib/components/CTableInput/CTableInput.vue.d.ts +2 -0
- package/lib/components/CTags/CTags.vue.d.ts +1 -0
- package/lib/components/CVideo/CVideo.types.d.ts +7 -0
- package/lib/components/CVideo/CVideo.vue.d.ts +3 -7
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +253 -0
- package/lib/components/canvas-blocks/CBlockManagementActionsCell.vue.d.ts +32 -0
- package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +60 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -2
- package/lib/components/savedCanvases/CSavedCanvasesManagementIndicatorsCell.vue.d.ts +7 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +4 -0
- package/lib/constants/cdp.const.d.ts +1 -0
- package/lib/main.lib.d.ts +4 -1
- package/lib/sdk/api/HighLevelApi.d.ts +5 -0
- package/lib/sdk/api/modules/canvas.d.ts +26 -1
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +10 -0
- package/lib/sdk/api/modules/ui/index.d.ts +1 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +1 -1
- package/lib/sdk/api/modules/ui/types.ui.d.ts +1 -0
- package/lib/sdk/main.d.ts +18 -0
- package/lib/types/app.d.ts +1 -1
- package/lib/types/canvases.d.ts +9 -1
- package/lib/types/file.types.d.ts +15 -0
- package/lib/types/launchDarkly.types.d.ts +3 -1
- package/lib/types/organizationSettings.types.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +1 -0
- package/types/openapi/models/Canvas.d.ts +1 -0
- package/types/openapi/models/CanvasCreate.d.ts +1 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +1 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +1 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -0
- package/types/openapi/models/PatchedCanvasIndicatorsRequest.d.ts +3 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +1 -0
- package/lib/apps/browser/components/Content/Panel/FilePanel/FilePanel.vue.d.ts +0 -2
- /package/lib/apps/canvas-builder/components/ui/CollectionPlayer/components/{PreviewImage.vue.d.ts → MainImage.vue.d.ts} +0 -0
- /package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/{cache.use.d.ts → image-cache.use.d.ts} +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/BasicInfo.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Details.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Metadata.vue.d.ts +0 -0
- /package/lib/{apps/browser/components/Content/Panel/FilePanel → components/CFilePanel}/Tags.vue.d.ts +0 -0
- /package/lib/components/CFileViewer/pdf/{CFileViewer.pageFavorite.pdf.use.d.ts → CFileViewer.pageThumbFavorite.pdf.use.d.ts} +0 -0
package/js-api.esm.js
CHANGED
|
@@ -2421,6 +2421,9 @@ function updateCanvas$2(payload) {
|
|
|
2421
2421
|
return res;
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
|
+
function updateCanvasIndicators(payload) {
|
|
2425
|
+
return this.API.request("update_canvas_indicators", payload);
|
|
2426
|
+
}
|
|
2424
2427
|
function getCanvas$1(payload) {
|
|
2425
2428
|
return this.API.request("get_canvas", payload);
|
|
2426
2429
|
}
|
|
@@ -2613,6 +2616,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
2613
2616
|
track,
|
|
2614
2617
|
triggerNonFilesSync,
|
|
2615
2618
|
updateCanvas: updateCanvas$2,
|
|
2619
|
+
updateCanvasIndicators,
|
|
2616
2620
|
updateEvent,
|
|
2617
2621
|
updateFile,
|
|
2618
2622
|
updateFolder,
|
|
@@ -2632,57 +2636,57 @@ class EventEmitter {
|
|
|
2632
2636
|
}
|
|
2633
2637
|
}
|
|
2634
2638
|
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
*/
|
|
2639
|
-
var byteToHex = [];
|
|
2640
|
-
for (var i = 0; i < 256; ++i) {
|
|
2641
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
2639
|
+
const byteToHex = [];
|
|
2640
|
+
for (let i = 0; i < 256; ++i) {
|
|
2641
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
2642
2642
|
}
|
|
2643
2643
|
function unsafeStringify(arr, offset = 0) {
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2644
|
+
return (byteToHex[arr[offset + 0]] +
|
|
2645
|
+
byteToHex[arr[offset + 1]] +
|
|
2646
|
+
byteToHex[arr[offset + 2]] +
|
|
2647
|
+
byteToHex[arr[offset + 3]] +
|
|
2648
|
+
'-' +
|
|
2649
|
+
byteToHex[arr[offset + 4]] +
|
|
2650
|
+
byteToHex[arr[offset + 5]] +
|
|
2651
|
+
'-' +
|
|
2652
|
+
byteToHex[arr[offset + 6]] +
|
|
2653
|
+
byteToHex[arr[offset + 7]] +
|
|
2654
|
+
'-' +
|
|
2655
|
+
byteToHex[arr[offset + 8]] +
|
|
2656
|
+
byteToHex[arr[offset + 9]] +
|
|
2657
|
+
'-' +
|
|
2658
|
+
byteToHex[arr[offset + 10]] +
|
|
2659
|
+
byteToHex[arr[offset + 11]] +
|
|
2660
|
+
byteToHex[arr[offset + 12]] +
|
|
2661
|
+
byteToHex[arr[offset + 13]] +
|
|
2662
|
+
byteToHex[arr[offset + 14]] +
|
|
2663
|
+
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
let getRandomValues;
|
|
2667
|
+
const rnds8 = new Uint8Array(16);
|
|
2658
2668
|
function rng() {
|
|
2659
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
2660
|
-
if (!getRandomValues) {
|
|
2661
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
2662
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
2663
2669
|
if (!getRandomValues) {
|
|
2664
|
-
|
|
2670
|
+
if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
|
|
2671
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
2672
|
+
}
|
|
2673
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
2665
2674
|
}
|
|
2666
|
-
|
|
2667
|
-
return getRandomValues(rnds8);
|
|
2675
|
+
return getRandomValues(rnds8);
|
|
2668
2676
|
}
|
|
2669
2677
|
|
|
2670
|
-
|
|
2671
|
-
const native = {
|
|
2672
|
-
randomUUID
|
|
2673
|
-
};
|
|
2678
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
2679
|
+
const native = { randomUUID };
|
|
2674
2680
|
|
|
2675
2681
|
function v4(options, buf, offset) {
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
2685
|
-
return unsafeStringify(rnds);
|
|
2682
|
+
if (native.randomUUID && !buf && !options) {
|
|
2683
|
+
return native.randomUUID();
|
|
2684
|
+
}
|
|
2685
|
+
options = options || {};
|
|
2686
|
+
const rnds = options.random || (options.rng || rng)();
|
|
2687
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
2688
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
2689
|
+
return unsafeStringify(rnds);
|
|
2686
2690
|
}
|
|
2687
2691
|
|
|
2688
2692
|
const PITCHER_EVENT = "PITCHER_EVENT";
|
|
@@ -3326,7 +3330,8 @@ const UI_API_METHOD_TYPES = {
|
|
|
3326
3330
|
UI_CANVAS_NAVIGATE_PREVIOUS_PAGE: "ui_canvas_navigate_previous_page",
|
|
3327
3331
|
UI_CANVAS_NAVIGATE_PAGE: "ui_canvas_navigate_page",
|
|
3328
3332
|
UI_APP_LOADED: "ui_app_loaded",
|
|
3329
|
-
UI_APP_RESIZE: "ui_app_resize"
|
|
3333
|
+
UI_APP_RESIZE: "ui_app_resize",
|
|
3334
|
+
UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution"
|
|
3330
3335
|
};
|
|
3331
3336
|
const UI_MESSAGE_TYPES = {
|
|
3332
3337
|
UI_MEETING_CANCELED: "ui_meeting_canceled",
|
|
@@ -3418,6 +3423,9 @@ async function appLoaded() {
|
|
|
3418
3423
|
async function appResize(payload) {
|
|
3419
3424
|
window.parent.postMessage({ type: UI_API_METHOD_TYPES.UI_APP_RESIZE, body: payload }, "*");
|
|
3420
3425
|
}
|
|
3426
|
+
async function closeCanvasSectionExecution() {
|
|
3427
|
+
window.parent.postMessage({ type: UI_API_METHOD_TYPES.UI_CLOSE_CANVAS_SECTION_EXECUTION, body: {} }, "*");
|
|
3428
|
+
}
|
|
3421
3429
|
async function canvasNavigateNextPage() {
|
|
3422
3430
|
const pr = await usePostRobot();
|
|
3423
3431
|
pr.send(window.parent, UI_API_METHOD_TYPES.UI_CANVAS_NAVIGATE_NEXT_PAGE);
|
|
@@ -3447,6 +3455,7 @@ const canvasUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3447
3455
|
canvasNavigateNextPage,
|
|
3448
3456
|
canvasNavigatePage,
|
|
3449
3457
|
canvasNavigatePreviousPage,
|
|
3458
|
+
closeCanvasSectionExecution,
|
|
3450
3459
|
openCanvasOverlay: openCanvasOverlay$1,
|
|
3451
3460
|
selectCanvases: selectCanvases$1,
|
|
3452
3461
|
updateCanvas: updateCanvas$1
|