@pitcher/js-api 1.22.0-alpha.4 → 1.22.0-alpha.6

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 (44) hide show
  1. package/js-api.esm.js +361 -102
  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/api/canvases/canvases.queries.d.ts +1 -1
  6. package/lib/apps/browser/stores/api.d.ts +53 -53
  7. package/lib/apps/browser/stores/app.d.ts +18 -15
  8. package/lib/apps/browser/stores/upload.d.ts +29 -29
  9. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +607 -621
  10. package/lib/apps/canvas-builder/composables/useCanvasDnd.d.ts +12 -0
  11. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +93 -95
  12. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -0
  13. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +8 -7
  14. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +11 -11
  15. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +5 -4
  16. package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +2 -2
  17. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +9 -9
  18. package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +13 -10
  19. package/lib/apps/canvas-builder/types/canvas.d.ts +4 -3
  20. package/lib/apps/canvas-builder/util/tree.d.ts +1 -0
  21. package/lib/apps/content-selector/stores/app.d.ts +16 -15
  22. package/lib/components/CFileViewer/CFileViewer.use.d.ts +1 -1
  23. package/lib/composables/bulkActions.use.d.ts +4 -4
  24. package/lib/composables/recentFiles.use.d.ts +1 -1
  25. package/lib/composables/useDetailsView.d.ts +1 -1
  26. package/lib/composables/useLocation.d.ts +1 -1
  27. package/lib/composables/useLocationAPI.d.ts +2 -2
  28. package/lib/composables/useLocationManipulation.d.ts +1 -1
  29. package/lib/composables/useWindowEvents.d.ts +1 -1
  30. package/lib/custom-naive-locales/el.d.ts +1 -1
  31. package/lib/sdk/api/HighLevelApi.d.ts +31 -31
  32. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +6 -1
  33. package/lib/sdk/api/modules/ui/index.d.ts +7 -2
  34. package/lib/sdk/api/modules/ui/post-call.ui.d.ts +4 -1
  35. package/lib/sdk/api/modules/ui/types.ui.d.ts +56 -2
  36. package/lib/sdk/api/onlineRestApiHandlers.d.ts +4 -0
  37. package/lib/sdk/interfaces.d.ts +2 -0
  38. package/lib/sdk/main.d.ts +134 -95
  39. package/lib/sdk/utils/httpFetch.d.ts +15 -0
  40. package/lib/theme/light.d.ts +5 -315
  41. package/lib/types/instanceSettings.d.ts +1 -0
  42. package/lib/types/launchDarkly.types.d.ts +1 -1
  43. package/lib/util/network.d.ts +1 -1
  44. package/package.json +1 -1
@@ -1,3 +1,5 @@
1
+ import { ThemeCommonVars } from 'naive-ui';
2
+
1
3
  export declare const lightPalette: import('vue').Ref<{
2
4
  base: string;
3
5
  primary: string;
@@ -772,111 +774,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
772
774
  }>> | undefined;
773
775
  } | undefined;
