@pitcher/js-api 1.26.0-beta.6 → 1.26.0-beta.7

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 (49) hide show
  1. package/impact-js-api.spec.json +3 -0
  2. package/js-api.esm.js +220 -1
  3. package/js-api.esm.js.map +1 -1
  4. package/js-api.umd.min.js +10 -10
  5. package/js-api.umd.min.js.map +1 -1
  6. package/lib/apps/browser/components/UploadFilesModal/UploadFilesModalProperties.vue.d.ts +5 -1
  7. package/lib/apps/browser/stores/api.d.ts +16 -1
  8. package/lib/apps/canvas-builder/App.vue.d.ts +14 -1
  9. package/lib/apps/canvas-builder/components/ui/ContentList/ContentList.raw.vue.d.ts +30 -0
  10. package/lib/apps/canvas-builder/components/ui/ContentList/ContentList.vue.d.ts +76 -0
  11. package/lib/apps/canvas-builder/components/ui/ContentList/ContentListItems.vue.d.ts +21 -0
  12. package/lib/apps/canvas-builder/components/ui/ContentList/content.store.d.ts +11 -0
  13. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +380 -202
  14. package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +26 -0
  15. package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +1 -1
  16. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +26 -0
  17. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +7 -9
  18. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
  19. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
  20. package/lib/apps/canvas-builder/composables/usePitcherEvents.d.ts +0 -6
  21. package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +3 -3
  22. package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +1 -1
  23. package/lib/apps/canvas-builder/composables/useTemporaryContext.d.ts +1 -1
  24. package/lib/apps/canvas-builder/types/canvas.d.ts +20 -2
  25. package/lib/apps/canvas-builder/util/canvas.util.d.ts +4 -4
  26. package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +8 -8
  27. package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +1 -0
  28. package/lib/components/CContactSelector/CContactSelector.vue.d.ts +2 -0
  29. package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +11 -0
  30. package/lib/components/CCreateCanvasModal/CCreateCanvasModalTemplatesSelectOption.vue.d.ts +3 -0
  31. package/lib/components/CFileAccessManagement/CFileAccessManagement.vue.d.ts +6 -0
  32. package/lib/main.lib.d.ts +2 -0
  33. package/lib/sdk/api/HighLevelApi.d.ts +4 -0
  34. package/lib/sdk/api/modules/files.d.ts +10 -0
  35. package/lib/sdk/api/modules/query.d.ts +14 -0
  36. package/lib/sdk/interfaces.d.ts +4 -1
  37. package/lib/sdk/main.d.ts +13 -0
  38. package/lib/sdk/peer-connectivity/index.d.ts +3 -0
  39. package/lib/sdk/peer-connectivity/peerConnectivity.constants.d.ts +12 -0
  40. package/lib/sdk/peer-connectivity/peerConnectivity.d.ts +3 -0
  41. package/lib/sdk/peer-connectivity/peerConnectivity.types.d.ts +35 -0
  42. package/lib/types/instanceSettings.types.d.ts +2 -0
  43. package/lib/types/launchDarkly.types.d.ts +1 -1
  44. package/lib/types/organizationMetadata.types.d.ts +3 -2
  45. package/lib/types/organizationSettings.types.d.ts +7 -0
  46. package/package.json +1 -1
  47. package/lib/apps/canvas-builder/components/ui/Text/Text.vue.d.ts +0 -111
  48. package/lib/components/CRichTextEditor/CRichTextEditor.vue.d.ts +0 -59
  49. /package/lib/apps/canvas-builder/components/{ui/SectionList/SectionSearch.vue.d.ts → container/Search/Search.vue.d.ts} +0 -0
@@ -1,10 +1,14 @@
1
1
  import { Form } from './UploadFilesModal.vue';
2
2
  type __VLS_Props = {
3
3
  modelValue: Form;
4
+ showConvertPptxToHtml?: boolean;
5
+ convertPptxToHtml?: boolean;
4
6
  };
5
7
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
8
  "update:modelValue": (form: Form) => any;
