@pitcher/js-api 1.22.0-rc.0 → 1.22.0-rc.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.
Files changed (80) hide show
  1. package/js-api.esm.js +29 -10
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +10 -10
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/apps/browser/App.vue.d.ts +9 -1
  6. package/lib/apps/browser/components/Content/Common/BrowserListItem.vue.d.ts +6 -0
  7. package/lib/apps/browser/stores/api.d.ts +77 -2
  8. package/lib/apps/browser/stores/app.d.ts +2 -32
  9. package/lib/apps/canvas-builder/App.vue.d.ts +80 -40
  10. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +2 -1
  11. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +103 -0
  12. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +104 -0
  13. package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +107 -0
  14. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/components/PreviewImage.vue.d.ts +13 -0
  15. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/cache.use.d.ts +12 -0
  16. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/zoom.use.d.ts +15 -0
  17. package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +5 -0
  18. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorItem.vue.d.ts +15 -1
  19. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -0
  20. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +13 -0
  21. package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +15 -0
  22. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +141 -17
  23. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +20 -0
  24. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +2 -0
  25. package/lib/apps/canvas-builder/types/canvas.d.ts +22 -11
  26. package/lib/apps/canvas-builder/util/url.d.ts +1 -0
  27. package/lib/apps/content-selector/appTypes.d.ts +1 -0
  28. package/lib/apps/content-selector/components/AiImages.vue.d.ts +10 -0
  29. package/lib/apps/content-selector/components/ui/MediaPreview.vue.d.ts +7 -1
  30. package/lib/apps/content-selector/stores/app.d.ts +2 -2
  31. package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +8 -4
  32. package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +6 -3
  33. package/lib/components/CConfirmationModal/CConfirmationModal.vue.d.ts +2 -2
  34. package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +1 -11
  35. package/lib/components/CFileAttributes/CFileAttributes.vue.d.ts +41 -0
  36. package/lib/components/CFileThumbnail/CFileThumbnail.vue.d.ts +3 -0
  37. package/lib/components/CFileViewer/CFileViewer.vue.d.ts +1 -1
  38. package/lib/components/CFileViewer/pdf/CFileViewer.pdf.link.types.d.ts +2 -0
  39. package/lib/components/CInputPlaceholder/CInputPlaceholder.vue.d.ts +24 -0
  40. package/lib/components/CList/CListItem.vue.d.ts +2 -0
  41. package/lib/components/CPaginationButtons/CPaginationButtons.vue.d.ts +24 -0
  42. package/lib/components/CSlider/CSlider.vue.d.ts +1 -1
  43. package/lib/components/CTableInput/CTableInput.vue.d.ts +1 -277
  44. package/lib/components/CTagsPlaceholder/CTagsPlaceholder.vue.d.ts +6 -0
  45. package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -57
  46. package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +8 -0
  47. package/lib/components/filters/CSelectFilter.vue.d.ts +1 -3
  48. package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +28 -57
  49. package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +3 -1
  50. package/lib/components/savedCanvases/smartFolders/SmartFolderNameCell.vue.d.ts +10 -0
  51. package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +386 -0
  52. package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +14 -0
  53. package/lib/components/savedCanvases/smartFolders/SmartFoldersConfigurationModal.vue.d.ts +6 -0
  54. package/lib/components/savedCanvases/smartFolders/SmartFoldersMissingConfig.vue.d.ts +6 -0
  55. package/lib/components/sections/CSectionManagement.vue.d.ts +2 -47
  56. package/lib/composables/appsDb.use.d.ts +32 -0
  57. package/lib/composables/useAdminAndDsrState.d.ts +6 -0
  58. package/lib/composables/useAssetUpload.d.ts +2 -1
  59. package/lib/composables/useConnectUpload.d.ts +3 -1
  60. package/lib/composables/useFetchUsers.d.ts +1 -3
  61. package/lib/constants/appsDb.const.d.ts +10 -0
  62. package/lib/constants/cdp.const.d.ts +1 -0
  63. package/lib/main.lib.d.ts +2 -0
  64. package/lib/sdk/api/HighLevelApi.d.ts +2 -1
  65. package/lib/sdk/api/modules/admin/files.admin.d.ts +12 -0
  66. package/lib/sdk/api/modules/admin/types.admin.d.ts +5 -0
  67. package/lib/sdk/api/modules/dsr/files.dsr.d.ts +17 -0
  68. package/lib/sdk/api/modules/dsr/index.d.ts +4 -0
  69. package/lib/sdk/api/modules/dsr/types.dsr.d.ts +2 -0
  70. package/lib/sdk/api/modules/pspdfkit.d.ts +25 -2
  71. package/lib/sdk/interfaces.d.ts +1 -0
  72. package/lib/sdk/main.d.ts +14 -3
  73. package/lib/sdk/payload.types.d.ts +4 -0
  74. package/lib/theme/light.d.ts +46 -10
  75. package/lib/types/app.d.ts +1 -1
  76. package/lib/types/launchDarkly.types.d.ts +1 -1
  77. package/lib/types/organizationSettings.types.d.ts +13 -0
  78. package/lib/util/eval.d.ts +2 -0
  79. package/lib/util/network.d.ts +0 -3
  80. package/package.json +1 -1
