@pitcher/js-api 1.26.0-beta.2 → 1.26.0-beta.4

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.
Files changed (28) hide show
  1. package/js-api.esm.js +13 -1
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +9 -9
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/apps/canvas-builder/components/container/CanvasContent/pageWrapper.paginated.vue.d.ts +21 -9
  6. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +2 -0
  7. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentContent.vue.d.ts +2 -0
  8. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +20 -12
  9. package/lib/apps/canvas-builder/util/print.util.d.ts +29 -0
  10. package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +1 -0
  11. package/lib/components/CContactSelector/CContactSelector.vue.d.ts +2 -0
  12. package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +11 -0
  13. package/lib/components/CContentError/CContentError.vue.d.ts +8 -0
  14. package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
  15. package/lib/custom-naive-locales/pt-br.d.ts +124 -0
  16. package/lib/main.lib.d.ts +3 -0
  17. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
  18. package/lib/sdk/api/modules/admin/index.d.ts +1 -0
  19. package/lib/sdk/api/modules/admin/types.admin.d.ts +13 -0
  20. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +35 -1
  21. package/lib/sdk/api/modules/ui/index.d.ts +1 -0
  22. package/lib/sdk/api/modules/ui/types.ui.d.ts +20 -0
  23. package/lib/sdk/main.d.ts +5 -0
  24. package/lib/types/canvases.d.ts +1 -0
  25. package/lib/types/i18n.types.d.ts +1 -1
  26. package/lib/types/organizationSettings.types.d.ts +3 -3
  27. package/lib/utils/iframeInitialize.d.ts +1 -1
  28. package/package.json +1 -1
@@ -1,21 +1,27 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { ComponentTypes, ComponentNode } from '../../../types/canvas';
3
2
  interface Props {
4
- page: ComponentNode[];
5
3
  isScaleContentEnabled?: boolean;
6
4
  aspectRatioStyle: CSSProperties | undefined;
7
- componentMap: Record<ComponentTypes, any>;
8
- getChildComponentStyle: (parent: ComponentNode, child: ComponentNode, index: number) => CSSProperties;
9
- getComponentBindings: (component: ComponentNode) => any;
10
- getTopLevelComponentStyle: (page: ComponentNode[], component: ComponentNode, index: number) => CSSProperties;
11
- onElementVisibility: (isVisible: boolean, component: ComponentNode) => void;
12
- shouldRenderComponentWrapper: (component: ComponentNode) => boolean | undefined;
13
5
  aspectRatio: {
14
6
  x: number;
15
7
  y: number;
16
8
  } | undefined;
17
9
  }
