@pitcher/canvas-ui 2026.1.15-101627-beta → 2026.1.15-103854-beta

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.
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties } from 'vue';
2
2
  import { ComponentNode, ComponentNodePrint, ComponentNodeLinkable, ContentListProps } from '../../../types/canvas';
3
- import { FileContentTypeEnum } from '../../../../../../types/openapi';
3
+ import { FileContentTypeEnum, CanvasRetrieve } from '../../../../../../types/openapi';
4
4
  type __VLS_Props = {
5
5
  id: ComponentNode['id'];
6
6
  data: ContentListProps;
@@ -14,16 +14,16 @@ type __VLS_Props = {
14
14
  autofill?: 'off' | 'ai' | 'matching_metadata' | 'matching_tags' | 'matching_metadata_or_tags';
15
15
  linkable?: ComponentNodeLinkable;
16
16
  autofill_content_types?: FileContentTypeEnum[] | null;
17
- when_used_in_section?: {
18
- is_editable: boolean;
19
- is_removable: boolean;
20
- };
17
+ when_used_in_section?: ComponentNode['when_used_in_section'];
18
+ usedInSectionId?: CanvasRetrieve['id'];
21
19
  };
22
20
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
21
  style: (s: CSSProperties) => any;
24
22
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
23
  onStyle?: ((s: CSSProperties) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ }>, {
25
+ usedInSectionId: CanvasRetrieve["id"];
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
27
  contentListRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
28
28
  id: ComponentNode["id"];
29
29
  data: ContentListProps;
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
39
39
  }>, {
40
40
  toggleSectionSelector: () => void;
41
41
  onSectionsSelect: (items: {
42
- id: import('../../../../../../types/openapi').CanvasRetrieve["id"];
42
+ id: CanvasRetrieve["id"];
43
43
  }[], isForcedRecommendations?: boolean) => Promise<void>;
44
44
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
45
  justAdded: (id: string) => any;
@@ -68,7 +68,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
68
68
  }>, {
69
69
  toggleSectionSelector: () => void;
70
70
  onSectionsSelect: (items: {
71
- id: import('../../../../../../types/openapi').CanvasRetrieve["id"];
71
+ id: CanvasRetrieve["id"];
72
72
  }[], isForcedRecommendations?: boolean) => Promise<void>;
73
73
  }, {}, {}, {}, {}> | null;
74
74
  iframeRef: HTMLIFrameElement;
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties } from 'vue';
2
2
  import { SectionListProps, ComponentNode } from '../../../types/canvas';
