@useinsider/guido 3.28.1-beta.c5eeeb7 → 3.28.1-beta.d3309a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +10 -0
  2. package/dist/@types/config/schemas.js +142 -129
  3. package/dist/@types/display-condition.js +45 -21
  4. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +25 -19
  5. package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +77 -55
  6. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +1 -1
  7. package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +62 -43
  8. package/dist/components/organisms/display-conditions/LogicBuilderConnector.vue.js +18 -0
  9. package/dist/components/organisms/display-conditions/LogicBuilderConnector.vue2.js +25 -0
  10. package/dist/components/organisms/display-conditions/LogicBuilderField.vue.js +28 -0
  11. package/dist/components/organisms/display-conditions/LogicBuilderField.vue2.js +28 -0
  12. package/dist/components/organisms/display-conditions/LogicBuilderGroup.vue.js +30 -0
  13. package/dist/components/organisms/display-conditions/LogicBuilderGroup.vue2.js +32 -0
  14. package/dist/components/organisms/display-conditions/LogicBuilderRow.vue.js +28 -0
  15. package/dist/components/organisms/display-conditions/LogicBuilderRow.vue2.js +60 -0
  16. package/dist/composables/useDisplayConditions.js +83 -68
  17. package/dist/composables/useScrollToInvalid.js +15 -0
  18. package/dist/config/migrator/itemsBlockMigrator.js +187 -186
  19. package/dist/enums/html-validator.js +1 -1
  20. package/dist/extensions/DisplayConditions/constants.js +19 -10
  21. package/dist/extensions/DisplayConditions/control.js +120 -99
  22. package/dist/extensions/DisplayConditions/display-conditions.css.js +58 -6
  23. package/dist/extensions/DisplayConditions/extension.js +18 -14
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/valibot/dist/index.js +118 -102
  26. package/dist/package.json.js +6 -6
  27. package/dist/services/displayConditionApi.js +18 -19
  28. package/dist/src/@types/config/schemas.d.ts +65 -0
  29. package/dist/src/@types/display-condition.d.ts +67 -0
  30. package/dist/src/components/organisms/display-conditions/LogicBuilderConnector.vue.d.ts +19 -0
  31. package/dist/src/components/organisms/display-conditions/LogicBuilderField.vue.d.ts +22 -0
  32. package/dist/src/components/organisms/display-conditions/LogicBuilderGroup.vue.d.ts +24 -0
  33. package/dist/src/components/organisms/display-conditions/LogicBuilderRow.vue.d.ts +25 -0
  34. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  35. package/dist/src/composables/useConfig.d.ts +42 -2
  36. package/dist/src/composables/useDisplayConditions.d.ts +1 -1
  37. package/dist/src/composables/useScrollToInvalid.d.ts +6 -0
  38. package/dist/src/extensions/DisplayConditions/constants.d.ts +2 -0
  39. package/dist/src/extensions/DisplayConditions/control.d.ts +1 -0
  40. package/dist/src/stores/config.d.ts +441 -21
  41. package/dist/src/utils/displayConditionBuilder.d.ts +29 -0
  42. package/dist/src/utils/displayConditionRules.d.ts +12 -0
  43. package/dist/src/utils/displayConditionSummary.d.ts +11 -0
  44. package/dist/utils/displayConditionBuilder.js +50 -0
  45. package/dist/utils/displayConditionRules.js +91 -0
  46. package/dist/utils/displayConditionSummary.js +28 -0
  47. package/package.json +1 -1
@@ -235,6 +235,29 @@ export declare const TemplateMigrationSchema: v.ObjectSchema<{
235
235
  readonly isPriceDeletedForZeroSale: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
236
236
  }, undefined>, undefined>, {}>;
237
237
  }, undefined>;
