@pitcher/js-api 1.26.0-beta.4 → 1.26.0-beta.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.
- package/js-api.esm.js +27 -5
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +8 -8
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/browser/components/Content/ActionsToolbar/BulkShareboxWarningModal.vue.d.ts +15 -0
- package/lib/apps/browser/components/Content/ActionsToolbar/SelectionActions.vue.d.ts +1 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/container/NavigationWrapper/NavigationWrapper.vue.d.ts +5 -1
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.edit.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.header.vue.d.ts +19 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.settings.vue.d.ts +10 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.utils.d.ts +32 -0
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.vue.d.ts +27 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +723 -9
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +150 -0
- package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +150 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +3 -0
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useControlBarCollapse.d.ts +8 -0
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useTemporaryContext.d.ts +14 -0
- package/lib/apps/canvas-builder/constants/theme.const.d.ts +34 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +29 -1
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +4 -4
- package/lib/apps/canvas-builder/util/print.util.d.ts +2 -9
- package/lib/components/CAlgoliaSearch/CAlgoliaSearch.vue.d.ts +6 -3
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +2 -0
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +8 -8
- package/lib/components/CContentError/CContentError.vue.d.ts +1 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +4 -0
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.link.types.d.ts +3 -2
- package/lib/components/CFileViewer/pdf/CFileViewerBottom.pdf.vue.d.ts +1 -0
- package/lib/components/CMonacoEditor/CMonacoEditor.vue.d.ts +2 -0
- package/lib/components/CPdfDimensionsSelector/CPdfDimensionsSelector.vue.d.ts +27 -0
- package/lib/components/CTable/CTable.vue.d.ts +6 -5
- package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +2 -0
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +4 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +1 -0
- package/lib/components/sections/CSectionManagement.vue.d.ts +2 -0
- package/lib/components/themes/CThemeManagement.vue.d.ts +2 -0
- package/lib/constants/dimensions.const.d.ts +23 -0
- package/lib/directives/vTrustedHtml.d.ts +6 -0
- package/lib/main.lib.d.ts +1 -0
- package/lib/sdk/api/HighLevelApi.d.ts +18 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +5 -1
- package/lib/sdk/api/modules/ui/types.ui.d.ts +2 -0
- package/lib/sdk/interfaces.d.ts +12 -1
- package/lib/sdk/main.d.ts +15 -11
- package/lib/types/instanceSettings.types.d.ts +2 -0
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +2 -0
- package/package.json +1 -1
- package/lib/modules/algolia-instantsearch.d.ts +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ViewCompactFile } from '../../../../../types/files';
|
|
2
|
+
interface Props {
|
|
3
|
+
show: boolean;
|
|
4
|
+
unshareableFiles: ViewCompactFile[];
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
confirm: () => any;
|
|
8
|
+
"update:show": (value: boolean) => any;
|
|
9
|
+
"open-file": (fileId: string) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
onConfirm?: (() => any) | undefined;
|
|
12
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
"onOpen-file"?: ((fileId: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -523,6 +523,8 @@ declare const _default: import('vue').DefineComponent<({
|
|
|
523
523
|
}) => void;
|
|
524
524
|
};
|
|
525
525
|
switchToPresentation: () => Promise<void>;
|
|
526
|
+
setTemporaryContextKeys: (source: string, context: CanvasRetrieve["context"]) => void;
|
|
527
|
+
getSafeContext: (context?: any, _temporaryContextKeys?: string[]) => any;
|
|
526
528
|
goToPage: ({ componentId, sectionId, scrollTo, itemIndex, sectionIndex, skipSetPreviousLocation, }: {
|
|
527
529
|
componentId: ComponentNode["id"];
|
|
528
530
|
sectionId?: CanvasRetrieve["id"];
|
package/lib/apps/canvas-builder/components/container/NavigationWrapper/NavigationWrapper.vue.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
collapsed?: boolean;
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
5
|
attrs: Partial<{}>;
|
|
3
6
|
slots: {
|
|
@@ -5,12 +8,13 @@ declare function __VLS_template(): {
|
|
|
5
8
|
top?(_: {}): any;
|
|
6
9
|
middle?(_: {}): any;
|
|
7
10
|
bottom?(_: {}): any;
|
|
11
|
+
toggle?(_: {}): any;
|
|
8
12
|
};
|
|
9
13
|
refs: {};
|
|
10
14
|
rootEl: HTMLDivElement;
|
|
11
15
|
};
|
|
12
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
19
|
export default _default;
|
|
16
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.raw.header.vue.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColumnSort } from '@tanstack/table-core';
|
|
2
|
+
interface Column {
|
|
3
|
+
id: string;
|
|
4
|
+
header: string;
|
|
5
|
+
enableSorting: boolean;
|
|
6
|
+
sortDescFirst?: boolean;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
columns: Column[];
|
|
10
|
+
headerBackgroundColor: string;
|
|
11
|
+
headerForegroundColor: string;
|
|
12
|
+
currentSorting: ColumnSort | null;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
sort: (columnId: string) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onSort?: ((columnId: string) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableSectionElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColumnSort } from '@tanstack/table-core';
|
|
2
|
+
import { CustomDataTableProps } from '../../../types/canvas';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
data?: CustomDataTableProps;
|
|
5
|
+
style?: Record<string, any>;
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
sortChanged: (sorting: ColumnSort | null) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onSortChanged?: ((sorting: ColumnSort | null) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.settings.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentNode, CustomDataTableProps } from '../../../types/canvas';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
id: ComponentNode['id'];
|
|
4
|
+
data: CustomDataTableProps | null;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
|
+
hierarchyScrollContainer: HTMLDivElement;
|
|
8
|
+
columnsScrollContainer: HTMLDivElement;
|
|
9
|
+
}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CustomDataTableHierarchyLevel, DynamicDatatableProperty } from '../../../types/canvas';
|
|
2
|
+
export interface ProcessedHierarchicalRow {
|
|
3
|
+
id: string;
|
|
4
|
+
level: number;
|
|
5
|
+
type: 'group' | 'data';
|
|
6
|
+
groupValue?: string;
|
|
7
|
+
data?: Record<string, any>;
|
|
8
|
+
children?: ProcessedHierarchicalRow[];
|
|
9
|
+
isExpanded?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface RowWithAncestors extends ProcessedHierarchicalRow {
|
|
12
|
+
ancestorGroups?: ProcessedHierarchicalRow[];
|
|
13
|
+
isInnermostGroup?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Process hierarchical data based on configured levels
|
|
17
|
+
*/
|
|
18
|
+
export declare function processHierarchicalData(sourceData: any, hierarchy: CustomDataTableHierarchyLevel[], columns?: DynamicDatatableProperty[], userSortConfig?: {
|
|
19
|
+
key: string;
|
|
20
|
+
direction: 'asc' | 'desc';
|
|
21
|
+
}): ProcessedHierarchicalRow[];
|
|
22
|
+
/**
|
|
23
|
+
* Flatten hierarchical structure for rendering
|
|
24
|
+
* @param rows - The hierarchical rows to flatten
|
|
25
|
+
* @param includeCollapsed - Whether to include collapsed rows
|
|
26
|
+
* @param forceExpandAll - Force all groups to be expanded (useful for print mode)
|
|
27
|
+
*/
|
|
28
|
+
export declare function flattenForRendering(rows: ProcessedHierarchicalRow[], includeCollapsed?: boolean, forceExpandAll?: boolean): RowWithAncestors[];
|
|
29
|
+
/**
|
|
30
|
+
* Toggle expand/collapse state of a group row
|
|
31
|
+
*/
|
|
32
|
+
export declare function toggleRowExpansion(rows: ProcessedHierarchicalRow[], rowId: string): ProcessedHierarchicalRow[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentTypes, ComponentNode, CustomDataTableProps } from '../../../types/canvas';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../../../types/openapi';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
id: string;
|
|
5
|
+
data: CustomDataTableProps;
|
|
6
|
+
children?: ComponentNode[];
|
|
7
|
+
parentType?: ComponentTypes;
|
|
8
|
+
usedInSectionId?: CanvasRetrieve['id'];
|
|
9
|
+
when_used_in_section?: ComponentNode['when_used_in_section'];
|
|
10
|
+
visible?: ComponentNode['visible'];
|
|
11
|
+
tracking_id?: string;
|
|
12
|
+
style?: Record<string, any>;
|
|
13
|
+
theme_meta?: ComponentNode['theme_meta'];
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
style: (s: Record<string, any>, id?: string | undefined) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onStyle?: ((s: Record<string, any>, id?: string | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
children: ComponentNode[];
|
|
21
|
+
when_used_in_section: {
|
|
22
|
+
is_editable: boolean;
|
|
23
|
+
is_removable: boolean;
|
|
24
|
+
};
|
|
25
|
+
usedInSectionId: CanvasRetrieve["id"];
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
export default _default;
|