3
+ import { CanvasRetrieve } from '../../../../../../types/openapi';
3
4
  type __VLS_Props = {
4
5
  id: ComponentNode['id'];
5
6
  data: SectionListProps;
@@ -8,12 +9,16 @@ type __VLS_Props = {
8
9
  allow_admins_to_overwrite?: boolean;
9
10
  style?: CSSProperties;
10
11
  printModeIdx?: number;
12
+ when_used_in_section?: ComponentNode['when_used_in_section'];
13
+ usedInSectionId?: CanvasRetrieve['id'];
11
14
  };
12
15
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
16
  style: (s: CSSProperties) => any;
14
17
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
18
  onStyle?: ((s: CSSProperties) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
19
+ }>, {
20
+ usedInSectionId: CanvasRetrieve["id"];
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
22
  sectionListRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
18
23
  id: ComponentNode["id"];
19
24
  data: SectionListProps;
@@ -29,7 +34,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
29
34
  }>, {
30
35
  toggleSectionSelector: () => void;
31
36
  onSectionsSelect: (items: {
32
- id: import('../../../../../main.lib').CanvasRetrieve["id"];
37
+ id: CanvasRetrieve["id"];
33
38
  }[], isForcedRecommendations?: boolean) => Promise<void>;
34
39
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
40
  justAdded: (id: string) => any;
@@ -58,7 +63,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
58
63
  }>, {
59
64
  toggleSectionSelector: () => void;
60
65
  onSectionsSelect: (items: {
61
- id: import('../../../../../main.lib').CanvasRetrieve["id"];
66
+ id: CanvasRetrieve["id"];
62
67
  }[], isForcedRecommendations?: boolean) => Promise<void>;
63
68
  }, {}, {}, {}, {}> | null;
64
69
  iframeRef: HTMLIFrameElement;
@@ -4865,6 +4865,7 @@ export default function useCanvas(): {
4865
4865
  enable_recents?: boolean | undefined;
4866
4866
  enable_favorites?: boolean | undefined;
4867
4867
  enable_sync_file_filtering?: boolean | undefined;
4868
+ enable_sfdc_sync?: boolean | undefined;
4868
4869
  time_format?: string | undefined;
4869
4870
  date_format?: string | undefined;
4870
4871
  is_file_expiration_mandatory?: boolean | undefined;
@@ -4907,6 +4908,7 @@ export default function useCanvas(): {
4907
4908
  enable_multipeer_connectivity?: boolean;
4908
4909
  enable_syncbox?: boolean;
4909
4910
  enable_sync_file_filtering?: boolean;
4911
+ enable_sfdc_sync?: boolean;
4910
4912
  time_format?: string;
4911
4913
  date_format?: string;
4912
4914
  is_file_expiration_mandatory?: boolean;
@@ -5195,6 +5197,7 @@ export default function useCanvas(): {
5195
5197
  enable_recents?: boolean | undefined;
5196
5198
  enable_favorites?: boolean | undefined;
5197
5199
  enable_sync_file_filtering?: boolean | undefined;
5200
+ enable_sfdc_sync?: boolean | undefined;
5198
5201
  time_format?: string | undefined;
5199
5202
  date_format?: string | undefined;
5200
5203
  is_file_expiration_mandatory?: boolean | undefined;
@@ -5517,6 +5520,7 @@ export default function useCanvas(): {
5517
5520
  readonly enable_recents?: boolean | undefined;
5518
5521
  readonly enable_favorites?: boolean | undefined;
5519
5522
  readonly enable_sync_file_filtering?: boolean | undefined;
5523
+ readonly enable_sfdc_sync?: boolean | undefined;
5520
5524
  readonly time_format?: string | undefined;
5521
5525
  readonly date_format?: string | undefined;
5522
5526
  readonly is_file_expiration_mandatory?: boolean | undefined;
@@ -5838,6 +5842,7 @@ export default function useCanvas(): {
5838
5842
  readonly enable_recents?: boolean | undefined;
5839
5843
  readonly enable_favorites?: boolean | undefined;
5840
5844
  readonly enable_sync_file_filtering?: boolean | undefined;
5845
+ readonly enable_sfdc_sync?: boolean | undefined;
5841
5846
  readonly time_format?: string | undefined;
5842
5847
  readonly date_format?: string | undefined;
5843
5848
  readonly is_file_expiration_mandatory?: boolean | undefined;
@@ -4,6 +4,10 @@ export declare const defaultWhenUsedInSection: {
4
4
  is_editable: boolean;
5
5
  is_removable: boolean;
6
6
  };
7
+ export declare const defaultWhenUsedInTemplate: {
8
+ is_editable: boolean;
9
+ is_removable: boolean;
10
+ };
7
11
  export declare const SERVER_ONLY_PROPS: readonly ["content_url", "thumbnail_url", "content_thumbnails", "pspdfkit_token", "pspdfkit_server_url", "pspdfkit_auth_payload", "external_url"];
8
12
  export declare const aspectRatios: readonly ["unlocked", "contain", "16:9", "16:10", "4:3", "1:1"];
9
13
  export declare const aspectRatioClasses: {
@@ -4,7 +4,7 @@ import { PitcherEnv } from '../sdk/interfaces';
4
4
  * Composable for SmartStore availability checks
5
5
  *
6
6
  * SmartStore is Salesforce Mobile SDK's local database for offline data access on iOS.
7
- * It requires both iOS mode and the sfdc_offline_enabled LaunchDarkly flag to be enabled.
7
+ * It requires both iOS mode and the enable_sfdc_sync instance setting to be enabled.
8
8
  *
9
9
  * @param env - Optional reactive environment object from app store (avoids redundant API calls)
10
10
  *
@@ -4,16 +4,16 @@ export declare function crmQuery(payload: CRMQueryPayload): Promise<any>;
4
4
  /**
5
5
  * Executes a CRM query with automatic iOS/SmartStore adaptation.
6
6
  *
7
- * On iOS devices with the 'sfdc_offline_enabled' LaunchDarkly flag enabled,
7
+ * On iOS devices with the 'enable_sfdc_sync' instance setting enabled,
8
8
  * this function automatically converts SOQL queries to SmartStore Smart SQL format
9
9
  * and uses the local SmartStore for offline data access.
10
- * On other platforms or when the flag is disabled, it uses the standard CRM query API.
10
+ * On other platforms or when the setting is disabled, it uses the standard CRM query API.
11
11
  *
12
12
  * @param {CRMQueryPayload} payload - The query payload containing the SOQL query string.
13
13
  * @returns {Promise<any>} - Promise resolving with query results.
14
14
  *
15
15
  * @example
16
- * // Works on all platforms - automatically adapts for iOS with sfdc_offline_enabled LD flag
16
+ * // Works on all platforms - automatically adapts for iOS with enable_sfdc_sync instance setting
17
17
  * const result = await crmQueryAdaptive({ query: 'SELECT Id, Name FROM Account WHERE Active = true' })
18
18
  */
19
19
  export declare function crmQueryAdaptive(payload: CRMQueryPayload): Promise<any>;
@@ -60,6 +60,7 @@ export type InstanceSettings = OrganizationSettings & {
60
60
  enable_multipeer_connectivity?: boolean;
61
61
  enable_syncbox?: boolean;
62
62
  enable_sync_file_filtering?: boolean;
63
+ enable_sfdc_sync?: boolean;
63
64
  time_format?: string;
64
65
  date_format?: string;
65
66
  is_file_expiration_mandatory?: boolean;
@@ -1,4 +1,4 @@
1
- export type LaunchDarklyBooleanFlagKey = 'ai_code_generation_model' | 'ai_text_generation_model' | 'ai_image_generation_model' | 'ai_video_generation_model' | 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_content_grid_autofill' | 'allow_canvas_duplication' | 'allow_canvases_tables_columns_settings' | 'allow_table_column_resizing' | 'allow_creating_canvas_with_no_template' | 'allow_dynamic_data_table_for_scribble_component' | 'allow_html_for_scribble_component' | 'allow_embeddable_for_scribble_component' | 'allow_embeddable_hiding' | 'allow_multimedia_for_scribble_component' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_distributions' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'allow_saving_annotations_in_personal_layer' | 'allow_user_to_edit_font_size_and_color_in_canvas_tokens' | 'are_sections_system_controlled' | 'enable_canvas_core_distributions' | 'enable_file_core_distributions' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_custom_tooltips' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'disable_download_canvas' | 'enable_ai_generated_thumbnails' | 'enable_analytics' | 'enable_app_developer_role' | 'enable_algolia_search' | 'enable_background_image_theme_options' | 'enable_better_canvas_builder_control_bars_on_zoom' | 'enable_bulk_update_file_attributes' | 'enable_canvas_as_home' | 'enable_canvas_blocks' | 'enable_canvas_node_debugging' | 'enable_canvas_locks' | 'enable_canvas_template_edit_in_impact' | 'enable_canvas_tokens' | 'enable_collaborations' | 'enable_collection_player_data_accessor' | 'enable_content_grid_data_accessor' | 'enable_content_type_change_in_content_selector' | 'enable_cross_tab_instance_reload_for_ld_sync' | 'enable_create_section_from_section_template' | 'enable_custom_display_overrides' | 'enable_default_crm_shape' | 'enable_detailed_date_format' | 'enable_dsr_readonly_annotations' | 'enable_dynamic_data_table_component' | 'enable_custom_data_tables' | 'enable_embedded_video_autoplay' | 'enable_embedded_video' | 'enable_enhanced_canvas_drawer_app' | 'enable_enhanced_indicators' | 'enable_enhanced_section_execution_states' | 'enable_experimental_canvas_builder_dnd' | 'enable_extra_file_data' | 'enable_file_pages_metadata' | 'enable_file_revisions' | 'enable_folder_details_edit' | 'enable_handlebar_template_support' | 'enable_height_in_component_theming' | 'enable_hotspot_visibility' | 'enable_improved_canvas_node_updating' | 'enable_individual_users_in_file_distribution' | 'enable_insearch_in_section_selector' | 'enable_instance_cloner' | 'enable_advanced_cloner' | 'enable_instance_editor_role' | 'enable_instance_navigation_from_management' | 'enable_knock_notifications' | 'enable_maintain_section_theme_control' | 'enable_metadata_in_file_uploads_with_default_values' | 'enable_more_intuitive_component_spacing' | 'enable_multimedia_component_ai_images' | 'enable_new_meeting_bar' | 'enable_original_pdf_link' | 'enable_scale_content' | 'enable_sorting_in_tiptap_table' | 'enable_theme_assets' | 'enable_toc_enhancements_to_support_same_section_in_section_list' | 'enable_pia_assistant' | 'enable_pipe_character_multi_search' | 'enable_popup_apps' | 'enable_reorder_search' | 'enable_reorder_scribble_isolation' | 'enable_reorder_component_options_menu' | 'enable_resizable_multimedia_component' | 'enable_responsive_scribble_component' | 'enable_saved_canvases_filters' | 'enable_short_tag_column_in_tables' | 'enable_scribble_component' | 'enable_scribble_content_as_background' | 'enable_search_and_filters_in_multimedia_component' | 'enable_section_context_in_dsr' | 'enable_selectors_dnd' | 'enable_section_selector_edit_section' | 'enable_smart_folders' | 'enable_smart_folders_for_sections' | 'enable_smart_folders_in_section_selector' | 'enable_smart_folders_in_files' | 'enable_sorting_in_sections' | 'enable_suggested_tags' | 'enable_template_folders' | 'enable_theme_options_border_radius' | 'enable_themes' | 'hide_asset_uploader' | 'include_files_content_in_print' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'prefer_online_handlers' | 'restrict_owned_files_from_admins' | 'show_asset_manager_for_multimedia' | 'show_clear_all_annotations_button' | 'show_content_selector_list_view' | 'show_metadata_filters_in_all_canvas_things' | 'show_only_preview_mode_for_html_component' | 'show_popularity_icons' | 'use_core_endpoint_for_analytics' | 'convert_pptx_to_section_with_scribble_pdfjs' | 'use_short_url_for_shared_link' | 'use_zoho_instead_of_ms_wopi' | 'enable_new_section_list' | 'enable_sharebox_apps' | 'enable_sharebox_bulk_filtering' | 'enable_back_to_previous_location_in_canvas' | 'enable_crm_shape_for_external_links' | 'enable_adaptive_popup_apps' | 'enable_file_version_polling' | 'skip_pspdfkit_wait_for_high_res_thumbs' | 'enable_reactive_scribble_component_toolbar' | 'enable_embeddable_full_screen_mode' | 'enable_enhanced_user_management' | 'keep_static_pptx_editable' | 'enable_canvas_pdf_dimensions' | 'enable_editable_pptx_of_canvas' | 'enable_canvas_control_bars_collapse' | 'enable_rep_app_visibility_order' | 'sfdc_offline_enabled';
1
+ export type LaunchDarklyBooleanFlagKey = 'ai_code_generation_model' | 'ai_text_generation_model' | 'ai_image_generation_model' | 'ai_video_generation_model' | 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_content_grid_autofill' | 'allow_canvas_duplication' | 'allow_canvases_tables_columns_settings' | 'allow_table_column_resizing' | 'allow_creating_canvas_with_no_template' | 'allow_dynamic_data_table_for_scribble_component' | 'allow_html_for_scribble_component' | 'allow_embeddable_for_scribble_component' | 'allow_embeddable_hiding' | 'allow_multimedia_for_scribble_component' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_distributions' | 'allow_rep_file_rating' | 'allow_rep_file_upload' | 'allow_saving_annotations_in_personal_layer' | 'allow_user_to_edit_font_size_and_color_in_canvas_tokens' | 'are_sections_system_controlled' | 'enable_canvas_core_distributions' | 'enable_file_core_distributions' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_custom_tooltips' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'disable_download_canvas' | 'enable_ai_generated_thumbnails' | 'enable_analytics' | 'enable_app_developer_role' | 'enable_algolia_search' | 'enable_background_image_theme_options' | 'enable_better_canvas_builder_control_bars_on_zoom' | 'enable_bulk_update_file_attributes' | 'enable_canvas_as_home' | 'enable_canvas_blocks' | 'enable_canvas_node_debugging' | 'enable_canvas_locks' | 'enable_canvas_template_edit_in_impact' | 'enable_canvas_tokens' | 'enable_collaborations' | 'enable_collection_player_data_accessor' | 'enable_content_grid_data_accessor' | 'enable_content_type_change_in_content_selector' | 'enable_cross_tab_instance_reload_for_ld_sync' | 'enable_create_section_from_section_template' | 'enable_custom_display_overrides' | 'enable_default_crm_shape' | 'enable_detailed_date_format' | 'enable_dsr_readonly_annotations' | 'enable_dynamic_data_table_component' | 'enable_custom_data_tables' | 'enable_embedded_video_autoplay' | 'enable_embedded_video' | 'enable_enhanced_canvas_drawer_app' | 'enable_enhanced_indicators' | 'enable_enhanced_section_execution_states' | 'enable_experimental_canvas_builder_dnd' | 'enable_extra_file_data' | 'enable_file_pages_metadata' | 'enable_file_revisions' | 'enable_folder_details_edit' | 'enable_handlebar_template_support' | 'enable_height_in_component_theming' | 'enable_hotspot_visibility' | 'enable_improved_canvas_node_updating' | 'enable_individual_users_in_file_distribution' | 'enable_insearch_in_section_selector' | 'enable_instance_cloner' | 'enable_advanced_cloner' | 'enable_instance_editor_role' | 'enable_instance_navigation_from_management' | 'enable_knock_notifications' | 'enable_maintain_section_theme_control' | 'enable_metadata_in_file_uploads_with_default_values' | 'enable_more_intuitive_component_spacing' | 'enable_multimedia_component_ai_images' | 'enable_new_meeting_bar' | 'enable_original_pdf_link' | 'enable_scale_content' | 'enable_sorting_in_tiptap_table' | 'enable_theme_assets' | 'enable_toc_enhancements_to_support_same_section_in_section_list' | 'enable_pia_assistant' | 'enable_pipe_character_multi_search' | 'enable_popup_apps' | 'enable_reorder_search' | 'enable_reorder_scribble_isolation' | 'enable_reorder_component_options_menu' | 'enable_resizable_multimedia_component' | 'enable_responsive_scribble_component' | 'enable_saved_canvases_filters' | 'enable_short_tag_column_in_tables' | 'enable_scribble_component' | 'enable_scribble_content_as_background' | 'enable_search_and_filters_in_multimedia_component' | 'enable_section_context_in_dsr' | 'enable_selectors_dnd' | 'enable_section_selector_edit_section' | 'enable_smart_folders' | 'enable_smart_folders_for_sections' | 'enable_smart_folders_in_section_selector' | 'enable_smart_folders_in_files' | 'enable_sorting_in_sections' | 'enable_suggested_tags' | 'enable_template_component_permissions' | 'enable_template_folders' | 'enable_theme_options_border_radius' | 'enable_themes' | 'hide_asset_uploader' | 'include_files_content_in_print' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'prefer_online_handlers' | 'restrict_owned_files_from_admins' | 'show_asset_manager_for_multimedia' | 'show_clear_all_annotations_button' | 'show_content_selector_list_view' | 'show_metadata_filters_in_all_canvas_things' | 'show_only_preview_mode_for_html_component' | 'show_popularity_icons' | 'use_core_endpoint_for_analytics' | 'convert_pptx_to_section_with_scribble_pdfjs' | 'use_short_url_for_shared_link' | 'use_zoho_instead_of_ms_wopi' | 'enable_new_section_list' | 'enable_sharebox_apps' | 'enable_sharebox_bulk_filtering' | 'enable_back_to_previous_location_in_canvas' | 'enable_crm_shape_for_external_links' | 'enable_adaptive_popup_apps' | 'enable_file_version_polling' | 'skip_pspdfkit_wait_for_high_res_thumbs' | 'enable_reactive_scribble_component_toolbar' | 'enable_embeddable_full_screen_mode' | 'enable_enhanced_user_management' | 'keep_static_pptx_editable' | 'enable_canvas_pdf_dimensions' | 'enable_editable_pptx_of_canvas' | 'enable_canvas_control_bars_collapse' | 'enable_rep_app_visibility_order';
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_manager_table_columns: CanvasManagerTableColumns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pitcher/canvas-ui",
3
- "version": "2026.1.15-101627-beta",
3
+ "version": "2026.1.15-103854-beta",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"