@@ -47,6 +47,7 @@ declare const componentNodesById: import('vue').ComputedRef<{
47
47
  readonly external_url: string;
48
48
  readonly type: "image" | "video";
49
49
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
50
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
50
51
  } | {
51
52
  readonly asset_type: "pitcher_asset";
52
53
  readonly file: {
@@ -77,6 +78,9 @@ declare const componentNodesById: import('vue').ComputedRef<{
77
78
  readonly admin_instance?: {
78
79
  readonly start_in_loading_mode?: boolean | undefined;
79
80
  } | undefined;
81
+ readonly overlay_app?: {
82
+ readonly start_in_loading_mode?: boolean | undefined;
83
+ } | undefined;
80
84
  } | undefined;
81
85
  readonly file: {
82
86
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -221,6 +225,11 @@ declare const componentNodesById: import('vue').ComputedRef<{
221
225
  readonly can_download?: boolean | undefined;
222
226
  readonly can_share?: boolean | undefined;
223
227
  } | undefined;
228
+ readonly pspdfkit_server_url: string | null;
229
+ readonly pspdfkit_auth_payload: {
230
+ readonly [x: string]: any;
231
+ } | null;
232
+ readonly pspdfkit_document_id: string | null;
224
233
  };
225
234
  readonly slide: {
226
235
  readonly index: number;
@@ -238,6 +247,11 @@ declare const componentNodesById: import('vue').ComputedRef<{
238
247
  readonly can_download?: boolean | undefined;
239
248
  readonly can_share?: boolean | undefined;
240
249
  } | undefined;
250
+ readonly pspdfkit_server_url: string | null;
251
+ readonly pspdfkit_auth_payload: {
252
+ readonly [x: string]: any;
253
+ } | null;
254
+ readonly pspdfkit_document_id: string | null;
241
255
  };
242
256
  })[];
243
257
  }[];
@@ -299,6 +313,7 @@ declare const sectionComponentNodesBySectionId: import('vue').ComputedRef<{
299
313
  readonly external_url: string;
300
314
  readonly type: "image" | "video";
301
315
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
316
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
302
317
  } | {
303
318
  readonly asset_type: "pitcher_asset";
304
319
  readonly file: {
@@ -329,6 +344,9 @@ declare const sectionComponentNodesBySectionId: import('vue').ComputedRef<{
329
344
  readonly admin_instance?: {
330
345
  readonly start_in_loading_mode?: boolean | undefined;
331
346
  } | undefined;
347
+ readonly overlay_app?: {
348
+ readonly start_in_loading_mode?: boolean | undefined;
349
+ } | undefined;
332
350
  } | undefined;
333
351
  readonly file: {
334
352
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -473,6 +491,11 @@ declare const sectionComponentNodesBySectionId: import('vue').ComputedRef<{
473
491
  readonly can_download?: boolean | undefined;
474
492
  readonly can_share?: boolean | undefined;
475
493
  } | undefined;
494
+ readonly pspdfkit_server_url: string | null;
495
+ readonly pspdfkit_auth_payload: {
496
+ readonly [x: string]: any;
497
+ } | null;
498
+ readonly pspdfkit_document_id: string | null;
476
499
  };
477
500
  readonly slide: {
478
501
  readonly index: number;
@@ -490,6 +513,11 @@ declare const sectionComponentNodesBySectionId: import('vue').ComputedRef<{
490
513
  readonly can_download?: boolean | undefined;
491
514
  readonly can_share?: boolean | undefined;
492
515
  } | undefined;
516
+ readonly pspdfkit_server_url: string | null;
517
+ readonly pspdfkit_auth_payload: {
518
+ readonly [x: string]: any;
519
+ } | null;
520
+ readonly pspdfkit_document_id: string | null;
493
521
  };
494
522
  })[];
