webstudio 0.215.0 → 0.217.0

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/lib/cli.js CHANGED
@@ -28,9 +28,8 @@ import { parseExpressionAt } from "acorn";
28
28
  import { simple } from "acorn-walk";
29
29
  import reservedIdentifiers from "reserved-identifiers";
30
30
  import { kebabCase, camelCase } from "change-case";
31
- import "nanoid";
32
31
  import { parseFragment, defaultTreeAdapter } from "parse5";
33
- import { x as x$4 } from "tinyexec";
32
+ import { x as x$3 } from "tinyexec";
34
33
  import makeCLI from "yargs";
35
34
  const GLOBAL_CONFIG_FOLDER = envPaths("webstudio").config;
36
35
  const GLOBAL_CONFIG_FILE_NAME = "webstudio-config.json";
@@ -1670,6 +1669,7 @@ var MinusIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0
1670
1669
  var NavigationMenuIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14 7v5.833c0 .645-.597 1.167-1.333 1.167H3.333C2.597 14 2 13.478 2 12.833V7"/><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.978 2.003H2.6a.6.6 0 0 0-.6.6v1.4h11.971v-1.4a.6.6 0 0 0-.6-.6h-2.393Z"/></svg>`;
1671
1670
  var OverlayIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="#D2D2D2" d="M13.444 1H2.556C1.696 1 1 1.696 1 2.556v10.888C1 14.304 1.696 15 2.556 15h10.888c.86 0 1.556-.696 1.556-1.556V2.556C15 1.696 14.304 1 13.444 1Z"/></svg>`;
1672
1671
  var PaintBrushIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m6.04 7.933 5.38-5.373a1.9 1.9 0 1 1 2.687 2.687l-5.374 5.386M4.713 9.96c-1.106 0-2 .9-2 2.013 0 .887-1.666 1.014-1.333 1.347.72.733 1.66 1.347 2.667 1.347 1.466 0 2.666-1.2 2.666-2.694a2.007 2.007 0 0 0-2-2.013Z"/></svg>`;
1672
+ var PlayIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m4 2 9.333 6L4 14V2Z"/></svg>`;
1673
1673
  var PopoverIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14 6V4a1.334 1.334 0 0 0-1.333-1.333h-10A1.333 1.333 0 0 0 1.333 4v6.667c0 .733.6 1.333 1.334 1.333h2.666"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.333 8.667h-4C8.597 8.667 8 9.264 8 10v2c0 .736.597 1.333 1.333 1.333h4c.737 0 1.334-.597 1.334-1.333v-2c0-.736-.597-1.333-1.334-1.333Z"/></svg>`;
1674
1674
  var RadioCheckedIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z"/><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"/></svg>`;
1675
1675
  var RadioGroupIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="#000" stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M8.839 8a1.82 1.82 0 1 1-3.64 0 1.82 1.82 0 0 1 3.64 0Z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M7.019 13.027a5.027 5.027 0 1 0 0-10.054 5.027 5.027 0 0 0 0 10.054Z"/><path stroke="#000" stroke-linecap="round" d="M12.629 12.077v0a6.73 6.73 0 0 0-.337-8.565v0"/></svg>`;
@@ -1695,7 +1695,6 @@ var WebhookFormIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewB
1695
1695
  var WindowInfoIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 2H3.333C2.597 2 2 2.597 2 3.333v9.334C2 13.403 2.597 14 3.333 14h9.334c.736 0 1.333-.597 1.333-1.333V3.333C14 2.597 13.403 2 12.667 2ZM8 11.516V7.853"/><rect width="1.4" height="1.4" x="7.3" y="4.484" fill="currentColor" rx=".7"/></svg>`;
1696
1696
  var WindowTitleIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 4H3.333C2.597 4 2 4.497 2 5.111v7.778C2 13.503 2.597 14 3.333 14h9.334c.736 0 1.333-.498 1.333-1.111V5.11C14 4.497 13.403 4 12.667 4ZM4 2h8"/></svg>`;
