@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
|
@@ -517,6 +517,81 @@ export default function useCanvasBlocks(): {
|
|
|
517
517
|
} | undefined;
|
|
518
518
|
}[];
|
|
519
519
|
readonly layout: "vertical" | "horizontal";
|
|
520
|
+
} | {
|
|
521
|
+
readonly filters?: readonly {
|
|
522
|
+
readonly property: string;
|
|
523
|
+
readonly operator: import('../../../types/query-builder.types').QueryOperator;
|
|
524
|
+
readonly value: string;
|
|
525
|
+
}[] | undefined;
|
|
526
|
+
readonly layout: "column" | "row";
|
|
527
|
+
readonly page_size?: number | undefined;
|
|
528
|
+
readonly path: string;
|
|
529
|
+
readonly properties: readonly {
|
|
530
|
+
readonly key: string;
|
|
531
|
+
readonly display_name?: string | undefined;
|
|
532
|
+
readonly sort: {
|
|
533
|
+
readonly direction?: "asc" | "desc" | undefined;
|
|
534
|
+
readonly default?: boolean | undefined;
|
|
535
|
+
readonly enabled: boolean;
|
|
536
|
+
};
|
|
537
|
+
readonly group?: boolean | undefined;
|
|
538
|
+
readonly printable?: boolean | undefined;
|
|
539
|
+
readonly format?: {
|
|
540
|
+
readonly type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
541
|
+
readonly currency?: string | undefined;
|
|
542
|
+
readonly decimals?: number | undefined;
|
|
543
|
+
readonly thousandsSeparator?: boolean | undefined;
|
|
544
|
+
readonly dateFormat?: string | undefined;
|
|
545
|
+
} | undefined;
|
|
546
|
+
}[];
|
|
547
|
+
readonly theme?: {
|
|
548
|
+
readonly background_color?: string | null | undefined;
|
|
549
|
+
readonly group_header_color?: string | null | undefined;
|
|
550
|
+
readonly font_family?: string | undefined;
|
|
551
|
+
} | undefined;
|
|
552
|
+
readonly break_groups_on_new_page?: boolean | undefined;
|
|
553
|
+
readonly enable_row_striping?: boolean | undefined;
|
|
554
|
+
readonly striping_color?: string | null | undefined;
|
|
555
|
+
readonly striping_start_from_first?: boolean | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
readonly hierarchy: readonly {
|
|
558
|
+
readonly type: "group" | "data";
|
|
559
|
+
readonly path: string;
|
|
560
|
+
readonly group_by_key?: string | undefined;
|
|
561
|
+
}[];
|
|
562
|
+
readonly columns: readonly {
|
|
563
|
+
readonly key: string;
|
|
564
|
+
readonly display_name?: string | undefined;
|
|
565
|
+
readonly sort: {
|
|
566
|
+
readonly direction?: "asc" | "desc" | undefined;
|
|
567
|
+
readonly default?: boolean | undefined;
|
|
568
|
+
readonly enabled: boolean;
|
|
569
|
+
};
|
|
570
|
+
readonly group?: boolean | undefined;
|
|
571
|
+
readonly printable?: boolean | undefined;
|
|
572
|
+
readonly format?: {
|
|
573
|
+
readonly type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
574
|
+
readonly currency?: string | undefined;
|
|
575
|
+
readonly decimals?: number | undefined;
|
|
576
|
+
readonly thousandsSeparator?: boolean | undefined;
|
|
577
|
+
readonly dateFormat?: string | undefined;
|
|
578
|
+
} | undefined;
|
|
579
|
+
}[];
|
|
580
|
+
readonly header_path?: string | undefined;
|
|
581
|
+
readonly footer_path?: string | undefined;
|
|
582
|
+
readonly filters?: readonly {
|
|
583
|
+
readonly property: string;
|
|
584
|
+
readonly operator: import('../../../types/query-builder.types').QueryOperator;
|
|
585
|
+
readonly value: string;
|
|
586
|
+
}[] | undefined;
|
|
587
|
+
readonly theme?: {
|
|
588
|
+
readonly background_color?: string | null | undefined;
|
|
589
|
+
readonly group_header_color?: string | null | undefined;
|
|
590
|
+
readonly font_family?: string | undefined;
|
|
591
|
+
} | undefined;
|
|
592
|
+
readonly enable_row_striping?: boolean | undefined;
|
|
593
|
+
readonly striping_color?: string | null | undefined;
|
|
594
|
+
readonly striping_start_from_first?: boolean | undefined;
|
|
520
595
|
} | undefined;
|
|
521
596
|
readonly children?: readonly /*elided*/ any[] | undefined;
|
|
522
597
|
readonly when_used_in_section?: {
|
|
@@ -899,6 +974,81 @@ export default function useCanvasBlocks(): {
|
|
|
899
974
|
} | undefined;
|
|
900
975
|
}[];
|
|
901
976
|
readonly layout: "vertical" | "horizontal";
|
|
977
|
+
} | {
|
|
978
|
+
readonly filters?: readonly {
|
|
979
|
+
readonly property: string;
|
|
980
|
+
readonly operator: import('../../../types/query-builder.types').QueryOperator;
|
|
981
|
+
readonly value: string;
|
|
982
|
+
}[] | undefined;
|
|
983
|
+
readonly layout: "column" | "row";
|
|
984
|
+
readonly page_size?: number | undefined;
|
|
985
|
+
readonly path: string;
|
|
986
|
+
readonly properties: readonly {
|
|
987
|
+
readonly key: string;
|
|
988
|
+
readonly display_name?: string | undefined;
|
|
989
|
+
readonly sort: {
|
|
990
|
+
readonly direction?: "asc" | "desc" | undefined;
|
|
991
|
+
readonly default?: boolean | undefined;
|
|
992
|
+
readonly enabled: boolean;
|
|
993
|
+
};
|
|
994
|
+
readonly group?: boolean | undefined;
|
|
995
|
+
readonly printable?: boolean | undefined;
|
|
996
|
+
readonly format?: {
|
|
997
|
+
readonly type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
998
|
+
readonly currency?: string | undefined;
|
|
999
|
+
readonly decimals?: number | undefined;
|
|
1000
|
+
readonly thousandsSeparator?: boolean | undefined;
|
|
1001
|
+
readonly dateFormat?: string | undefined;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
}[];
|
|
1004
|
+
readonly theme?: {
|
|
1005
|
+
readonly background_color?: string | null | undefined;
|
|
1006
|
+
readonly group_header_color?: string | null | undefined;
|
|
1007
|
+
readonly font_family?: string | undefined;
|
|
1008
|
+
} | undefined;
|
|
1009
|
+
readonly break_groups_on_new_page?: boolean | undefined;
|
|
1010
|
+
readonly enable_row_striping?: boolean | undefined;
|
|
1011
|
+
readonly striping_color?: string | null | undefined;
|
|
1012
|
+
readonly striping_start_from_first?: boolean | undefined;
|
|
1013
|
+
} | {
|
|
1014
|
+
readonly hierarchy: readonly {
|
|
1015
|
+
readonly type: "group" | "data";
|
|
1016
|
+
readonly path: string;
|
|
1017
|
+
readonly group_by_key?: string | undefined;
|
|
1018
|
+
}[];
|
|
1019
|
+
readonly columns: readonly {
|
|
1020
|
+
readonly key: string;
|
|
1021
|
+
readonly display_name?: string | undefined;
|
|
1022
|
+
readonly sort: {
|
|
1023
|
+
readonly direction?: "asc" | "desc" | undefined;
|
|
1024
|
+
readonly default?: boolean | undefined;
|
|
1025
|
+
readonly enabled: boolean;
|
|
1026
|
+
};
|
|
1027
|
+
readonly group?: boolean | undefined;
|
|
1028
|
+
readonly printable?: boolean | undefined;
|
|
1029
|
+
readonly format?: {
|
|
1030
|
+
readonly type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
1031
|
+
readonly currency?: string | undefined;
|
|
1032
|
+
readonly decimals?: number | undefined;
|
|
1033
|
+
readonly thousandsSeparator?: boolean | undefined;
|
|
1034
|
+
readonly dateFormat?: string | undefined;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
}[];
|
|
1037
|
+
readonly header_path?: string | undefined;
|
|
1038
|
+
readonly footer_path?: string | undefined;
|
|
1039
|
+
readonly filters?: readonly {
|
|
1040
|
+
readonly property: string;
|
|
1041
|
+
readonly operator: import('../../../types/query-builder.types').QueryOperator;
|
|
1042
|
+
readonly value: string;
|
|
1043
|
+
}[] | undefined;
|
|
1044
|
+
readonly theme?: {
|
|
1045
|
+
readonly background_color?: string | null | undefined;
|
|
1046
|
+
readonly group_header_color?: string | null | undefined;
|
|
1047
|
+
readonly font_family?: string | undefined;
|
|
1048
|
+
} | undefined;
|
|
1049
|
+
readonly enable_row_striping?: boolean | undefined;
|
|
1050
|
+
readonly striping_color?: string | null | undefined;
|
|
1051
|
+
readonly striping_start_from_first?: boolean | undefined;
|
|
902
1052
|
} | undefined;
|
|
903
1053
|
readonly children?: readonly /*elided*/ any[] | undefined;
|
|
904
1054
|
readonly when_used_in_section?: {
|
|
@@ -3,7 +3,7 @@ import { SectionListProps, ComponentNode } from '../types/canvas';
|
|
|
3
3
|
import { WizardStep } from '../components/container/CanvasCompletionWizard/CanvasCompletionWizard.vue';
|
|
4
4
|
export default function useCanvasCompletionWizard(): {
|
|
5
5
|
wizardSteps: ComputedRef<WizardStep[]>;
|
|
6
|
-
sectionListNodes: ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[]>;
|
|
6
|
+
sectionListNodes: ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[]>;
|
|
7
7
|
isCompletionWizardEnabled: ComputedRef<boolean>;
|
|
8
8
|
isCompletionWizardCompleted: ComputedRef<boolean>;
|
|
9
9
|
isCompletionWizardShowing: ComputedRef<boolean>;
|
|
@@ -327,6 +327,81 @@ export default function useCanvasHistory(): {
|
|
|
327
327
|
card_style?: Record<string, any> | undefined;
|
|
328
328
|
}[];
|
|
329
329
|
layout: "vertical" | "horizontal";
|
|
330
|
+
} | {
|
|
331
|
+
filters?: {
|
|
332
|
+
property: string;
|
|
333
|
+
operator: import('../../../types/query-builder.types').QueryOperator;
|
|
334
|
+
value: string;
|
|
335
|
+
}[] | undefined;
|
|
336
|
+
layout: "column" | "row";
|
|
337
|
+
page_size?: number | undefined;
|
|
338
|
+
path: string;
|
|
339
|
+
properties: {
|
|
340
|
+
key: string;
|
|
341
|
+
display_name?: string | undefined;
|
|
342
|
+
sort: {
|
|
343
|
+
direction?: "asc" | "desc" | undefined;
|
|
344
|
+
default?: boolean | undefined;
|
|
345
|
+
enabled: boolean;
|
|
346
|
+
};
|
|
347
|
+
group?: boolean | undefined;
|
|
348
|
+
printable?: boolean | undefined;
|
|
349
|
+
format?: {
|
|
350
|
+
type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
351
|
+
currency?: string | undefined;
|
|
352
|
+
decimals?: number | undefined;
|
|
353
|
+
thousandsSeparator?: boolean | undefined;
|
|
354
|
+
dateFormat?: string | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
}[];
|
|
357
|
+
theme?: {
|
|
358
|
+
background_color?: string | null | undefined;
|
|
359
|
+
group_header_color?: string | null | undefined;
|
|
360
|
+
font_family?: string | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
break_groups_on_new_page?: boolean | undefined;
|
|
363
|
+
enable_row_striping?: boolean | undefined;
|
|
364
|
+
striping_color?: string | null | undefined;
|
|
365
|
+
striping_start_from_first?: boolean | undefined;
|
|
366
|
+
} | {
|
|
367
|
+
hierarchy: {
|
|
368
|
+
type: "group" | "data";
|
|
369
|
+
path: string;
|
|
370
|
+
group_by_key?: string | undefined;
|
|
371
|
+
}[];
|
|
372
|
+
columns: {
|
|
373
|
+
key: string;
|
|
374
|
+
display_name?: string | undefined;
|
|
375
|
+
sort: {
|
|
376
|
+
direction?: "asc" | "desc" | undefined;
|
|
377
|
+
default?: boolean | undefined;
|
|
378
|
+
enabled: boolean;
|
|
379
|
+
};
|
|
380
|
+
group?: boolean | undefined;
|
|
381
|
+
printable?: boolean | undefined;
|
|
382
|
+
format?: {
|
|
383
|
+
type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
384
|
+
currency?: string | undefined;
|
|
385
|
+
decimals?: number | undefined;
|
|
386
|
+
thousandsSeparator?: boolean | undefined;
|
|
387
|
+
dateFormat?: string | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
}[];
|
|
390
|
+
header_path?: string | undefined;
|
|
391
|
+
footer_path?: string | undefined;
|
|
392
|
+
filters?: {
|
|
393
|
+
property: string;
|
|
394
|
+
operator: import('../../../types/query-builder.types').QueryOperator;
|
|
395
|
+
value: string;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
theme?: {
|
|
398
|
+
background_color?: string | null | undefined;
|
|
399
|
+
group_header_color?: string | null | undefined;
|
|
400
|
+
font_family?: string | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
enable_row_striping?: boolean | undefined;
|
|
403
|
+
striping_color?: string | null | undefined;
|
|
404
|
+
striping_start_from_first?: boolean | undefined;
|
|
330
405
|
} | undefined;
|
|
331
406
|
children?: /*elided*/ any[] | undefined;
|
|
332
407
|
when_used_in_section?: {
|
|
@@ -675,6 +750,81 @@ export default function useCanvasHistory(): {
|
|
|
675
750
|
card_style?: Record<string, any> | undefined;
|
|
676
751
|
}[];
|
|
677
752
|
layout: "vertical" | "horizontal";
|
|
753
|
+
} | {
|
|
754
|
+
filters?: {
|
|
755
|
+
property: string;
|
|
756
|
+
operator: import('../../../types/query-builder.types').QueryOperator;
|
|
757
|
+
value: string;
|
|
758
|
+
}[] | undefined;
|
|
759
|
+
layout: "column" | "row";
|
|
760
|
+
page_size?: number | undefined;
|
|
761
|
+
path: string;
|
|
762
|
+
properties: {
|
|
763
|
+
key: string;
|
|
764
|
+
display_name?: string | undefined;
|
|
765
|
+
sort: {
|
|
766
|
+
direction?: "asc" | "desc" | undefined;
|
|
767
|
+
default?: boolean | undefined;
|
|
768
|
+
enabled: boolean;
|
|
769
|
+
};
|
|
770
|
+
group?: boolean | undefined;
|
|
771
|
+
printable?: boolean | undefined;
|
|
772
|
+
format?: {
|
|
773
|
+
type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
774
|
+
currency?: string | undefined;
|
|
775
|
+
decimals?: number | undefined;
|
|
776
|
+
thousandsSeparator?: boolean | undefined;
|
|
777
|
+
dateFormat?: string | undefined;
|
|
778
|
+
} | undefined;
|
|
779
|
+
}[];
|
|
780
|
+
theme?: {
|
|
781
|
+
background_color?: string | null | undefined;
|
|
782
|
+
group_header_color?: string | null | undefined;
|
|
783
|
+
font_family?: string | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
break_groups_on_new_page?: boolean | undefined;
|
|
786
|
+
enable_row_striping?: boolean | undefined;
|
|
787
|
+
striping_color?: string | null | undefined;
|
|
788
|
+
striping_start_from_first?: boolean | undefined;
|
|
789
|
+
} | {
|
|
790
|
+
hierarchy: {
|
|
791
|
+
type: "group" | "data";
|
|
792
|
+
path: string;
|
|
793
|
+
group_by_key?: string | undefined;
|
|
794
|
+
}[];
|
|
795
|
+
columns: {
|
|
796
|
+
key: string;
|
|
797
|
+
display_name?: string | undefined;
|
|
798
|
+
sort: {
|
|
799
|
+
direction?: "asc" | "desc" | undefined;
|
|
800
|
+
default?: boolean | undefined;
|
|
801
|
+
enabled: boolean;
|
|
802
|
+
};
|
|
803
|
+
group?: boolean | undefined;
|
|
804
|
+
printable?: boolean | undefined;
|
|
805
|
+
format?: {
|
|
806
|
+
type?: "currency" | "number" | "percentage" | "date" | undefined;
|
|
807
|
+
currency?: string | undefined;
|
|
808
|
+
decimals?: number | undefined;
|
|
809
|
+
thousandsSeparator?: boolean | undefined;
|
|
810
|
+
dateFormat?: string | undefined;
|
|
811
|
+
} | undefined;
|
|
812
|
+
}[];
|
|
813
|
+
header_path?: string | undefined;
|
|
814
|
+
footer_path?: string | undefined;
|
|
815
|
+
filters?: {
|
|
816
|
+
property: string;
|
|
817
|
+
operator: import('../../../types/query-builder.types').QueryOperator;
|
|
818
|
+
value: string;
|
|
819
|
+
}[] | undefined;
|
|
820
|
+
theme?: {
|
|
821
|
+
background_color?: string | null | undefined;
|
|
822
|
+
group_header_color?: string | null | undefined;
|
|
823
|
+
font_family?: string | undefined;
|
|
824
|
+
} | undefined;
|
|
825
|
+
enable_row_striping?: boolean | undefined;
|
|
826
|
+
striping_color?: string | null | undefined;
|
|
827
|
+
striping_start_from_first?: boolean | undefined;
|
|
678
828
|
} | undefined;
|
|
679
829
|
children?: /*elided*/ any[] | undefined;
|
|
680
830
|
when_used_in_section?: {
|
|
@@ -19,7 +19,7 @@ export default function useCanvasPages(): {
|
|
|
19
19
|
} | null>;
|
|
20
20
|
activeSectionId: ComputedRef<string | null>;
|
|
21
21
|
activeSectionTheme: ComputedRef<Record<string, any> | null>;
|
|
22
|
-
canvasPages: ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[][]>;
|
|
22
|
+
canvasPages: ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[][]>;
|
|
23
23
|
currentPageIndex: import('vue').Ref<number, number>;
|
|
24
24
|
currentSectionList: ComputedRef<{
|
|
25
25
|
sectionListId: string;
|
|
@@ -13,7 +13,7 @@ declare function setSectionOverrides(sectionId: CanvasRetrieve['id'], overrides?
|
|
|
13
13
|
declare function cleanup(): void;
|
|
14
14
|
export default function useCanvasSectionOverrides(): {
|
|
15
15
|
getComponentOverrides: (data: Ref<ComponentNode["data"]>, id: Ref<ComponentNode["id"]>, sectionId?: Ref<CanvasRetrieve["id"]>) => import('vue').ComputedRef<{
|
|
16
|
-
data: (import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps) | undefined;
|
|
16
|
+
data: (import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps) | undefined;
|
|
17
17
|
is_removed: boolean;
|
|
18
18
|
}>;
|
|
19
19
|
discardOverridesConfirmationOptions: typeof discardOverridesConfirmationOptions;
|
|
@@ -449,6 +449,9 @@ export default function useCanvasTheme(): {
|
|
|
449
449
|
backgroundPositionY: import('vue').Ref<BackgroundPositionY, BackgroundPositionY>;
|
|
450
450
|
backgroundSize: import('vue').Ref<BackgroundSize, BackgroundSize>;
|
|
451
451
|
backgroundRepeat: import('vue').Ref<BackgroundRepeat, BackgroundRepeat>;
|
|
452
|
+
pdfDimensionsPreset: import('vue').Ref<string | undefined, string | undefined>;
|
|
453
|
+
pdfDimensionsWidth: import('vue').Ref<string | undefined, string | undefined>;
|
|
454
|
+
pdfDimensionsHeight: import('vue').Ref<string | undefined, string | undefined>;
|
|
452
455
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
453
456
|
initializeTheme: typeof initializeTheme;
|
|
454
457
|
getDefaultTypographyConfiguration: typeof getDefaultTypographyConfiguration;
|
|
@@ -3,7 +3,7 @@ import { ComponentNode, ComponentNodeVisible } from '../types/canvas';
|
|
|
3
3
|
import { CollectionPlayer } from '../../collection-player/types/collection-player.type.ts';
|
|
4
4
|
export default function useCanvasVisibility(): {
|
|
5
5
|
getComponentDefaultVisibility: (type: ComponentNode["type"], mode?: keyof ComponentNodeVisible) => boolean;
|
|
6
|
-
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[];
|
|
6
|
+
getVisibleCanvasContent: (data: ComponentNode[], mode?: keyof ComponentNodeVisible) => ComponentNode<CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[];
|
|
7
7
|
getVisibleKey: () => keyof ComponentNodeVisible | undefined;
|
|
8
8
|
shouldRenderComponentWrapper: (c: ComponentNode, sectionId?: CanvasRetrieve["id"]) => boolean | undefined;
|
|
9
9
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare function toggleControlBarsCollapse(): void;
|
|
2
|
+
declare function resetControlBarsCollapse(): void;
|
|
3
|
+
export default function (): {
|
|
4
|
+
toggleControlBarsCollapse: typeof toggleControlBarsCollapse;
|
|
5
|
+
areControlBarsCollapsed: import('vue').Ref<boolean, boolean>;
|
|
6
|
+
resetControlBarsCollapse: typeof resetControlBarsCollapse;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentNode } from '../types/canvas';
|
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
3
|
export default function useReorderComponent(): {
|
|
4
|
-
activeComponent: Ref<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps> | null, ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps> | null>;
|
|
5
|
-
activeChildren: import('vue').WritableComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[], ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[]>;
|
|
4
|
+
activeComponent: Ref<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps> | null, ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps> | null>;
|
|
5
|
+
activeChildren: import('vue').WritableComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[], ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[]>;
|
|
6
6
|
activeTitle: ComputedRef<string>;
|
|
7
7
|
isContentVisible: Ref<boolean, boolean>;
|
|
8
8
|
initialize: () => void;
|
|
@@ -16,6 +16,6 @@ export default function useReorderComponent(): {
|
|
|
16
16
|
renameComponent: (component: ComponentNode, newName: string) => void;
|
|
17
17
|
isolatedScribbleChildId: ComputedRef<string | null>;
|
|
18
18
|
shouldShowOnlyIsolatedChild: (scribbleId: string) => boolean;
|
|
19
|
-
getFilteredScribbleChildren: (scribbleId: string, children: ComponentNode[]) => ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[];
|
|
19
|
+
getFilteredScribbleChildren: (scribbleId: string, children: ComponentNode[]) => ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[];
|
|
20
20
|
isComponentIsolated: (componentId: string) => boolean;
|
|
21
21
|
};
|
|
@@ -32,7 +32,7 @@ export interface ScribbleChildConfig {
|
|
|
32
32
|
export declare function useScribbleChild(config: ScribbleChildConfig): {
|
|
33
33
|
isScribbleChild: import('vue').ComputedRef<boolean>;
|
|
34
34
|
handleAddedToScribble: (emit: (event: "style", style: Record<string, any>, id?: string) => void) => void;
|
|
35
|
-
componentNode: import('vue').ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps> | null>;
|
|
35
|
+
componentNode: import('vue').ComputedRef<ComponentNode<import('../../collection-player/export').CollectionPlayer | import('../types/canvas').GridProps | import('../types/canvas').GridItemProps | import('../types/canvas').TextProps | import('../types/canvas').CarouselProps | import('../types/canvas').MultimediaProps | import('../types/canvas').EmbeddableProps | import('../types/canvas').ContentGridProps | import('../types/canvas').SectionListProps | import('../types/canvas').HtmlProps | import('../types/canvas').IFrameProps | import('../types/canvas').LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps> | null>;
|
|
36
36
|
createStyleUpdate: (updates?: Partial<{
|
|
37
37
|
backgroundColor?: string;
|
|
38
38
|
backgroundAttachment?: import('../../../types/background').BackgroundAttachment;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
+
import { OrganizationSettings } from '../../../types/organizationSettings.types.ts';
|
|
4
|
+
import { InstanceSettings } from '../../../types/instanceSettings.types.ts';
|
|
5
|
+
type Source = string;
|
|
6
|
+
type ContextKey = string;
|
|
7
|
+
declare const _default: (pitcherSettings: Ref<OrganizationSettings & InstanceSettings>, activeCanvas: Ref<CanvasRetrieve | null>) => {
|
|
8
|
+
setTemporaryContextKeys: (source: Source, context: CanvasRetrieve["context"]) => void;
|
|
9
|
+
clearTemporaryContext: () => void;
|
|
10
|
+
temporaryContextKeys: import('vue').ComputedRef<string[]>;
|
|
11
|
+
getSafeContext: (context?: any, _temporaryContextKeys?: ContextKey[]) => any;
|
|
12
|
+
watchCanvas: () => import('vue').WatchHandle;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -2,3 +2,37 @@ export declare const DEFAULT_GLOBAL_COMPONENT_SPACING = 32;
|
|
|
2
2
|
export declare const DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL = 4;
|
|
3
3
|
export declare const CANVAS_TYPOGRAPHY_CSS_PROPERTIES: readonly ["font-family", "font-size", "font-weight", "line-height", "letter-spacing", "text-transform", "color"];
|
|
4
4
|
export declare const CANVAS_TYPOGRAPHY_PRESETS: readonly ["h_1", "h_2", "h_3", "big_text", "normal_text", "small_text"];
|
|
5
|
+
export declare const PAPER_SIZE_PRESETS: {
|
|
6
|
+
readonly A4: {
|
|
7
|
+
readonly width: "210mm";
|
|
8
|
+
readonly height: "297mm";
|
|
9
|
+
};
|
|
10
|
+
readonly A3: {
|
|
11
|
+
readonly width: "297mm";
|
|
12
|
+
readonly height: "420mm";
|
|
13
|
+
};
|
|
14
|
+
readonly A5: {
|
|
15
|
+
readonly width: "148mm";
|
|
16
|
+
readonly height: "210mm";
|
|
17
|
+
};
|
|
18
|
+
readonly B3: {
|
|
19
|
+
readonly width: "353mm";
|
|
20
|
+
readonly height: "500mm";
|
|
21
|
+
};
|
|
22
|
+
readonly B4: {
|
|
23
|
+
readonly width: "250mm";
|
|
24
|
+
readonly height: "353mm";
|
|
25
|
+
};
|
|
26
|
+
readonly B5: {
|
|
27
|
+
readonly width: "176mm";
|
|
28
|
+
readonly height: "250mm";
|
|
29
|
+
};
|
|
30
|
+
readonly 'US Legal': {
|
|
31
|
+
readonly width: "8.5in";
|
|
32
|
+
readonly height: "14in";
|
|
33
|
+
};
|
|
34
|
+
readonly 'US Letter': {
|
|
35
|
+
readonly width: "8.5in";
|
|
36
|
+
readonly height: "11in";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -103,6 +103,26 @@ export interface DynamicDataTableProps {
|
|
|
103
103
|
striping_color?: string | null;
|
|
104
104
|
striping_start_from_first?: boolean;
|
|
105
105
|
}
|
|
106
|
+
export interface CustomDataTableHierarchyLevel {
|
|
107
|
+
type: 'group' | 'data';
|
|
108
|
+
path: string;
|
|
109
|
+
group_by_key?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface CustomDataTableProps {
|
|
112
|
+
hierarchy: CustomDataTableHierarchyLevel[];
|
|
113
|
+
columns: DynamicDatatableProperty[];
|
|
114
|
+
header_path?: string;
|
|
115
|
+
footer_path?: string;
|
|
116
|
+
filters?: DynamicDatatableFilter[];
|
|
117
|
+
theme?: {
|
|
118
|
+
background_color?: string | null;
|
|
119
|
+
group_header_color?: string | null;
|
|
120
|
+
font_family?: string;
|
|
121
|
+
};
|
|
122
|
+
enable_row_striping?: boolean;
|
|
123
|
+
striping_color?: string | null;
|
|
124
|
+
striping_start_from_first?: boolean;
|
|
125
|
+
}
|
|
106
126
|
export interface TextProps {
|
|
107
127
|
content?: string;
|
|
108
128
|
}
|
|
@@ -296,7 +316,7 @@ export interface TimelineProps {
|
|
|
296
316
|
events: TimelineEvent[];
|
|
297
317
|
layout: 'vertical' | 'horizontal';
|
|
298
318
|
}
|
|
299
|
-
type AvailableComponentProps = GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | PageBreakProps | PageProps | TimelineProps | CollectionPlayerProps;
|
|
319
|
+
type AvailableComponentProps = GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | PageBreakProps | PageProps | TimelineProps | CollectionPlayerProps | DynamicDataTableProps | CustomDataTableProps;
|
|
300
320
|
export interface ComponentNodeVisible {
|
|
301
321
|
edit_mode: boolean;
|
|
302
322
|
presentation_mode: boolean;
|
|
@@ -392,6 +412,7 @@ export declare enum ComponentTypes {
|
|
|
392
412
|
Carousel = "Carousel",
|
|
393
413
|
CollectionPlayer = "CollectionPlayer",
|
|
394
414
|
ContentGrid = "ContentGrid",
|
|
415
|
+
CustomDataTable = "CustomDataTable",
|
|
395
416
|
DataCharts = "DataCharts",
|
|
396
417
|
DynamicDataTable = "DynamicDataTable",
|
|
397
418
|
Embeddable = "Embeddable",
|
|
@@ -416,6 +437,7 @@ export declare const ComponentIcon: {
|
|
|
416
437
|
readonly Collection: "rectangle-history-circle-plus";
|
|
417
438
|
readonly CollectionPlayer: "regular-rectangle-history-circle-play";
|
|
418
439
|
readonly ContentGrid: "files";
|
|
440
|
+
readonly CustomDataTable: "table-tree";
|
|
419
441
|
readonly DataCharts: "chart-line";
|
|
420
442
|
readonly DynamicDataTable: "regular-table-circle-bolt";
|
|
421
443
|
readonly Embeddable: "browser";
|
|
@@ -436,6 +458,11 @@ export declare const ComponentIcon: {
|
|
|
436
458
|
readonly Video: "video";
|
|
437
459
|
};
|
|
438
460
|
export declare const componentIconType: Record<string, FontAwesomeType>;
|
|
461
|
+
export interface CanvasPdfDimensions {
|
|
462
|
+
preset?: 'A4' | 'A3' | 'A5' | 'B3' | 'B4' | 'B5' | 'US Legal' | 'US Letter' | 'Custom';
|
|
463
|
+
width?: string;
|
|
464
|
+
height?: string;
|
|
465
|
+
}
|
|
439
466
|
export type CanvasTheme = {
|
|
440
467
|
background_video_url?: string;
|
|
441
468
|
canvas_bg_color?: string;
|
|
@@ -453,6 +480,7 @@ export type CanvasTheme = {
|
|
|
453
480
|
inherit_theme_from_parent?: boolean;
|
|
454
481
|
logo?: CanvasThemeAsset | null;
|
|
455
482
|
assets?: CanvasThemeAsset[];
|
|
483
|
+
pdf_dimensions?: CanvasPdfDimensions;
|
|
456
484
|
};
|
|
457
485
|
export declare enum CanvasBuilderMode {
|
|
458
486
|
ADMIN = "admin",
|
|
@@ -25,13 +25,13 @@ export declare function addCanvasComponent(currentContent: ComponentNode[], add:
|
|
|
25
25
|
withChildren?: ComponentNode['children'];
|
|
26
26
|
withExtraNodeData?: Partial<ComponentNode>;
|
|
27
27
|
}): {
|
|
28
|
-
newContent: ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[];
|
|
28
|
+
newContent: ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[];
|
|
29
29
|
newComponentId: null;
|
|
30
30
|
} | {
|
|
31
|
-
newContent: ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[];
|
|
31
|
+
newContent: ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[];
|
|
32
32
|
newComponentId: string;
|
|
33
33
|
};
|
|
34
|
-
export declare function getAllPages(canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, isEditMode?: boolean): ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[][];
|
|
34
|
+
export declare function getAllPages(canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, isEditMode?: boolean): ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[][];
|
|
35
35
|
export declare function getPageQuantity(canvasContent: ComponentNode[][]): number;
|
|
36
36
|
export declare const getPageRange: (canvasContent: ComponentNode[], currentEmbedLocation: EmbedLocation, start?: number, end?: number) => ComponentNode[][];
|
|
37
37
|
export declare function scrollCanvasToTop(): void;
|
|
@@ -49,7 +49,7 @@ export declare function findAllEmbeddableTypesInCanvasContent(componentNodesById
|
|
|
49
49
|
export declare function findAllEmbeddableTypesInSectionsContent(sectionComponentNodesBySectionId: UnwrapRef<SectionComponentNodesBySectionId>): Set<string>;
|
|
50
50
|
export declare function findEmbeddableInCanvasContent(componentNodesById: UnwrapRef<ComponentNodesById>, appName: string): FoundComponent;
|
|
51
51
|
export declare function scrollToComponentById(id: ComponentNode['id'] | null | undefined, sectionId?: string, sectionIndex?: number, instant?: boolean, delay?: number): void;
|
|
52
|
-
export declare function updateFirstContentGridWithShareboxItems(canvasContent: ComponentNode[], selectedItems: (SelectedFile | SelectedPage)[], filesById: Record<FileRetrieve['id'], FileRetrieve>): ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps>[];
|
|
52
|
+
export declare function updateFirstContentGridWithShareboxItems(canvasContent: ComponentNode[], selectedItems: (SelectedFile | SelectedPage)[], filesById: Record<FileRetrieve['id'], FileRetrieve>): ComponentNode<CollectionPlayer | GridProps | GridItemProps | TextProps | CarouselProps | MultimediaProps | EmbeddableProps | ContentGridProps | SectionListProps | HtmlProps | IFrameProps | LinkProps | import('../types/canvas').PageBreakProps | import('../types/canvas').PageProps | import('../types/canvas').TimelineProps | import('../types/canvas').DynamicDataTableProps | import('../types/canvas').CustomDataTableProps>[];
|
|
53
53
|
export declare function handleThemeAssetComparison(key: string | symbol | number, objValue: any, othValue: any, object: any, other: any, fileProps: string[], isEqual: (obj1: any, obj2: any) => boolean, componentsWithThemeMeta?: Set<string>): boolean | undefined;
|
|
54
54
|
export declare function applyCanvasThemeAssetsToNode(node: ComponentNode): ComponentNode;
|
|
55
55
|
export declare function processCanvasForSectionThemeOverride(canvas: CanvasRetrieve, maintainSectionTheme: boolean): CanvasRetrieve;
|
|
@@ -2,23 +2,16 @@ export declare function replaceThemePresetsWithInlineStyles(htmlContent: string,
|
|
|
2
2
|
/**
|
|
3
3
|
* Converts a measurement value to pixels.
|
|
4
4
|
* If the value is a number, it's assumed to be in pixels.
|
|
5
|
-
* If it's a string, it must include a unit (mm, cm, in, px, pt, pc).
|
|
5
|
+
* If it's a string, it must include a Gotenberg-supported unit (mm, cm, in, px, pt, pc).
|
|
6
6
|
* Supports both comma and period as decimal separators (e.g., "10.5mm" or "10,5mm").
|
|
7
7
|
*
|
|
8
|
-
* Conversion rates:
|
|
9
|
-
* - 1 inch = 96 pixels (CSS standard)
|
|
10
|
-
* - 1 cm = 37.795275591 pixels
|
|
11
|
-
* - 1 mm = 3.7795275591 pixels
|
|
12
|
-
* - 1 pt = 1.333333 pixels
|
|
13
|
-
* - 1 pc = 16 pixels
|
|
14
|
-
*
|
|
15
8
|
* @param value - Number in pixels or string with unit (e.g., "1000mm", "100,5cm", "4.5in", "96px", "72pt", "6pc")
|
|
16
9
|
* @returns Value in pixels
|
|
17
10
|
*/
|
|
18
11
|
export declare function convertToPixels(value: number | string | undefined): number | undefined;
|
|
19
12
|
/**
|
|
20
13
|
* Formats a dimension value for Gotenberg PDF conversion.
|
|
21
|
-
* If the value is a string with units (mm, cm, in, px, pt, pc), normalizes it to use period as decimal separator.
|
|
14
|
+
* If the value is a string with Gotenberg-supported units (mm, cm, in, px, pt, pc), normalizes it to use period as decimal separator.
|
|
22
15
|
* If it's a number, appends "px" since the convention is that numbers represent pixels.
|
|
23
16
|
* Supports both comma and period as decimal separators (e.g., "10.5mm" or "10,5mm").
|
|
24
17
|
*
|