495
523
  }[];
@@ -681,6 +709,7 @@ export default function useCanvas(): {
681
709
  readonly external_url: string;
682
710
  readonly type: "image" | "video";
683
711
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
712
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
684
713
  } | {
685
714
  readonly asset_type: "pitcher_asset";
686
715
  readonly file: {
@@ -711,6 +740,9 @@ export default function useCanvas(): {
711
740
  readonly admin_instance?: {
712
741
  readonly start_in_loading_mode?: boolean | undefined;
713
742
  } | undefined;
743
+ readonly overlay_app?: {
744
+ readonly start_in_loading_mode?: boolean | undefined;
745
+ } | undefined;
714
746
  } | undefined;
715
747
  readonly file: {
716
748
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -855,6 +887,11 @@ export default function useCanvas(): {
855
887
  readonly can_download?: boolean | undefined;
856
888
  readonly can_share?: boolean | undefined;
857
889
  } | undefined;
890
+ readonly pspdfkit_server_url: string | null;
891
+ readonly pspdfkit_auth_payload: {
892
+ readonly [x: string]: any;
893
+ } | null;
894
+ readonly pspdfkit_document_id: string | null;
858
895
  };
859
896
  readonly slide: {
860
897
  readonly index: number;
@@ -872,6 +909,11 @@ export default function useCanvas(): {
872
909
  readonly can_download?: boolean | undefined;
873
910
  readonly can_share?: boolean | undefined;
874
911
  } | undefined;
912
+ readonly pspdfkit_server_url: string | null;
913
+ readonly pspdfkit_auth_payload: {
914
+ readonly [x: string]: any;
915
+ } | null;
916
+ readonly pspdfkit_document_id: string | null;
875
917
  };
876
918
  })[];
877
919
  }[];
@@ -942,6 +984,7 @@ export default function useCanvas(): {
942
984
  readonly external_url: string;
943
985
  readonly type: "image" | "video";
944
986
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
987
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
945
988
  } | {
946
989
  readonly asset_type: "pitcher_asset";
947
990
  readonly file: {
@@ -972,6 +1015,9 @@ export default function useCanvas(): {
972
1015
  readonly admin_instance?: {
973
1016
  readonly start_in_loading_mode?: boolean | undefined;
974
1017
  } | undefined;
1018
+ readonly overlay_app?: {
1019
+ readonly start_in_loading_mode?: boolean | undefined;
1020
+ } | undefined;
975
1021
  } | undefined;
976
1022
  readonly file: {
977
1023
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -1116,6 +1162,11 @@ export default function useCanvas(): {
1116
1162
  readonly can_download?: boolean | undefined;
1117
1163
  readonly can_share?: boolean | undefined;
1118
1164
  } | undefined;
1165
+ readonly pspdfkit_server_url: string | null;
1166
+ readonly pspdfkit_auth_payload: {
1167
+ readonly [x: string]: any;
1168
+ } | null;
1169
+ readonly pspdfkit_document_id: string | null;
1119
1170
  };
1120
1171
  readonly slide: {
1121
1172
  readonly index: number;
@@ -1133,6 +1184,11 @@ export default function useCanvas(): {
1133
1184
  readonly can_download?: boolean | undefined;
1134
1185
  readonly can_share?: boolean | undefined;
1135
1186
  } | undefined;
1187
+ readonly pspdfkit_server_url: string | null;
1188
+ readonly pspdfkit_auth_payload: {
1189
+ readonly [x: string]: any;
1190
+ } | null;
1191
+ readonly pspdfkit_document_id: string | null;
1136
1192
  };
1137
1193
  })[];
1138
1194
  }[];