18
- declare const _default: import('vue').DefineComponent<Props, {
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {
17
+ pageWrapperRef: HTMLDivElement;
18
+ pageContainerRef: HTMLDivElement;
19
+ pageContentRef: HTMLDivElement;
20
+ };
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
19
25
  pageWrapperRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
20
26
  pageContainerRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
21
27
  pageContentRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
@@ -24,4 +30,10 @@ declare const _default: import('vue').DefineComponent<Props, {
24
30
  pageContainerRef: HTMLDivElement;
25
31
  pageContentRef: HTMLDivElement;
26
32
  }, HTMLDivElement>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
34
  export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -31,6 +31,8 @@ type __VLS_Props = {
31
31
  resizable?: boolean;
32
32
  resizeHandles?: ResizeHandlePosition[];
33
33
  resizeMaintainAspectRatio?: boolean;
34
+ expiredContent?: boolean;
35
+ restrictedContent?: boolean;
34
36
  variants?: {
35
37
  title: string;
36
38
  options: DropdownOption[];
@@ -37,6 +37,8 @@ type __VLS_Props = {
37
37
  showOnlyTopToolbar?: boolean;
38
38
  to?: HTMLElement | string;
39
39
  showOnlyBottomToolbar?: boolean;
40
+ expiredContent?: boolean;
41
+ restrictedContent?: boolean;
40
42
  };
41
43
  declare function __VLS_template(): {
42
44
  attrs: Partial<{}>;
@@ -3952,6 +3952,7 @@ export default function useCanvas(): {
3952
3952
  zh?: Record<string, string> | undefined;
3953
3953
  it?: Record<string, string> | undefined;
3954
3954
  pt?: Record<string, string> | undefined;
3955
+ "pt-br"?: Record<string, string> | undefined;
3955
3956
  nl?: Record<string, string> | undefined;
3956
3957
  } | undefined;
3957
3958
  file_annotations_mode?: "admin" | "personal" | undefined;
@@ -4019,9 +4020,9 @@ export default function useCanvas(): {
4019
4020
  enable_quick_filters_for_search_metadata_filters?: boolean | undefined;
4020
4021
  enable_thumbnails_for_templates_and_blocks?: boolean | undefined;
4021
4022
  default_pdf_page_dimensions?: {
4022
- width?: number | undefined;
4023
- height?: number | undefined;
4024
- printScale?: number | undefined;
4023
+ width?: number | string | undefined;
4024
+ height?: number | string | undefined;
4025
+ print_scale?: number | undefined;
4025
4026
  } | undefined;
4026
4027
  disable_browser_search_context?: boolean | undefined;
4027
4028
  location_prompt_type?: "warning" | "block" | undefined;
@@ -4249,6 +4250,7 @@ export default function useCanvas(): {
4249
4250
  zh?: Record<string, string> | undefined;
4250
4251
  it?: Record<string, string> | undefined;
4251
4252
  pt?: Record<string, string> | undefined;
4253
+ "pt-br"?: Record<string, string> | undefined;
4252
4254
  nl?: Record<string, string> | undefined;
4253
4255
  } | undefined;
4254
4256
  file_annotations_mode?: "admin" | "personal" | undefined;
@@ -4316,9 +4318,9 @@ export default function useCanvas(): {
4316
4318
  enable_quick_filters_for_search_metadata_filters?: boolean | undefined;
4317
4319
  enable_thumbnails_for_templates_and_blocks?: boolean | undefined;
4318
4320
  default_pdf_page_dimensions?: {
4319
- width?: number | undefined;
4320
- height?: number | undefined;
4321
- printScale?: number | undefined;
4321
+ width?: number | string | undefined;
4322
+ height?: number | string | undefined;
4323
+ print_scale?: number | undefined;
4322
4324
  } | undefined;
4323
4325
  disable_browser_search_context?: boolean | undefined;
4324
4326
  location_prompt_type?: "warning" | "block" | undefined;
@@ -4539,6 +4541,9 @@ export default function useCanvas(): {
4539
4541
  readonly pt?: {
4540
4542
  readonly [x: string]: string;
4541
4543
  } | undefined;
4544
+ readonly "pt-br"?: {
4545
+ readonly [x: string]: string;
4546
+ } | undefined;
4542
4547
  readonly nl?: {
4543
4548
  readonly [x: string]: string;
4544
4549
  } | undefined;
@@ -4608,9 +4613,9 @@ export default function useCanvas(): {
4608
4613
  readonly enable_quick_filters_for_search_metadata_filters?: boolean | undefined;
4609
4614
  readonly enable_thumbnails_for_templates_and_blocks?: boolean | undefined;
4610
4615
  readonly default_pdf_page_dimensions?: {
4611
- readonly width?: number | undefined;
4612
- readonly height?: number | undefined;
4613
- readonly printScale?: number | undefined;
4616
+ readonly width?: number | string | undefined;
4617
+ readonly height?: number | string | undefined;
4618
+ readonly print_scale?: number | undefined;
4614
4619
  } | undefined;
4615
4620
  readonly disable_browser_search_context?: boolean | undefined;
4616
4621
  readonly location_prompt_type?: "warning" | "block" | undefined;
@@ -4830,6 +4835,9 @@ export default function useCanvas(): {
4830
4835
  readonly pt?: {
4831
4836
  readonly [x: string]: string;
4832
4837
  } | undefined;
4838
+ readonly "pt-br"?: {
4839
+ readonly [x: string]: string;
4840
+ } | undefined;
4833
4841
  readonly nl?: {
4834
4842
  readonly [x: string]: string;
4835
4843
  } | undefined;
@@ -4899,9 +4907,9 @@ export default function useCanvas(): {
4899
4907
  readonly enable_quick_filters_for_search_metadata_filters?: boolean | undefined;
4900
4908
  readonly enable_thumbnails_for_templates_and_blocks?: boolean | undefined;
4901
4909
  readonly default_pdf_page_dimensions?: {
4902
- readonly width?: number | undefined;
4903
- readonly height?: number | undefined;
4904
- readonly printScale?: number | undefined;
4910
+ readonly width?: number | string | undefined;
4911
+ readonly height?: number | string | undefined;
4912
+ readonly print_scale?: number | undefined;
4905
4913
  } | undefined;
4906
4914
  readonly disable_browser_search_context?: boolean | undefined;
4907
4915
  readonly location_prompt_type?: "warning" | "block" | undefined;
@@ -1 +1,30 @@
1
1
  export declare function replaceThemePresetsWithInlineStyles(htmlContent: string, shouldPreserveStyles?: boolean): string;
2
+ /**
3
+ * Converts a measurement value to pixels.
4
+ * If the value is a number, it's assumed to be in pixels.
5
+ * If it's a string, it must include a unit (mm, cm, in, px, pt, pc).
6
+ * Supports both comma and period as decimal separators (e.g., "10.5mm" or "10,5mm").
7
+ *
8
+ * Conversion rates:
9
+ * - 1 inch = 96 pixels (CSS standard)
10
+ * - 1 cm = 37.795275591 pixels
11
+ * - 1 mm = 3.7795275591 pixels
12
+ * - 1 pt = 1.333333 pixels
13
+ * - 1 pc = 16 pixels
14
+ *
15
+ * @param value - Number in pixels or string with unit (e.g., "1000mm", "100,5cm", "4.5in", "96px", "72pt", "6pc")
16
+ * @returns Value in pixels
17
+ */
18
+ export declare function convertToPixels(value: number | string | undefined): number | undefined;
19
+ /**
20
+ * Formats a dimension value for Gotenberg PDF conversion.
21
+ * If the value is a string with units (mm, cm, in, px, pt, pc), normalizes it to use period as decimal separator.
22
+ * If it's a number, appends "px" since the convention is that numbers represent pixels.
23
+ * Supports both comma and period as decimal separators (e.g., "10.5mm" or "10,5mm").
24
+ *
25
+ * Gotenberg supports: 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
26
+ *
27
+ * @param value - Number in pixels or string with unit (e.g., "1000mm", "100,5cm", "4.5in", "96px", "72pt", "6pc")
28
+ * @returns Formatted value for Gotenberg (e.g., "1000mm", "10.5cm", "4in", "96px", "72pt", "6pc") or undefined
29
+ */
30
+ export declare function formatDimensionForGotenberg(value: number | string | undefined): string | undefined;
@@ -11,6 +11,7 @@ type __VLS_Props = {
11
11
  loading: boolean;
12
12
  allowAccountChange?: boolean;
13
13
  allowContactsFromDifferentAccounts?: boolean;
14
+ restrictToSingleContact?: boolean;
14
15
  lastViewedDate?: string;
15
16
  };
16
17
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -9,6 +9,7 @@ type __VLS_Props = {
9
9
  singleColumnView?: boolean;
10
10
  allowAccountChange?: boolean;
11
11
  allowContactsFromDifferentAccounts?: boolean;
12
+ restrictToSingleContact?: boolean;
12
13
  isDraggable?: boolean;
13
14
  quickFiltersTitle?: string;
14
15
  mutuallyExclusiveQuickFilters?: boolean;
@@ -43,6 +44,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
43
44
  selectedContactIds: string[];
44
45
  allowAccountChange: boolean;
45
46
  isDraggable: boolean;
47
+ restrictToSingleContact: boolean;
46
48
  mutuallyExclusiveQuickFilters: boolean;
47
49
  singleColumnView: boolean;
48
50
  selectedQuickFilters: string[];
@@ -16,6 +16,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  type: PropType<boolean>;
17
17
  default: boolean;
18
18
  };
19
+ restrictToSingleContact: {
20
+ type: PropType<boolean>;
21
+ default: boolean;
22
+ };
19
23
  search: {
20
24
  type: PropType<string>;
21
25
  required: true;
@@ -79,6 +83,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
79
83
  type: PropType<boolean>;
80
84
  default: boolean;
81
85
  };
86
+ restrictToSingleContact: {
87
+ type: PropType<boolean>;
88
+ default: boolean;
89
+ };
82
90
  search: {
83
91
  type: PropType<string>;
84
92
  required: true;
@@ -130,6 +138,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
130
138
  selectedContactIds: string[];
131
139
  allowAccountChange: boolean;
132
140
  allowContactsFromDifferentAccounts: boolean;
141
+ restrictToSingleContact: boolean;
133
142
  mutuallyExclusiveQuickFilters: boolean;
134
143
  singleColumnView: boolean;
135
144
  customAccountDisplayField: string;
@@ -786,6 +795,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
786
795
  loading: boolean;
787
796
  allowAccountChange?: boolean;
788
797
  allowContactsFromDifferentAccounts?: boolean;
798
+ restrictToSingleContact?: boolean;
789
799
  lastViewedDate?: string;
790
800
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
791
801
  "remove-contact": (contactId: string) => any;
@@ -805,6 +815,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
805
815
  loading: boolean;
806
816
  allowAccountChange?: boolean;
807
817
  allowContactsFromDifferentAccounts?: boolean;
818
+ restrictToSingleContact?: boolean;
808
819
  lastViewedDate?: string;
809
820
  }> & Readonly<{
810
821
  "onRemove-contact"?: ((contactId: string) => any) | undefined;
@@ -0,0 +1,8 @@
1
+ interface Props {
2
+ expired?: boolean;
3
+ restricted?: boolean;
4
+ onlyIcon?: boolean;
5
+ onlyTag?: boolean;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { CollectionPlayer } from '../apps/collection-player/types/collection-player.type';
2
+ export interface CollectionPlayerOverlayGroup {
3
+ id: string;
4
+ name: string;
5
+ slides?: Array<{
6
+ file_id: string;
7
+ slide_index: number;
8
+ }>;
9
+ }
10
+ export interface CollectionPlayerOverlay {
11
+ groups: CollectionPlayerOverlayGroup[];
12
+ name: string;
13
+ }
14
+ declare const _default: () => {
15
+ setCollectionPlayerData: import('vue').Ref<((data: CollectionPlayer) => void) | null, ((data: CollectionPlayer) => void) | null>;
16
+ openCollectionPlayerOverlay: (data: CollectionPlayerOverlay, fetchFile: (fileId: string) => Promise<any>) => Promise<void>;
17
+ };
18
+ export default _default;
@@ -0,0 +1,124 @@
1
+ declare const _default: {
2
+ name: string;
3
+ global: {
4
+ undo: string;
5
+ redo: string;
6
+ confirm: string;
7
+ clear: string;
8
+ };
9
+ Popconfirm: {
10
+ positiveText: string;
11
+ negativeText: string;
12
+ };
13
+ Cascader: {
14
+ placeholder: string;
15
+ loading: string;
16
+ loadingRequiredMessage: (label: string) => string;
17
+ };
18
+ Time: {
19
+ dateFormat: string;
20
+ dateTimeFormat: string;
21
+ };
22
+ DatePicker: {
23
+ yearFormat: string;
24
+ monthFormat: string;
25
+ dayFormat: string;
26
+ yearTypeFormat: string;
27
+ monthTypeFormat: string;
28
+ dateFormat: string;
29
+ dateTimeFormat: string;
30
+ quarterFormat: string;
31
+ weekFormat: string;
32
+ clear: string;
33
+ now: string;
34
+ confirm: string;
35
+ selectTime: string;
36
+ selectDate: string;
37
+ datePlaceholder: string;
38
+ datetimePlaceholder: string;
39
+ monthPlaceholder: string;
40
+ yearPlaceholder: string;
41
+ quarterPlaceholder: string;
42
+ weekPlaceholder: string;
43
+ startDatePlaceholder: string;
44
+ endDatePlaceholder: string;
45
+ startDatetimePlaceholder: string;
46
+ endDatetimePlaceholder: string;
47
+ startMonthPlaceholder: string;
48
+ endMonthPlaceholder: string;
49
+ monthBeforeYear: boolean;
50
+ firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
51
+ today: string;
52
+ };
53
+ DataTable: {
54
+ checkTableAll: string;
55
+ uncheckTableAll: string;
56
+ confirm: string;
57
+ clear: string;
58
+ };
59
+ LegacyTransfer: {
60
+ sourceTitle: string;
61
+ targetTitle: string;
62
+ };
63
+ Transfer: {
64
+ selectAll: string;
65
+ unselectAll: string;
66
+ clearAll: string;
67
+ total: (num: number) => string;
68
+ selected: (num: number) => string;
69
+ };
70
+ Empty: {
71
+ description: string;
72
+ };
73
+ Select: {
74
+ placeholder: string;
75
+ };
76
+ TimePicker: {
77
+ placeholder: string;
78
+ positiveText: string;
79
+ negativeText: string;
80
+ now: string;
81
+ clear: string;
82
+ };
83
+ Pagination: {
84
+ goto: string;
85
+ selectionSuffix: string;
86
+ };
87
+ DynamicTags: {
88
+ add: string;
89
+ };
90
+ Log: {
91
+ loading: string;
92
+ };
93
+ Input: {
94
+ placeholder: string;
95
+ };
96
+ InputNumber: {
97
+ placeholder: string;
98
+ };
99
+ DynamicInput: {
100
+ create: string;
101
+ };
102
+ ThemeEditor: {
103
+ title: string;
104
+ clearAllVars: string;
105
+ clearSearch: string;
106
+ filterCompName: string;
107
+ filterVarName: string;
108
+ import: string;
109
+ export: string;
110
+ restore: string;
111
+ };
112
+ Image: {
113
+ tipPrevious: string;
114
+ tipNext: string;
115
+ tipCounterclockwise: string;
116
+ tipClockwise: string;
117
+ tipZoomOut: string;
118
+ tipZoomIn: string;
119
+ tipDownload: string;
120
+ tipClose: string;
121
+ tipOriginalSize: string;
122
+ };
123
+ };
124
+ export default _default;
package/lib/main.lib.d.ts CHANGED
@@ -47,6 +47,7 @@ export { default as CConfirmationContent } from './components/CConfirmation/CCon
47
47
  export { default as CConfirmationAction } from './components/CConfirmation/CConfirmationAction.vue';
48
48
  export { default as CCanvasSelector } from './components/CCanvasSelector/CCanvasSelector.vue';
49
49
  export { default as CContactSelector } from './components/CContactSelector/CContactSelector.vue';
50
+ export { default as CContentError } from './components/CContentError/CContentError.vue';
50
51
  export { default as CContactSelectorSelected } from './components/CContactSelector/CContactSelectorSelected.vue';
51
52
  export * from './components/CContactSelector/CContactSelector.types';
52
53
  export { default as CCreateCanvasModal } from './components/CCreateCanvasModal/CCreateCanvasModal.vue';
@@ -135,6 +136,7 @@ export { default as useBindValidation } from './composables/useBindValidation';
135
136
  export { default as useFileDisplayHelpers } from './composables/useFileDisplayHelpers';
136
137
  export { default as useFolderNameDescription } from './composables/useFolderNameDescription';
137
138
  export { default as useCanvasOverlay } from './composables/useCanvasOverlay';
139
+ export { default as useCollectionPlayerOverlay, type CollectionPlayerOverlay, } from './composables/useCollectionPlayerOverlay';
138
140
  export { default as useInfiniteScroll } from './composables/useInfiniteScroll';
139
141
  export { default as useWindowEvents } from './composables/useWindowEvents';
140
142
  export { default as useConfirmation } from './composables/useConfirmation';
@@ -157,6 +159,7 @@ export { default as useBroadcastRouteChange } from './composables/useBroadcastRo
157
159
  export * from './plugins/vueQuery';
158
160
  export * from './apps/canvas-builder/util/canvas.util';
159
161
  export * from './apps/canvas-builder/util/tree';
162
+ export * from './apps/canvas-builder/util/print.util';
160
163
  export * from './components/filters/filter.util';
161
164
  export * from './util/anchor';
162
165
  export * from './util/array';
@@ -1,7 +1,7 @@
1
1
  import { CanvasRetrieve, PatchedCanvasUpdateRequest, Instance, CanvasCreateRequest } from '../../../../../types/openapi';
2
2
  import { GetCanvasesParams } from '../../../../types/canvases';
3
3
  import { PaginatedData } from '../../../../types/paginatedData';
4
- import { AdminSelectCanvasesRequest, AdminSelectCanvasesResponse } from './types.admin';
4
+ import { AdminSelectCanvasesRequest, AdminSelectCanvasesResponse, AdminOpenCollectionPlayerOverlayRequest } from './types.admin';
5
5
  /**
6
6
  * Creates a new canvas.
7
7
  *
@@ -103,6 +103,29 @@ export declare function openCanvasOverlay(payload: {
103
103
  bottom?: number | string;
104
104
  };
105
105
  }): Promise<void>;
106
+ /**
107
+ * Opens a modal to display collection player content.
108
+ *
109
+ * @example
110
+ * adminApi.openCollectionPlayerOverlay({
111
+ * name: 'My Collection',
112
+ * groups: [
113
+ * {
114
+ * id: 'file-id-1',
115
+ * name: 'Group 1',
116
+ * },
117
+ * {
118
+ * id: 'group-2',
119
+ * name: 'Group 2',
120
+ * slides: [
121
+ * { file_id: 'file-id-2', slide_index: 0 },
122
+ * { file_id: 'file-id-3', slide_index: 1 },
123
+ * ],
124
+ * },
125
+ * ],
126
+ * })
127
+ */
128
+ export declare function openCollectionPlayerOverlay(payload: AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
106
129
  /**
107
130
  * Allows the user to select (and preselect) canvases from the instance.
108
131
  *
@@ -55,6 +55,7 @@ declare const _default: {
55
55
  bottom?: number | string;
56
56
  };
57
57
  }): Promise<void>;
58
+ openCollectionPlayerOverlay(payload: import('./types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
58
59
  selectCanvases(payload?: import('./types.admin').AdminSelectCanvasesRequest): Promise<import('./types.admin').AdminSelectCanvasesResponse>;
59
60
  getEnv(): Promise<import('./types.admin').AdminEnv>;
60
61
  selectCollectionContent(payload?: import('./types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./types.admin').AdminSelectCollectionPlayerResponse>;
@@ -23,6 +23,7 @@ export declare const ADMIN_API_METHOD_TYPES: {
23
23
  readonly GET_CANVAS: "admin_get_canvas";
24
24
  readonly GET_CANVASES: "admin_get_canvases";
25
25
  readonly OPEN_CANVAS_OVERLAY: "admin_open_canvas_overlay";
26
+ readonly OPEN_COLLECTION_PLAYER_OVERLAY: "admin_open_collection_player_overlay";
26
27
  readonly GET_ENV: "admin_get_env";
27
28
  readonly GET_FILE: "admin_get_file";
28
29
  readonly OPEN: "admin_open_file_overlay";
@@ -257,6 +258,18 @@ export type AdminEnv = {
257
258
  crm_shape?: Record<string, any>;
258
259
  state?: PitcherEnv['state'];
259
260
  };
261
+ export type AdminOpenCollectionPlayerOverlayGroup = {
262
+ id: string;
263
+ name: string;
264
+ slides?: Array<{
265
+ file_id: string;
266
+ slide_index: number;
267
+ }>;
268
+ };
269
+ export type AdminOpenCollectionPlayerOverlayRequest = {
270
+ groups: AdminOpenCollectionPlayerOverlayGroup[];
271
+ name: string;
272
+ };
260
273
  export type AdminSelectCollectionPlayerRequest = {
261
274
  initial_data?: CollectionSelectorProps['initialData'];
262
275
  attach_to?: CollectionSelectorProps['attachTo'];
@@ -1,5 +1,5 @@
1
1
  import { CanvasRetrieve } from '../../../../../types/openapi';
2
- import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse } from './types.ui';
2
+ import { UiAppResizeRequest, UiCanvasNavigatePageRequest, UiUpdateCanvasRequest, UiPrintCanvasRequest, UiPrintCanvasResponse, UiSelectCanvasesRequest, UiSelectCanvasesResponse, UiOpenCollectionPlayerOverlayRequest } from './types.ui';
3
3
  /**
4
4
  * Modify the currently loaded canvas. On the web it sends
5
5
  * an [update_canvas](https://pitcher.readme.io/reference/update_canvas) request to the server.
@@ -133,6 +133,40 @@ export declare function openCanvasOverlay(payload: {
133
133
  bottom?: number | string;
134
134
  };
135
135
  }): Promise<void>;
136
+ /**
137
+ * Opens the collection player overlay to view a collection of files/slides.
138
+ *
139
+ * This method opens the native Pitcher collection player interface with the specified
140
+ * files and slides. You can show entire files or specific pages from files.
141
+ *
142
+ * @example
143
+ * // Open collection with full files
144
+ * useUi().openCollectionPlayerOverlay({
145
+ * groups: [
146
+ * { id: 'file-123-abc', name: 'Product Overview' },
147
+ * { id: 'file-456-def', name: 'Pricing Slides' }
148
+ * ],
149
+ * name: 'Sales Deck'
150
+ * })
151
+ *
152
+ * // Open collection with specific slides/pages
153
+ * useUi().openCollectionPlayerOverlay({
154
+ * groups: [
155
+ * {
156
+ * id: 'file-123-abc',
157
+ * name: 'Product Overview',
158
+ * slides: [
159
+ * { file_id: 'file-123-abc', slide_index: 0 },
160
+ * { file_id: 'file-123-abc', slide_index: 2 }
161
+ * ]
162
+ * }
163
+ * ],
164
+ * name: 'Custom Sales Presentation'
165
+ * })
166
+ *
167
+ * @param payload Object containing groups array and collection name
168
+ */
169
+ export declare function openCollectionPlayerOverlay(payload: UiOpenCollectionPlayerOverlayRequest): Promise<void>;
136
170
  /**
137
171
  * Allows the user to select (and preselect) canvases from the instance.
138
172
  *
@@ -143,6 +143,7 @@ declare const _default: {
143
143
  bottom?: number | string;
144
144
  };
145
145
  }): Promise<void>;
146
+ openCollectionPlayerOverlay(payload: import('./types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
146
147
  selectCanvases(payload?: import('./types.ui').UiSelectCanvasesRequest): Promise<import('./types.ui').UiSelectCanvasesResponse>;
147
148
  captureAppError(payload: import('./types.ui').UiCaptureAppErrorRequest): Promise<void>;
148
149
  updateLocation(payload: import('../../../interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -23,6 +23,7 @@ export declare const UI_API_METHOD_TYPES: {
23
23
  readonly UI_UPDATE_CANVAS: "ui_update_canvas";
24
24
  readonly UI_PRINT_CANVAS: "ui_print_canvas";
25
25
  readonly UI_OPEN_CANVAS_OVERLAY: "ui_open_canvas_overlay";
26
+ readonly UI_OPEN_COLLECTION_PLAYER_OVERLAY: "ui_open_collection_player_overlay";
26
27
  readonly UI_SELECT_COLLECTION_PLAYER_CONTENT: "ui_select_collection_player_content";
27
28
  readonly UI_SELECT_AGENDA_CONTENT: "ui_select_agenda_content";
28
29
  readonly UI_UPDATE_LOCATION: "ui_update_location";
@@ -219,6 +220,25 @@ export interface UiPreselectSfdcMeetingIdResponse {
219
220
  /** Salesforce Event */
220
221
  event: SfEvent | null;
221
222
  }
223
+ export interface UiOpenCollectionPlayerOverlayGroup {
224
+ /** File ID */
225
+ id: string;
226
+ /** File name */
227
+ name: string;
228
+ /** Optional: specific slides/pages to show from the file */
229
+ slides?: Array<{
230
+ /** The file ID (same as parent group.id) */
231
+ file_id: string;
232
+ /** Zero-based page/slide index to show */
233
+ slide_index: number;
234
+ }>;
235
+ }
236
+ export interface UiOpenCollectionPlayerOverlayRequest {
237
+ /** Array of files/slides to be played in the collection */
238
+ groups: UiOpenCollectionPlayerOverlayGroup[];
239
+ /** The display name for the collection */
240
+ name: string;
241
+ }
222
242
  export type UiMessagePayloads = {
223
243
  [UI_MESSAGE_TYPES.UI_MEETING_CANCELED]: UiMeetingCanceledPayload;
224
244
  [UI_MESSAGE_TYPES.UI_APP_SET_DATA]: UiAppSetDataPayload;
package/lib/sdk/main.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare function useUi(): {
54
54
  bottom?: number | string;
55
55
  };
56
56
  }): Promise<void>;
57
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
57
58
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
58
59
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
59
60
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -127,6 +128,7 @@ export declare function useAdmin(): {
127
128
  bottom?: number | string;
128
129
  };
129
130
  }): Promise<void>;
131
+ openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
130
132
  selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
131
133
  getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
132
134
  selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
@@ -387,6 +389,7 @@ export declare function useApi(options?: ApiOptions): {
387
389
  bottom?: number | string;
388
390
  };
389
391
  }): Promise<void>;
392
+ openCollectionPlayerOverlay(payload: import('./api/modules/admin/types.admin').AdminOpenCollectionPlayerOverlayRequest): Promise<void>;
390
393
  selectCanvases(payload?: import('./api/modules/admin/types.admin').AdminSelectCanvasesRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCanvasesResponse>;
391
394
  getEnv(): Promise<import('./api/modules/admin/types.admin').AdminEnv>;
392
395
  selectCollectionContent(payload?: import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectCollectionPlayerResponse>;
@@ -438,6 +441,7 @@ export declare function useApi(options?: ApiOptions): {
438
441
  bottom?: number | string;
439
442
  };
440
443
  }): Promise<void>;
444
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
441
445
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
442
446
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
443
447
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -658,6 +662,7 @@ export declare function useApi(options?: ApiOptions): {
658
662
  bottom?: number | string;
659
663
  };
660
664
  }): Promise<void>;
665
+ openCollectionPlayerOverlay(payload: import('./api/modules/ui/types.ui').UiOpenCollectionPlayerOverlayRequest): Promise<void>;
661
666
  selectCanvases(payload?: import('./api/modules/ui/types.ui').UiSelectCanvasesRequest): Promise<import('./api/modules/ui/types.ui').UiSelectCanvasesResponse>;
662
667
  captureAppError(payload: import('./api/modules/ui/types.ui').UiCaptureAppErrorRequest): Promise<void>;
663
668
  updateLocation(payload: import('./interfaces').UpdateLocationPitcherEvent): Promise<any>;
@@ -14,6 +14,7 @@ export interface GetCanvasesParams {
14
14
  section_ids?: string[];
15
15
  tags__in?: string[];
16
16
  id__in?: string;
17
+ access_type?: string;
17
18
  }
18
19
  export interface CanvasMetadataRetrieve {
19
20
  canvas_id: CanvasRetrieve['id'];
@@ -1 +1 @@
1
- export type SupportedLocale = 'en' | 'de' | 'pl' | 'tr' | 'el' | 'fr' | 'es' | 'th' | 'ja' | 'zh' | 'it' | 'pt' | 'nl';
1
+ export type SupportedLocale = 'en' | 'de' | 'pl' | 'tr' | 'el' | 'fr' | 'es' | 'th' | 'ja' | 'zh' | 'it' | 'pt' | 'pt-br' | 'nl';