238
+ /**
239
+ * Attributes offered by the display-condition Logic Builder, grouped as in the property menu
240
+ */
241
+ export declare const DisplayConditionAttributesSchema: v.ObjectSchema<{
242
+ readonly custom: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
243
+ key: string;
244
+ label: string;
245
+ type: "string" | "number" | "boolean" | "date" | "strings";
246
+ options: {
247
+ label: string;
248
+ value: string;
249
+ }[];
250
+ }[]>]>, readonly []>;
251
+ readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
252
+ key: string;
253
+ label: string;
254
+ type: "string" | "number" | "boolean" | "date" | "strings";
255
+ options: {
256
+ label: string;
257
+ value: string;
258
+ }[];
259
+ }[]>]>, readonly []>;
260
+ }, undefined>;
238
261
  /**
239
262
  * Template configuration - initial content and preselected values
240
263
  */
@@ -266,6 +289,27 @@ export declare const TemplateSchema: v.ObjectSchema<{
266
289
  readonly dynamicContentList: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithFallback<v.ArraySchema<v.GenericSchema<DynamicContentNode>, undefined>, readonly []>, undefined>, {}>;
267
290
  /** Valid custom field attribute names from the partner's categorized fields */
268
291
  readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
292
+ /** Attributes the display-condition Logic Builder offers (`ui.externalDisplayConditions`) */
293
+ readonly displayConditionAttributes: v.OptionalSchema<v.ObjectSchema<{
294
+ readonly custom: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
295
+ key: string;
296
+ label: string;
297
+ type: "string" | "number" | "boolean" | "date" | "strings";
298
+ options: {
299
+ label: string;
300
+ value: string;
301
+ }[];
302
+ }[]>]>, readonly []>;
303
+ readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
304
+ key: string;
305
+ label: string;
306
+ type: "string" | "number" | "boolean" | "date" | "strings";
307
+ options: {
308
+ label: string;
309
+ value: string;
310
+ }[];
311
+ }[]>]>, readonly []>;
312
+ }, undefined>, {}>;
269
313
  /** Selected unsubscribe page IDs */
270
314
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
271
315
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
@@ -708,6 +752,27 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
708
752
  readonly dynamicContentList: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithFallback<v.ArraySchema<v.GenericSchema<DynamicContentNode>, undefined>, readonly []>, undefined>, {}>;
709
753
  /** Valid custom field attribute names from the partner's categorized fields */
710
754
  readonly customFieldAttributes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
755
+ /** Attributes the display-condition Logic Builder offers (`ui.externalDisplayConditions`) */
756
+ readonly displayConditionAttributes: v.OptionalSchema<v.ObjectSchema<{
757
+ readonly custom: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
758
+ key: string;
759
+ label: string;
760
+ type: "string" | "number" | "boolean" | "date" | "strings";
761
+ options: {
762
+ label: string;
763
+ value: string;
764
+ }[];
765
+ }[]>]>, readonly []>;
766
+ readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithFallback<v.ArraySchema<v.UnknownSchema, undefined>, readonly []>, v.TransformAction<unknown[], {
767
+ key: string;
768
+ label: string;
769
+ type: "string" | "number" | "boolean" | "date" | "strings";
770
+ options: {
771
+ label: string;
772
+ value: string;
773
+ }[];
774
+ }[]>]>, readonly []>;
775
+ }, undefined>, {}>;
711
776
  /** Selected unsubscribe page IDs */
712
777
  readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
713
778
  /** Force recreate template in Stripo storage (use true when updating externally modified templates) */
@@ -1,6 +1,64 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const DisplayConditionSyntaxSchema: v.PicklistSchema<["liquid", "pongo"], undefined>;
3
3
  export declare const DisplayConditionMethodSchema: v.PicklistSchema<["codeOnly", "logicBuilder"], undefined>;