1697
1697
  var XmlIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.163 9.02v-4L8.83 1.686h-5.5A1.333 1.333 0 0 0 1.997 3.02v6"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.164 2.186v1.667a1.333 1.333 0 0 0 1.333 1.333h2.667M1.997 11.314l3 3M4.997 11.314l-3 3M6.997 14.314v-3l1.5 1.523 1.5-1.523v3M12.163 11.314v3h1.84"/></svg>`;
1698
- var Youtube1cIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill-rule="evenodd" d="M13.47 3.299a1.771 1.771 0 0 1 1.238 1.263C15 5.675 15 8 15 8s0 2.325-.293 3.438a1.771 1.771 0 0 1-1.238 1.263C12.38 13 8 13 8 13s-4.378 0-5.47-.299a1.771 1.771 0 0 1-1.237-1.263C1 10.325 1 8 1 8s0-2.325.293-3.438A1.771 1.771 0 0 1 2.53 3.299C3.622 3 8 3 8 3s4.378 0 5.47.299Zm-3.232 4.7L6.6 10.144V5.857L10.238 8Z" clip-rule="evenodd"/></svg>`;
1699
1698
  var YoutubeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path d="M.892 11.528a18.047 18.047 0 0 1 0-7.482A1.496 1.496 0 0 1 1.94 3a37.082 37.082 0 0 1 12.12 0 1.497 1.497 0 0 1 1.048 1.047 18.046 18.046 0 0 1 0 7.482 1.497 1.497 0 0 1-1.048 1.048 37.077 37.077 0 0 1-12.12 0 1.497 1.497 0 0 1-1.048-1.048Z"/><path d="m6.5 10.3 4-2.4-4-2.4v4.8Z"/></svg>`;
1700
1699
  var AssetId = z.string();
1701
1700
  var baseAsset = {
@@ -1867,31 +1866,6 @@ var Instance = z.object({
1867
1866
  children: z.array(InstanceChild)
1868
1867
  });
1869
1868
  z.map(InstanceId, Instance);
1870
- var MatcherRelation = z.union([
1871
- z.literal("ancestor"),
1872
- z.literal("parent"),
1873
- z.literal("self"),
1874
- z.literal("child"),
1875
- z.literal("descendant")
1876
- ]);
1877
- var MatcherOperation = z.object({
1878
- $eq: z.string().optional(),
1879
- $neq: z.string().optional(),
1880
- $in: z.array(z.string()).optional(),
1881
- $nin: z.array(z.string()).optional()
1882
- });
1883
- var Matcher = z.object({
1884
- relation: MatcherRelation,
1885
- component: MatcherOperation.optional(),
1886
- tag: MatcherOperation.optional(),
1887
- text: z.literal(false).describe(
1888
- `
1889
- To disallow text editing on a container instance,
1890
- use: { relation: 'child', text: false }
1891
- `
1892
- ).optional()
1893
- });
1894
- var Matchers = z.union([Matcher, z.array(Matcher)]);
1895
1869
  var DataSourceId = z.string();
1896
1870
  var DataSourceVariableValue = z.union([
1897
1871
  z.object({
@@ -2495,91 +2469,6 @@ var PropMeta = z.union([
2495
2469
  TextContent,
2496
2470
  AnimationAction
2497
2471
  ]);
2498
- var EmbedTemplateText = z.object({
2499
- type: z.literal("text"),
2500
- value: z.string(),
2501
- placeholder: z.boolean().optional()
2502
- });
2503
- var EmbedTemplateExpression = z.object({
2504
- type: z.literal("expression"),
2505
- value: z.string()
2506
- });
2507
- var EmbedTemplateVariable = z.object({
2508
- alias: z.optional(z.string()),
2509
- initialValue: z.unknown()
2510
- });
2511
- var EmbedTemplateProp = z.union([
2512
- z.object({
2513
- type: z.literal("number"),
2514
- name: z.string(),
2515
- value: z.number()
2516
- }),
2517
- z.object({
2518
- type: z.literal("string"),
2519
- name: z.string(),
2520
- value: z.string()
2521
- }),
2522
- z.object({
2523
- type: z.literal("boolean"),
2524
- name: z.string(),
2525
- value: z.boolean()
2526
- }),
2527
- z.object({
2528
- type: z.literal("string[]"),
2529
- name: z.string(),
2530
- value: z.array(z.string())
2531
- }),
2532
- z.object({
2533
- type: z.literal("json"),
2534
- name: z.string(),
2535
- value: z.unknown()
2536
- }),
2537
- z.object({
2538
- type: z.literal("expression"),
2539
- name: z.string(),
2540
- code: z.string()
2541
- }),
2542
- z.object({
2543
- type: z.literal("parameter"),
2544
- name: z.string(),
2545
- variableName: z.string(),
2546
- variableAlias: z.optional(z.string())
2547
- }),
2548
- z.object({
2549
- type: z.literal("action"),
2550
- name: z.string(),
2551
- value: z.array(
2552
- z.object({
2553
- type: z.literal("execute"),
2554
- args: z.optional(z.array(z.string())),
2555
- code: z.string()
2556
- })
2557
- )
2558
- })
2559
- ]);
2560
- var EmbedTemplateStyleDeclRaw = z.object({
2561
- // State selector, e.g. :hover
2562
- state: z.optional(z.string()),
2563
- property: z.string(),
2564
- value: StyleValue
2565
- });
2566
- var EmbedTemplateStyleDecl = EmbedTemplateStyleDeclRaw;
2567
- var EmbedTemplateInstance = z.lazy(
2568
- () => z.object({
2569
- type: z.literal("instance"),
2570
- component: z.string(),
2571
- label: z.optional(z.string()),
2572
- variables: z.optional(z.record(z.string(), EmbedTemplateVariable)),
2573
- props: z.optional(z.array(EmbedTemplateProp)),
2574
- styles: z.optional(z.array(EmbedTemplateStyleDecl)),
2575
- children: WsEmbedTemplate
2576
- })
2577
- );
2578
- var WsEmbedTemplate = z.lazy(
2579
- () => z.array(
2580
- z.union([EmbedTemplateInstance, EmbedTemplateText, EmbedTemplateExpression])
2581
- )
2582
- );
2583
2472
  var PresetStyleDecl = z.object({
2584
2473
  // State selector, e.g. :hover
2585
2474
  state: z.optional(z.string()),
@@ -2617,6 +2506,7 @@ var defaultStates = [
2617
2506
  { selector: ":focus-visible", label: "Focus Visible" },
2618
2507
  { selector: ":focus-within", label: "Focus Within" }
2619
2508
  ];
2509
+ var ComponentContent = z.string();
2620
2510
  var ContentModel = z.object({
2621
2511
  /*
2622
2512
  * instance - accepted by any parent with "instance" in children categories
@@ -2624,23 +2514,21 @@ var ContentModel = z.object({
2624
2514
  */
2625
2515
  category: z.union([z.literal("instance"), z.literal("none")]),
2626
2516
  /**
2627
- * transparent - pass through possible children from parent
2628
- * rich-text - can be edited as rich text
2629
- * instance - other instances accepted
2630
- * ComponentName - accept specific components with none category
2517
+ * enforce direct children of category or components
2518
+ */
2519
+ children: z.array(ComponentContent),
2520
+ /**
2521
+ * enforce descendants of category or components
2631
2522
  */
2632
- children: z.array(z.string())
2523
+ descendants: z.array(ComponentContent).optional()
2633
2524
  });
2634
2525
  z.object({
2635
2526
  category: z.enum(componentCategories).optional(),
2636
- // container - can accept other components with dnd or be edited as text ..
2637
- type: z.enum(["container"]).optional(),
2638
2527
  /**
2639
2528
  * a property used as textual placeholder when no content specified while in builder
2640
2529
  * also signals to not insert components inside unless dropped explicitly
2641
2530
  */
2642
2531
  placeholder: z.string().optional(),
2643
- constraints: Matchers.optional(),
2644
2532
  contentModel: ContentModel.optional(),
2645
2533
  // when this field is specified component receives
2646
2534
  // prop with index of same components withiin specified ancestor
@@ -2719,7 +2607,6 @@ var blockMeta = {
2719
2607
  contentModel: {
2720
2608
  category: "instance",
2721
2609
  children: [blockTemplateComponent, "instance"]
2722
- // @todo prevent deleting block template
2723
2610
  }
2724
2611
  };
2725
2612
  var coreMetas = {
@@ -4166,7 +4053,9 @@ var standardAttributesToReactProps = {
4166
4053
  y: "y",
4167
4054
  ychannelselector: "yChannelSelector",
4168
4055
  z: "z",
4169
- zoomandpan: "zoomAndPan"
4056
+ zoomandpan: "zoomAndPan",
4057
+ // added by us
4058
+ dirname: "dirName"
4170
4059
  };
4171
4060
  var generateAction = ({
4172
4061
  scope,
@@ -4678,18 +4567,16 @@ const htmlToJsx = (html2) => {
4678
4567
  }
4679
4568
  return result;
4680
4569
  };
4681
- const e$5 = {
4570
+ const e$3 = {
4682
4571
  category: "general",
4683
- type: "container",
4684
4572
  description: "Slot is a container for content that you want to reference across the project. Changes made to a Slot's children will be reflected in all other instances of that Slot.",
4685
4573
  icon: SlotComponentIcon,
4686
4574
  order: 5
4687
4575
  };
4688
- const o$5 = {
4689
- type: "container",
4576
+ const o$2 = {
4690
4577
  icon: ""
4691
4578
  };
4692
- const e$4 = {
4579
+ const e$2 = {
4693
4580
  className: { required: false, control: "text", type: "string" },
4694
4581
  clientOnly: { required: false, control: "boolean", type: "boolean" },
4695
4582
  code: { required: true, control: "text", type: "string" },
@@ -4699,9 +4586,8 @@ const e$4 = {
4699
4586
  type: "boolean"
4700
4587
  }
4701
4588
  };
4702
- const r$a = {
4589
+ const r$b = {
4703
4590
  category: "general",
4704
- type: "container",
4705
4591
  label: "HTML Embed",
4706
4592
  description: "Used to add HTML code to the page, such as an SVG or script.",
4707
4593
  icon: EmbedIcon,
@@ -4725,13 +4611,13 @@ const r$a = {
4725
4611
  };
4726
4612
  ({
4727
4613
  props: {
4728
- ...e$4,
4614
+ ...e$2,
4729
4615
  clientOnly: {
4730
- ...e$4.clientOnly,
4616
+ ...e$2.clientOnly,
4731
4617
  description: "Activate it for any scripts that can mutate the DOM or introduce interactivity. This only affects the published site."
4732
4618
  },
4733
4619
  executeScriptOnCanvas: {
4734
- ...e$4.executeScriptOnCanvas,
4620
+ ...e$2.executeScriptOnCanvas,
4735
4621
  label: "Run scripts on canvas",
4736
4622
  description: "Dangerously allow script execution on canvas without switching to preview mode. This only affects build mode, but may result in unwanted side effects inside builder!"
4737
4623
  },
@@ -4745,7 +4631,6 @@ const r$a = {
4745
4631
  initialProps: ["className", "clientOnly", "executeScriptOnCanvas"]
4746
4632
  });
4747
4633
  const a$a = {
4748
- type: "container",
4749
4634
  icon: MarkdownEmbedIcon,
4750
4635
  contentModel: {
4751
4636
  category: "instance",
@@ -4802,13 +4687,13 @@ var h3 = div;
4802
4687
  var h4 = div;
4803
4688
  var h5 = div;
4804
4689
  var h6 = div;
4805
- var i$3 = div;
4690
+ var i$8 = div;
4806
4691
  var img = div;
4807
4692
  var a$9 = div;
4808
4693
  var li = div;
4809
4694
  var ul = div;
4810
4695
  var ol = div;
4811
- var p$c = div;
4696
+ var p$9 = div;
4812
4697
  var span = div;
4813
4698
  var body = [
4814
4699
  { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
@@ -4863,7 +4748,7 @@ var hr = [
4863
4748
  value: { type: "unit", unit: "px", value: 1 }
4864
4749
  }
4865
4750
  ];
4866
- var b$8 = [
4751
+ var b$7 = [
4867
4752
  {
4868
4753
  property: "font-weight",
4869
4754
  value: { type: "unit", unit: "number", value: 700 }
@@ -5132,14 +5017,12 @@ const a$8 = {
5132
5017
  }
5133
5018
  ]
5134
5019
  }, n$8 = {
5135
- type: "container",
5136
5020
  icon: BodyIcon,
5137
5021
  states: defaultStates,
5138
5022
  presetStyle: a$8
5139
5023
  };
5140
- const v$2 = {
5024
+ const v$3 = {
5141
5025
  category: "general",
5142
- type: "container",
5143
5026
  description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
5144
5027
  icon: BoxIcon,
5145
5028
  states: defaultStates,
@@ -5157,8 +5040,7 @@ const v$2 = {
5157
5040
  },
5158
5041
  order: 0
5159
5042
  };
5160
- const s$6 = {
5161
- type: "container",
5043
+ const n$7 = {
5162
5044
  icon: TextIcon,
5163
5045
  states: defaultStates,
5164
5046
  presetStyle: {
@@ -5171,8 +5053,7 @@ const s$6 = {
5171
5053
  ]
5172
5054
  }
5173
5055
  };
5174
- const d$5 = {
5175
- type: "container",
5056
+ const d$6 = {
5176
5057
  placeholder: "Heading",
5177
5058
  icon: HeadingIcon,
5178
5059
  states: defaultStates,
@@ -5185,14 +5066,13 @@ const d$5 = {
5185
5066
  h6
5186
5067
  }
5187
5068
  };
5188
- const p$b = {
5189
- p: p$c
5190
- }, n$7 = {
5191
- type: "container",
5069
+ const p$8 = {
5070
+ p: p$9
5071
+ }, c$5 = {
5192
5072
  placeholder: "Paragraph",
5193
5073
  icon: TextAlignLeftIcon,
5194
5074
  states: defaultStates,
5195
- presetStyle: p$b
5075
+ presetStyle: p$8
5196
5076
  };
5197
5077
  const a$7 = {
5198
5078
  a: [
@@ -5203,7 +5083,6 @@ const a$7 = {
5203
5083
  }
5204
5084
  ]
5205
5085
  }, n$6 = {
5206
- type: "container",
5207
5086
  placeholder: "Link",
5208
5087
  icon: LinkIcon,
5209
5088
  presetStyle: a$7,
@@ -5220,74 +5099,65 @@ const a$7 = {
5220
5099
  }
5221
5100
  ]
5222
5101
  };
5223
- const o$4 = {
5224
- ...n$6,
5225
- type: "container"
5226
- };
5227
- const s$5 = {
5102
+ const p$7 = n$6;
5103
+ const e$1 = {
5228
5104
  span
5229
5105
  }, n$5 = {
5230
- type: "container",
5231
5106
  label: "Text",
5232
5107
  icon: PaintBrushIcon,
5233
5108
  states: defaultStates,
5234
- presetStyle: s$5
5109
+ presetStyle: e$1
5235
5110
  };
5236
- const p$a = {
5237
- b: b$8
5238
- }, l$6 = {
5239
- type: "container",
5111
+ const s$5 = {
5112
+ b: b$7
5113
+ }, l$5 = {
5240
5114
  label: "Bold Text",
5241
5115
  icon: BoldIcon,
5242
5116
  states: defaultStates,
5243
- presetStyle: p$a
5117
+ presetStyle: s$5
5244
5118
  };
5245
- const i$2 = {
5119
+ const i$7 = {
5246
5120
  i: [
5247
- ...i$3,
5121
+ ...i$8,
5248
5122
  {
5249
5123
  property: "font-style",
5250
5124
  value: { type: "keyword", value: "italic" }
5251
5125
  }
5252
5126
  ]
5253
- }, c$5 = {
5254
- type: "container",
5127
+ }, m$4 = {
5255
5128
  label: "Italic Text",
5256
5129
  icon: TextItalicIcon,
5257
5130
  states: defaultStates,
5258
- presetStyle: i$2
5131
+ presetStyle: i$7
5259
5132
  };
5260
- const e$3 = {
5133
+ const s$4 = {
5261
5134
  sup
5262
5135
  }, c$4 = {
5263
- type: "container",
5264
5136
  label: "Superscript Text",
5265
5137
  icon: SuperscriptIcon,
5266
5138
  states: defaultStates,
5267
- presetStyle: e$3
5139
+ presetStyle: s$4
5268
5140
  };
5269
- const e$2 = {
5141
+ const p$6 = {
5270
5142
  sub
5271
5143
  }, c$3 = {
5272
- type: "container",
5273
5144
  label: "Subscript Text",
5274
5145
  icon: SubscriptIcon,
5275
5146
  states: defaultStates,
5276
- presetStyle: e$2
5147
+ presetStyle: p$6
5277
5148
  };
5278
- const l$5 = {
5149
+ const l$4 = {
5279
5150
  button
5280
- }, p$9 = {
5151
+ }, m$3 = {
5281
5152
  icon: ButtonElementIcon,
5282
- type: "container",
5283
- presetStyle: l$5,
5153
+ presetStyle: l$4,
5284
5154
  states: [
5285
5155
  ...defaultStates,
5286
5156
  { selector: ":disabled", label: "Disabled" },
5287
5157
  { selector: ":enabled", label: "Enabled" }
5288
5158
  ]
5289
5159
  };
5290
- const r$9 = {
5160
+ const r$a = {
5291
5161
  input: [
5292
5162
  ...input,
5293
5163
  {
@@ -5300,7 +5170,7 @@ const r$9 = {
5300
5170
  label: "Text Input",
5301
5171
  description: "A single-line text input for collecting string data from your users.",
5302
5172
  icon: FormTextFieldIcon,
5303
- presetStyle: r$9,
5173
+ presetStyle: r$a,
5304
5174
  order: 3,
5305
5175
  states: [
5306
5176
  ...defaultStates,
@@ -5319,7 +5189,6 @@ const r$9 = {
5319
5189
  const c$1 = {
5320
5190
  label: "Webhook Form",
5321
5191
  icon: WebhookFormIcon,
5322
- type: "container",
5323
5192
  presetStyle: {
5324
5193
  form
5325
5194
  },
@@ -5328,19 +5197,18 @@ const c$1 = {
5328
5197
  { selector: "[data-state=success]", label: "Success" }
5329
5198
  ]
5330
5199
  };
5331
- const s$4 = {
5200
+ const s$3 = {
5332
5201
  form: [
5333
5202
  ...form,
5334
5203
  { property: "min-height", value: { type: "unit", unit: "px", value: 20 } }
5335
5204
  ]
5336
5205
  }, n$4 = {
5337
5206
  category: "forms",
5338
- type: "container",
5339
5207
  label: "Form",
5340
5208
  description: "Create filters, surveys, searches and more.",
5341
5209
  icon: FormIcon,
5342
5210
  states: defaultStates,
5343
- presetStyle: s$4,
5211
+ presetStyle: s$3,
5344
5212
  order: 0
5345
5213
  };
5346
5214
  const a$6 = {
@@ -5365,7 +5233,7 @@ const a$6 = {
5365
5233
  value: { type: "keyword", value: "auto" }
5366
5234
  }
5367
5235
  ]
5368
- }, l$4 = {
5236
+ }, l$3 = {
5369
5237
  category: "media",
5370
5238
  description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
5371
5239
  icon: ImageIcon,
@@ -5373,7 +5241,7 @@ const a$6 = {
5373
5241
  presetStyle: a$6,
5374
5242
  order: 0
5375
5243
  };
5376
- const r$8 = {
5244
+ const r$9 = {
5377
5245
  blockquote: [
5378
5246
  {
5379
5247
  property: "margin-top",
@@ -5420,12 +5288,11 @@ const r$8 = {
5420
5288
  value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
5421
5289
  }
5422
5290
  ]
5423
- }, i$1 = {
5424
- type: "container",
5291
+ }, i$6 = {
5425
5292
  placeholder: "Blockquote",
5426
5293
  icon: BlockquoteIcon,
5427
5294
  states: defaultStates,
5428
- presetStyle: r$8
5295
+ presetStyle: r$9
5429
5296
  };
5430
5297
  const a$5 = {
5431
5298
  ol: [
@@ -5458,14 +5325,12 @@ const a$5 = {
5458
5325
  value: { type: "keyword", value: "40px" }
5459
5326
  }
5460
5327
  ]
5461
- }, d$4 = {
5462
- type: "container",
5328
+ }, d$5 = {
5463
5329
  icon: ListIcon,
5464
5330
  states: defaultStates,
5465
5331
  presetStyle: a$5
5466
5332
  };
5467
5333
  const a$4 = {
5468
- type: "container",
5469
5334
  placeholder: "List item",
5470
5335
  icon: ListItemIcon,
5471
5336
  states: defaultStates,
@@ -5473,7 +5338,7 @@ const a$4 = {
5473
5338
  li
5474
5339
  }
5475
5340
  };
5476
- const p$8 = {
5341
+ const p$5 = {
5477
5342
  hr: [
5478
5343
  ...hr,
5479
5344
  {
@@ -5506,10 +5371,10 @@ const p$8 = {
5506
5371
  description: "Used to visually divide sections of content, helping to improve readability and organization within a webpage.",
5507
5372
  icon: MinusIcon,
5508
5373
  states: defaultStates,
5509
- presetStyle: p$8,
5374
+ presetStyle: p$5,
5510
5375
  order: 3
5511
5376
  };
5512
- const p$7 = {
5377
+ const p$4 = {
5513
5378
  code: [
5514
5379
  ...code,
5515
5380
  {
@@ -5537,7 +5402,7 @@ const p$7 = {
5537
5402
  value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
5538
5403
  }
5539
5404
  ]
5540
- }, i = {
5405
+ }, i$5 = {
5541
5406
  category: "general",
5542
5407
  description: "Use this component when you want to display code as text on the page.",
5543
5408
  icon: BracesIcon,
@@ -5546,22 +5411,21 @@ const p$7 = {
5546
5411
  children: []
5547
5412
  },
5548
5413
  states: defaultStates,
5549
- presetStyle: p$7,
5414
+ presetStyle: p$4,
5550
5415
  order: 5
5551
5416
  };
5552
- const a$3 = {
5417
+ const r$8 = {
5553
5418
  label: [
5554
5419
  ...label,
5555
5420
  { property: "display", value: { type: "keyword", value: "block" } }
5556
5421
  ]
5557
- }, m$3 = {
5558
- type: "container",
5422
+ }, i$4 = {
5559
5423
  label: "Input Label",
5560
5424
  icon: LabelIcon,
5561
5425
  states: defaultStates,
5562
- presetStyle: a$3
5426
+ presetStyle: r$8
5563
5427
  };
5564
- const l$3 = {
5428
+ const l$2 = {
5565
5429
  textarea: [
5566
5430
  ...textarea,
5567
5431
  // resize doesn't work well while on canvas
@@ -5576,7 +5440,7 @@ const l$3 = {
5576
5440
  label: "Text Area",
5577
5441
  description: "A multi-line text input for collecting longer string data from your users.",
5578
5442
  icon: FormTextAreaIcon,
5579
- presetStyle: l$3,
5443
+ presetStyle: l$2,
5580
5444
  order: 4,
5581
5445
  contentModel: {
5582
5446
  category: "instance",
@@ -5596,7 +5460,7 @@ const l$3 = {
5596
5460
  //{ selector: ":read-write", label: "Read Write" },
5597
5461
  ]
5598
5462
  };
5599
- const a$2 = {
5463
+ const a$3 = {
5600
5464
  input: [
5601
5465
  ...radio,
5602
5466
  {
@@ -5604,10 +5468,10 @@ const a$2 = {
5604
5468
  value: { type: "unit", unit: "em", value: 0.5 }
5605
5469
  }
5606
5470
  ]
5607
- }, s$3 = {
5471
+ }, s$2 = {
5608
5472
  label: "Radio",
5609
5473
  icon: RadioCheckedIcon,
5610
- presetStyle: a$2,
5474
+ presetStyle: a$3,
5611
5475
  states: [
5612
5476
  ...defaultStates,
5613
5477
  { selector: ":checked", label: "Checked" },
@@ -5620,7 +5484,7 @@ const a$2 = {
5620
5484
  //{ selector: ":read-write", label: "Read Write" },
5621
5485
  ]
5622
5486
  };
5623
- const o$3 = {
5487
+ const o$1 = {
5624
5488
  input: [
5625
5489
  ...checkbox,
5626
5490
  {
@@ -5628,9 +5492,9 @@ const o$3 = {
5628
5492
  value: { type: "unit", unit: "em", value: 0.5 }
5629
5493
  }
5630
5494
  ]
5631
- }, d$3 = {
5495
+ }, d$4 = {
5632
5496
  icon: CheckboxCheckedIcon,
5633
- presetStyle: o$3,
5497
+ presetStyle: o$1,
5634
5498
  states: [
5635
5499
  ...defaultStates,
5636
5500
  { selector: ":checked", label: "Checked" },
@@ -5643,41 +5507,31 @@ const o$3 = {
5643
5507
  ]
5644
5508
  };
5645
5509
  const m$2 = {
5646
- type: "container",
5647
5510
  icon: VimeoIcon,
5648
5511
  states: defaultStates,
5649
5512
  contentModel: {
5650
5513
  category: "instance",
5651
- children: [
5652
- "instance",
5653
- "VimeoSpinner",
5654
- "VimeoPlayButton",
5655
- "VimeoPreviewImage"
5656
- ]
5514
+ children: ["instance"],
5515
+ descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
5657
5516
  },
5658
5517
  presetStyle: {
5659
5518
  div
5660
5519
  }
5661
5520
  };
5662
- const p$6 = {
5663
- type: "container",
5521
+ const p$3 = {
5664
5522
  icon: YoutubeIcon,
5665
5523
  states: defaultStates,
5666
5524
  contentModel: {
5667
5525
  category: "instance",
5668
- children: [
5669
- "instance",
5670
- "VimeoSpinner",
5671
- "VimeoPlayButton",
5672
- "VimeoPreviewImage"
5673
- ]
5526
+ children: ["instance"],
5527
+ descendants: ["VimeoSpinner", "VimeoPlayButton", "VimeoPreviewImage"]
5674
5528
  },
5675
5529
  presetStyle: {
5676
5530
  div
5677
5531
  }
5678
5532
  };
5679
- const p$5 = {
5680
- ...l$4,
5533
+ const p$2 = {
5534
+ ...l$3,
5681
5535
  category: "hidden",
5682
5536
  label: "Preview Image",
5683
5537
  contentModel: {
@@ -5685,9 +5539,8 @@ const p$5 = {
5685
5539
  children: []
5686
5540
  }
5687
5541
  };
5688
- const s$2 = {
5542
+ const m$1 = {
5689
5543
  category: "hidden",
5690
- type: "container",
5691
5544
  label: "Play Button",
5692
5545
  icon: ButtonElementIcon,
5693
5546
  states: defaultStates,
@@ -5700,7 +5553,6 @@ const s$2 = {
5700
5553
  }
5701
5554
  };
5702
5555
  const s$1 = {
5703
- type: "container",
5704
5556
  icon: BoxIcon,
5705
5557
  states: defaultStates,
5706
5558
  category: "hidden",
@@ -5713,16 +5565,14 @@ const s$1 = {
5713
5565
  div
5714
5566
  }
5715
5567
  };
5716
- const e$1 = {
5568
+ const i$3 = {
5717
5569
  category: "xml",
5718
5570
  order: 6,
5719
- type: "container",
5720
5571
  icon: XmlIcon,
5721
5572
  description: "XML Node"
5722
5573
  };
5723
- const a$1 = {
5574
+ const a$2 = {
5724
5575
  category: "xml",
5725
- type: "container",
5726
5576
  description: "Converts machine-readable date and time to ISO format.",
5727
5577
  icon: CalendarIcon,
5728
5578
  order: 7
@@ -5731,7 +5581,6 @@ const r$7 = {
5731
5581
  time
5732
5582
  }, s = {
5733
5583
  category: "localization",
5734
- type: "container",
5735
5584
  description: "Converts machine-readable date and time to a human-readable format.",
5736
5585
  icon: CalendarIcon,
5737
5586
  states: defaultStates,
@@ -5746,7 +5595,6 @@ const r$6 = {
5746
5595
  }
5747
5596
  ]
5748
5597
  }, c = {
5749
- type: "container",
5750
5598
  icon: SelectIcon,
5751
5599
  presetStyle: r$6,
5752
5600
  states: [
@@ -5758,7 +5606,7 @@ const r$6 = {
5758
5606
  { selector: ":optional", label: "Optional" }
5759
5607
  ]
5760
5608
  };
5761
- const l$2 = {
5609
+ const l$1 = {
5762
5610
  option: [
5763
5611
  {
5764
5612
  property: "background-color",
@@ -5776,7 +5624,7 @@ const l$2 = {
5776
5624
  category: "hidden",
5777
5625
  description: "An item within a drop-down menu that users can select as their chosen value.",
5778
5626
  icon: ItemIcon,
5779
- presetStyle: l$2,
5627
+ presetStyle: l$1,
5780
5628
  states: [
5781
5629
  // Applies when option is being activated (clicked)
5782
5630
  { selector: ":active", label: "Active" },
@@ -5790,36 +5638,34 @@ const l$2 = {
5790
5638
  };
5791
5639
  const r$4 = {
5792
5640
  icon: HeaderIcon,
5793
- type: "container",
5794
5641
  description: "Inserts children into the head of the document",
5795
5642
  contentModel: {
5796
5643
  category: "instance",
5797
5644
  children: ["HeadLink", "HeadMeta", "HeadTitle"]
5798
5645
  }
5799
5646
  };
5800
- const p$4 = {
5647
+ const p$1 = {
5801
5648
  icon: ResourceIcon,
5802
5649
  contentModel: {
5803
5650
  category: "none",
5804
5651
  children: []
5805
5652
  }
5806
5653
  };
5807
- const p$3 = {
5654
+ const p = {
5808
5655
  icon: WindowInfoIcon,
5809
5656
  contentModel: {
5810
5657
  category: "none",
5811
5658
  children: []
5812
5659
  }
5813
5660
  };
5814
- const p$2 = {
5661
+ const r$3 = {
5815
5662
  icon: WindowTitleIcon,
5816
- type: "container",
5817
5663
  contentModel: {
5818
5664
  category: "none",
5819
5665
  children: ["text"]
5820
5666
  }
5821
5667
  };
5822
- const p$1 = {
5668
+ const i$2 = {
5823
5669
  icon: VideoIcon,
5824
5670
  contentModel: {
5825
5671
  category: "instance",
@@ -5836,122 +5682,120 @@ const p$1 = {
5836
5682
  };
5837
5683
  const baseComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5838
5684
  __proto__: null,
5839
- Blockquote: i$1,
5685
+ Blockquote: i$6,
5840
5686
  Body: n$8,
5841
- Bold: l$6,
5842
- Box: v$2,
5843
- Button: p$9,
5844
- Checkbox: d$3,
5845
- CodeText: i,
5687
+ Bold: l$5,
5688
+ Box: v$3,
5689
+ Button: m$3,
5690
+ Checkbox: d$4,
5691
+ CodeText: i$5,
5846
5692
  Form: c$1,
5847
- Fragment: o$5,
5848
- HeadLink: p$4,
5849
- HeadMeta: p$3,
5693
+ Fragment: o$2,
5694
+ HeadLink: p$1,
5695
+ HeadMeta: p,
5850
5696
  HeadSlot: r$4,
5851
- HeadTitle: p$2,
5852
- Heading: d$5,
5853
- HtmlEmbed: r$a,
5854
- Image: l$4,
5697
+ HeadTitle: r$3,
5698
+ Heading: d$6,
5699
+ HtmlEmbed: r$b,
5700
+ Image: l$3,
5855
5701
  Input: c$2,
5856
- Italic: c$5,
5857
- Label: m$3,
5702
+ Italic: m$4,
5703
+ Label: i$4,
5858
5704
  Link: n$6,
5859
- List: d$4,
5705
+ List: d$5,
5860
5706
  ListItem: a$4,
5861
5707
  MarkdownEmbed: a$a,
5862
5708
  Option: r$5,
5863
- Paragraph: n$7,
5864
- RadioButton: s$3,
5709
+ Paragraph: c$5,
5710
+ RadioButton: s$2,
5865
5711
  RemixForm: n$4,
5866
- RichTextLink: o$4,
5712
+ RichTextLink: p$7,
5867
5713
  Select: c,
5868
5714
  Separator: n$3,
5869
- Slot: e$5,
5715
+ Slot: e$3,
5870
5716
  Span: n$5,
5871
5717
  Subscript: c$3,
5872
5718
  Superscript: c$4,
5873
- Text: s$6,
5719
+ Text: n$7,
5874
5720
  Textarea: n$2,
5875
5721
  Time: s,
5876
- Video: p$1,
5722
+ Video: i$2,
5877
5723
  Vimeo: m$2,
5878
- VimeoPlayButton: s$2,
5879
- VimeoPreviewImage: p$5,
5724
+ VimeoPlayButton: m$1,
5725
+ VimeoPreviewImage: p$2,
5880
5726
  VimeoSpinner: s$1,
5881
- XmlNode: e$1,
5882
- XmlTime: a$1,
5883
- YouTube: p$6
5727
+ XmlNode: i$3,
5728
+ XmlTime: a$2,
5729
+ YouTube: p$3
5884
5730
  }, Symbol.toStringTag, { value: "Module" }));
5885
- const o$2 = {
5886
- category: "animations",
5887
- type: "container",
5888
- description: "Animation Group component is designed to animate its children.",
5889
- icon: AnimationGroupIcon,
5890
- order: 5,
5891
- label: "Animation Group",
5892
- constraints: {
5893
- relation: "child",
5894
- text: false
5895
- }
5896
- };
5897
- const n$1 = (t2) => new Proxy(
5731
+ const n$1 = (t) => new Proxy(
5898
5732
  {},
5899
5733
  {
5900
5734
  get(o2, e2) {
5901
- return `${t2}${e2}`;
5735
+ return `${t}${e2}`;
5902
5736
  }
5903
5737
  }
5904
- ), r$3 = n$1(
5738
+ ), r$2 = n$1(
5905
5739
  "@webstudio-is/sdk-components-animation:"
5906
5740
  );
5907
- const r$2 = {
5741
+ const a$1 = {
5742
+ category: "animations",
5743
+ description: "Animation Group component is designed to animate its children.",
5744
+ icon: AnimationGroupIcon,
5745
+ order: 0,
5746
+ label: "Animation Group",
5747
+ contentModel: {
5748
+ category: "instance",
5749
+ children: [
5750
+ "instance",
5751
+ r$2.AnimateText,
5752
+ r$2.StaggerAnimation,
5753
+ r$2.VideoAnimation
5754
+ ]
5755
+ }
5756
+ };
5757
+ const a = {
5908
5758
  category: "animations",
5909
- type: "container",
5910
5759
  description: "Text animation allows you to split text by char or by word to animate it.",
5911
5760
  icon: TextAnimationIcon,
5912
- order: 6,
5761
+ order: 1,
5913
5762
  label: "Text Animation",
5914
- constraints: [
5915
- { relation: "parent", component: { $eq: r$3.AnimateChildren } },
5916
- {
5917
- relation: "child",
5918
- text: false
5919
- }
5920
- ]
5763
+ contentModel: {
5764
+ category: "none",
5765
+ children: ["instance"]
5766
+ },
5767
+ presetStyle: {
5768
+ div
5769
+ }
5921
5770
  };
5922
5771
  const r$1 = {
5923
5772
  category: "animations",
5924
- type: "container",
5925
5773
  description: "Stagger animation allows you to animate children elements with a sliding window.",
5926
5774
  icon: StaggerAnimationIcon,
5927
- order: 6,
5775
+ order: 4,
5928
5776
  label: "Stagger Animation",
5929
- constraints: [
5930
- { relation: "parent", component: { $eq: r$3.AnimateChildren } },
5931
- {
5932
- relation: "child",
5933
- text: false
5934
- }
5935
- ]
5777
+ contentModel: {
5778
+ category: "none",
5779
+ children: ["instance"]
5780
+ },
5781
+ presetStyle: {
5782
+ div
5783
+ }
5936
5784
  };
5937
- const a = {
5938
- type: "container",
5939
- icon: Youtube1cIcon,
5785
+ const i$1 = {
5786
+ icon: PlayIcon,
5940
5787
  label: "Video Animation",
5941
- constraints: [
5942
- { relation: "parent", component: { $eq: r$3.AnimateChildren } },
5943
- {
5944
- relation: "child",
5945
- text: false
5946
- }
5947
- ]
5788
+ contentModel: {
5789
+ category: "none",
5790
+ children: ["instance"]
5791
+ }
5948
5792
  };
5949
5793
  const animationComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5950
5794
  __proto__: null,
5951
- AnimateChildren: o$2,
5952
- AnimateText: r$2,
5795
+ AnimateChildren: a$1,
5796
+ AnimateText: a,
5953
5797
  StaggerAnimation: r$1,
5954
- VideoAnimation: a
5798
+ VideoAnimation: i$1
5955
5799
  }, Symbol.toStringTag, { value: "Module" }));
5956
5800
  const remixComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5957
5801
  __proto__: null,
@@ -5959,62 +5803,54 @@ const remixComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
5959
5803
  Form: c$1,
5960
5804
  Link: n$6,
5961
5805
  RemixForm: n$4,
5962
- RichTextLink: o$4
5806
+ RichTextLink: p$7
5963
5807
  }, Symbol.toStringTag, { value: "Module" }));
5964
- const r = (t2) => new Proxy(
5808
+ const r = (t) => new Proxy(
5965
5809
  {},
5966
5810
  {
5967
5811
  get(o2, e2) {
5968
- return `${t2}${e2}`;
5812
+ return `${t}${e2}`;
5969
5813
  }
5970
5814
  }
5971
5815
  ), n = r(
5972
5816
  "@webstudio-is/sdk-components-react-radix:"
5973
5817
  );
5974
- const m$1 = {
5975
- type: "container",
5976
- constraints: [
5977
- {
5978
- relation: "descendant",
5979
- component: { $eq: n.CollapsibleTrigger }
5980
- },
5981
- {
5982
- relation: "descendant",
5983
- component: { $eq: n.CollapsibleContent }
5984
- }
5985
- ],
5818
+ const g$2 = {
5819
+ icon: CollapsibleIcon,
5820
+ contentModel: {
5821
+ category: "instance",
5822
+ children: ["instance"],
5823
+ descendants: [n.CollapsibleTrigger, n.CollapsibleContent]
5824
+ },
5986
5825
  presetStyle: {
5987
5826
  div
5988
- },
5989
- icon: CollapsibleIcon
5990
- }, b$7 = {
5991
- type: "container",
5827
+ }
5828
+ }, b$6 = {
5992
5829
  icon: TriggerIcon,
5993
- constraints: {
5994
- relation: "ancestor",
5995
- component: { $eq: n.Collapsible }
5830
+ contentModel: {
5831
+ category: "none",
5832
+ children: ["instance", "rich-text"]
5996
5833
  }
5997
- }, g$2 = {
5998
- type: "container",
5834
+ }, d$3 = {
5835
+ icon: ContentIcon,
5836
+ contentModel: {
5837
+ category: "none",
5838
+ children: ["instance", "rich-text"]
5839
+ },
5999
5840
  presetStyle: {
6000
5841
  div
6001
- },
6002
- icon: ContentIcon,
6003
- constraints: {
6004
- relation: "ancestor",
6005
- component: { $eq: n.Collapsible }
6006
5842
  }
6007
5843
  };
6008
- const o$1 = (r2, t2, p2) => ({
5844
+ const o = (r2, t, p2) => ({
6009
5845
  property: r2,
6010
- value: { type: "unit", unit: p2, value: t2 }
6011
- }), e = (r2, t2) => ({
5846
+ value: { type: "unit", unit: p2, value: t }
5847
+ }), e = (r2, t) => ({
6012
5848
  property: r2,
6013
- value: { type: "keyword", value: t2 }
6014
- }), d$2 = (r2, t2, p2, l2) => ({
5849
+ value: { type: "keyword", value: t }
5850
+ }), d$2 = (r2, t, p2, l2) => ({
6015
5851
  property: r2,
6016
- value: { type: "rgb", alpha: 1, r: t2, g: p2, b: l2 }
6017
- }), b$6 = [
5852
+ value: { type: "rgb", alpha: 1, r: t, g: p2, b: l2 }
5853
+ }), b$5 = [
6018
5854
  {
6019
5855
  property: "background-color",
6020
5856
  value: { type: "keyword", value: "transparent" }
@@ -6023,10 +5859,10 @@ const o$1 = (r2, t2, p2) => ({
6023
5859
  property: "background-image",
6024
5860
  value: { type: "keyword", value: "none" }
6025
5861
  },
6026
- o$1("border-top-width", 0, "px"),
6027
- o$1("border-right-width", 0, "px"),
6028
- o$1("border-bottom-width", 0, "px"),
6029
- o$1("border-left-width", 0, "px"),
5862
+ o("border-top-width", 0, "px"),
5863
+ o("border-right-width", 0, "px"),
5864
+ o("border-bottom-width", 0, "px"),
5865
+ o("border-left-width", 0, "px"),
6030
5866
  e("border-top-style", "solid"),
6031
5867
  e("border-right-style", "solid"),
6032
5868
  e("border-bottom-style", "solid"),
@@ -6035,213 +5871,152 @@ const o$1 = (r2, t2, p2) => ({
6035
5871
  d$2("border-right-color", 226, 232, 240),
6036
5872
  d$2("border-bottom-color", 226, 232, 240),
6037
5873
  d$2("border-left-color", 226, 232, 240),
6038
- o$1("padding-top", 0, "px"),
6039
- o$1("padding-right", 0, "px"),
6040
- o$1("padding-bottom", 0, "px"),
6041
- o$1("padding-left", 0, "px")
5874
+ o("padding-top", 0, "px"),
5875
+ o("padding-right", 0, "px"),
5876
+ o("padding-bottom", 0, "px"),
5877
+ o("padding-left", 0, "px")
6042
5878
  ];
6043
- const S$1 = {
6044
- type: "container",
5879
+ const O = {
6045
5880
  icon: TriggerIcon,
6046
- constraints: {
6047
- relation: "ancestor",
6048
- component: { $eq: n.Dialog }
5881
+ contentModel: {
5882
+ category: "none",
5883
+ children: ["instance"]
6049
5884
  }
6050
- }, b$5 = {
6051
- type: "container",
5885
+ }, b$4 = {
5886
+ icon: OverlayIcon,
5887
+ contentModel: {
5888
+ category: "none",
5889
+ children: ["instance"],
5890
+ descendants: [n.DialogContent]
5891
+ },
6052
5892
  presetStyle: {
6053
5893
  div
5894
+ }
5895
+ }, B = {
5896
+ icon: ContentIcon,
5897
+ contentModel: {
5898
+ category: "none",
5899
+ children: ["instance"],
5900
+ descendants: [
5901
+ n.DialogTitle,
5902
+ n.DialogDescription,
5903
+ n.DialogClose
5904
+ ]
6054
5905
  },
6055
- icon: OverlayIcon,
6056
- constraints: [
6057
- {
6058
- relation: "ancestor",
6059
- component: { $eq: n.Dialog }
6060
- },
6061
- {
6062
- relation: "descendant",
6063
- component: { $eq: n.DialogContent }
6064
- }
6065
- ]
6066
- }, x$3 = {
6067
- type: "container",
6068
5906
  presetStyle: {
6069
5907
  div
5908
+ }
5909
+ }, E = {
5910
+ icon: HeadingIcon,
5911
+ contentModel: {
5912
+ category: "none",
5913
+ children: ["instance", "rich-text"]
6070
5914
  },
6071
- icon: ContentIcon,
6072
- constraints: [
6073
- {
6074
- relation: "ancestor",
6075
- component: { $eq: n.DialogOverlay }
6076
- },
6077
- // often deleted by users
6078
- // though radix starts throwing warnings in console
6079
- /*
6080
- {
6081
- relation: "descendant",
6082
- component: { $eq: radix.DialogTitle },
6083
- },
6084
- {
6085
- relation: "descendant",
6086
- component: { $eq: radix.DialogDescription },
6087
- },
6088
- */
6089
- {
6090
- relation: "descendant",
6091
- component: { $eq: n.DialogClose }
6092
- }
6093
- ]
6094
- }, B = {
6095
- type: "container",
6096
5915
  presetStyle: {
6097
5916
  h2
6098
- },
6099
- icon: HeadingIcon,
6100
- constraints: {
6101
- relation: "ancestor",
6102
- component: { $eq: n.DialogContent }
6103
5917
  }
6104
- }, h$1 = {
6105
- type: "container",
6106
- presetStyle: {
6107
- p: p$c
6108
- },
5918
+ }, H$1 = {
6109
5919
  icon: TextIcon,
6110
- constraints: {
6111
- relation: "ancestor",
6112
- component: { $eq: n.DialogContent }
6113
- }
6114
- }, E = {
6115
- type: "container",
6116
- presetStyle: {
6117
- button: [b$6, button].flat()
5920
+ contentModel: {
5921
+ category: "none",
5922
+ children: ["instance", "rich-text"]
6118
5923
  },
6119
- states: defaultStates,
5924
+ presetStyle: {
5925
+ p: p$9
5926
+ }
5927
+ }, R = {
6120
5928
  icon: ButtonElementIcon,
6121
5929
  label: "Close Button",
6122
- constraints: {
6123
- relation: "ancestor",
6124
- component: { $eq: n.DialogContent }
5930
+ contentModel: {
5931
+ category: "none",
5932
+ children: ["instance", "rich-text"]
5933
+ },
5934
+ states: defaultStates,
5935
+ presetStyle: {
5936
+ button: [b$5, button].flat()
6125
5937
  }
6126
- }, H$1 = {
6127
- type: "container",
5938
+ }, j = {
6128
5939
  icon: DialogIcon,
6129
- constraints: [
6130
- {
6131
- relation: "descendant",
6132
- component: { $eq: n.DialogTrigger }
6133
- },
6134
- {
6135
- relation: "descendant",
6136
- component: { $eq: n.DialogOverlay }
6137
- }
6138
- ]
5940
+ contentModel: {
5941
+ category: "instance",
5942
+ children: ["instance"],
5943
+ descendants: [n.DialogTrigger, n.DialogOverlay]
5944
+ }
6139
5945
  };
6140
- const v$1 = {
6141
- type: "container",
5946
+ const v$2 = {
6142
5947
  icon: TriggerIcon,
6143
- constraints: {
6144
- relation: "ancestor",
6145
- component: { $eq: n.Popover }
5948
+ contentModel: {
5949
+ category: "none",
5950
+ children: ["instance"]
6146
5951
  }
6147
- }, g$1 = {
6148
- type: "container",
5952
+ }, d$1 = {
5953
+ icon: ContentIcon,
5954
+ contentModel: {
5955
+ category: "none",
5956
+ children: ["instance"]
5957
+ },
6149
5958
  presetStyle: {
6150
5959
  div
6151
- },
6152
- icon: ContentIcon,
6153
- constraints: {
6154
- relation: "ancestor",
6155
- component: { $eq: n.Popover }
6156
5960
  }
6157
- }, l$1 = {
6158
- type: "container",
5961
+ }, l = {
6159
5962
  icon: PopoverIcon,
6160
- constraints: [
6161
- {
6162
- relation: "descendant",
6163
- component: { $eq: n.PopoverTrigger }
6164
- },
6165
- {
6166
- relation: "descendant",
6167
- component: { $eq: n.PopoverContent }
6168
- }
6169
- ]
5963
+ contentModel: {
5964
+ category: "instance",
5965
+ children: ["instance"],
5966
+ descendants: [n.PopoverTrigger, n.PopoverContent]
5967
+ }
6170
5968
  };
6171
- const m = {
6172
- type: "container",
5969
+ const g$1 = {
6173
5970
  icon: TriggerIcon,
6174
- constraints: {
6175
- relation: "ancestor",
6176
- component: { $eq: n.Tooltip }
5971
+ contentModel: {
5972
+ category: "none",
5973
+ children: ["instance"]
6177
5974
  }
6178
- }, g = {
6179
- type: "container",
5975
+ }, d = {
6180
5976
  icon: ContentIcon,
5977
+ contentModel: {
5978
+ category: "none",
5979
+ children: ["instance"]
5980
+ },
6181
5981
  presetStyle: {
6182
5982
  div
6183
- },
6184
- constraints: {
6185
- relation: "ancestor",
6186
- component: { $eq: n.Tooltip }
6187
5983
  }
6188
- }, d$1 = {
6189
- type: "container",
6190
- constraints: [
6191
- {
6192
- relation: "descendant",
6193
- component: { $eq: n.TooltipTrigger }
6194
- },
6195
- {
6196
- relation: "descendant",
6197
- component: { $eq: n.TooltipContent }
6198
- }
6199
- ],
6200
- icon: TooltipIcon
5984
+ }, m = {
5985
+ icon: TooltipIcon,
5986
+ contentModel: {
5987
+ category: "instance",
5988
+ children: ["instance"],
5989
+ descendants: [n.TooltipTrigger, n.TooltipContent]
5990
+ }
6201
5991
  };
6202
- const o = {
6203
- div
6204
- }, C$3 = {
6205
- type: "container",
5992
+ const M = {
6206
5993
  icon: TabsIcon,
6207
- constraints: [
6208
- {
6209
- relation: "descendant",
6210
- component: { $eq: n.TabsTrigger }
6211
- },
6212
- {
6213
- relation: "descendant",
6214
- component: { $eq: n.TabsList }
6215
- },
6216
- {
6217
- relation: "descendant",
6218
- component: { $eq: n.TabsContent }
6219
- }
6220
- ],
6221
- presetStyle: o
6222
- }, L = {
6223
- type: "container",
5994
+ contentModel: {
5995
+ category: "instance",
5996
+ children: ["instance"],
5997
+ descendants: [n.TabsList, n.TabsContent]
5998
+ },
5999
+ presetStyle: {
6000
+ div
6001
+ }
6002
+ }, x$2 = {
6224
6003
  icon: HeaderIcon,
6225
- constraints: {
6226
- relation: "ancestor",
6227
- component: { $eq: n.Tabs }
6004
+ contentModel: {
6005
+ category: "none",
6006
+ children: ["instance"],
6007
+ descendants: [n.TabsTrigger]
6228
6008
  },
6229
- presetStyle: o
6230
- }, u = {
6231
- type: "container",
6009
+ presetStyle: {
6010
+ div
6011
+ }
6012
+ }, C$2 = {
6232
6013
  icon: TriggerIcon,
6233
- constraints: [
6234
- {
6235
- relation: "ancestor",
6236
- component: { $eq: n.TabsList }
6237
- },
6238
- {
6239
- relation: "ancestor",
6240
- component: { $neq: n.TabsTrigger }
6241
- }
6242
- ],
6243
- indexWithinAncestor: n.Tabs,
6244
6014
  label: "Tab Trigger",
6015
+ indexWithinAncestor: n.Tabs,
6016
+ contentModel: {
6017
+ category: "none",
6018
+ children: ["instance", "rich-text"]
6019
+ },
6245
6020
  states: [
6246
6021
  ...defaultStates,
6247
6022
  {
@@ -6251,73 +6026,57 @@ const o = {
6251
6026
  }
6252
6027
  ],
6253
6028
  presetStyle: {
6254
- button: [button, b$6].flat()
6029
+ button: [button, b$5].flat()
6255
6030
  }
6256
- }, x$2 = {
6257
- type: "container",
6031
+ }, S$2 = {
6258
6032
  label: "Tab Content",
6259
6033
  icon: ContentIcon,
6260
- constraints: {
6261
- relation: "ancestor",
6262
- component: { $eq: n.Tabs }
6263
- },
6264
6034
  indexWithinAncestor: n.Tabs,
6265
- presetStyle: o
6035
+ contentModel: {
6036
+ category: "none",
6037
+ children: ["instance", "rich-text"]
6038
+ },
6039
+ presetStyle: {
6040
+ div
6041
+ }
6266
6042
  };
6267
- const p = {
6268
- label
6269
- }, l = {
6270
- type: "container",
6043
+ const i = {
6271
6044
  icon: LabelIcon,
6272
- presetStyle: p,
6273
- states: defaultStates
6045
+ states: defaultStates,
6046
+ presetStyle: {
6047
+ label
6048
+ }
6274
6049
  };
6275
- const t = {
6276
- div
6277
- }, H = {
6278
- type: "container",
6050
+ const v$1 = {
6279
6051
  icon: AccordionIcon,
6280
- presetStyle: t,
6281
- constraints: [
6282
- {
6283
- relation: "descendant",
6284
- component: { $eq: n.AccordionItem }
6285
- }
6286
- ]
6287
- }, C$2 = {
6288
- type: "container",
6052
+ contentModel: {
6053
+ category: "instance",
6054
+ children: ["instance"],
6055
+ descendants: [n.AccordionItem]
6056
+ },
6057
+ presetStyle: {
6058
+ div
6059
+ }
6060
+ }, x$1 = {
6289
6061
  label: "Item",
6290
6062
  icon: ItemIcon,
6291
- constraints: [
6292
- {
6293
- relation: "ancestor",
6294
- component: { $eq: n.Accordion }
6295
- },
6296
- {
6297
- relation: "descendant",
6298
- component: { $eq: n.AccordionHeader }
6299
- },
6300
- {
6301
- relation: "descendant",
6302
- component: { $eq: n.AccordionContent }
6303
- }
6304
- ],
6305
6063
  indexWithinAncestor: n.Accordion,
6306
- presetStyle: t
6307
- }, T = {
6308
- type: "container",
6064
+ contentModel: {
6065
+ category: "none",
6066
+ children: ["instance"],
6067
+ descendants: [n.AccordionHeader, n.AccordionContent]
6068
+ },
6069
+ presetStyle: {
6070
+ div
6071
+ }
6072
+ }, C$1 = {
6309
6073
  label: "Item Header",
6310
6074
  icon: HeaderIcon,
6311
- constraints: [
6312
- {
6313
- relation: "ancestor",
6314
- component: { $eq: n.AccordionItem }
6315
- },
6316
- {
6317
- relation: "descendant",
6318
- component: { $eq: n.AccordionTrigger }
6319
- }
6320
- ],
6075
+ contentModel: {
6076
+ category: "none",
6077
+ children: ["instance"],
6078
+ descendants: [n.AccordionTrigger]
6079
+ },
6321
6080
  presetStyle: {
6322
6081
  h3: [
6323
6082
  ...h3,
@@ -6331,13 +6090,12 @@ const t = {
6331
6090
  }
6332
6091
  ]
6333
6092
  }
6334
- }, x$1 = {
6335
- type: "container",
6093
+ }, H = {
6336
6094
  label: "Item Trigger",
6337
6095
  icon: TriggerIcon,
6338
- constraints: {
6339
- relation: "ancestor",
6340
- component: { $eq: n.AccordionHeader }
6096
+ contentModel: {
6097
+ category: "none",
6098
+ children: ["instance", "rich-text"]
6341
6099
  },
6342
6100
  states: [
6343
6101
  ...defaultStates,
@@ -6348,233 +6106,177 @@ const t = {
6348
6106
  }
6349
6107
  ],
6350
6108
  presetStyle: {
6351
- button: [button, b$6].flat()
6109
+ button: [button, b$5].flat()
6352
6110
  }
6353
- }, M = {
6354
- type: "container",
6111
+ }, S$1 = {
6355
6112
  label: "Item Content",
6356
6113
  icon: ContentIcon,
6357
- constraints: {
6358
- relation: "ancestor",
6359
- component: { $eq: n.AccordionItem }
6114
+ contentModel: {
6115
+ category: "none",
6116
+ children: ["instance", "rich-text"]
6360
6117
  },
6361
- presetStyle: t
6118
+ presetStyle: {
6119
+ div
6120
+ }
6362
6121
  };
6363
- const d = {
6364
- type: "container",
6122
+ const y$1 = {
6365
6123
  icon: NavigationMenuIcon,
6124
+ contentModel: {
6125
+ category: "instance",
6126
+ children: ["instance"],
6127
+ descendants: [n.NavigationMenuList, n.NavigationMenuViewport]
6128
+ },
6366
6129
  presetStyle: {
6367
6130
  div
6368
- },
6369
- constraints: [
6370
- {
6371
- relation: "descendant",
6372
- component: { $eq: n.NavigationMenuList }
6373
- },
6374
- {
6375
- relation: "descendant",
6376
- component: { $eq: n.NavigationMenuViewport }
6377
- }
6378
- ]
6379
- }, $ = {
6380
- type: "container",
6131
+ }
6132
+ }, h$1 = {
6381
6133
  icon: ListIcon,
6382
- constraints: [
6383
- {
6384
- relation: "ancestor",
6385
- component: { $eq: n.NavigationMenu }
6386
- },
6387
- {
6388
- relation: "descendant",
6389
- component: { $eq: n.NavigationMenuItem }
6390
- }
6391
- ],
6134
+ label: "Menu List",
6135
+ contentModel: {
6136
+ category: "none",
6137
+ children: ["instance"],
6138
+ descendants: [n.NavigationMenuItem]
6139
+ },
6392
6140
  presetStyle: {
6393
6141
  div
6394
- },
6395
- label: "Menu List"
6396
- }, q$1 = {
6397
- type: "container",
6142
+ }
6143
+ }, b$3 = {
6398
6144
  icon: ListItemIcon,
6399
- constraints: {
6400
- relation: "ancestor",
6401
- component: { $eq: n.NavigationMenuList }
6145
+ label: "Menu Item",
6146
+ indexWithinAncestor: n.NavigationMenu,
6147
+ contentModel: {
6148
+ category: "none",
6149
+ children: ["instance"],
6150
+ descendants: [
6151
+ n.NavigationMenuTrigger,
6152
+ n.NavigationMenuContent,
6153
+ n.NavigationMenuLink
6154
+ ]
6402
6155
  },
6403
6156
  presetStyle: {
6404
6157
  div
6405
- },
6406
- indexWithinAncestor: n.NavigationMenu,
6407
- label: "Menu Item"
6408
- }, b$4 = {
6409
- type: "container",
6158
+ }
6159
+ }, k$1 = {
6410
6160
  icon: TriggerIcon,
6411
- constraints: {
6412
- relation: "ancestor",
6413
- component: { $eq: n.NavigationMenuItem }
6414
- },
6415
- label: "Menu Trigger"
6161
+ label: "Menu Trigger",
6162
+ contentModel: {
6163
+ category: "none",
6164
+ children: ["instance"]
6165
+ }
6416
6166
  }, w$1 = {
6417
- type: "container",
6418
6167
  icon: ContentIcon,
6419
- constraints: {
6420
- relation: "ancestor",
6421
- component: { $eq: n.NavigationMenuItem }
6168
+ label: "Menu Content",
6169
+ contentModel: {
6170
+ category: "none",
6171
+ children: ["instance"],
6172
+ descendants: [n.NavigationMenuLink]
6422
6173
  },
6423
- indexWithinAncestor: n.NavigationMenu,
6424
6174
  presetStyle: {
6425
6175
  div
6426
- },
6427
- label: "Menu Content"
6428
- }, C$1 = {
6429
- type: "container",
6176
+ }
6177
+ }, C = {
6430
6178
  icon: BoxIcon,
6431
- constraints: [
6432
- {
6433
- relation: "ancestor",
6434
- component: { $eq: n.NavigationMenu }
6435
- },
6436
- {
6437
- relation: "ancestor",
6438
- component: {
6439
- $in: [n.NavigationMenuContent, n.NavigationMenuItem]
6440
- }
6441
- }
6442
- ],
6443
- label: "Accessible Link Wrapper"
6444
- }, V = {
6445
- type: "container",
6179
+ label: "Accessible Link Wrapper",
6180
+ contentModel: {
6181
+ category: "none",
6182
+ children: ["instance"]
6183
+ }
6184
+ }, T = {
6446
6185
  icon: ViewportIcon,
6447
- constraints: {
6448
- relation: "ancestor",
6449
- component: { $eq: n.NavigationMenu }
6186
+ label: "Menu Viewport",
6187
+ contentModel: {
6188
+ category: "none",
6189
+ children: ["instance"]
6450
6190
  },
6451
6191
  presetStyle: {
6452
6192
  div
6453
- },
6454
- label: "Menu Viewport"
6193
+ }
6455
6194
  };
6456
- const C = {
6457
- type: "container",
6195
+ const w = {
6458
6196
  icon: SelectIcon,
6459
- constraints: [
6460
- {
6461
- relation: "descendant",
6462
- component: { $eq: n.SelectTrigger }
6463
- },
6464
- {
6465
- relation: "descendant",
6466
- component: { $eq: n.SelectContent }
6467
- }
6468
- ]
6469
- }, w = {
6470
- type: "container",
6197
+ contentModel: {
6198
+ category: "instance",
6199
+ children: ["instance"],
6200
+ descendants: [n.SelectTrigger, n.SelectContent]
6201
+ }
6202
+ }, b$2 = {
6471
6203
  icon: TriggerIcon,
6204
+ contentModel: {
6205
+ category: "none",
6206
+ children: ["instance"],
6207
+ descendants: [n.SelectValue]
6208
+ },
6472
6209
  presetStyle: {
6473
6210
  button
6474
- },
6475
- constraints: [
6476
- {
6477
- relation: "ancestor",
6478
- component: { $eq: n.Select }
6479
- },
6480
- {
6481
- relation: "descendant",
6482
- component: { $eq: n.SelectValue }
6483
- }
6484
- ]
6485
- }, b$3 = {
6486
- type: "container",
6211
+ }
6212
+ }, f = {
6487
6213
  label: "Value",
6488
6214
  icon: FormTextFieldIcon,
6215
+ contentModel: {
6216
+ category: "none",
6217
+ children: []
6218
+ },
6489
6219
  presetStyle: {
6490
6220
  span
6491
- },
6492
- constraints: {
6493
- relation: "ancestor",
6494
- component: { $eq: n.SelectTrigger }
6495
6221
  }
6496
- }, f = {
6497
- type: "container",
6222
+ }, v = {
6498
6223
  icon: ContentIcon,
6224
+ contentModel: {
6225
+ category: "none",
6226
+ children: ["instance"],
6227
+ descendants: [n.SelectViewport]
6228
+ },
6499
6229
  presetStyle: {
6500
6230
  div
6501
- },
6502
- constraints: [
6503
- {
6504
- relation: "ancestor",
6505
- component: { $eq: n.Select }
6506
- },
6507
- {
6508
- relation: "descendant",
6509
- component: { $eq: n.SelectViewport }
6510
- }
6511
- ]
6512
- }, v = {
6513
- type: "container",
6231
+ }
6232
+ }, P = {
6514
6233
  icon: ViewportIcon,
6234
+ contentModel: {
6235
+ category: "none",
6236
+ children: ["instance"],
6237
+ descendants: [n.SelectItem]
6238
+ },
6515
6239
  presetStyle: {
6516
6240
  div
6517
- },
6518
- constraints: [
6519
- {
6520
- relation: "ancestor",
6521
- component: { $eq: n.SelectContent }
6522
- },
6523
- {
6524
- relation: "descendant",
6525
- component: { $eq: n.SelectItem }
6526
- }
6527
- ]
6528
- }, P = {
6529
- type: "container",
6241
+ }
6242
+ }, k = {
6530
6243
  icon: ItemIcon,
6531
- constraints: [
6532
- {
6533
- relation: "ancestor",
6534
- component: { $eq: n.SelectViewport }
6535
- },
6536
- {
6537
- relation: "descendant",
6538
- component: { $eq: n.SelectItemIndicator }
6539
- },
6540
- {
6541
- relation: "descendant",
6542
- component: { $eq: n.SelectItemText }
6543
- }
6544
- ],
6244
+ contentModel: {
6245
+ category: "none",
6246
+ children: ["instance"],
6247
+ descendants: [n.SelectItemIndicator, n.SelectItemText]
6248
+ },
6545
6249
  presetStyle: {
6546
6250
  div
6547
6251
  }
6548
- }, h = {
6549
- type: "container",
6252
+ }, F = {
6550
6253
  label: "Indicator",
6551
6254
  icon: CheckMarkIcon,
6552
- constraints: {
6553
- relation: "ancestor",
6554
- component: { $eq: n.SelectItem }
6255
+ contentModel: {
6256
+ category: "none",
6257
+ children: ["instance"]
6555
6258
  },
6556
6259
  presetStyle: {
6557
6260
  span
6558
6261
  }
6559
- }, k = {
6560
- type: "container",
6262
+ }, q = {
6561
6263
  label: "Item Text",
6562
6264
  icon: TextIcon,
6563
- constraints: {
6564
- relation: "ancestor",
6565
- component: { $eq: n.SelectItem }
6265
+ contentModel: {
6266
+ category: "none",
6267
+ children: ["instance", "rich-text"]
6566
6268
  },
6567
6269
  presetStyle: {
6568
6270
  span
6569
6271
  }
6570
6272
  };
6571
- const S = {
6572
- type: "container",
6573
- constraints: {
6574
- relation: "descendant",
6575
- component: { $eq: n.SwitchThumb }
6576
- },
6273
+ const b$1 = {
6577
6274
  icon: SwitchIcon,
6275
+ contentModel: {
6276
+ category: "instance",
6277
+ children: ["instance"],
6278
+ descendants: [n.SwitchThumb]
6279
+ },
6578
6280
  states: [
6579
6281
  ...defaultStates,
6580
6282
  {
@@ -6589,15 +6291,14 @@ const S = {
6589
6291
  }
6590
6292
  ],
6591
6293
  presetStyle: {
6592
- button: [button, b$6].flat()
6294
+ button: [button, b$5].flat()
6593
6295
  }
6594
- }, b$2 = {
6595
- type: "container",
6596
- constraints: {
6597
- relation: "ancestor",
6598
- component: { $eq: n.Switch }
6599
- },
6296
+ }, S = {
6600
6297
  icon: TriggerIcon,
6298
+ contentModel: {
6299
+ category: "none",
6300
+ children: ["instance"]
6301
+ },
6601
6302
  states: [
6602
6303
  ...defaultStates,
6603
6304
  {
@@ -6615,13 +6316,13 @@ const S = {
6615
6316
  span
6616
6317
  }
6617
6318
  };
6618
- const b$1 = {
6619
- type: "container",
6620
- constraints: {
6621
- relation: "descendant",
6622
- component: { $eq: n.CheckboxIndicator }
6623
- },
6319
+ const b = {
6624
6320
  icon: CheckboxCheckedIcon,
6321
+ contentModel: {
6322
+ category: "instance",
6323
+ children: ["instance"],
6324
+ descendants: [n.CheckboxIndicator]
6325
+ },
6625
6326
  states: [
6626
6327
  ...defaultStates,
6627
6328
  {
@@ -6636,27 +6337,26 @@ const b$1 = {
6636
6337
  }
6637
6338
  ],
6638
6339
  presetStyle: {
6639
- button: [button, b$6].flat()
6340
+ button: [button, b$5].flat()
6640
6341
  }
6641
6342
  }, x = {
6642
- type: "container",
6643
- constraints: {
6644
- relation: "ancestor",
6645
- component: { $eq: n.Checkbox }
6646
- },
6647
6343
  icon: TriggerIcon,
6344
+ contentModel: {
6345
+ category: "none",
6346
+ children: ["instance", "rich-text"]
6347
+ },
6648
6348
  states: defaultStates,
6649
6349
  presetStyle: {
6650
6350
  span
6651
6351
  }
6652
6352
  };
6653
6353
  const y = {
6654
- type: "container",
6655
- constraints: {
6656
- relation: "descendant",
6657
- component: { $eq: n.RadioGroupItem }
6658
- },
6659
6354
  icon: RadioGroupIcon,
6355
+ contentModel: {
6356
+ category: "instance",
6357
+ children: ["instance"],
6358
+ descendants: [n.RadioGroupItem]
6359
+ },
6660
6360
  states: [
6661
6361
  ...defaultStates,
6662
6362
  {
@@ -6673,29 +6373,22 @@ const y = {
6673
6373
  presetStyle: {
6674
6374
  div
6675
6375
  }
6676
- }, b = {
6677
- type: "container",
6678
- constraints: [
6679
- {
6680
- relation: "ancestor",
6681
- component: { $eq: n.RadioGroup }
6682
- },
6683
- {
6684
- relation: "descendant",
6685
- component: { $eq: n.RadioGroupIndicator }
6686
- }
6687
- ],
6376
+ }, g = {
6688
6377
  icon: ItemIcon,
6378
+ contentModel: {
6379
+ category: "none",
6380
+ children: ["instance"],
6381
+ descendants: [n.RadioGroupIndicator]
6382
+ },
6689
6383
  states: defaultStates,
6690
6384
  presetStyle: {
6691
- button: [button, b$6].flat()
6385
+ button: [button, b$5].flat()
6692
6386
  }
6693
- }, q = {
6694
- type: "container",
6387
+ }, h = {
6695
6388
  icon: TriggerIcon,
6696
- constraints: {
6697
- relation: "ancestor",
6698
- component: { $eq: n.RadioGroupItem }
6389
+ contentModel: {
6390
+ category: "none",
6391
+ children: ["instance"]
6699
6392
  },
6700
6393
  states: defaultStates,
6701
6394
  presetStyle: {
@@ -6704,54 +6397,54 @@ const y = {
6704
6397
  };
6705
6398
  const radixComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6706
6399
  __proto__: null,
6707
- Accordion: H,
6708
- AccordionContent: M,
6709
- AccordionHeader: T,
6710
- AccordionItem: C$2,
6711
- AccordionTrigger: x$1,
6712
- Checkbox: b$1,
6400
+ Accordion: v$1,
6401
+ AccordionContent: S$1,
6402
+ AccordionHeader: C$1,
6403
+ AccordionItem: x$1,
6404
+ AccordionTrigger: H,
6405
+ Checkbox: b,
6713
6406
  CheckboxIndicator: x,
6714
- Collapsible: m$1,
6715
- CollapsibleContent: g$2,
6716
- CollapsibleTrigger: b$7,
6717
- Dialog: H$1,
6718
- DialogClose: E,
6719
- DialogContent: x$3,
6720
- DialogDescription: h$1,
6721
- DialogOverlay: b$5,
6722
- DialogTitle: B,
6723
- DialogTrigger: S$1,
6724
- Label: l,
6725
- NavigationMenu: d,
6407
+ Collapsible: g$2,
6408
+ CollapsibleContent: d$3,
6409
+ CollapsibleTrigger: b$6,
6410
+ Dialog: j,
6411
+ DialogClose: R,
6412
+ DialogContent: B,
6413
+ DialogDescription: H$1,
6414
+ DialogOverlay: b$4,
6415
+ DialogTitle: E,
6416
+ DialogTrigger: O,
6417
+ Label: i,
6418
+ NavigationMenu: y$1,
6726
6419
  NavigationMenuContent: w$1,
6727
- NavigationMenuItem: q$1,
6728
- NavigationMenuLink: C$1,
6729
- NavigationMenuList: $,
6730
- NavigationMenuTrigger: b$4,
6731
- NavigationMenuViewport: V,
6732
- Popover: l$1,
6733
- PopoverContent: g$1,
6734
- PopoverTrigger: v$1,
6420
+ NavigationMenuItem: b$3,
6421
+ NavigationMenuLink: C,
6422
+ NavigationMenuList: h$1,
6423
+ NavigationMenuTrigger: k$1,
6424
+ NavigationMenuViewport: T,
6425
+ Popover: l,
6426
+ PopoverContent: d$1,
6427
+ PopoverTrigger: v$2,
6735
6428
  RadioGroup: y,
6736
- RadioGroupIndicator: q,
6737
- RadioGroupItem: b,
6738
- Select: C,
6739
- SelectContent: f,
6740
- SelectItem: P,
6741
- SelectItemIndicator: h,
6742
- SelectItemText: k,
6743
- SelectTrigger: w,
6744
- SelectValue: b$3,
6745
- SelectViewport: v,
6746
- Switch: S,
6747
- SwitchThumb: b$2,
6748
- Tabs: C$3,
6749
- TabsContent: x$2,
6750
- TabsList: L,
6751
- TabsTrigger: u,
6752
- Tooltip: d$1,
6753
- TooltipContent: g,
6754
- TooltipTrigger: m
6429
+ RadioGroupIndicator: h,
6430
+ RadioGroupItem: g,
6431
+ Select: w,
6432
+ SelectContent: v,
6433
+ SelectItem: k,
6434
+ SelectItemIndicator: F,
6435
+ SelectItemText: q,
6436
+ SelectTrigger: b$2,
6437
+ SelectValue: f,
6438
+ SelectViewport: P,
6439
+ Switch: b$1,
6440
+ SwitchThumb: S,
6441
+ Tabs: M,
6442
+ TabsContent: S$2,
6443
+ TabsList: x$2,
6444
+ TabsTrigger: C$2,
6445
+ Tooltip: m,
6446
+ TooltipContent: d,
6447
+ TooltipTrigger: g$1
6755
6448
  }, Symbol.toStringTag, { value: "Module" }));
6756
6449
  const createFramework$2 = async () => {
6757
6450
  const routeTemplatesDir = join("app", "route-templates");
@@ -6837,7 +6530,7 @@ const reactRouterComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
6837
6530
  Form: c$1,
6838
6531
  Link: n$6,
6839
6532
  RemixForm: n$4,
6840
- RichTextLink: o$4
6533
+ RichTextLink: p$7
6841
6534
  }, Symbol.toStringTag, { value: "Module" }));
6842
6535
  const createFramework$1 = async () => {
6843
6536
  const routeTemplatesDir = join("app", "route-templates");
@@ -6963,20 +6656,25 @@ const createFramework = async () => {
6963
6656
  metas: radixComponentNamespacedMetas
6964
6657
  }
6965
6658
  ],
6966
- html: ({ pagePath }) => [
6967
- {
6968
- file: join("pages", generateVikeRoute(pagePath), "+Page.tsx"),
6969
- template: htmlPageTemplate
6970
- },
6971
- {
6972
- file: join("pages", generateVikeRoute(pagePath), "+Head.tsx"),
6973
- template: htmlHeadTemplate
6974
- },
6975
- {
6976
- file: join("pages", generateVikeRoute(pagePath), "+data.ts"),
6977
- template: htmlDataTemplate
6659
+ html: ({ pagePath }) => {
6660
+ if (isPathnamePattern(pagePath)) {
6661
+ return [];
6978
6662
  }
6979
- ],
6663
+ return [
6664
+ {
6665
+ file: join("pages", generateVikeRoute(pagePath), "+Page.tsx"),
6666
+ template: htmlPageTemplate
6667
+ },
6668
+ {
6669
+ file: join("pages", generateVikeRoute(pagePath), "+Head.tsx"),
6670
+ template: htmlHeadTemplate
6671
+ },
6672
+ {
6673
+ file: join("pages", generateVikeRoute(pagePath), "+data.ts"),
6674
+ template: htmlDataTemplate
6675
+ }
6676
+ ];
6677
+ },
6980
6678
  xml: () => [],
6981
6679
  redirect: () => [],
6982
6680
  defaultSitemap: () => []
@@ -7628,7 +7326,7 @@ const initFlow = async (options) => {
7628
7326
  if (shouldInstallDeps === true) {
7629
7327
  const install = spinner();
7630
7328
  install.start("Installing dependencies");
7631
- await x$4("npm", ["install"]);
7329
+ await x$3("npm", ["install"]);
7632
7330
  install.stop("Installed dependencies");
7633
7331
  }
7634
7332
  log.message();
@@ -7659,7 +7357,7 @@ const getDeploymentInstructions = (deployTarget) => {
7659
7357
  }
7660
7358
  };
7661
7359
  const name = "webstudio";
7662
- const version = "0.215.0";
7360
+ const version = "0.217.0";
7663
7361
  const description = "Webstudio CLI";
7664
7362
  const author = "Webstudio <github@webstudio.is>";
7665
7363
  const homepage = "https://webstudio.is";
@@ -7697,7 +7395,7 @@ const dependencies = {
7697
7395
  "change-case": "^5.4.4",
7698
7396
  deepmerge: "^4.3.1",
7699
7397
  "env-paths": "^3.0.0",
7700
- nanoid: "^5.0.9",
7398
+ nanoid: "^5.1.5",
7701
7399
  "p-limit": "^6.2.0",
7702
7400
  parse5: "7.2.1",
7703
7401
  picocolors: "^1.1.1",