lf-pagebuilder-vue 0.1.7 → 0.1.8

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.
@@ -0,0 +1,74 @@
1
+ import { PropType } from 'vue';
2
+ import { PageSection, PageParameters, SlotMeta } from '../types/pagebuilder';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ globalPageConfiguration: {
5
+ type: PropType<PageSection[]>;
6
+ required: true;
7
+ };
8
+ parametersPageConfiguration: {
9
+ type: PropType<PageParameters>;
10
+ required: true;
11
+ };
12
+ inputId: {
13
+ type: PropType<string | null>;
14
+ default: null;
15
+ };
16
+ importConfigurationFunction: {
17
+ type: PropType<(config: any) => void>;
18
+ required: true;
19
+ };
20
+ intervalMinutes: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ maxSlots: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ }>, {
29
+ showCookieToast: import('vue').Ref<boolean, boolean>;
30
+ showModal: import('vue').Ref<boolean, boolean>;
31
+ lastSavedLabel: import('vue').Ref<string, string>;
32
+ hasSavedConfig: import('vue').Ref<boolean, boolean>;
33
+ sortedSlots: import('vue').Ref<{
34
+ slotIndex: number;
35
+ savedAt: string;
36
+ }[], SlotMeta[] | {
37
+ slotIndex: number;
38
+ savedAt: string;
39
+ }[]>;
40
+ maxSlots: import('vue').ComputedRef<number>;
41
+ formatDate: (iso: string) => string;
42
+ relativeTime: (iso: string) => string;
43
+ loadSlot: (slotIndex: number) => void;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ globalPageConfiguration: {
46
+ type: PropType<PageSection[]>;
47
+ required: true;
48
+ };
49
+ parametersPageConfiguration: {
50
+ type: PropType<PageParameters>;
51
+ required: true;
52
+ };
53
+ inputId: {
54
+ type: PropType<string | null>;
55
+ default: null;
56
+ };
57
+ importConfigurationFunction: {
58
+ type: PropType<(config: any) => void>;
59
+ required: true;
60
+ };
61
+ intervalMinutes: {
62
+ type: NumberConstructor;
63
+ default: number;
64
+ };
65
+ maxSlots: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ }>> & Readonly<{}>, {
70
+ inputId: string | null;
71
+ intervalMinutes: number;
72
+ maxSlots: number;
73
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
74
+ export default _default;
@@ -1,25 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- interface PageSection {
3
- section: string;
4
- config: {
5
- width?: string;
6
- };
7
- rows: any[];
8
- }
9
- interface PageParameters {
10
- global: {
11
- sidebarEnabled: boolean;
12
- renderAsBodyPart: boolean;
13
- headSlot: string;
14
- bodyBeginSlot: string;
15
- footerSlot: string;
16
- };
17
- seo: {
18
- title: string;
19
- description: string;
20
- robots: string;
21
- };
22
- }
2
+ import { PageSection, PageParameters } from '../types/pagebuilder';
23
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
24
4
  isComponentMode: BooleanConstructor;
25
5
  fullwidthMode: BooleanConstructor;
@@ -87,5 +67,77 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
87
67
  debugMode: boolean;
88
68
  submitForm: boolean;
89
69
  allowRenderMode: "open" | "fullpage" | "onlybody";
90
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
70
+ }, {}, {
71
+ AutoSave: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
72
+ globalPageConfiguration: {
73
+ type: PropType<PageSection[]>;
74
+ required: true;
75
+ };
76
+ parametersPageConfiguration: {
77
+ type: PropType<PageParameters>;
78
+ required: true;
79
+ };
80
+ inputId: {
81
+ type: PropType<string | null>;
82
+ default: null;
83
+ };
84
+ importConfigurationFunction: {
85
+ type: PropType<(config: any) => void>;
86
+ required: true;
87
+ };
88
+ intervalMinutes: {
89
+ type: NumberConstructor;
90
+ default: number;
91
+ };
92
+ maxSlots: {
93
+ type: NumberConstructor;
94
+ default: number;
95
+ };
96
+ }>, {
97
+ showCookieToast: import('vue').Ref<boolean, boolean>;
98
+ showModal: import('vue').Ref<boolean, boolean>;
99
+ lastSavedLabel: import('vue').Ref<string, string>;
100
+ hasSavedConfig: import('vue').Ref<boolean, boolean>;
101
+ sortedSlots: import('vue').Ref<{
102
+ slotIndex: number;
103
+ savedAt: string;
104
+ }[], import('../types/pagebuilder').SlotMeta[] | {
105
+ slotIndex: number;
106
+ savedAt: string;
107
+ }[]>;
108
+ maxSlots: import('vue').ComputedRef<number>;
109
+ formatDate: (iso: string) => string;
110
+ relativeTime: (iso: string) => string;
111
+ loadSlot: (slotIndex: number) => void;
112
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
113
+ globalPageConfiguration: {
114
+ type: PropType<PageSection[]>;
115
+ required: true;
116
+ };
117
+ parametersPageConfiguration: {
118
+ type: PropType<PageParameters>;
119
+ required: true;
120
+ };
121
+ inputId: {
122
+ type: PropType<string | null>;
123
+ default: null;
124
+ };
125
+ importConfigurationFunction: {
126
+ type: PropType<(config: any) => void>;
127
+ required: true;
128
+ };
129
+ intervalMinutes: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ maxSlots: {
134
+ type: NumberConstructor;
135
+ default: number;
136
+ };
137
+ }>> & Readonly<{}>, {
138
+ inputId: string | null;
139
+ intervalMinutes: number;
140
+ maxSlots: number;
141
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
142
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
91
143
  export default _default;