774
776
  } & {
775
- common?: Partial<{
776
- baseColor: string;
777
- primaryColor: string;
778
- primaryColorHover: string;
779
- primaryColorPressed: string;
780
- primaryColorSuppl: string;
781
- infoColor: string;
782
- infoColorHover: string;
783
- infoColorPressed: string;
784
- infoColorSuppl: string;
785
- successColor: string;
786
- successColorHover: string;
787
- successColorPressed: string;
788
- successColorSuppl: string;
789
- warningColor: string;
790
- warningColorHover: string;
791
- warningColorPressed: string;
792
- warningColorSuppl: string;
793
- errorColor: string;
794
- errorColorHover: string;
795
- errorColorPressed: string;
796
- errorColorSuppl: string;
797
- textColorBase: string;
798
- textColor1: string;
799
- textColor2: string;
800
- textColor3: string;
801
- textColorDisabled: string;
802
- placeholderColor: string;
803
- placeholderColorDisabled: string;
804
- iconColor: string;
805
- iconColorHover: string;
806
- iconColorPressed: string;
807
- iconColorDisabled: string;
808
- opacity1: string;
809
- opacity2: string;
810
- opacity3: string;
811
- opacity4: string;
812
- opacity5: string;
813
- dividerColor: string;
814
- borderColor: string;
815
- closeIconColor: string;
816
- closeIconColorHover: string;
817
- closeIconColorPressed: string;
818
- closeColorHover: string;
819
- closeColorPressed: string;
820
- clearColor: string;
821
- clearColorHover: string;
822
- clearColorPressed: string;
823
- scrollbarColor: string;
824
- scrollbarColorHover: string;
825
- scrollbarWidth: string;
826
- scrollbarHeight: string;
827
- scrollbarBorderRadius: string;
828
- progressRailColor: string;
829
- railColor: string;
830
- popoverColor: string;
831
- tableColor: string;
832
- cardColor: string;
833
- modalColor: string;
834
- bodyColor: string;
835
- tagColor: string;
836
- avatarColor: string;
837
- invertedColor: string;
838
- inputColor: string;
839
- codeColor: string;
840
- tabColor: string;
841
- actionColor: string;
842
- tableHeaderColor: string;
843
- hoverColor: string;
844
- tableColorHover: string;
845
- tableColorStriped: string;
846
- pressedColor: string;
847
- opacityDisabled: string;
848
- inputColorDisabled: string;
849
- buttonColor2: string;
850
- buttonColor2Hover: string;
851
- buttonColor2Pressed: string;
852
- boxShadow1: string;
853
- boxShadow2: string;
854
- boxShadow3: string;
855
- fontFamily: string;
856
- fontFamilyMono: string;
857
- fontWeight: string;
858
- fontWeightStrong: string;
859
- cubicBezierEaseInOut: string;
860
- cubicBezierEaseOut: string;
861
- cubicBezierEaseIn: string;
862
- borderRadius: string;
863
- borderRadiusSmall: string;
864
- fontSize: string;
865
- fontSizeMini: string;
866
- fontSizeTiny: string;
867
- fontSizeSmall: string;
868
- fontSizeMedium: string;
869
- fontSizeLarge: string;
870
- fontSizeHuge: string;
871
- lineHeight: string;
872
- heightMini: string;
873
- heightTiny: string;
874
- heightSmall: string;
875
- heightMedium: string;
876
- heightLarge: string;
877
- heightHuge: string;
878
- name: "common";
879
- }> | undefined;
777
+ common?: Partial<ThemeCommonVars>;
880
778
  }>;
881
779
  AutoComplete: Partial<{
882
780
  menuBoxShadow: string;
@@ -1006,111 +904,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
1006
904
  }, any>> | undefined;
1007
905
  } | undefined;
1008
906
  } & {
1009
- common?: Partial<{
1010
- baseColor: string;
1011
- primaryColor: string;
1012
- primaryColorHover: string;
1013
- primaryColorPressed: string;
1014
- primaryColorSuppl: string;
1015
- infoColor: string;
1016
- infoColorHover: string;
1017
- infoColorPressed: string;
1018
- infoColorSuppl: string;
1019
- successColor: string;
1020
- successColorHover: string;
1021
- successColorPressed: string;
1022
- successColorSuppl: string;
1023
- warningColor: string;
1024
- warningColorHover: string;
1025
- warningColorPressed: string;
1026
- warningColorSuppl: string;
1027
- errorColor: string;
1028
- errorColorHover: string;
1029
- errorColorPressed: string;
1030
- errorColorSuppl: string;
1031
- textColorBase: string;
1032
- textColor1: string;
1033
- textColor2: string;
1034
- textColor3: string;
1035
- textColorDisabled: string;
1036
- placeholderColor: string;
1037
- placeholderColorDisabled: string;
1038
- iconColor: string;
1039
- iconColorHover: string;
1040
- iconColorPressed: string;
1041
- iconColorDisabled: string;
1042
- opacity1: string;
1043
- opacity2: string;
1044
- opacity3: string;
1045
- opacity4: string;
1046
- opacity5: string;
1047
- dividerColor: string;
1048
- borderColor: string;
1049
- closeIconColor: string;
1050
- closeIconColorHover: string;
1051
- closeIconColorPressed: string;
1052
- closeColorHover: string;
1053
- closeColorPressed: string;
1054
- clearColor: string;
1055
- clearColorHover: string;
1056
- clearColorPressed: string;
1057
- scrollbarColor: string;
1058
- scrollbarColorHover: string;
1059
- scrollbarWidth: string;
1060
- scrollbarHeight: string;
1061
- scrollbarBorderRadius: string;
1062
- progressRailColor: string;
1063
- railColor: string;
1064
- popoverColor: string;
1065
- tableColor: string;
1066
- cardColor: string;
1067
- modalColor: string;
1068
- bodyColor: string;
1069
- tagColor: string;
1070
- avatarColor: string;
1071
- invertedColor: string;
1072
- inputColor: string;
1073
- codeColor: string;
1074
- tabColor: string;
1075
- actionColor: string;
1076
- tableHeaderColor: string;
1077
- hoverColor: string;
1078
- tableColorHover: string;
1079
- tableColorStriped: string;
1080
- pressedColor: string;
1081
- opacityDisabled: string;
1082
- inputColorDisabled: string;
1083
- buttonColor2: string;
1084
- buttonColor2Hover: string;
1085
- buttonColor2Pressed: string;
1086
- boxShadow1: string;
1087
- boxShadow2: string;
1088
- boxShadow3: string;
1089
- fontFamily: string;
1090
- fontFamilyMono: string;
1091
- fontWeight: string;
1092
- fontWeightStrong: string;
1093
- cubicBezierEaseInOut: string;
1094
- cubicBezierEaseOut: string;
1095
- cubicBezierEaseIn: string;
1096
- borderRadius: string;
1097
- borderRadiusSmall: string;
1098
- fontSize: string;
1099
- fontSizeMini: string;
1100
- fontSizeTiny: string;
1101
- fontSizeSmall: string;
1102
- fontSizeMedium: string;
1103
- fontSizeLarge: string;
1104
- fontSizeHuge: string;
1105
- lineHeight: string;
1106
- heightMini: string;
1107
- heightTiny: string;
1108
- heightSmall: string;
1109
- heightMedium: string;
1110
- heightLarge: string;
1111
- heightHuge: string;
1112
- name: "common";
1113
- }> | undefined;
907
+ common?: Partial<ThemeCommonVars>;
1114
908
  }>;
