@pitcher/js-api 1.26.0-beta.3 → 1.26.0-beta.5
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 +31 -0
- 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/canvas-builder/composables/useCanvas.d.ts +8 -0
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +3 -0
- package/lib/apps/canvas-builder/constants/theme.const.d.ts +34 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +6 -0
- package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +1 -0
- package/lib/components/CContactSelector/CContactSelector.vue.d.ts +2 -0
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +11 -0
- package/lib/components/CPdfDimensionsSelector/CPdfDimensionsSelector.vue.d.ts +25 -0
- package/lib/components/CTable/CTable.vue.d.ts +6 -5
- package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +2 -0
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +1 -0
- package/lib/components/sections/CSectionManagement.vue.d.ts +2 -0
- package/lib/components/themes/CThemeManagement.vue.d.ts +2 -0
- package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
- package/lib/custom-naive-locales/pt-br.d.ts +124 -0
- package/lib/main.lib.d.ts +1 -0
- package/lib/sdk/api/HighLevelApi.d.ts +18 -0
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
- package/lib/sdk/api/modules/admin/index.d.ts +1 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +13 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +35 -1
- package/lib/sdk/api/modules/ui/index.d.ts +1 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +20 -0
- package/lib/sdk/interfaces.d.ts +8 -0
- package/lib/sdk/main.d.ts +8 -0
- package/lib/types/i18n.types.d.ts +1 -1
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/utils/iframeInitialize.d.ts +1 -1
- package/package.json +1 -1
package/js-api.esm.js
CHANGED
|
@@ -2771,6 +2771,7 @@ var PitcherResponseStatus = /* @__PURE__ */ ((PitcherResponseStatus2) => {
|
|
|
2771
2771
|
var PitcherEventName = /* @__PURE__ */ ((PitcherEventName2) => {
|
|
2772
2772
|
PitcherEventName2["ENV_CHANGED"] = "env_changed";
|
|
2773
2773
|
PitcherEventName2["PHOTOS_CAPTURED"] = "photos_captured";
|
|
2774
|
+
PitcherEventName2["GLOBAL_PHOTO_CAPTURED"] = "global_photo_captured";
|
|
2774
2775
|
PitcherEventName2["FILE_DOWNLOADED"] = "file_downloaded";
|
|
2775
2776
|
PitcherEventName2["FILE_UPLOAD_PROGRESS"] = "file_upload_progress";
|
|
2776
2777
|
PitcherEventName2["UPDATE_LOCATION"] = "update_location";
|
|
@@ -3396,6 +3397,24 @@ function createHighLevelApi(options) {
|
|
|
3396
3397
|
* })
|
|
3397
3398
|
*/
|
|
3398
3399
|
broadcast: (event) => API.request("broadcast", event),
|
|
3400
|
+
/**
|
|
3401
|
+
* Broadcast an event to webviews only (iOS only).
|
|
3402
|
+
* @param {PitcherEvent} event - The event to broadcast.
|
|
3403
|
+
*
|
|
3404
|
+
* @example
|
|
3405
|
+
* usePitcherApi()
|
|
3406
|
+
* .broadcastToWebviews({
|
|
3407
|
+
* type: "canvas_updated",
|
|
3408
|
+
* body: { context: { myContextProperty: 'test' } },
|
|
3409
|
+
* })
|
|
3410
|
+
* .then(function (result) {
|
|
3411
|
+
* useUi().toast({
|
|
3412
|
+
* message: "Canvas Populated.",
|
|
3413
|
+
* type: "info",
|
|
3414
|
+
* })
|
|
3415
|
+
* })
|
|
3416
|
+
*/
|
|
3417
|
+
broadcastToWebviews: (event) => API.request("broadcast_to_webviews", event),
|
|
3399
3418
|
/**
|
|
3400
3419
|
* Subscribe to updates.
|
|
3401
3420
|
*
|
|
@@ -3428,6 +3447,7 @@ const UI_API_METHOD_TYPES = {
|
|
|
3428
3447
|
UI_UPDATE_CANVAS: "ui_update_canvas",
|
|
3429
3448
|
UI_PRINT_CANVAS: "ui_print_canvas",
|
|
3430
3449
|
UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay",
|
|
3450
|
+
UI_OPEN_COLLECTION_PLAYER_OVERLAY: "ui_open_collection_player_overlay",
|
|
3431
3451
|
UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content",
|
|
3432
3452
|
UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content",
|
|
3433
3453
|
UI_UPDATE_LOCATION: "ui_update_location",
|
|
@@ -3576,6 +3596,10 @@ async function openCanvasOverlay$1(payload) {
|
|
|
3576
3596
|
const pr = await usePostRobot();
|
|
3577
3597
|
await pr.send(window.parent, UI_API_METHOD_TYPES.UI_OPEN_CANVAS_OVERLAY, payload);
|
|
3578
3598
|
}
|
|
3599
|
+
async function openCollectionPlayerOverlay$1(payload) {
|
|
3600
|
+
const pr = await usePostRobot();
|
|
3601
|
+
await pr.send(window.parent, UI_API_METHOD_TYPES.UI_OPEN_COLLECTION_PLAYER_OVERLAY, payload);
|
|
3602
|
+
}
|
|
3579
3603
|
async function selectCanvases$1(payload = {}) {
|
|
3580
3604
|
const pr = await usePostRobot();
|
|
3581
3605
|
const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_CANVASES, payload);
|
|
@@ -3592,6 +3616,7 @@ const canvasUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3592
3616
|
closeCanvasDrawer,
|
|
3593
3617
|
closeCanvasSectionExecution,
|
|
3594
3618
|
openCanvasOverlay: openCanvasOverlay$1,
|
|
3619
|
+
openCollectionPlayerOverlay: openCollectionPlayerOverlay$1,
|
|
3595
3620
|
printCanvas,
|
|
3596
3621
|
selectCanvases: selectCanvases$1,
|
|
3597
3622
|
updateCanvas: updateCanvas$1
|
|
@@ -3719,6 +3744,7 @@ const ADMIN_API_METHOD_TYPES = {
|
|
|
3719
3744
|
GET_CANVAS: "admin_get_canvas",
|
|
3720
3745
|
GET_CANVASES: "admin_get_canvases",
|
|
3721
3746
|
OPEN_CANVAS_OVERLAY: "admin_open_canvas_overlay",
|
|
3747
|
+
OPEN_COLLECTION_PLAYER_OVERLAY: "admin_open_collection_player_overlay",
|
|
3722
3748
|
GET_ENV: "admin_get_env",
|
|
3723
3749
|
GET_FILE: "admin_get_file",
|
|
3724
3750
|
OPEN: "admin_open_file_overlay",
|
|
@@ -3780,6 +3806,10 @@ async function openCanvasOverlay(payload) {
|
|
|
3780
3806
|
const pr = await usePostRobot();
|
|
3781
3807
|
await pr.send(window.parent, ADMIN_API_METHOD_TYPES.OPEN_CANVAS_OVERLAY, payload);
|
|
3782
3808
|
}
|
|
3809
|
+
async function openCollectionPlayerOverlay(payload) {
|
|
3810
|
+
const pr = await usePostRobot();
|
|
3811
|
+
await pr.send(window.parent, ADMIN_API_METHOD_TYPES.OPEN_COLLECTION_PLAYER_OVERLAY, payload);
|
|
3812
|
+
}
|
|
3783
3813
|
async function selectCanvases(payload = {}) {
|
|
3784
3814
|
const pr = await usePostRobot();
|
|
3785
3815
|
const response = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.SELECT_CANVASES, payload);
|
|
@@ -3792,6 +3822,7 @@ const canvasAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
|
|
|
3792
3822
|
getCanvas,
|
|
3793
3823
|
getCanvases,
|
|
3794
3824
|
openCanvasOverlay,
|
|
3825
|
+
openCollectionPlayerOverlay,
|
|
3795
3826
|
selectCanvases,
|
|
3796
3827
|
updateCanvas
|
|
3797
3828
|
}, Symbol.toStringTag, { value: 'Module' }));
|