@@ -1199,6 +1255,7 @@ export default function useCanvas(): {
1199
1255
  external_url: string;
1200
1256
  type: "image" | "video";
1201
1257
  horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
1258
+ from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
1202
1259
  } | {
1203
1260
  asset_type: "pitcher_asset";
1204
1261
  file: {
@@ -1229,6 +1286,9 @@ export default function useCanvas(): {
1229
1286
  admin_instance?: {
1230
1287
  start_in_loading_mode?: boolean | undefined;
1231
1288
  } | undefined;
1289
+ overlay_app?: {
1290
+ start_in_loading_mode?: boolean | undefined;
1291
+ } | undefined;
1232
1292
  } | undefined;
1233
1293
  file: {
1234
1294
  id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -1353,6 +1413,9 @@ export default function useCanvas(): {
1353
1413
  can_download?: boolean | undefined;
1354
1414
  can_share?: boolean | undefined;
1355
1415
  } | undefined;
1416
+ readonly pspdfkit_server_url: string | null;
1417
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
1418
+ readonly pspdfkit_document_id: string | null;
1356
1419
  };
1357
1420
  slide: {
1358
1421
  index: number;
@@ -1370,6 +1433,9 @@ export default function useCanvas(): {
1370
1433
  can_download?: boolean | undefined;
1371
1434
  can_share?: boolean | undefined;
1372
1435
  } | undefined;
1436
+ readonly pspdfkit_server_url: string | null;
1437
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
1438
+ readonly pspdfkit_document_id: string | null;
1373
1439
  };
1374
1440
  })[];
1375
1441
  }[];
@@ -1420,6 +1486,7 @@ export default function useCanvas(): {
1420
1486
  external_url: string;
1421
1487
  type: "image" | "video";
1422
1488
  horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
1489
+ from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
1423
1490
  } | {
1424
1491
  asset_type: "pitcher_asset";
1425
1492
  file: {
@@ -1450,6 +1517,9 @@ export default function useCanvas(): {
1450
1517
  admin_instance?: {
1451
1518
  start_in_loading_mode?: boolean | undefined;
1452
1519
  } | undefined;
1520
+ overlay_app?: {
1521
+ start_in_loading_mode?: boolean | undefined;
1522
+ } | undefined;
1453
1523
  } | undefined;
1454
1524
  file: {
1455
1525
  id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -1574,6 +1644,9 @@ export default function useCanvas(): {
1574
1644
  can_download?: boolean | undefined;
1575
1645
  can_share?: boolean | undefined;
1576
1646
  } | undefined;
1647
+ readonly pspdfkit_server_url: string | null;
1648
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
1649
+ readonly pspdfkit_document_id: string | null;
1577
1650
  };
1578
1651
  slide: {
1579
1652
  index: number;
@@ -1591,6 +1664,9 @@ export default function useCanvas(): {
1591
1664
  can_download?: boolean | undefined;
1592
1665
  can_share?: boolean | undefined;
1593
1666
  } | undefined;
1667
+ readonly pspdfkit_server_url: string | null;
1668
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
1669
+ readonly pspdfkit_document_id: string | null;
1594
1670
  };
1595
1671
  })[];
1596
1672
  }[];
@@ -1663,6 +1739,7 @@ export default function useCanvas(): {
1663
1739
  readonly external_url: string;
1664
1740
  readonly type: "image" | "video";
1665
1741
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
1742
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
1666
1743
  } | {
1667
1744
  readonly asset_type: "pitcher_asset";
1668
1745
  readonly file: {
@@ -1693,6 +1770,9 @@ export default function useCanvas(): {
1693
1770
  readonly admin_instance?: {
1694
1771
  readonly start_in_loading_mode?: boolean | undefined;
1695
1772
  } | undefined;
1773
+ readonly overlay_app?: {
1774
+ readonly start_in_loading_mode?: boolean | undefined;
1775
+ } | undefined;
1696
1776
  } | undefined;
1697
1777
  readonly file: {
1698
1778
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -1837,6 +1917,11 @@ export default function useCanvas(): {
1837
1917
  readonly can_download?: boolean | undefined;
1838
1918
  readonly can_share?: boolean | undefined;
1839
1919
  } | undefined;
1920
+ readonly pspdfkit_server_url: string | null;
1921
+ readonly pspdfkit_auth_payload: {
1922
+ readonly [x: string]: any;
1923
+ } | null;
1924
+ readonly pspdfkit_document_id: string | null;
1840
1925
  };
1841
1926
  readonly slide: {
1842
1927
  readonly index: number;
@@ -1854,6 +1939,11 @@ export default function useCanvas(): {
1854
1939
  readonly can_download?: boolean | undefined;
1855
1940
  readonly can_share?: boolean | undefined;
1856
1941
  } | undefined;
1942
+ readonly pspdfkit_server_url: string | null;
1943
+ readonly pspdfkit_auth_payload: {
1944
+ readonly [x: string]: any;
1945
+ } | null;
1946
+ readonly pspdfkit_document_id: string | null;
1857
1947
  };
1858
1948
  })[];
