@webx-ui/module-blocks 0.9.2 → 0.9.3

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.
@@ -11,19 +11,23 @@ type __VLS_Props = {
11
11
  catalog: BlockType[];
12
12
  parentKey?: string | null;
13
13
  field?: string | null;
14
+ /** The field this level is, for its allow-list and limit; none at the top. */
15
+ fieldNode?: ScreenNode | null;
16
+ /** How many blocks this level takes; a nested level reads it off its slot. */
17
+ max?: number | null;
14
18
  selected?: string | null;
15
19
  disabled?: boolean;
16
20
  depth?: number;
17
21
  };
18
22
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- add: (parentKey: string | null, field: string | null, node: ScreenNode | null) => any;
23
+ add: (parentKey: string | null, field: string | null, node: ScreenNode | null, index?: number | undefined) => any;
20
24
  remove: (key: string) => any;
21
25
  duplicate: (key: string) => any;
22
26
  select: (key: string) => any;
23
27
  visibility: (key: string, hidden: boolean) => any;
24
28
  reorder: (parentKey: string | null, field: string | null, list: BlockNode[]) => any;
25
29
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onAdd?: ((parentKey: string | null, field: string | null, node: ScreenNode | null) => any) | undefined;
30
+ onAdd?: ((parentKey: string | null, field: string | null, node: ScreenNode | null, index?: number | undefined) => any) | undefined;
27
31
  onRemove?: ((key: string) => any) | undefined;
28
32
  onDuplicate?: ((key: string) => any) | undefined;
29
33
  onSelect?: ((key: string) => any) | undefined;
@@ -33,7 +37,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
33
37
  field: string | null;
34
38
  disabled: boolean;
35
39
  depth: number;
40
+ max: number | null;
36
41
  selected: string | null;
37
42
  parentKey: string | null;
43
+ fieldNode: ScreenNode | null;
38
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
39
45
  export default _default;