@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
@@ -1,5 +1,7 @@
1
1
  interface UploadResponse {
2
2
  url: string;
3
3
  }
4
- export declare function uploadToConnect(formData: FormData): Promise<UploadResponse>;
4
+ export default function useConnectUpload(): {
5
+ uploadToConnect: (formData: FormData) => Promise<UploadResponse>;
6
+ };
5
7
  export {};
@@ -1,5 +1,4 @@
1
1
  import { SelectOption } from 'naive-ui';
2
- import { PitcherInfo } from '../types/app';
3
2
  import { User } from '../../types/openapi';
4
3
  export type Owner = {
5
4
  value: User['id'];
@@ -8,9 +7,8 @@ export type Owner = {
8
7
  };
9
8
  declare function insertUserSorted(users: Owner[], newUser: Owner): Owner[];
10
9
  declare function filterUsers(searchTerm: string | null | undefined, option: SelectOption): boolean;
11
- declare function fetchUsers(pitcherInfo: PitcherInfo, myUser?: User | null): Promise<Owner[]>;
12
10
  export default function useFetchUsers(): {
13
- fetchUsers: typeof fetchUsers;
11
+ fetchUsers: (myUser?: User | null) => Promise<Owner[]>;
14
12
  filterUsers: typeof filterUsers;
15
13
  insertUserSorted: typeof insertUserSorted;
16
14
  };
@@ -0,0 +1,10 @@
1
+ export declare const APPS_DB: {
2
+ readonly STORES: {
3
+ readonly SMART_FOLDERS: "smart-folders";
4
+ };
5
+ readonly ENTRIES: {
6
+ readonly CONFIGURATION: "configuration";
7
+ };
8
+ readonly GLOBAL_STORES: {};
9
+ readonly GLOBAL_ENTRIES: {};
10
+ };
@@ -21,6 +21,7 @@ export declare const CDP_EVENT_TYPE: {
21
21
  readonly userFeedbackCaptured: "User Feedback Captured";
22
22
  readonly userBugReported: "User Bug Reported";
23
23
  readonly userFileReviewed: "User File Reviewed";
24
+ readonly hotspotClicked: "Hotspot Clicked";
24
25
  };
25
26
  export declare const CLIENT_TYPE: {
26
27
  readonly admin: "admin";
package/lib/main.lib.d.ts CHANGED
@@ -18,6 +18,7 @@ export { default as CDrawerContent } from './components/CDrawerContent/CDrawerCo
18
18
  export { default as CDropdown } from './components/CDropdown/CDropdown.vue';
19
19
  export { default as CErrorFullScreen } from './components/CError/CErrorFullScreen.vue';
20
20
  export { default as CFileThumbnail } from './components/CFileThumbnail/CFileThumbnail.vue';
21
+ export { default as CFileAttributes } from './components/CFileAttributes/CFileAttributes.vue';
21
22
  export { default as CIcon, type Props as CIconProps } from './components/CIcon/CIcon.vue';
22
23
  export { default as CImage } from './components/CImage/CImage.vue';
23
24
  export { default as CInput } from './components/CInput/CInput.vue';
@@ -116,6 +117,7 @@ export { default as usePresentationHistory } from './composables/presentationHis
116
117
  export { default as useToast } from './composables/useToast';
117
118
  export { default as useSuggestedTags } from './composables/suggestedTags.use';
118
119
  export { default as useOpenFileStack } from './composables/openFileStack.use';
120
+ export { useAdminAndDsrState } from './composables/useAdminAndDsrState';
119
121
  export { default as useCanvasVisibility } from './apps/canvas-builder/composables/useCanvasVisibility';
120
122
  export * from './plugins/vueQuery';
121
123
  export * from './apps/canvas-builder/util/canvas.util';
@@ -187,7 +187,8 @@ export declare function createHighLevelApi(options?: ApiOptions): {
187
187
  }>;
188
188
  renderPageAsImage(payload: {
189
189
  fileId: import('../../main.lib').File["id"];
190
- pageNumber: number;
190
+ documentId?: import('../../main.lib').File["id"];
191
+ pageIndex: number;
191
192
  params: {
192
193
  width: number;
193
194
  } | {
@@ -28,9 +28,21 @@ export declare function getFile(payload: {
28
28
  * adminApi.getFiles()
29
29
  */
30
30
  export declare function getFiles(payload: Record<string, any>): Promise<PaginatedFileList>;
31
+ /**
32
+ * Opens a file by id.
33
+ *
34
+ * @example
35
+ * adminApi.open({ id: 'my-file-id' })
36
+ */
31
37
  export declare function open(payload: {
32
38
  id: File['id'];
33
39
  }): Promise<void>;
40
+ /**
41
+ * Closes the already open file that was opened via api or by the user.
42
+ *
43
+ * @example
44
+ * adminApi.close()
45
+ */
34
46
  export declare function close(): Promise<void>;
35
47
  /**
36
48
  * Opens a selector that allows you to select (and preselect) from your Pitcher uploaded content.
@@ -3,6 +3,8 @@ import { SelectedPage as ContentSelectorSelectedPage, SelectedFile as ContentSel
3
3
  import { Selection as ContentSelectorSelection } from '@content-selector/appTypes';
4
4
  import { Canvas } from '../../../../../types/openapi';
5
5
  import { CanvasSelection } from '@canvas-selector/appTypes';
6
+ import { CLIENT_TYPE } from '../../../../constants/cdp.const';
7
+ import { LaunchDarklyEnv } from '../../../../types/launchDarkly.types';
6
8
  export declare const ADMIN_MESSAGE: "ADMIN_MESSAGE";
7
9
  export declare const ADMIN_MESSAGE_TYPES: {
8
10
  readonly ENV_CHANGED: "admin_env_changed";
@@ -190,5 +192,8 @@ export type AdminEnv = {
190
192
  */
191
193
  mode?: PitcherEnv['mode'];
192
194
  pitcher: PitcherEnv['pitcher'];
195
+ launch_darkly?: LaunchDarklyEnv;
196
+ client_type?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
197
+ crm_shape?: Record<string, any>;
193
198
  state?: PitcherEnv['state'];
194
199
  };
@@ -0,0 +1,17 @@
1
+ import { File } from '../../../../../types/openapi';
2
+ /**
3
+ * Closes the already open file that was opened via api or by the user.
4
+ *
5
+ * @example
6
+ * dsrApi.close()
7
+ */
8
+ export declare function close(): Promise<void>;
9
+ /**
10
+ * Fetches a file by ID.
11
+ *
12
+ * @example
13
+ * adminApi.getFile({ id: 'my-file-id' })
14
+ */
15
+ export declare function getFile(payload: {
16
+ id: File['id'];
17
+ }): Promise<File>;
@@ -8,6 +8,10 @@ import { DSR_MESSAGE_TYPES, DsrMessagePayloads } from './types.dsr';
8
8
  */
9
9
  declare function on(type: (typeof DSR_MESSAGE_TYPES)[keyof typeof DSR_MESSAGE_TYPES], handler: (data: DsrMessagePayloads[typeof type]) => Promise<void>): Promise<() => void>;
10
10
  declare const _default: {
11
+ close(): Promise<void>;
12
+ getFile(payload: {
13
+ id: import('../../../../main.lib').File["id"];
14
+ }): Promise<import('../../../../main.lib').File>;
11
15
  embeddableReady(): Promise<void>;
12
16
  getEnv(): Promise<import('./types.dsr').DsrEnv>;
13
17
  on: typeof on;
@@ -9,6 +9,8 @@ export declare const DSR_API_TYPES: {
9
9
  };
10
10
  export declare const DSR_API_METHOD_TYPES: {
11
11
  readonly GET_ENV: "dsr_get_env";
12
+ readonly GET_FILE: "dsr_get_file";
13
+ readonly CLOSE: "dsr_close";
12
14
  readonly DSR_EMBEDDABLE_READY: "dsr_embeddable_ready";
13
15
  };
14
16
  export type DsrMessagePayloads = {
@@ -9,11 +9,34 @@ export declare function fetchDocumentInfo(payload: {
9
9
  [key: string]: unknown;
10
10
  }>;
11
11
  /**
12
- * @deprecated - use thumbnails instead
12
+ * Renders a page from a file together with annotations.
13
+ *
14
+ * @example
15
+ * api.renderPageAsImage({
16
+ * fileId: '123456',
17
+ * documentId: '654321',
18
+ * pageIndex: 0,
19
+ * params: { width: 1920 },
20
+ * })
21
+ *
22
+ * @returns A promise that resolves with the image as an ArrayBuffer.
13
23
  */
14
24
  export declare function renderPageAsImage(payload: {
25
+ /**
26
+ * The ID of the file to render. Used when the documentId is not available.
27
+ */
15
28
  fileId: File['id'];
16
- pageNumber: number;
29
+ /**
30
+ * The ID of the document to render (optional). If not provided the fileId will be used.
31
+ */
32
+ documentId?: File['id'];
33
+ /**
34
+ * The index of the page to render.
35
+ */
36
+ pageIndex: number;
37
+ /**
38
+ * The parameters to use for rendering the page.
39
+ */
17
40
  params: {
18
41
  width: number;
19
42
  } | {
@@ -41,6 +41,7 @@ export interface PitcherEnv {
41
41
  };
42
42
  launch_darkly?: LaunchDarklyEnv;
43
43
  client_type?: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
44
+ crm_shape?: Record<string, any>;
44
45
  state?: {
45
46
  active_file?: {
46
47
  id: File['id'];
package/lib/sdk/main.d.ts CHANGED
@@ -129,6 +129,10 @@ export declare function useAdmin(): {
129
129
  * ```
130
130
  */
131
131
  export declare function useDsr(): {
132
+ close(): Promise<void>;
133
+ getFile(payload: {
134
+ id: import('../main.lib').File["id"];
135
+ }): Promise<import('../main.lib').File>;
132
136
  embeddableReady(): Promise<void>;
133
137
  getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
134
138
  on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
@@ -242,7 +246,8 @@ export declare function useApi(options?: ApiOptions): {
242
246
  }>;
243
247
  renderPageAsImage(payload: {
244
248
  fileId: import('../main.lib').File["id"];
245
- pageNumber: number;
249
+ documentId?: import('../main.lib').File["id"];
250
+ pageIndex: number;
246
251
  params: {
247
252
  width: number;
248
253
  } | {
@@ -328,6 +333,10 @@ export declare function useApi(options?: ApiOptions): {
328
333
  on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
329
334
  toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
330
335
  } | {
336
+ close(): Promise<void>;
337
+ getFile(payload: {
338
+ id: import('../main.lib').File["id"];
339
+ }): Promise<import('../main.lib').File>;
331
340
  embeddableReady(): Promise<void>;
332
341
  getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
333
342
  on: (type: typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES[keyof typeof import('./api/modules/dsr/types.dsr').DSR_MESSAGE_TYPES], handler: (data: import('./api/modules/dsr/types.dsr').DsrMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
@@ -465,7 +474,8 @@ export declare function useApi(options?: ApiOptions): {
465
474
  }>;
466
475
  renderPageAsImage(payload: {
467
476
  fileId: import('../main.lib').File["id"];
468
- pageNumber: number;
477
+ documentId?: import('../main.lib').File["id"];
478
+ pageIndex: number;
469
479
  params: {
470
480
  width: number;
471
481
  } | {
@@ -635,7 +645,8 @@ export declare function useApi(options?: ApiOptions): {
635
645
  }>;
636
646
  renderPageAsImage(payload: {
637
647
  fileId: import('../main.lib').File["id"];
638
- pageNumber: number;
648
+ documentId?: import('../main.lib').File["id"];
649
+ pageIndex: number;
639
650
  params: {
640
651
  width: number;
641
652
  } | {
@@ -148,6 +148,10 @@ export interface OpenRequestPayload {
148
148
  * Indicates if the file should be opened in a new tab.
149
149
  */
150
150
  newTab?: boolean;
151
+ /**
152
+ * Indicates if the app should be opened as overlay.
153
+ */
154
+ isOverlayApp?: boolean;
151
155
  }
152
156
  /**
153
157
  * Payload object for opening an external URL.
@@ -742,10 +742,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
742
742
  }, any>;
743
743
  }>> | undefined;
744
744
  InternalSelectMenu?: import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"InternalSelectMenu", {
745
+ optionFontSizeTiny: string;
745
746
  optionFontSizeSmall: string;
746
747
  optionFontSizeMedium: string;
747
748
  optionFontSizeLarge: string;
748
749
  optionFontSizeHuge: string;
750
+ optionHeightTiny: string;
749
751
  optionHeightSmall: string;
750
752
  optionHeightMedium: string;
751
753
  optionHeightLarge: string;
@@ -766,10 +768,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
766
768
  actionTextColor: string;
767
769
  loadingColor: string;
768
770
  height: string;
771
+ paddingTiny: string;
769
772
  paddingSmall: string;
770
773
  paddingMedium: string;
771
774
  paddingLarge: string;
772
775
  paddingHuge: string;
776
+ optionPaddingTiny: string;
773
777
  optionPaddingSmall: string;
774
778
  optionPaddingMedium: string;
775
779
  optionPaddingLarge: string;
@@ -782,11 +786,14 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
782
786
  borderRadius: string;
783
787
  color: string;
784
788
  colorHover: string;
785
- railInsetHorizontal: string;
786
- railInsetVertical: string;
789
+ railInsetHorizontalBottom: string;
790
+ railInsetHorizontalTop: string;
791
+ railInsetVerticalRight: string;
792
+ railInsetVerticalLeft: string;
787
793
  railColor: string;
788
794
  }, any>;
789
795
  Empty: import('naive-ui/es/_mixins').Theme<"Empty", {
796
+ fontSizeTiny: string;
790
797
  fontSizeSmall: string;
791
798
  fontSizeMedium: string;
792
799
  fontSizeLarge: string;
@@ -794,6 +801,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
794
801
  textColor: string;
795
802
  iconColor: string;
796
803
  extraTextColor: string;
804
+ iconSizeTiny: string;
797
805
  iconSizeSmall: string;
798
806
  iconSizeMedium: string;
799
807
  iconSizeLarge: string;
@@ -811,10 +819,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
811
819
  }> & {
812
820
  peers?: {
813
821
  InternalSelectMenu?: import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"InternalSelectMenu", {
822
+ optionFontSizeTiny: string;
814
823
  optionFontSizeSmall: string;
815
824
  optionFontSizeMedium: string;
816
825
  optionFontSizeLarge: string;
817
826
  optionFontSizeHuge: string;
827
+ optionHeightTiny: string;
818
828
  optionHeightSmall: string;
819
829
  optionHeightMedium: string;
820
830
  optionHeightLarge: string;
@@ -835,10 +845,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
835
845
  actionTextColor: string;
836
846
  loadingColor: string;
837
847
  height: string;
848
+ paddingTiny: string;
838
849
  paddingSmall: string;
839
850
  paddingMedium: string;
840
851
  paddingLarge: string;
841
852
  paddingHuge: string;
853
+ optionPaddingTiny: string;
842
854
  optionPaddingSmall: string;
843
855
  optionPaddingMedium: string;
844
856
  optionPaddingLarge: string;
@@ -851,11 +863,14 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
851
863
  borderRadius: string;
852
864
  color: string;
853
865
  colorHover: string;
854
- railInsetHorizontal: string;
855
- railInsetVertical: string;
866
+ railInsetHorizontalBottom: string;
867
+ railInsetHorizontalTop: string;
868
+ railInsetVerticalRight: string;
869
+ railInsetVerticalLeft: string;
856
870
  railColor: string;
857
871
  }, any>;
858
872
  Empty: import('naive-ui/es/_mixins').Theme<"Empty", {
873
+ fontSizeTiny: string;
859
874
  fontSizeSmall: string;
860
875
  fontSizeMedium: string;
861
876
  fontSizeLarge: string;
@@ -863,6 +878,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
863
878
  textColor: string;
864
879
  iconColor: string;
865
880
  extraTextColor: string;
881
+ iconSizeTiny: string;
866
882
  iconSizeSmall: string;
867
883
  iconSizeMedium: string;
868
884
  iconSizeLarge: string;
@@ -1520,10 +1536,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1520
1536
  }, any>;
1521
1537
  }>;
1522
1538
  InternalSelectMenu: import('naive-ui/es/_mixins').Theme<"InternalSelectMenu", {
1539
+ optionFontSizeTiny: string;
1523
1540
  optionFontSizeSmall: string;
1524
1541
  optionFontSizeMedium: string;
1525
1542
  optionFontSizeLarge: string;
1526
1543
  optionFontSizeHuge: string;
1544
+ optionHeightTiny: string;
1527
1545
  optionHeightSmall: string;
1528
1546
  optionHeightMedium: string;
1529
1547
  optionHeightLarge: string;
@@ -1544,10 +1562,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1544
1562
  actionTextColor: string;
1545
1563
  loadingColor: string;
1546
1564
  height: string;
1565
+ paddingTiny: string;
1547
1566
  paddingSmall: string;
1548
1567
  paddingMedium: string;
1549
1568
  paddingLarge: string;
1550
1569
  paddingHuge: string;
1570
+ optionPaddingTiny: string;
1551
1571
  optionPaddingSmall: string;
1552
1572
  optionPaddingMedium: string;
1553
1573
  optionPaddingLarge: string;
@@ -1560,11 +1580,14 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1560
1580
  borderRadius: string;
1561
1581
  color: string;
1562
1582
  colorHover: string;
1563
- railInsetHorizontal: string;
1564
- railInsetVertical: string;
1583
+ railInsetHorizontalBottom: string;
1584
+ railInsetHorizontalTop: string;
1585
+ railInsetVerticalRight: string;
1586
+ railInsetVerticalLeft: string;
1565
1587
  railColor: string;
1566
1588
  }, any>;
1567
1589
  Empty: import('naive-ui/es/_mixins').Theme<"Empty", {
1590
+ fontSizeTiny: string;
1568
1591
  fontSizeSmall: string;
1569
1592
  fontSizeMedium: string;
1570
1593
  fontSizeLarge: string;
@@ -1572,6 +1595,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1572
1595
  textColor: string;
1573
1596
  iconColor: string;
1574
1597
  extraTextColor: string;
1598
+ iconSizeTiny: string;
1575
1599
  iconSizeSmall: string;
1576
1600
  iconSizeMedium: string;
1577
1601
  iconSizeLarge: string;
@@ -1658,10 +1682,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1658
1682
  padding: string;
1659
1683
  }, any>;
1660
1684
  InternalSelectMenu: import('naive-ui/es/_mixins').Theme<"InternalSelectMenu", {
1685
+ optionFontSizeTiny: string;
1661
1686
  optionFontSizeSmall: string;
1662
1687
  optionFontSizeMedium: string;
1663
1688
  optionFontSizeLarge: string;
1664
1689
  optionFontSizeHuge: string;
1690
+ optionHeightTiny: string;
1665
1691
  optionHeightSmall: string;
1666
1692
  optionHeightMedium: string;
1667
1693
  optionHeightLarge: string;
@@ -1682,10 +1708,12 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1682
1708
  actionTextColor: string;
1683
1709
  loadingColor: string;
1684
1710
  height: string;
1711
+ paddingTiny: string;
1685
1712
  paddingSmall: string;
1686
1713
  paddingMedium: string;
1687
1714
  paddingLarge: string;
1688
1715
  paddingHuge: string;
1716
+ optionPaddingTiny: string;
1689
1717
  optionPaddingSmall: string;
1690
1718
  optionPaddingMedium: string;
1691
1719
  optionPaddingLarge: string;
@@ -1698,11 +1726,14 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1698
1726
  borderRadius: string;
1699
1727
  color: string;
1700
1728
  colorHover: string;
1701
- railInsetHorizontal: string;
1702
- railInsetVertical: string;
1729
+ railInsetHorizontalBottom: string;
1730
+ railInsetHorizontalTop: string;
1731
+ railInsetVerticalRight: string;
1732
+ railInsetVerticalLeft: string;
1703
1733
  railColor: string;
1704
1734
  }, any>;
1705
1735
  Empty: import('naive-ui/es/_mixins').Theme<"Empty", {
1736
+ fontSizeTiny: string;
1706
1737
  fontSizeSmall: string;
1707
1738
  fontSizeMedium: string;
1708
1739
  fontSizeLarge: string;
@@ -1710,6 +1741,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1710
1741
  textColor: string;
1711
1742
  iconColor: string;
1712
1743
  extraTextColor: string;
1744
+ iconSizeTiny: string;
1713
1745
  iconSizeSmall: string;
1714
1746
  iconSizeMedium: string;
1715
1747
  iconSizeLarge: string;
@@ -1724,11 +1756,14 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1724
1756
  borderRadius: string;
1725
1757
  color: string;
1726
1758
  colorHover: string;
1727
- railInsetHorizontal: string;
1728
- railInsetVertical: string;
1759
+ railInsetHorizontalBottom: string;
1760
+ railInsetHorizontalTop: string;
1761
+ railInsetVerticalRight: string;
1762
+ railInsetVerticalLeft: string;
1729
1763
  railColor: string;
1730
1764
  }, any>> | undefined;
1731
1765
  Empty?: import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Empty", {
1766
+ fontSizeTiny: string;
1732
1767
  fontSizeSmall: string;
1733
1768
  fontSizeMedium: string;
1734
1769
  fontSizeLarge: string;
@@ -1736,6 +1771,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1736
1771
  textColor: string;
1737
1772
  iconColor: string;
1738
1773
  extraTextColor: string;
1774
+ iconSizeTiny: string;
1739
1775
  iconSizeSmall: string;
1740
1776
  iconSizeMedium: string;
1741
1777
  iconSizeLarge: string;
@@ -1,5 +1,5 @@
1
1
  import { File, MetadataTemplateFieldTypeEnum } from '../../types/openapi';
2
- export type EmbedLocation = 'ui_app' | 'canvas' | 'dsr' | 'admin_instance';
2
+ export type EmbedLocation = 'ui_app' | 'canvas' | 'dsr' | 'admin_instance' | 'overlay_app';
3
3
  export type ModuleSettingsOption = {
4
4
  label: string;
5
5
  value: string;
@@ -1,4 +1,4 @@
1
- export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_canvas_node_debugging' | 'enable_canvas_tokens' | 'enable_experimental_canvas_builder_dnd' | 'enable_knock_notifications' | 'enable_metadata_in_file_uploads_with_default_values' | 'enable_pipe_character_multi_search' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_content_selector_list_view' | 'show_popularity_icons' | 'show_system_filters' | 'allow_canvases_tables_columns_settings' | 'prefer_online_handlers' | 'use_short_url_for_shared_link' | 'enable_suggested_tags' | 'enable_folder_details_edit' | 'enable_file_revisions' | 'show_clear_all_annotations_button' | 'allow_saving_annotations_in_personal_layer' | 'enable_embedded_video' | 'enable_embedded_video_autoplay' | 'enable_app_developer_role' | 'enable_instance_editor_role' | 'include_files_content_in_print';
1
+ export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_bulk_update_file_attributes' | 'enable_canvas_node_debugging' | 'enable_canvas_tokens' | 'enable_experimental_canvas_builder_dnd' | 'enable_knock_notifications' | 'enable_metadata_in_file_uploads_with_default_values' | 'enable_pipe_character_multi_search' | 'enable_section_selector_drag_n_drop' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_content_selector_list_view' | 'show_popularity_icons' | 'show_system_filters' | 'allow_canvases_tables_columns_settings' | 'prefer_online_handlers' | 'use_short_url_for_shared_link' | 'enable_suggested_tags' | 'enable_folder_details_edit' | 'enable_file_revisions' | 'show_clear_all_annotations_button' | 'allow_saving_annotations_in_personal_layer' | 'enable_embedded_video' | 'enable_embedded_video_autoplay' | 'enable_app_developer_role' | 'enable_instance_editor_role' | 'include_files_content_in_print' | 'enable_multimedia_component_ai_images' | 'enable_smart_folders' | 'enable_revamped_component_toolbar';
2
2
  export type LaunchDarklyNumberFlagKey = 'canvas_section_selector_page_size' | 'canvas_section_selector_selected_items_with_thumbnail_size';
3
3
  type LaunchDarklyObjectFlags = {
4
4
  canvas_table_pagination: CanvasTablePagination;
@@ -1,5 +1,16 @@
1
1
  import { TranslationOverrides } from './translations';
2
2
  import { MetadataHighlightProperty } from './metadataHighlightProperty';
3
+ type SmartFolderRuleAttribute = {
4
+ name: string;
5
+ type: 'string' | 'boolean' | 'number' | 'date' | 'array';
6
+ accessor: string;
7
+ display_name: string;
8
+ };
9
+ type SmartFolderRuleAttributes = {
10
+ files?: SmartFolderRuleAttribute[];
11
+ canvas?: SmartFolderRuleAttribute[];
12
+ canvas_templates?: SmartFolderRuleAttribute[];
13
+ };
3
14
  export type OrganizationSettings = {
4
15
  impact_show_only_saved_canvases_in_canvas_manager?: boolean;
5
16
  translation_overrides?: TranslationOverrides;
@@ -13,5 +24,7 @@ export type OrganizationSettings = {
13
24
  section_thumbnail_url_transformer?: string;
14
25
  pipe_multi_search_separator?: string;
15
26
  enable_crm_privacy_mode?: boolean;
27
+ smart_folder_rule_attributes?: SmartFolderRuleAttributes;
16
28
  ios?: OrganizationSettings;
17
29
  };
30
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const indirectEval: typeof eval;
2
+ export declare function evaluateAccessor(item: any, accessor: string): string | number | boolean | null;
@@ -1,6 +1,4 @@
1
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
1
  import { PaginatedData } from '../types/paginatedData';
3
- import { PitcherInfo } from '../types/app';
4
2
  export declare const fetchAll: <T>(reqFunction: (reqParams: any) => Promise<PaginatedData<T>>, reqParams?: any) => Promise<T[]>;
5
3
  export declare function fetchFirstChunkAndRemainingAsync<T>(reqFunction: (reqParams: any) => Promise<PaginatedData<T>>, reqParams?: any): Promise<[T[], Promise<T[]>]>;
6
4
  export declare function urlSafeFetchInChunks<T>(ids: (string | number)[], fetchFunction: (chunk: (string | number)[]) => Promise<{
@@ -8,7 +6,6 @@ export declare function urlSafeFetchInChunks<T>(ids: (string | number)[], fetchF
8
6
  } | T[]>, options?: {
9
7
  chunkSize: number;
10
8
  }): Promise<T[]>;
11
- export declare function createAxiosInstance(config: AxiosRequestConfig | undefined, pitcherInfo: PitcherInfo): AxiosInstance;
12
9
  export declare function derivePatchRequestFields<T extends object>(current: T, updated: Partial<T>, fieldsString?: string): {
13
10
  updatedFields: string[];
14
11
  payload: Partial<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/js-api",
3
- "version": "1.22.0-rc.0",
3
+ "version": "1.22.0-rc.2",
4
4
  "type": "module",
5
5
  "main": "js-api.umd.min.js",
6
6
  "module": "js-api.esm.js",