1859
1949
  }[];
@@ -1950,23 +2040,43 @@ export default function useCanvas(): {
1950
2040
  }[]>;
1951
2041
  }) | ((...data: any[]) => void)>;
1952
2042
  onTrackShare: Ref<((canvasId: CanvasRetrieve["id"]) => Promise<void>) | undefined, ((canvasId: CanvasRetrieve["id"]) => Promise<void>) | undefined>;
1953
- renderPageAsImageUrl: Ref<((fileId: import('../../../../types/openapi').File["id"], pageIndex: number, options: {
1954
- width: number;
1955
- } | {
1956
- height: number;
1957
- }) => Promise<string>) | ((fileId: import('../../../../types/openapi').File["id"], pageIndex: number, options: {
1958
- width: number;
1959
- } | {
1960
- height: number;
1961
- }) => Promise<string>) | ((...data: any[]) => void) | undefined, ((fileId: import('../../../../types/openapi').File["id"], pageIndex: number, options: {
1962
- width: number;
1963
- } | {
1964
- height: number;
1965
- }) => Promise<string>) | ((fileId: import('../../../../types/openapi').File["id"], pageIndex: number, options: {
1966
- width: number;
1967
- } | {
1968
- height: number;
1969
- }) => Promise<string>) | ((...data: any[]) => void) | undefined>;
2043
+ renderPageAsImageUrl: Ref<((payload: {
2044
+ fileId: import('../../../../types/openapi').File["id"];
2045
+ documentId?: import('../../../../types/openapi').File["id"];
2046
+ pageIndex: number;
2047
+ params: {
2048
+ width: number;
2049
+ } | {
2050
+ height: number;
2051
+ };
2052
+ }) => Promise<ArrayBuffer>) | ((payload: {
2053
+ fileId: import('../../../../types/openapi').File["id"];
2054
+ documentId?: import('../../../../types/openapi').File["id"];
2055
+ pageIndex: number;
2056
+ params: {
2057
+ width: number;
2058
+ } | {
2059
+ height: number;
2060
+ };
2061
+ }) => Promise<ArrayBuffer>) | ((...data: any[]) => Promise<ArrayBuffer> | void) | undefined, ((payload: {
2062
+ fileId: import('../../../../types/openapi').File["id"];
2063
+ documentId?: import('../../../../types/openapi').File["id"];
2064
+ pageIndex: number;
2065
+ params: {
2066
+ width: number;
2067
+ } | {
2068
+ height: number;
2069
+ };
2070
+ }) => Promise<ArrayBuffer>) | ((payload: {
2071
+ fileId: import('../../../../types/openapi').File["id"];
2072
+ documentId?: import('../../../../types/openapi').File["id"];
2073
+ pageIndex: number;
2074
+ params: {
2075
+ width: number;
2076
+ } | {
2077
+ height: number;
2078
+ };
2079
+ }) => Promise<ArrayBuffer>) | ((...data: any[]) => Promise<ArrayBuffer> | void) | undefined>;
1970
2080
  sectionComponentNodesBySectionId: import('vue').ComputedRef<{
1971
2081
  readonly [x: string]: {
1972
2082
  readonly [x: string]: {
@@ -2011,6 +2121,7 @@ export default function useCanvas(): {
2011
2121
  readonly external_url: string;
2012
2122
  readonly type: "image" | "video";
2013
2123
  readonly horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
2124
+ readonly from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
2014
2125
  } | {
2015
2126
  readonly asset_type: "pitcher_asset";
2016
2127
  readonly file: {
@@ -2041,6 +2152,9 @@ export default function useCanvas(): {
2041
2152
  readonly admin_instance?: {
2042
2153
  readonly start_in_loading_mode?: boolean | undefined;
2043
2154
  } | undefined;
2155
+ readonly overlay_app?: {
2156
+ readonly start_in_loading_mode?: boolean | undefined;
2157
+ } | undefined;
2044
2158
  } | undefined;
2045
2159
  readonly file: {
2046
2160
  readonly id: import('../../../../types/openapi').FileRetrieve["id"];
@@ -2185,6 +2299,11 @@ export default function useCanvas(): {
2185
2299
  readonly can_download?: boolean | undefined;
2186
2300
  readonly can_share?: boolean | undefined;
2187
2301
  } | undefined;
2302
+ readonly pspdfkit_server_url: string | null;
2303
+ readonly pspdfkit_auth_payload: {
2304
+ readonly [x: string]: any;
2305
+ } | null;
2306
+ readonly pspdfkit_document_id: string | null;
2188
2307
  };
2189
2308
  readonly slide: {
2190
2309
  readonly index: number;
@@ -2202,6 +2321,11 @@ export default function useCanvas(): {
2202
2321
  readonly can_download?: boolean | undefined;
2203
2322
  readonly can_share?: boolean | undefined;
2204
2323
  } | undefined;
2324
+ readonly pspdfkit_server_url: string | null;
2325
+ readonly pspdfkit_auth_payload: {
2326
+ readonly [x: string]: any;
2327
+ } | null;
2328
+ readonly pspdfkit_document_id: string | null;
2205
2329
  };
2206
2330
  })[];
2207
2331
  }[];
@@ -45,6 +45,7 @@ export default function useCanvasHistory(): {
45
45
  external_url: string;
46
46
  type: "image" | "video";
47
47
  horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
48
+ from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
48
49
  } | {
49
50
  asset_type: "pitcher_asset";
50
51
  file: {
@@ -75,6 +76,9 @@ export default function useCanvasHistory(): {
75
76
  admin_instance?: {
76
77
  start_in_loading_mode?: boolean | undefined;
77
78
  } | undefined;
79
+ overlay_app?: {
80
+ start_in_loading_mode?: boolean | undefined;
81
+ } | undefined;
78
82
  } | undefined;
79
83
  file: {
80
84
  id: import('../../../main.lib').FileRetrieve["id"];
@@ -199,6 +203,9 @@ export default function useCanvasHistory(): {
199
203
  can_download?: boolean | undefined;
200
204
  can_share?: boolean | undefined;
201
205
  } | undefined;
206
+ readonly pspdfkit_server_url: string | null;
207
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
208
+ readonly pspdfkit_document_id: string | null;
202
209
  };
203
210
  slide: {
204
211
  index: number;
@@ -216,6 +223,9 @@ export default function useCanvasHistory(): {
216
223
  can_download?: boolean | undefined;
217
224
  can_share?: boolean | undefined;
218
225
  } | undefined;
226
+ readonly pspdfkit_server_url: string | null;
227
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
228
+ readonly pspdfkit_document_id: string | null;
219
229
  };
220
230
  })[];
221
231
  }[];
@@ -274,6 +284,7 @@ export default function useCanvasHistory(): {
274
284
  external_url: string;
275
285
  type: "image" | "video";
276
286
  horizontal_alignment?: import('@canvas-builder/types/canvas').MultimediaHorizontalAlignmentOptions | undefined;
287
+ from?: ("custom" | "pexels" | "unsplash" | "ai") | undefined;
277
288
  } | {
278
289
  asset_type: "pitcher_asset";
279
290
  file: {
@@ -304,6 +315,9 @@ export default function useCanvasHistory(): {
304
315
  admin_instance?: {
305
316
  start_in_loading_mode?: boolean | undefined;
306
317
  } | undefined;
318
+ overlay_app?: {
319
+ start_in_loading_mode?: boolean | undefined;
320
+ } | undefined;
307
321
  } | undefined;
308
322
  file: {
309
323
  id: import('../../../main.lib').FileRetrieve["id"];
@@ -428,6 +442,9 @@ export default function useCanvasHistory(): {
428
442
  can_download?: boolean | undefined;
429
443
  can_share?: boolean | undefined;
430
444
  } | undefined;
445
+ readonly pspdfkit_server_url: string | null;
446
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
447
+ readonly pspdfkit_document_id: string | null;
431
448
  };
432
449
  slide: {
433
450
  index: number;
@@ -445,6 +462,9 @@ export default function useCanvasHistory(): {
445
462
  can_download?: boolean | undefined;
446
463
  can_share?: boolean | undefined;
447
464
  } | undefined;
465
+ readonly pspdfkit_server_url: string | null;
466
+ readonly pspdfkit_auth_payload: Record<string, any> | null;
467
+ readonly pspdfkit_document_id: string | null;
448
468
  };
449
469
  })[];
450
470
  }[];
