@pitcher/js-api 1.24.0-beta.1 → 1.24.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.
package/README.md CHANGED
@@ -32,9 +32,11 @@ This is the JavaScript API to interact with the data layer of the NG platform.
32
32
  For more details, please visit the [documentation](https://pitcherag.github.io/canvas-ui).
33
33
 
34
34
  ## Beta deployment
35
- 1. Go to canvas-ui folder
36
- 2. Edit `src/assets/jsApiAssets/package.json` and change version in package json to beta eg. `1.0.0-beta.0`
37
- 3. Run `yarn`
38
- 4. Run `yarn js-api:build`
39
- 5. Run `cd builds/js-api`
40
- 6. Run `npm publish --tag beta`
35
+
36
+ 1. Go to `canvas-ui` folder
37
+ 2. Edit `src/assets/jsApiAssets/package.json` and change version in the file to beta eg. `1.0.0-beta.0`
38
+ 3. Start console in `canvas-ui` folder
39
+ 4. Run `yarn`
40
+ 5. Run `yarn js-api:build`
41
+ 6. Run `cd builds/js-api`
42
+ 7. Run `npm publish --tag beta`
package/js-api.esm.js CHANGED
@@ -3376,12 +3376,12 @@ async function preselectSfdcMeetingId(payload) {
3376
3376
  const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_PRESELECT_SFDC_MEETING_ID, payload);
3377
3377
  return response.data;
3378
3378
  }
3379
- async function selectCollectionContent(payload = {}) {
3379
+ async function selectCollectionContent$1(payload = {}) {
3380
3380
  const pr = await usePostRobot();
3381
3381
  const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_COLLECTION_PLAYER_CONTENT, payload);
3382
3382
  return response.data;
3383
3383
  }
3384
- async function selectAgendaContent(payload = {}) {
3384
+ async function selectAgendaContent$1(payload = {}) {
3385
3385
  const pr = await usePostRobot();
3386
3386
  const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_AGENDA_CONTENT, payload);
3387
3387
  return response.data;
@@ -3391,8 +3391,8 @@ const contentUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
3391
3391
  __proto__: null,
3392
3392
  open: open$1,
3393
3393
  preselectSfdcMeetingId,
3394
- selectAgendaContent,
3395
- selectCollectionContent,
3394
+ selectAgendaContent: selectAgendaContent$1,
3395
+ selectCollectionContent: selectCollectionContent$1,
3396
3396
  selectContent: selectContent$1,
3397
3397
  toast: toast$1,
3398
3398
  ui_select_content
@@ -3712,6 +3712,23 @@ const filesAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
3712
3712
  selectContent
3713
3713
  }, Symbol.toStringTag, { value: 'Module' }));
3714
3714
 
3715
+ async function selectCollectionContent(payload = {}) {
3716
+ const pr = await usePostRobot();
3717
+ const response = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.SELECT_COLLECTION_PLAYER_CONTENT, payload);
3718
+ return response.data;
3719
+ }
3720
+ async function selectAgendaContent(payload = {}) {
3721
+ const pr = await usePostRobot();
3722
+ const response = await pr.send(window.parent, ADMIN_API_METHOD_TYPES.SELECT_AGENDA_CONTENT, payload);
3723
+ return response.data;
3724
+ }
3725
+
3726
+ const contentAdmin = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3727
+ __proto__: null,
3728
+ selectAgendaContent,
3729
+ selectCollectionContent
3730
+ }, Symbol.toStringTag, { value: 'Module' }));
3731
+
3715
3732
  async function on$1(type, handler) {
3716
3733
  const pr = await usePostRobot();
3717
3734
  const listener = pr.on(type, (e) => handler(e.data));
@@ -3724,6 +3741,7 @@ async function toast(payload) {
3724
3741
  const admin = {
3725
3742
  on: on$1,
3726
3743
  toast,
3744
+ ...contentAdmin,
3727
3745
  ...envAdmin,
3728
3746
  ...canvasAdmin,
3729
3747
  ...metadataTemplatesAdmin,