@pitcher/js-api 1.26.0-beta.4 → 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 +19 -0
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +1 -1
- package/js-api.umd.min.js.map +1 -1
- 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/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/sdk/api/HighLevelApi.d.ts +18 -0
- package/lib/sdk/interfaces.d.ts +8 -0
- package/lib/sdk/main.d.ts +3 -0
- package/lib/types/launchDarkly.types.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
|
*
|