@@ -41,6 +41,7 @@ export default function (): {
41
41
  url: string;
42
42
  type: "external_link";
43
43
  content_type: "video" | "image";
44
+ from: "custom" | "pexels" | "unsplash" | "ai";
44
45
  } | {
45
46
  fileId: FileRetrieve["id"];
46
47
  type: "asset";
@@ -61,6 +62,7 @@ export default function (): {
61
62
  url: string;
62
63
  type: "external_link";
63
64
  content_type: "video" | "image";
65
+ from: "custom" | "pexels" | "unsplash" | "ai";
64
66
  } | {
65
67
  fileId: FileRetrieve["id"];
66
68
  type: "asset";
@@ -91,6 +91,7 @@ export type ExternalMultimediaAssetType = {
91
91
  external_url: string;
92
92
  type: 'image' | 'video';
93
93
  horizontal_alignment?: MultimediaHorizontalAlignmentOptions;
94
+ from?: 'custom' | 'pexels' | 'unsplash' | 'ai';
94
95
  };
95
96
  export type PitcherMultimediaAssetType = {
96
97
  asset_type: typeof MULTIMEDIA_IMG_TYPE.pitcher_asset;
@@ -177,7 +178,7 @@ export type CollectionPlayerProps = {
177
178
  groups: CollectionSelectorGroup[];
178
179
  name: string;
179
180
  };
180
- export type CollectionFileEntity = Pick<File, 'id' | 'thumbnail_url' | 'permissions' | 'content_url' | 'content_type'>;
181
+ export type CollectionFileEntity = Pick<FileRetrieve, 'id' | 'thumbnail_url' | 'permissions' | 'content_url' | 'content_type' | 'pspdfkit_auth_payload' | 'pspdfkit_document_id' | 'pspdfkit_server_url'>;
181
182
  export type CollectionPage = {
182
183
  id: string;
183
184
  type: 'slide';
@@ -427,11 +428,16 @@ export type SharingBuilderProps = NoCRMBuilderProps & {
427
428
  fetchFile?: never;
428
429
  fetchInstanceMetadataTemplate?: never;
429
430
  fetchCanvas?: never;
430
- renderPageAsImageUrl?: (fileId: File['id'], pageIndex: number, options: {
431
- width: number;
432
- } | {
433
- height: number;
434
- }) => Promise<string>;
431
+ renderPageAsImageUrl?: (payload: {
432
+ fileId: File['id'];
433
+ documentId?: File['id'];
434
+ pageIndex: number;
435
+ params: {
436
+ width: number;
437
+ } | {
438
+ height: number;
439
+ };
440
+ }) => Promise<ArrayBuffer>;
435
441
  getEnv: () => Promise<PitcherEnv>;
436
442
  onTrackShare?: never;
437
443
  share?: never;
@@ -486,11 +492,16 @@ type AdminImpactCommonBuilderProps = {
486
492
  fetchFile: (fileId: FileRetrieve['id']) => Promise<FileRetrieve>;
487
493
  fetchCanvas: (canvasId: CanvasRetrieve['id'], params?: Record<string, any>) => Promise<CanvasRetrieve>;
488
494
  fetchInstanceMetadataTemplate: () => Promise<MetadataTemplate>;
489
- renderPageAsImageUrl?: (fileId: File['id'], pageIndex: number, options: {
490
- width: number;
491
- } | {
492
- height: number;
493
- }) => Promise<string>;
495
+ renderPageAsImageUrl?: (payload: {
496
+ fileId: File['id'];
497
+ documentId?: File['id'];
498
+ pageIndex: number;
499
+ params: {
500
+ width: number;
501
+ } | {
502
+ height: number;
503
+ };
504
+ }) => Promise<ArrayBuffer>;
494
505
  getEnv?: () => Promise<PitcherEnv>;
495
506
  onEditMode?: (isEditMode: boolean) => void;
496
507
  onTrackShare?: (canvasId: CanvasRetrieve['id']) => Promise<void>;
@@ -3,3 +3,4 @@ export declare function isValidUrl(urlString: string): boolean;
3
3
  export declare function extractBaseUrlAndResource(urlString?: string | null): [string, string];
4
4
  export declare function extractBaseUrl(urlString?: string | null): string;
5
5
  export declare function extractResource(urlString?: string | null): string;
6
+ export declare function enforceHttps(url: string): string;
@@ -14,6 +14,7 @@ export type ExternalLinkSelection = {
14
14
  url: string;
15
15
  type: 'external_link';
16
16
  content_type: 'video' | 'image';
17
+ from: 'custom' | 'pexels' | 'unsplash' | 'ai';
17
18
  };
18
19
  export type AssetSelection = {
19
20
  fileId: FileRetrieve['id'];
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ add: (args_0: {
3
+ url: string;
4
+ }) => any;
5
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
6
+ onAdd?: ((args_0: {
7
+ url: string;
8
+ }) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
@@ -1,5 +1,11 @@
1
1
  type Props = {
2
2
  url?: string;
3
+ type?: 'image' | 'video';
4
+ loadingMessage?: string;
3
5
  };
4
- 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>;
6
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ load: (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
+ onLoad?: ((...args: any[]) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { Ref, ComputedRef, UnwrapNestedRefs } from 'vue';
2
2
  import { FolderRetrieve, FolderFile, FileRetrieve, File, FolderFolder } from '../../../../types/openapi';
3
3
  import { FileFetcher, FolderItemsFetcher } from '@content-selector/appTypes';
4
- export type SelectorType = 'content' | 'assets' | 'external_links';
4
+ export type SelectorType = 'content' | 'assets' | 'external_links' | 'ai_images';
5
5
  export type SelectedPage = {
6
6
  id: string;
7
7
  file: {
@@ -36,7 +36,7 @@ export type SelectedExternalLink = {
36
36
  thumbnail_url?: string;
37
37
  type: 'external_link';
38
38
  content_type: 'video' | 'image';
39
- from: 'custom' | 'pexels' | 'unsplash';
39
+ from: 'custom' | 'pexels' | 'unsplash' | 'ai';
40
40
  };
41
41
  export type ContentSelectorSelectedItem = SelectedPage | SelectedFile | SelectedAsset | SelectedExternalLink;
42
42
  export declare function isPage(item: ContentSelectorSelectedItem): item is SelectedPage;
@@ -15,9 +15,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
15
15
  showMore?: boolean;
16
16
  moreActions?: {
17
17
  addTags?: boolean;
18
- removeTags?: boolean;
19
- manageAttributes?: boolean;
20
18
  delete?: boolean;
19
+ manageAttributes?: boolean;
20
+ manageFileAttributes?: boolean;
21
+ removeTags?: boolean;
21
22
  };
22
23
  showMove?: boolean;
23
24
  showDelete?: boolean;
@@ -32,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
32
33
  toggleSelect: (value: boolean) => any;
33
34
  toggleFavorite: (value: boolean) => any;
34
35
  manageAttributes: () => any;
36
+ manageFileAttributes: () => any;
35
37
  addTags: () => any;
36
38
  removeTags: () => any;
37
39
  }, string, import('vue').PublicProps, Readonly<{
@@ -42,9 +44,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
42
44
  showMore?: boolean;
43
45
  moreActions?: {
44
46
  addTags?: boolean;
45
- removeTags?: boolean;
46
- manageAttributes?: boolean;
47
47
  delete?: boolean;
48
+ manageAttributes?: boolean;
49
+ manageFileAttributes?: boolean;
50
+ removeTags?: boolean;
48
51
  };
49
52
  showMove?: boolean;
50
53
  showDelete?: boolean;
@@ -59,6 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
59
62
  onToggleSelect?: ((value: boolean) => any) | undefined;
60
63
  onToggleFavorite?: ((value: boolean) => any) | undefined;
61
64
  onManageAttributes?: (() => any) | undefined;
65
+ onManageFileAttributes?: (() => any) | undefined;
62
66
  onAddTags?: (() => any) | undefined;
63
67
  onRemoveTags?: (() => any) | undefined;
64
68
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -13,19 +13,22 @@ declare const _default: import('vue').DefineComponent<{
13
13
  loading?: boolean;
14
14
  initialValues?: Record<string, any>;
15
15
  readOnly?: boolean;
16
+ showKeepAsIsPlaceholder?: boolean;
16
17
  }, {
17
18
  validate: typeof validate;
18
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- change: (fieldName: string, value: any) => any;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ change: (config: Record<string, any>) => any;
20
21
  }, string, import('vue').PublicProps, Readonly<{
21
22
  template?: ConfigForm | null;
22
23
  loading?: boolean;
23
24
  initialValues?: Record<string, any>;
24
25
  readOnly?: boolean;
26
+ showKeepAsIsPlaceholder?: boolean;
25
27
  }> & Readonly<{
26
- onChange?: ((fieldName: string, value: any) => any) | undefined;
28
+ onChange?: ((config: Record<string, any>) => any) | undefined;
27
29
  }>, {
28
30
  loading: boolean;
31
+ showKeepAsIsPlaceholder: boolean;
29
32
  readOnly: boolean;
30
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
34
  export default _default;