4
+ export declare const AttributeTypeSchema: v.PicklistSchema<["string", "number", "boolean", "date", "strings"], undefined>;
5
+ export declare const LogicOperatorSchema: v.PicklistSchema<["and", "or"], undefined>;
6
+ export declare const RuleOperatorSchema: v.PicklistSchema<["is", "isNot", "contains", "notContains", "isOneOf", "isNotOneOf"], undefined>;
7
+ export declare const DisplayConditionAttributeSchema: v.ObjectSchema<{
8
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
9
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
10
+ readonly type: v.OptionalSchema<v.PicklistSchema<["string", "number", "boolean", "date", "strings"], undefined>, "string">;
11
+ readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
12
+ readonly label: v.StringSchema<undefined>;
13
+ readonly value: v.StringSchema<undefined>;
14
+ }, undefined>, undefined>, readonly []>;
15
+ }, undefined>;
16
+ export declare const RuleSchema: v.ObjectSchema<{
17
+ readonly attribute: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
18
+ readonly type: v.PicklistSchema<["string", "number", "boolean", "date", "strings"], undefined>;
19
+ readonly operator: v.PicklistSchema<["is", "isNot", "contains", "notContains", "isOneOf", "isNotOneOf"], undefined>;
20
+ readonly values: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
21
+ }, undefined>;
22
+ export declare const RuleGroupSchema: v.ObjectSchema<{
23
+ readonly condition: v.PicklistSchema<["and", "or"], undefined>;
24
+ readonly rules: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
25
+ readonly attribute: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
26
+ readonly type: v.PicklistSchema<["string", "number", "boolean", "date", "strings"], undefined>;
27
+ readonly operator: v.PicklistSchema<["is", "isNot", "contains", "notContains", "isOneOf", "isNotOneOf"], undefined>;
28
+ readonly values: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
29
+ }, undefined>, undefined>, v.MinLengthAction<{
30
+ attribute: string;
31
+ type: "string" | "number" | "boolean" | "date" | "strings";
32
+ operator: "is" | "isNot" | "contains" | "notContains" | "isOneOf" | "isNotOneOf";
33
+ values: string[];
34
+ }[], 1, undefined>]>;
35
+ }, undefined>;
36
+ export declare const RuleTreeSchema: v.ObjectSchema<{
37
+ readonly version: v.LiteralSchema<1, undefined>;
38
+ readonly condition: v.PicklistSchema<["and", "or"], undefined>;
39
+ readonly groups: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
40
+ readonly condition: v.PicklistSchema<["and", "or"], undefined>;
41
+ readonly rules: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
42
+ readonly attribute: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
43
+ readonly type: v.PicklistSchema<["string", "number", "boolean", "date", "strings"], undefined>;
44
+ readonly operator: v.PicklistSchema<["is", "isNot", "contains", "notContains", "isOneOf", "isNotOneOf"], undefined>;
45
+ readonly values: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
46
+ }, undefined>, undefined>, v.MinLengthAction<{
47
+ attribute: string;
48
+ type: "string" | "number" | "boolean" | "date" | "strings";
49
+ operator: "is" | "isNot" | "contains" | "notContains" | "isOneOf" | "isNotOneOf";
50
+ values: string[];
51
+ }[], 1, undefined>]>;
52
+ }, undefined>, undefined>, v.MinLengthAction<{
53
+ condition: "and" | "or";
54
+ rules: {
55
+ attribute: string;
56
+ type: "string" | "number" | "boolean" | "date" | "strings";
57
+ operator: "is" | "isNot" | "contains" | "notContains" | "isOneOf" | "isNotOneOf";
58
+ values: string[];
59
+ }[];
60
+ }[], 1, undefined>]>;
61
+ }, undefined>;
4
62
  export declare const SavedDisplayConditionSchema: v.ObjectSchema<{
5
63
  readonly id: v.NumberSchema<undefined>;
6
64
  readonly name: v.StringSchema<undefined>;
@@ -33,11 +91,20 @@ export type DisplayConditionSyntax = v.InferOutput<typeof DisplayConditionSyntax
33
91
  export type DisplayConditionMethod = v.InferOutput<typeof DisplayConditionMethodSchema>;
34
92
  export type SavedDisplayCondition = v.InferOutput<typeof SavedDisplayConditionSchema>;
35
93
  export type DisplayConditionListResponse = v.InferOutput<typeof DisplayConditionListResponseSchema>;
94
+ export type AttributeType = v.InferOutput<typeof AttributeTypeSchema>;
95
+ export type LogicOperator = v.InferOutput<typeof LogicOperatorSchema>;
96
+ export type RuleOperator = v.InferOutput<typeof RuleOperatorSchema>;
97
+ export type DisplayConditionAttribute = v.InferOutput<typeof DisplayConditionAttributeSchema>;
98
+ export type Rule = v.InferOutput<typeof RuleSchema>;
99
+ export type RuleGroup = v.InferOutput<typeof RuleGroupSchema>;
100
+ export type RuleTree = v.InferOutput<typeof RuleTreeSchema>;
36
101
  export interface DisplayConditionDraft {
37
102
  name: string;
38
103
  description: string;
104
+ method: DisplayConditionMethod;
39
105
  codeBefore: string;
40
106
  codeAfter: string;
107
+ rules: RuleTree | null;
41
108
  }
42
109
  /** Mirrors Stripo's `DisplayCondition`; kept local so Vue code does not import the Stripo package. */
43
110
  export interface AppliedDisplayCondition {
@@ -0,0 +1,19 @@
1
+ import type { LogicOperator } from '@@/Types/display-condition';
2
+ type __VLS_Props = {
3
+ id: string;
4
+ value: LogicOperator;
5
+ disabled?: boolean;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
8
+ input: (value: "and" | "or") => void;
9
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToOption<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,22 @@
1
+ import type { DisplayConditionAttribute } from '@@/Types/display-condition';
2
+ import type { BuilderState } from '@@/Utils/displayConditionBuilder';
3
+ type __VLS_Props = {
4
+ value: BuilderState;
5
+ showErrors: boolean;
6
+ customAttributes: DisplayConditionAttribute[];
7
+ defaultAttributes: DisplayConditionAttribute[];
8
+ disabled?: boolean;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
11
+ input: (value: BuilderState) => void;
12
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToOption<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,24 @@
1
+ import type { DisplayConditionAttribute } from '@@/Types/display-condition';
2
+ import type { BuilderGroup } from '@@/Utils/displayConditionBuilder';
3
+ type __VLS_Props = {
4
+ group: BuilderGroup;
5
+ showErrors: boolean;
6
+ customAttributes: DisplayConditionAttribute[];
7
+ defaultAttributes: DisplayConditionAttribute[];
8
+ disabled?: boolean;
9
+ soleGroup?: boolean;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
12
+ update: (group: BuilderGroup) => void;
13
+ remove: () => void;
14
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToOption<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
@@ -0,0 +1,25 @@
1
+ import type { DisplayConditionAttribute } from '@@/Types/display-condition';
2
+ import type { BuilderRow, RowErrors } from '@@/Utils/displayConditionBuilder';
3
+ type __VLS_Props = {
4
+ row: BuilderRow;
5
+ errors: RowErrors;
6
+ customAttributes: DisplayConditionAttribute[];
7
+ defaultAttributes: DisplayConditionAttribute[];
8
+ disabled?: boolean;
9
+ removeDisabled?: boolean;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
12
+ update: (row: BuilderRow) => void;
13
+ duplicate: () => void;
14
+ remove: () => void;
15
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToOption<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -35,8 +35,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
35
35
  closeOnOutsideClick: boolean;
36
36
  footerStatus: boolean;
37
37
  }>>>, {
38
- size: "X-small" | "small" | "medium" | "large";
39
38
  description: string;
39
+ size: "X-small" | "small" | "medium" | "large";
40
40
  state: "default" | "primary" | "warning" | "danger";
41
41
  footerButtonOptions: FooterButtonGroup;
42
42
  closeButtonStatus: boolean;
@@ -17,7 +17,7 @@ export declare const useConfig: () => {
17
17
  partner: {
18
18
  name: string;
19
19
  productType: 60 | 49 | 97;
20
- messageType: 1 | 2;
20
+ messageType: 2 | 1;
21
21
  username: string;
22
22
  fallbackFont?: {
23
23
  name: string;
@@ -40,6 +40,26 @@ export declare const useConfig: () => {
40
40
  [x: string]: import("../library").DynamicContentNode[];
41
41
  };
42
42
  customFieldAttributes: string[];
43
+ displayConditionAttributes: {
44
+ custom: {
45
+ key: string;
46
+ label: string;
47
+ type: "string" | "number" | "boolean" | "date" | "strings";
48
+ options: {
49
+ label: string;
50
+ value: string;
51
+ }[];
52
+ }[];
53
+ default: {
54
+ key: string;
55
+ label: string;
56
+ type: "string" | "number" | "boolean" | "date" | "strings";
57
+ options: {
58
+ label: string;
59
+ value: string;
60
+ }[];
61
+ }[];
62
+ };
43
63
  selectedUnsubscribePages: number[];
44
64
  forceRecreate: boolean;
45
65
  trackIdCounter: number;
@@ -161,7 +181,7 @@ export declare const useConfig: () => {
161
181
  partner: import("vue").ComputedRef<{
162
182
  name: string;
163
183
  productType: 60 | 49 | 97;
164
- messageType: 1 | 2;
184
+ messageType: 2 | 1;
165
185
  username: string;
166
186
  fallbackFont?: {
167
187
  name: string;
@@ -184,6 +204,26 @@ export declare const useConfig: () => {
184
204
  [x: string]: import("../library").DynamicContentNode[];
185
205
  };
186
206
  customFieldAttributes: string[];
207
+ displayConditionAttributes: {
208
+ custom: {
209
+ key: string;
210
+ label: string;
211
+ type: "string" | "number" | "boolean" | "date" | "strings";
212
+ options: {
213
+ label: string;
214
+ value: string;
215
+ }[];
216
+ }[];
217
+ default: {
218
+ key: string;
219
+ label: string;
220
+ type: "string" | "number" | "boolean" | "date" | "strings";
221
+ options: {
222
+ label: string;
223
+ value: string;
224
+ }[];
225
+ }[];
226
+ };
187
227
  selectedUnsubscribePages: number[];
188
228
  forceRecreate: boolean;
189
229
  trackIdCounter: number;
@@ -1,5 +1,5 @@
1
1
  import type { DisplayConditionDraft, DisplayConditionOpenDetail, SavedDisplayCondition } from '@@/Types/display-condition';
2
- export type DraftField = keyof DisplayConditionDraft;
2
+ export type DraftField = 'name' | 'description' | 'codeBefore' | 'codeAfter';
3
3
  export type DraftErrors = Partial<Record<DraftField, string>>;
4
4
  export type CreateIntent = 'inline' | 'save';
5
5
  export declare const DISPLAY_CONDITIONS_TRANS_KEY = "email-editor.display-conditions";
@@ -0,0 +1,6 @@
1
+ import { type Ref } from 'vue';
2
+ export declare const INVALID_FIELD_ATTR = "data-guido-invalid";
3
+ export declare const invalidFieldAttrs: (invalid: unknown) => Record<string, string>;
4
+ export declare const useScrollToInvalid: (container: Ref<HTMLElement | null | undefined>) => {
5
+ scrollToFirstInvalid: () => Promise<boolean>;
6
+ };
@@ -21,3 +21,5 @@ export declare const CONDITION_BUTTONS: {
21
21
  export declare const BUILT_IN_CONDITION_CONTROLS: string[];
22
22
  export declare const EMPTY_DESCRIPTION: string;
23
23
  export declare const APPLIED_DESCRIPTION: string;
24
+ export declare const RULES_INTRO = "Show this block if recipient meet the condition below";
25
+ export declare const OPERATOR_LABELS: Record<string, string>;
@@ -21,5 +21,6 @@ export declare class DisplayConditionsControl extends CommonControl {
21
21
  private teardown;
22
22
  private observeCodeSize;
23
23
  private paint;
24
+ private renderRules;
24
25
  private collapsedHeight;
25
26
  }