praxis-kit 4.1.0 → 4.1.1

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.
@@ -2017,7 +2017,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
2017
2017
  import { warnDiagnostics } from "./_shared/diagnostics.js";
2018
2018
  function isOpenContent(...blockedTags) {
2019
2019
  const set2 = new Set(blockedTags);
2020
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
2020
+ return (child) => {
2021
+ if (!isObject(child) || !("type" in child)) return false;
2022
+ const tag = getTag(child);
2023
+ return tag === void 0 || !set2.has(tag);
2024
+ };
2021
2025
  }
2022
2026
  var METADATA_TAGS = ["script", "template"];
2023
2027
  var metadataMatch = isTag(...METADATA_TAGS);
package/dist/lit/index.js CHANGED
@@ -1847,7 +1847,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
1847
1847
  import { warnDiagnostics } from "../_shared/diagnostics.js";
1848
1848
  function isOpenContent(...blockedTags) {
1849
1849
  const set2 = new Set(blockedTags);
1850
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
1850
+ return (child) => {
1851
+ if (!isObject(child) || !("type" in child)) return false;
1852
+ const tag = getTag(child);
1853
+ return tag === void 0 || !set2.has(tag);
1854
+ };
1851
1855
  }
1852
1856
  var METADATA_TAGS = ["script", "template"];
1853
1857
  var metadataMatch = isTag(...METADATA_TAGS);
@@ -2032,7 +2032,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
2032
2032
  import { warnDiagnostics } from "../_shared/diagnostics.js";
2033
2033
  function isOpenContent(...blockedTags) {
2034
2034
  const set2 = new Set(blockedTags);
2035
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
2035
+ return (child) => {
2036
+ if (!isObject(child) || !("type" in child)) return false;
2037
+ const tag = getTag(child);
2038
+ return tag === void 0 || !set2.has(tag);
2039
+ };
2036
2040
  }
2037
2041
  var METADATA_TAGS = ["script", "template"];
2038
2042
  var metadataMatch = isTag(...METADATA_TAGS);
@@ -12,7 +12,7 @@ import {
12
12
  makeCloneSlotChild,
13
13
  mergeRefs,
14
14
  render
15
- } from "../chunk-LA6WGQA6.js";
15
+ } from "../chunk-R2RKHZNX.js";
16
16
 
17
17
  // ../../adapters/react/src/current/slot/composeRefs.ts
18
18
  function getChildRef(element) {
@@ -13,7 +13,7 @@ import {
13
13
  makeCloneSlotChild,
14
14
  mergeRefs,
15
15
  render
16
- } from "../chunk-LA6WGQA6.js";
16
+ } from "../chunk-R2RKHZNX.js";
17
17
 
18
18
  // ../../adapters/react/src/legacy/create-contract-component.ts
19
19
  import { forwardRef as forwardRef2 } from "react";
@@ -1989,7 +1989,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
1989
1989
  import { warnDiagnostics } from "../_shared/diagnostics.js";
1990
1990
  function isOpenContent(...blockedTags) {
1991
1991
  const set2 = new Set(blockedTags);
1992
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
1992
+ return (child) => {
1993
+ if (!isObject(child) || !("type" in child)) return false;
1994
+ const tag = getTag(child);
1995
+ return tag === void 0 || !set2.has(tag);
1996
+ };
1993
1997
  }
1994
1998
  var METADATA_TAGS = ["script", "template"];
1995
1999
  var metadataMatch = isTag(...METADATA_TAGS);
@@ -1893,7 +1893,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
1893
1893
  import { warnDiagnostics } from "../_shared/diagnostics.js";
1894
1894
  function isOpenContent(...blockedTags) {
1895
1895
  const set2 = new Set(blockedTags);
1896
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
1896
+ return (child) => {
1897
+ if (!isObject(child) || !("type" in child)) return false;
1898
+ const tag = getTag(child);
1899
+ return tag === void 0 || !set2.has(tag);
1900
+ };
1897
1901
  }
1898
1902
  var METADATA_TAGS = ["script", "template"];
1899
1903
  var metadataMatch = isTag(...METADATA_TAGS);
package/dist/vue/index.js CHANGED
@@ -2000,7 +2000,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
2000
2000
  import { warnDiagnostics } from "../_shared/diagnostics.js";
2001
2001
  function isOpenContent(...blockedTags) {
2002
2002
  const set2 = new Set(blockedTags);
2003
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
2003
+ return (child) => {
2004
+ if (!isObject(child) || !("type" in child)) return false;
2005
+ const tag = getTag(child);
2006
+ return tag === void 0 || !set2.has(tag);
2007
+ };
2004
2008
  }
2005
2009
  var METADATA_TAGS = ["script", "template"];
2006
2010
  var metadataMatch = isTag(...METADATA_TAGS);
package/dist/web/index.js CHANGED
@@ -1847,7 +1847,11 @@ var HTML_ARIA_RULES = [landmarkRoleRule, landmarkNameAdvisory];
1847
1847
  import { warnDiagnostics } from "../_shared/diagnostics.js";
1848
1848
  function isOpenContent(...blockedTags) {
1849
1849
  const set2 = new Set(blockedTags);
1850
- return (child) => isObject(child) && "type" in child && (!isString(child.type) || !set2.has(child.type));
1850
+ return (child) => {
1851
+ if (!isObject(child) || !("type" in child)) return false;
1852
+ const tag = getTag(child);
1853
+ return tag === void 0 || !set2.has(tag);
1854
+ };
1851
1855
  }
1852
1856
  var METADATA_TAGS = ["script", "template"];
1853
1857
  var metadataMatch = isTag(...METADATA_TAGS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "praxis-kit",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./react": {
@@ -129,10 +129,10 @@
129
129
  "typescript": "^6.0.3",
130
130
  "vite": "^8.1.3",
131
131
  "vue": "^3.5.38",
132
- "@praxis-kit/core": "0.0.0",
133
132
  "@praxis-kit/adapter-utils": "0.0.0",
133
+ "@praxis-kit/diagnostics": "0.0.0",
134
134
  "@praxis-kit/primitive": "0.0.0",
135
- "@praxis-kit/diagnostics": "0.0.0"
135
+ "@praxis-kit/core": "0.0.0"
136
136
  },
137
137
  "publishConfig": {
138
138
  "access": "public"