@pitcher/js-api 1.25.0-beta.0 → 1.25.0-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "19.161.0",
2
+ "version": "19.163.1",
3
3
  "methods": {
4
4
  "on": {
5
5
  "description": "Subscribe to a given event type by its key."
package/js-api.esm.js CHANGED
@@ -2524,6 +2524,9 @@ function query(payload) {
2524
2524
  return highLevelApi.API.request("query", payload);
2525
2525
  }
2526
2526
 
2527
+ function getFolders(payload) {
2528
+ return this.API.request("get_folders", payload);
2529
+ }
2527
2530
  function getFolder(payload = { id: "root" }) {
2528
2531
  return this.API.request("get_folder", payload);
2529
2532
  }
@@ -2631,6 +2634,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2631
2634
  getFileRevisions,
2632
2635
  getFiles: getFiles$1,
2633
2636
  getFolder,
2637
+ getFolders,
2634
2638
  getInstanceMetadataTemplates: getInstanceMetadataTemplates$1,
2635
2639
  getLanguages,
2636
2640
  getRecentFiles,
@@ -2803,7 +2807,9 @@ const defaultSkipKeys = [
2803
2807
  "external_objects__connection_id",
2804
2808
  "external_objects__content_type",
2805
2809
  "external_objects__external_content_type",
2806
- "external_objects__external_object_id"
2810
+ "external_objects__external_object_id",
2811
+ "owned_by__name__icontains",
2812
+ "template__name__icontains"
2807
2813
  ];
2808
2814
  const defaultSkipObjectKeys = ["context", "overrides", "filters", "metadata", "style", "hidden"];
2809
2815
  const shouldSkipObjectKey = (key, skipObjectKeys) => {
@@ -3131,7 +3137,6 @@ const onlineRestApiHandlers = {
3131
3137
  }
3132
3138
  };
3133
3139
 
3134
- const TRUNCATE_LENGTH_TRIGGER = 10;
3135
3140
  function getTopPitcherWindow(current = window) {
3136
3141
  try {
3137
3142
  if (current.location.protocol === "file:") {
@@ -3144,6 +3149,8 @@ function getTopPitcherWindow(current = window) {
3144
3149
  }
3145
3150
  return current;
3146
3151
  }
3152
+
3153
+ const TRUNCATE_LENGTH_TRIGGER = 10;
3147
3154
  function updateOnlineHandlersEnv(env) {
3148
3155
  env && setEnv(env);
3149
3156
  }
@@ -3477,7 +3484,7 @@ const loadingUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
3477
3484
 
3478
3485
  async function updateLocation(payload) {
3479
3486
  const pr = await usePostRobot();
3480
- return pr.send(window.top, UI_API_METHOD_TYPES.UI_UPDATE_LOCATION, payload);
3487
+ return pr.send(getTopPitcherWindow(), UI_API_METHOD_TYPES.UI_UPDATE_LOCATION, payload);
3481
3488
  }
3482
3489
 
3483
3490
  const locationUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
@@ -3485,14 +3492,14 @@ const locationUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
3485
3492
  updateLocation
3486
3493
  }, Symbol.toStringTag, { value: 'Module' }));
3487
3494
 
3488
- async function captureAppError(payload) {
3495
+ async function captureAppError$1(payload) {
3489
3496
  const pr = await usePostRobot();
3490
3497
  pr.send(window.parent, UI_API_METHOD_TYPES.UI_CAPTURE_APP_ERROR, payload);
3491
3498
  }
3492
3499
 
3493
3500
  const appErrorsUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3494
3501
  __proto__: null,
3495
- captureAppError
3502
+ captureAppError: captureAppError$1
3496
3503
  }, Symbol.toStringTag, { value: 'Module' }));
3497
3504
 
3498
3505
  async function updateCanvas$1(payload) {
@@ -3659,6 +3666,7 @@ const ADMIN_API_TYPES = {
3659
3666
  ADMIN_RESPONSE: "ADMIN_RESPONSE"
3660
3667
  };
3661
3668
  const ADMIN_API_METHOD_TYPES = {
3669
+ CAPTURE_APP_ERROR: "admin_capture_app_error",
3662
3670
  CREATE_CANVAS: "admin_create_canvas",
3663
3671
  GET_APP_CONFIG: "admin_get_app_config",
3664
3672
  GET_CANVAS: "admin_get_canvas",
@@ -3678,6 +3686,16 @@ const ADMIN_API_METHOD_TYPES = {
3678
3686
  SELECT_CANVASES: "admin_select_canvases"
3679
3687
  };
3680
3688
 
3689
+ async function captureAppError(payload) {
3690
+ const pr = await usePostRobot();
3691
+ pr.send(window.parent, ADMIN_API_METHOD_TYPES.CAPTURE_APP_ERROR, payload);
3692
+ }
3693
+
3694
+ const appErrorsAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3695
+ __proto__: null,
3696
+ captureAppError
3697
+ }, Symbol.toStringTag, { value: 'Module' }));
3698
+
3681
3699
  async function getEnv$1() {
3682
3700
  const pr = await usePostRobot();
3683
3701
  const response = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.GET_ENV);
@@ -3809,6 +3827,7 @@ async function toast(payload) {
3809
3827
  const admin = {
3810
3828
  on: on$1,
3811
3829
  toast,
3830
+ ...appErrorsAdmin,
3812
3831
  ...contentAdmin,
3813
3832
  ...envAdmin,
3814
3833
  ...canvasAdmin,