1115
909
  InternalSelection: Partial<{
1116
910
  fontSizeTiny: string;
@@ -2017,111 +1811,7 @@ export declare const lightThemeOverrides: import('vue').ComputedRef<{
2017
1811
  }>> | undefined;
2018
1812
  } | undefined;
2019
1813
  } & {
2020
- common?: Partial<{
2021
- baseColor: string;
2022
- primaryColor: string;
2023
- primaryColorHover: string;
2024
- primaryColorPressed: string;
2025
- primaryColorSuppl: string;
2026
- infoColor: string;
2027
- infoColorHover: string;
2028
- infoColorPressed: string;
2029
- infoColorSuppl: string;
2030
- successColor: string;
2031
- successColorHover: string;
2032
- successColorPressed: string;
2033
- successColorSuppl: string;
2034
- warningColor: string;
2035
- warningColorHover: string;
2036
- warningColorPressed: string;
2037
- warningColorSuppl: string;
2038
- errorColor: string;
2039
- errorColorHover: string;
2040
- errorColorPressed: string;
2041
- errorColorSuppl: string;
2042
- textColorBase: string;
2043
- textColor1: string;
2044
- textColor2: string;
2045
- textColor3: string;
2046
- textColorDisabled: string;
2047
- placeholderColor: string;
2048
- placeholderColorDisabled: string;
2049
- iconColor: string;
2050
- iconColorHover: string;
2051
- iconColorPressed: string;
2052
- iconColorDisabled: string;
2053
- opacity1: string;
2054
- opacity2: string;
2055
- opacity3: string;
2056
- opacity4: string;
2057
- opacity5: string;
2058
- dividerColor: string;
2059
- borderColor: string;
2060
- closeIconColor: string;
2061
- closeIconColorHover: string;
2062
- closeIconColorPressed: string;
2063
- closeColorHover: string;
2064
- closeColorPressed: string;
2065
- clearColor: string;
2066
- clearColorHover: string;
2067
- clearColorPressed: string;
2068
- scrollbarColor: string;
2069
- scrollbarColorHover: string;
2070
- scrollbarWidth: string;
2071
- scrollbarHeight: string;
2072
- scrollbarBorderRadius: string;
2073
- progressRailColor: string;
2074
- railColor: string;
2075
- popoverColor: string;
2076
- tableColor: string;
2077
- cardColor: string;
2078
- modalColor: string;
2079
- bodyColor: string;
2080
- tagColor: string;
2081
- avatarColor: string;
2082
- invertedColor: string;
2083
- inputColor: string;
2084
- codeColor: string;
2085
- tabColor: string;
2086
- actionColor: string;
2087
- tableHeaderColor: string;
2088
- hoverColor: string;
2089
- tableColorHover: string;
2090
- tableColorStriped: string;
2091
- pressedColor: string;
2092
- opacityDisabled: string;
2093
- inputColorDisabled: string;
2094
- buttonColor2: string;
2095
- buttonColor2Hover: string;
2096
- buttonColor2Pressed: string;
2097
- boxShadow1: string;
2098
- boxShadow2: string;
2099
- boxShadow3: string;
2100
- fontFamily: string;
2101
- fontFamilyMono: string;
2102
- fontWeight: string;
2103
- fontWeightStrong: string;
2104
- cubicBezierEaseInOut: string;
2105
- cubicBezierEaseOut: string;
2106
- cubicBezierEaseIn: string;
2107
- borderRadius: string;
2108
- borderRadiusSmall: string;
2109
- fontSize: string;
2110
- fontSizeMini: string;
2111
- fontSizeTiny: string;
2112
- fontSizeSmall: string;
2113
- fontSizeMedium: string;
2114
- fontSizeLarge: string;
2115
- fontSizeHuge: string;
2116
- lineHeight: string;
2117
- heightMini: string;
2118
- heightTiny: string;
2119
- heightSmall: string;
2120
- heightMedium: string;
2121
- heightLarge: string;
2122
- heightHuge: string;
2123
- name: "common";
2124
- }> | undefined;
1814
+ common?: Partial<ThemeCommonVars>;
2125
1815
  }>;
