@cntrl-site/components 1.0.1-alpha.3 → 1.0.1-alpha.5

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.
@@ -7,7 +7,6 @@ export type SchemaProperty = {
7
7
  type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'fields' | readonly ['string', 'null'];
8
8
  scope?: PropertyScope;
9
9
  title?: string;
10
- /** Hint / placeholder for text-style controls */
11
10
  message?: string;
12
11
  icon?: string;
13
12
  tooltip?: string;
@@ -45,11 +44,27 @@ export type LayoutPaletteBookmark = {
45
44
  items: string[];
46
45
  };
47
46
  export type LayoutItem = string | LayoutRow | LayoutGroup | LayoutSwitcher | LayoutAccordion | LayoutPaletteBookmark;
47
+ export type SchemaDisplayRule = {
48
+ if: {
49
+ name: string;
50
+ value: unknown;
51
+ isNotEqual?: boolean;
52
+ } | Array<{
53
+ name: string;
54
+ value: unknown;
55
+ isNotEqual?: boolean;
56
+ }>;
57
+ then: {
58
+ name: string;
59
+ value: unknown;
60
+ };
61
+ };
48
62
  export type SchemaSection = {
49
63
  sizing?: string;
50
64
  properties: Record<string, SchemaProperty>;
51
65
  layout?: LayoutItem[];
52
66
  defaults: Record<string, unknown>;
67
+ displayRules?: SchemaDisplayRule[];
53
68
  };
54
69
  export type SchemaPanel = {
55
70
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.1-alpha.3",
3
+ "version": "1.0.1-alpha.5",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",