9
+ "update:convertPptxToHtml": (value: boolean) => any;
7
10
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
11
  "onUpdate:modelValue"?: ((form: Form) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ "onUpdate:convertPptxToHtml"?: ((value: boolean) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
14
  export default _default;
@@ -49,7 +49,7 @@ type FavoritesFetcher = (payload?: GetFavoritesParams) => Promise<PaginatedData<
49
49
  type FavoritesSetter = (favorites: Favorite[]) => void;
50
50
  type RecentFilesFetcher = () => Promise<RecentFile[]>;
51
51
  type SelectDeviceFile = () => Promise<DeviceFile>;
52
- type CompactFile = Pick<File, 'id' | 'name' | 'thumbnail_url' | 'tags' | 'created_by' | 'modified_at' | 'status' | 'content_type' | 'permissions'>;
52
+ type CompactFile = Pick<File, 'id' | 'name' | 'thumbnail_url' | 'tags' | 'created_by' | 'modified_at' | 'status' | 'content_type' | 'permissions' | 'owned_by'>;
53
53
  type ItemsMoverItem = {
54
54
  id: File['id'] | Folder['id'];
55
55
  type: 'file' | 'folder';
@@ -154,6 +154,11 @@ declare const _default: () => {
154
154
  } | undefined;
155
155
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
156
156
  readonly status: FileStatusEnum;
157
+ readonly owned_by: {
158
+ readonly id: number;
159
+ readonly name: string;
160
+ readonly email?: string | undefined;
161
+ };
157
162
  readonly created_by: {
158
163
  readonly id: number;
159
164
  readonly name: string;
@@ -452,6 +457,11 @@ declare const _default: () => {
452
457
  } | undefined;
453
458
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
454
459
  readonly status: FileStatusEnum;
460
+ readonly owned_by: {
461
+ readonly id: number;
462
+ readonly name: string;
463
+ readonly email?: string | undefined;
464
+ };
455
465
  readonly created_by: {
456
466
  readonly id: number;
457
467
  readonly name: string;
@@ -588,6 +598,11 @@ declare const _default: () => {
588
598
  } | undefined;
589
599
  readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
590
600
  readonly status: FileStatusEnum;
601
+ readonly owned_by: {
602
+ readonly id: number;
603
+ readonly name: string;
604
+ email?: string | undefined;
605
+ };
591
606
  readonly created_by: {
592
607
  readonly id: number;
593
608
  readonly name: string;
@@ -77,6 +77,7 @@ declare const _default: import('vue').DefineComponent<({
77
77
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
78
78
  isAnyTypeOfAdmin: boolean;
79
79
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
80
+ hideEdit?: boolean;
80
81
  } & import('./types/canvas').CRMBuilderProps & {
81
82
  isRedirectEvent?: never;
82
83
  mode: CanvasBuilderMode.ADMIN;
@@ -157,6 +158,7 @@ declare const _default: import('vue').DefineComponent<({
157
158
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
158
159
  isAnyTypeOfAdmin: boolean;
159
160
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
161
+ hideEdit?: boolean;
160
162
  } & {
161
163
  isCRM: false;
162
164
  onSfdcAccountSearch?: never;
@@ -240,6 +242,7 @@ declare const _default: import('vue').DefineComponent<({
240
242
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
241
243
  isAnyTypeOfAdmin: boolean;
242
244
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
245
+ hideEdit?: boolean;
243
246
  } & import('./types/canvas').CRMBuilderProps & {
244
247
  isRedirectEvent?: boolean;
245
248
  mode: CanvasBuilderMode.IMPACT;
@@ -324,6 +327,7 @@ declare const _default: import('vue').DefineComponent<({
324
327
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
325
328
  isAnyTypeOfAdmin: boolean;
326
329
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
330
+ hideEdit?: boolean;
327
331
  } & {
328
332
  isCRM: false;
329
333
  onSfdcAccountSearch?: never;
@@ -411,6 +415,7 @@ declare const _default: import('vue').DefineComponent<({
411
415
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
412
416
  isAnyTypeOfAdmin: boolean;
413
417
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
418
+ hideEdit?: boolean;
414
419
  } & import('./types/canvas').CRMBuilderProps & {
415
420
  isRedirectEvent?: boolean;
416
421
  mode: CanvasBuilderMode.HOME;
@@ -495,6 +500,7 @@ declare const _default: import('vue').DefineComponent<({
495
500
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
496
501
  isAnyTypeOfAdmin: boolean;
497
502
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
503
+ hideEdit?: boolean;
498
504
  } & {
499
505
  isCRM: false;
500
506
  onSfdcAccountSearch?: never;
@@ -523,7 +529,8 @@ declare const _default: import('vue').DefineComponent<({
523
529
  }) => void;
524
530
  };
525
531
  switchToPresentation: () => Promise<void>;
526
- setTemporaryContextKeys: (source: string, context: CanvasRetrieve["context"]) => void;
532
+ setTemporaryContextKeys: (source: "onUpdateFromEmbeddable" | "fetchedAccountData", context: CanvasRetrieve["context"]) => void;
533
+ setInMemoryAccountData: (accountData?: Record<string, any>) => void;
527
534
  getSafeContext: (context?: any, _temporaryContextKeys?: string[]) => any;
528
535
  goToPage: ({ componentId, sectionId, scrollTo, itemIndex, sectionIndex, skipSetPreviousLocation, }: {
529
536
  componentId: ComponentNode["id"];
@@ -629,6 +636,7 @@ declare const _default: import('vue').DefineComponent<({
629
636
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
630
637
  isAnyTypeOfAdmin: boolean;
631
638
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
639
+ hideEdit?: boolean;
632
640
  } & import('./types/canvas').CRMBuilderProps & {
633
641
  isRedirectEvent?: never;
634
642
  mode: CanvasBuilderMode.ADMIN;
@@ -709,6 +717,7 @@ declare const _default: import('vue').DefineComponent<({
709
717
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
710
718
  isAnyTypeOfAdmin: boolean;
711
719
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
720
+ hideEdit?: boolean;
712
721
  } & {
713
722
  isCRM: false;
714
723
  onSfdcAccountSearch?: never;
@@ -792,6 +801,7 @@ declare const _default: import('vue').DefineComponent<({
792
801
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
793
802
  isAnyTypeOfAdmin: boolean;
794
803
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
804
+ hideEdit?: boolean;
795
805
  } & import('./types/canvas').CRMBuilderProps & {
796
806
  isRedirectEvent?: boolean;
797
807
  mode: CanvasBuilderMode.IMPACT;
@@ -876,6 +886,7 @@ declare const _default: import('vue').DefineComponent<({
876
886
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
877
887
  isAnyTypeOfAdmin: boolean;
878
888
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
889
+ hideEdit?: boolean;
879
890
  } & {
880
891
  isCRM: false;
881
892
  onSfdcAccountSearch?: never;
@@ -963,6 +974,7 @@ declare const _default: import('vue').DefineComponent<({
963
974
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
964
975
  isAnyTypeOfAdmin: boolean;
965
976
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
977
+ hideEdit?: boolean;
966
978
  } & import('./types/canvas').CRMBuilderProps & {
967
979
  isRedirectEvent?: boolean;
968
980
  mode: CanvasBuilderMode.HOME;
@@ -1047,6 +1059,7 @@ declare const _default: import('vue').DefineComponent<({
1047
1059
  theme: import('../../main.lib').CanvasThemeRetrieve | null;
1048
1060
  isAnyTypeOfAdmin: boolean;
1049
1061
  canvasMetadata: import('../../main.lib').CanvasMetadataRetrieve | null;
1062
+ hideEdit?: boolean;
1050
1063
  } & {
1051
1064
  isCRM: false;
1052
1065
  onSfdcAccountSearch?: never;
@@ -0,0 +1,30 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { CanvasRetrieve } from '../../../../../../types/openapi';
3
+ import { ComponentNode, ContentListProps } from '../../../types/canvas';
4
+ type __VLS_Props = {
5
+ id: ComponentNode['id'];
6
+ data: ContentListProps;
7
+ sectionListName?: string;
8
+ previewMode?: boolean;
9
+ style?: CSSProperties;
10
+ shouldEditWithApp?: boolean;
11
+ hasSectionSelectorApp?: boolean;
12
+ printModeIdx?: number;
13
+ };
14
+ declare function onSectionSelectorToggle(): void;
15
+ declare function onSectionsSelect(items: {
16
+ id: CanvasRetrieve['id'];
17
+ }[], isForcedRecommendations?: boolean): Promise<void>;
18
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
19
+ toggleSectionSelector: typeof onSectionSelectorToggle;
20
+ onSectionsSelect: typeof onSectionsSelect;
21
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ justAdded: (id: string) => any;
23
+ browseWithAppClicked: () => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onJustAdded?: ((id: string) => any) | undefined;
26
+ onBrowseWithAppClicked?: (() => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
+ sectionListRef: HTMLDivElement;
29
+ }, any>;
30
+ export default _default;
@@ -0,0 +1,76 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { ComponentNode, ComponentNodePrint, ComponentNodeLinkable, ContentListProps } from '../../../types/canvas';
3
+ import { FileContentTypeEnum } from '../../../../../../types/openapi';
4
+ type __VLS_Props = {
5
+ id: ComponentNode['id'];
6
+ data: ContentListProps;
7
+ tracking_id: string;
8
+ visible?: ComponentNode['visible'];
9
+ allow_admins_to_overwrite?: boolean;
10
+ style?: CSSProperties;
11
+ printModeIdx?: number;
12
+ class?: string | string[] | object;
13
+ print?: ComponentNodePrint;
14
+ autofill?: 'off' | 'ai' | 'matching_metadata' | 'matching_tags' | 'matching_metadata_or_tags';
15
+ linkable?: ComponentNodeLinkable;
16
+ autofill_content_types?: FileContentTypeEnum[] | null;
17
+ when_used_in_section?: {
18
+ is_editable: boolean;
19
+ is_removable: boolean;
20
+ };
21
+ };
22
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ style: (s: CSSProperties) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onStyle?: ((s: CSSProperties) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
+ contentListRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
28
+ id: ComponentNode["id"];
29
+ data: ContentListProps;
30
+ sectionListName?: string;
31
+ previewMode?: boolean;
32
+ style?: CSSProperties;
33
+ shouldEditWithApp?: boolean;
34
+ hasSectionSelectorApp?: boolean;
35
+ printModeIdx?: number;
36
+ }> & Readonly<{
37
+ onJustAdded?: ((id: string) => any) | undefined;
38
+ onBrowseWithAppClicked?: (() => any) | undefined;
39
+ }>, {
40
+ toggleSectionSelector: () => void;
41
+ onSectionsSelect: (items: {
42
+ id: import('../../../../../../types/openapi').CanvasRetrieve["id"];
43
+ }[], isForcedRecommendations?: boolean) => Promise<void>;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ justAdded: (id: string) => any;
46
+ browseWithAppClicked: () => any;
47
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
48
+ sectionListRef: HTMLDivElement;
49
+ }, any, import('vue').ComponentProvideOptions, {
50
+ P: {};
51
+ B: {};
52
+ D: {};
53
+ C: {};
54
+ M: {};
55
+ Defaults: {};
56
+ }, Readonly<{
57
+ id: ComponentNode["id"];
58
+ data: ContentListProps;
59
+ sectionListName?: string;
60
+ previewMode?: boolean;
61
+ style?: CSSProperties;
62
+ shouldEditWithApp?: boolean;
63
+ hasSectionSelectorApp?: boolean;
64
+ printModeIdx?: number;
65
+ }> & Readonly<{
66
+ onJustAdded?: ((id: string) => any) | undefined;
67
+ onBrowseWithAppClicked?: (() => any) | undefined;
68
+ }>, {
69
+ toggleSectionSelector: () => void;
70
+ onSectionsSelect: (items: {
71
+ id: import('../../../../../../types/openapi').CanvasRetrieve["id"];
72
+ }[], isForcedRecommendations?: boolean) => Promise<void>;
73
+ }, {}, {}, {}, {}> | null;
74
+ iframeRef: HTMLIFrameElement;
75
+ }, any>;
76
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { CanvasSection, FileRetrieve } from '../../../../../../types/openapi';
2
+ import { ContentListSection } from '../../../types/canvas.ts';
3
+ type Item = {
4
+ index: number;
5
+ file?: FileRetrieve;
6
+ section?: CanvasSection;
7
+ } & ContentListSection;
8
+ type __VLS_Props = {
9
+ name?: string;
10
+ style?: Record<string, any>;
11
+ items: Array<Item>;
12
+ hasSectionSelectorApp?: boolean;
13
+ };
14
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "open-section": (section: CanvasSection, index: number) => any;
16
+ "select-sections": () => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onOpen-section"?: ((section: CanvasSection, index: number) => any) | undefined;
19
+ "onSelect-sections"?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { Ref } from 'vue';
2
+ import { FileRetrieve } from '../../../../../../types/openapi';
3
+ import { ContentListSection } from '../../../types/canvas';
4
+ declare const _default: () => {
5
+ files: {
6
+ loading: Record<string, true>;
7
+ loaded: Record<string, FileRetrieve>;
8
+ };
9
+ watchMissingFiles: (rawItems: Ref<ContentListSection[]>) => import('vue').WatchHandle;
10
+ };
11
+ export default _default;