2126
1816
  Layout: Partial<{
2127
1817
  textColor: string;
@@ -16,5 +16,6 @@ export type InstanceSettings = {
16
16
  component_availability?: CanvasComponentAvailability & {
17
17
  apps?: Record<string, boolean>;
18
18
  };
19
+ autofill_metadata_mismatch_properties?: string[];
19
20
  };
20
21
  };
@@ -1,6 +1,6 @@
1
1
  import { TranslationOverrides } from './translations';
2
2
 
3
- export type LaunchDarklyBooleanFlagKey = 'reorder_component_in_drawer' | 'are_sections_system_controlled' | 'is_fe_sentry_enabled' | 'is_meeting_bar_hidden' | 'is_shared_link_creation_disabled' | 'is_rep_canvas_creation_disabled' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_rep_canvas_metadata_edit' | 'allow_ai_prompts_in_canvas_text' | 'allow_note_taking' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_history' | 'allow_canvas_duplication' | 'hide_asset_uploader' | 'show_asset_manager_for_multimedia' | 'show_system_filters' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'enable_analytics' | 'allow_embeddable_hiding' | 'copy_template_metadata_to_canvas' | 'copy_context_to_canvas' | 'launch_in_present_mode_on_creation' | 'launch_in_full_screen_on_present_mode' | 'display_section_list_name' | 'allow_rep_file_upload' | 'interpolate_rep_canvases_on_edit_mode' | 'allow_creating_canvas_with_no_template' | 'enable_canvas_node_debugging' | 'is_timeline_component_allowed' | 'disable_canvas_edit_for_reps' | 'is_meeting_bar_account_selection_disabled';
3
+ 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_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_experimental_canvas_builder_dnd' | '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_popularity_icons' | 'show_system_filters';
4
4
  type LaunchDarklyObjectFlags = {
5
5
  canvas_table_pagination: CanvasTablePagination;
6
6
  canvas_manager_table_columns: CanvasManagerTableColumns;
@@ -9,7 +9,7 @@ export declare function urlSafeFetchInChunks<T>(ids: (string | number)[], fetchF
9
9
  } | T[]>, options?: {
10
10
  chunkSize: number;
11
11
  }): Promise<T[]>;
12
- export declare function createAxiosInstance(config: AxiosRequestConfig<any> | undefined, pitcherInfo: PitcherInfo): AxiosInstance;
12
+ export declare function createAxiosInstance(config: AxiosRequestConfig | undefined, pitcherInfo: PitcherInfo): AxiosInstance;
13
13
  export declare function derivePatchRequestFields<T extends object>(current: T, updated: Partial<T>, fieldsString?: string): {
14
14
  updatedFields: string[];
15
15
  payload: Partial<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/js-api",
3
- "version": "1.22.0-alpha.4",
3
+ "version": "1.22.0-alpha.6",
4
4
  "type": "module",
5
5
  "main": "js-api.umd.min.js",
6
6
  "module": "js-api.esm.js",