@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.
Files changed (36) hide show
  1. package/js-api.esm.js +31 -0
  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/composables/useCanvas.d.ts +8 -0
  6. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +3 -0
  7. package/lib/apps/canvas-builder/constants/theme.const.d.ts +34 -0
  8. package/lib/apps/canvas-builder/types/canvas.d.ts +6 -0
  9. package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +1 -0
  10. package/lib/components/CContactSelector/CContactSelector.vue.d.ts +2 -0
  11. package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +11 -0
  12. package/lib/components/CPdfDimensionsSelector/CPdfDimensionsSelector.vue.d.ts +25 -0
  13. package/lib/components/CTable/CTable.vue.d.ts +6 -5
  14. package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +2 -0
  15. package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +2 -0
  16. package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -0
  17. package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -0
  18. package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +1 -0
  19. package/lib/components/sections/CSectionManagement.vue.d.ts +2 -0
  20. package/lib/components/themes/CThemeManagement.vue.d.ts +2 -0
  21. package/lib/composables/useCollectionPlayerOverlay.d.ts +18 -0
  22. package/lib/custom-naive-locales/pt-br.d.ts +124 -0
  23. package/lib/main.lib.d.ts +1 -0
  24. package/lib/sdk/api/HighLevelApi.d.ts +18 -0
  25. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -1
  26. package/lib/sdk/api/modules/admin/index.d.ts +1 -0
  27. package/lib/sdk/api/modules/admin/types.admin.d.ts +13 -0
  28. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +35 -1
  29. package/lib/sdk/api/modules/ui/index.d.ts +1 -0
  30. package/lib/sdk/api/modules/ui/types.ui.d.ts +20 -0
  31. package/lib/sdk/interfaces.d.ts +8 -0
  32. package/lib/sdk/main.d.ts +8 -0
  33. package/lib/types/i18n.types.d.ts +1 -1
  34. package/lib/types/launchDarkly.types.d.ts +1 -1
  35. package/lib/utils/iframeInitialize.d.ts +1 -1
  36. package/package.json +1 -1
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -449,6 +449,9 @@ export default function useCanvasTheme(): {
449
449
  backgroundPositionY: import('vue').Ref<BackgroundPositionY, BackgroundPositionY>;
450
450
  backgroundSize: import('vue').Ref<BackgroundSize, BackgroundSize>;
451
451
  backgroundRepeat: import('vue').Ref<BackgroundRepeat, BackgroundRepeat>;
452
+ pdfDimensionsPreset: import('vue').Ref<string | undefined, string | undefined>;
453
+ pdfDimensionsWidth: import('vue').Ref<string | undefined, string | undefined>;
454
+ pdfDimensionsHeight: import('vue').Ref<string | undefined, string | undefined>;
452
455
  isLoading: import('vue').Ref<boolean, boolean>;
453
456
  initializeTheme: typeof initializeTheme;
454
457
  getDefaultTypographyConfiguration: typeof getDefaultTypographyConfiguration;
@@ -2,3 +2,37 @@ export declare const DEFAULT_GLOBAL_COMPONENT_SPACING = 32;
2
2
  export declare const DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL = 4;
3
3
  export declare const CANVAS_TYPOGRAPHY_CSS_PROPERTIES: readonly ["font-family", "font-size", "font-weight", "line-height", "letter-spacing", "text-transform", "color"];
4
4
  export declare const CANVAS_TYPOGRAPHY_PRESETS: readonly ["h_1", "h_2", "h_3", "big_text", "normal_text", "small_text"];
5
+ export declare const PAPER_SIZE_PRESETS: {
6
+ readonly A4: {
7
+ readonly width: "210mm";
8
+ readonly height: "297mm";
9
+ };
10
+ readonly A3: {
11
+ readonly width: "297mm";
12
+ readonly height: "420mm";
13
+ };
14
+ readonly A5: {
15
+ readonly width: "148mm";
16
+ readonly height: "210mm";
17
+ };
18
+ readonly B3: {
19
+ readonly width: "353mm";
20
+ readonly height: "500mm";
21
+ };
22
+ readonly B4: {
23
+ readonly width: "250mm";
24
+ readonly height: "353mm";
25
+ };
26
+ readonly B5: {
27
+ readonly width: "176mm";
28
+ readonly height: "250mm";
29
+ };
30
+ readonly 'US Legal': {
31
+ readonly width: "8.5in";
32
+ readonly height: "14in";
33
+ };
34
+ readonly 'US Letter': {
35
+ readonly width: "8.5in";
36
+ readonly height: "11in";
37
+ };
38
+ };
@@ -436,6 +436,11 @@ export declare const ComponentIcon: {
436
436
  readonly Video: "video";
437
437
  };
438
438
  export declare const componentIconType: Record<string, FontAwesomeType>;
439
+ export interface CanvasPdfDimensions {
440
+ preset?: 'A4' | 'A3' | 'A5' | 'B3' | 'B4' | 'B5' | 'US Legal' | 'US Letter' | 'Custom';
441
+ width?: string;
442
+ height?: string;
443
+ }
439
444
  export type CanvasTheme = {
440
445
  background_video_url?: string;
441
446
  canvas_bg_color?: string;
@@ -453,6 +458,7 @@ export type CanvasTheme = {
453
458
  inherit_theme_from_parent?: boolean;
454
459
  logo?: CanvasThemeAsset | null;
455
460
  assets?: CanvasThemeAsset[];
461
+ pdf_dimensions?: CanvasPdfDimensions;
456
462
  };
457
463
  export declare enum CanvasBuilderMode {
458
464
  ADMIN = "admin",
@@ -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,25 @@
1
+ interface Props {
2
+ preset?: string;
3
+ width?: string;
4
+ height?: string;
5
+ disabled?: boolean;
6
+ defaultWidth?: string;
7
+ defaultHeight?: string;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "update:preset": (value: string | undefined) => any;
11
+ "update:width": (value: string | undefined) => any;
12
+ "update:height": (value: string | undefined) => any;
13
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
14
+ "onUpdate:preset"?: ((value: string | undefined) => any) | undefined;
15
+ "onUpdate:width"?: ((value: string | undefined) => any) | undefined;
16
+ "onUpdate:height"?: ((value: string | undefined) => any) | undefined;
17
+ }>, {
18
+ height: string;
19
+ disabled: boolean;
20
+ width: string;
21
+ defaultWidth: string;
22
+ defaultHeight: string;
23
+ preset: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { SortingState, PaginationState, ColumnDef } from '@tanstack/table-core';
2
- import { StyleValue } from 'vue';
2
+ import { ComputedRef, StyleValue } from 'vue';
3
3
  type RowItem = Record<string, any>;
4
4
  type __VLS_Props = {
5
5
  selectedRows?: Record<string, boolean>;
@@ -25,11 +25,11 @@ type __VLS_Props = {
25
25
  declare function isRowDisabled(id: string | number): boolean;
26
26
  declare function handleSelectAll(): void;
27
27
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
28
- isNoneSelected: import('vue').ComputedRef<boolean>;
29
- areAllSelected: import('vue').ComputedRef<boolean>;
28
+ isNoneSelected: ComputedRef<boolean>;
29
+ areAllSelected: ComputedRef<boolean>;
30
30
  selectAll: typeof handleSelectAll;
31
- selectedRowsCount: import('vue').ComputedRef<number>;
32
- pageRowsCount: import('vue').ComputedRef<number>;
31
+ selectedRowsCount: ComputedRef<number>;
32
+ pageRowsCount: ComputedRef<number>;
33
33
  isRowDisabled: typeof isRowDisabled;
34
34
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
35
  sortChanged: (s: SortingState) => any;
@@ -56,5 +56,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
56
56
  disabledIds: Array<string | number>;
57
57
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
58
58
  tableScroller: HTMLDivElement;
59
+ tableElement: HTMLTableElement;
59
60
  }, HTMLDivElement>;
60
61
  export default _default;
@@ -161,6 +161,7 @@ declare function __VLS_template(): {
161
161
  disabledIds: Array<string | number>;
162
162
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
163
163
  tableScroller: HTMLDivElement;
164
+ tableElement: HTMLTableElement;
164
165
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
165
166
  P: {};
166
167
  B: {};
@@ -367,6 +368,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
367
368
  disabledIds: Array<string | number>;
368
369
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
369
370
  tableScroller: HTMLDivElement;
371
+ tableElement: HTMLTableElement;
370
372
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
371
373
  P: {};
372
374
  B: {};
@@ -167,6 +167,7 @@ declare function __VLS_template(): {
167
167
  disabledIds: Array<string | number>;
168
168
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
169
169
  tableScroller: HTMLDivElement;
170
+ tableElement: HTMLTableElement;
170
171
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
171
172
  P: {};
172
173
  B: {};
@@ -378,6 +379,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
378
379
  disabledIds: Array<string | number>;
379
380
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
380
381
  tableScroller: HTMLDivElement;
382
+ tableElement: HTMLTableElement;
381
383
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
382
384
  P: {};
383
385
  B: {};
@@ -591,6 +591,7 @@ declare function __VLS_template(): {
591
591
  disabledIds: Array<string | number>;
592
592
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
593
593
  tableScroller: HTMLDivElement;
594
+ tableElement: HTMLTableElement;
594
595
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
595
596
  P: {};
596
597
  B: {};
@@ -1215,6 +1216,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
1215
1216
  disabledIds: Array<string | number>;
1216
1217
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
1217
1218
  tableScroller: HTMLDivElement;
1219
+ tableElement: HTMLTableElement;
1218
1220
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
1219
1221
  P: {};
1220
1222
  B: {};
@@ -195,6 +195,7 @@ declare function __VLS_template(): {
195
195
  disabledIds: Array<string | number>;
196
196
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
197
197
  tableScroller: HTMLDivElement;
198
+ tableElement: HTMLTableElement;
198
199
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
199
200
  P: {};
200
201
  B: {};
@@ -333,6 +334,7 @@ declare function __VLS_template(): {
333
334
  disabledIds: Array<string | number>;
334
335
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
335
336
  tableScroller: HTMLDivElement;
337
+ tableElement: HTMLTableElement;
336
338
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
337
339
  P: {};
338
340
  B: {};
@@ -565,6 +567,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
565
567
  disabledIds: Array<string | number>;
566
568
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
567
569
  tableScroller: HTMLDivElement;
570
+ tableElement: HTMLTableElement;
568
571
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
569
572
  P: {};
570
573
  B: {};
@@ -703,6 +706,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
703
706
  disabledIds: Array<string | number>;
704
707
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
705
708
  tableScroller: HTMLDivElement;
709
+ tableElement: HTMLTableElement;
706
710
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
707
711
  P: {};
708
712
  B: {};
@@ -74,6 +74,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
74
74
  disabledIds: Array<string | number>;
75
75
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
76
76
  tableScroller: HTMLDivElement;
77
+ tableElement: HTMLTableElement;
77
78
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
78
79
  P: {};
79
80
  B: {};
@@ -166,6 +166,7 @@ declare function __VLS_template(): {
166
166
  disabledIds: Array<string | number>;
167
167
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
168
168
  tableScroller: HTMLDivElement;
169
+ tableElement: HTMLTableElement;
169
170
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
170
171
  P: {};
171
172
  B: {};
@@ -379,6 +380,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
379
380
  disabledIds: Array<string | number>;
380
381
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
381
382
  tableScroller: HTMLDivElement;
383
+ tableElement: HTMLTableElement;
382
384
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
383
385
  P: {};
384
386
  B: {};
@@ -162,6 +162,7 @@ declare function __VLS_template(): {
162
162
  disabledIds: Array<string | number>;
163
163
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
164
164
  tableScroller: HTMLDivElement;
165
+ tableElement: HTMLTableElement;
165
166
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
166
167
  P: {};
167
168
  B: {};
@@ -373,6 +374,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
373
374
  disabledIds: Array<string | number>;
374
375
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
375
376
  tableScroller: HTMLDivElement;
377
+ tableElement: HTMLTableElement;
376
378
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
377
379
  P: {};
378
380
  B: {};
@@ -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
@@ -136,6 +136,7 @@ export { default as useBindValidation } from './composables/useBindValidation';
136
136
  export { default as useFileDisplayHelpers } from './composables/useFileDisplayHelpers';
137
137
  export { default as useFolderNameDescription } from './composables/useFolderNameDescription';
138
138
  export { default as useCanvasOverlay } from './composables/useCanvasOverlay';
139
+ export { default as useCollectionPlayerOverlay, type CollectionPlayerOverlay, } from './composables/useCollectionPlayerOverlay';
139
140
  export { default as useInfiniteScroll } from './composables/useInfiniteScroll';
140
141
  export { default as useWindowEvents } from './composables/useWindowEvents';
141
142
  export { default as useConfirmation } from './composables/useConfirmation';
@@ -93,6 +93,24 @@ export declare function createHighLevelApi(options?: ApiOptions): {
93
93
  * })
94
94
  */
95
95
  broadcast: (event: PitcherEvent) => Promise<any>;
96
+ /**
97
+ * Broadcast an event to webviews only (iOS only).
98
+ * @param {PitcherEvent} event - The event to broadcast.
99
+ *
100
+ * @example
101
+ * usePitcherApi()
102
+ * .broadcastToWebviews({
103
+ * type: "canvas_updated",
104
+ * body: { context: { myContextProperty: 'test' } },
105
+ * })
106
+ * .then(function (result) {
107
+ * useUi().toast({
108
+ * message: "Canvas Populated.",
109
+ * type: "info",
110
+ * })
111
+ * })
112
+ */
113
+ broadcastToWebviews: (event: PitcherEvent) => Promise<any>;
96
114
  /**
97
115
  * Subscribe to updates.
98
116
  *
@@ -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
  *