@usethrottle/builder-schema 0.1.2 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -2767,6 +2767,8 @@ var ALLOWED_ELEMENTS = [
2767
2767
  "article",
2768
2768
  "header",
2769
2769
  "footer",
2770
+ "details",
2771
+ "summary",
2770
2772
  "br",
2771
2773
  "hr"
2772
2774
  ];
@@ -3028,7 +3030,9 @@ var CLOSES_P = /* @__PURE__ */ new Set([
3028
3030
  "article",
3029
3031
  "header",
3030
3032
  "footer",
3031
- "hr"
3033
+ "hr",
3034
+ "details",
3035
+ "summary"
3032
3036
  ]);
3033
3037
  var forbidden = (message, pos) => new TemplateError("TEMPLATE_FORBIDDEN", message, pos);
3034
3038
  var syntax = (message, pos) => new TemplateError("TEMPLATE_SYNTAX", message, pos);
package/dist/index.d.cts CHANGED
@@ -3881,7 +3881,7 @@ declare function safeUrl(value: unknown, kind: SafeUrlKind, ctx: {
3881
3881
  */
3882
3882
  declare const TEMPLATE_FILTERS: readonly ["upper", "lower", "truncate", "default"];
3883
3883
  type TemplateFilterName = (typeof TEMPLATE_FILTERS)[number];
3884
- declare const ALLOWED_ELEMENTS: readonly ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "a", "img", "ul", "ol", "li", "strong", "em", "small", "figure", "figcaption", "section", "article", "header", "footer", "br", "hr"];
3884
+ declare const ALLOWED_ELEMENTS: readonly ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "a", "img", "ul", "ol", "li", "strong", "em", "small", "figure", "figcaption", "section", "article", "header", "footer", "details", "summary", "br", "hr"];
3885
3885
  type AllowedElement = (typeof ALLOWED_ELEMENTS)[number];
3886
3886
  /** Elements with no children and no closing tag. */
3887
3887
  declare const VOID_ELEMENTS: readonly AllowedElement[];
package/dist/index.d.ts CHANGED
@@ -3881,7 +3881,7 @@ declare function safeUrl(value: unknown, kind: SafeUrlKind, ctx: {
3881
3881
  */
3882
3882
  declare const TEMPLATE_FILTERS: readonly ["upper", "lower", "truncate", "default"];
3883
3883
  type TemplateFilterName = (typeof TEMPLATE_FILTERS)[number];
3884
- declare const ALLOWED_ELEMENTS: readonly ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "a", "img", "ul", "ol", "li", "strong", "em", "small", "figure", "figcaption", "section", "article", "header", "footer", "br", "hr"];
3884
+ declare const ALLOWED_ELEMENTS: readonly ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "a", "img", "ul", "ol", "li", "strong", "em", "small", "figure", "figcaption", "section", "article", "header", "footer", "details", "summary", "br", "hr"];
3885
3885
  type AllowedElement = (typeof ALLOWED_ELEMENTS)[number];
3886
3886
  /** Elements with no children and no closing tag. */
3887
3887
  declare const VOID_ELEMENTS: readonly AllowedElement[];
package/dist/index.js CHANGED
@@ -2640,6 +2640,8 @@ var ALLOWED_ELEMENTS = [
2640
2640
  "article",
2641
2641
  "header",
2642
2642
  "footer",
2643
+ "details",
2644
+ "summary",
2643
2645
  "br",
2644
2646
  "hr"
2645
2647
  ];
@@ -2901,7 +2903,9 @@ var CLOSES_P = /* @__PURE__ */ new Set([
2901
2903
  "article",
2902
2904
  "header",
2903
2905
  "footer",
2904
- "hr"
2906
+ "hr",
2907
+ "details",
2908
+ "summary"
2905
2909
  ]);
2906
2910
  var forbidden = (message, pos) => new TemplateError("TEMPLATE_FORBIDDEN", message, pos);
2907
2911
  var syntax = (message, pos) => new TemplateError("TEMPLATE_SYNTAX", message, pos);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/builder-schema",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Throttle Builder page document, site settings, responsive rules, limits and basic widget definitions. Pure TypeScript plus zod, no React and no I/O.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",