@kithinji/pod 1.0.40 → 1.0.41

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.js CHANGED
@@ -1724,6 +1724,67 @@ var JSXUtilities = class {
1724
1724
  isComponentTag(tag) {
1725
1725
  return tag ? /^[A-Z]/.test(tag) : false;
1726
1726
  }
1727
+ isSVGTag(tag) {
1728
+ const svgTags = /* @__PURE__ */ new Set([
1729
+ "svg",
1730
+ "circle",
1731
+ "rect",
1732
+ "line",
1733
+ "path",
1734
+ "polygon",
1735
+ "polyline",
1736
+ "ellipse",
1737
+ "text",
1738
+ "tspan",
1739
+ "g",
1740
+ "defs",
1741
+ "use",
1742
+ "symbol",
1743
+ "marker",
1744
+ "clipPath",
1745
+ "mask",
1746
+ "pattern",
1747
+ "linearGradient",
1748
+ "radialGradient",
1749
+ "stop",
1750
+ "animate",
1751
+ "animateTransform",
1752
+ "foreignObject",
1753
+ "image",
1754
+ "textPath",
1755
+ "feBlend",
1756
+ "feColorMatrix",
1757
+ "feComponentTransfer",
1758
+ "feComposite",
1759
+ "feConvolveMatrix",
1760
+ "feDiffuseLighting",
1761
+ "feDisplacementMap",
1762
+ "feDistantLight",
1763
+ "feFlood",
1764
+ "feFuncA",
1765
+ "feFuncB",
1766
+ "feFuncG",
1767
+ "feFuncR",
1768
+ "feGaussianBlur",
1769
+ "feImage",
1770
+ "feMerge",
1771
+ "feMergeNode",
1772
+ "feMorphology",
1773
+ "feOffset",
1774
+ "fePointLight",
1775
+ "feSpecularLighting",
1776
+ "feSpotLight",
1777
+ "feTile",
1778
+ "feTurbulence",
1779
+ "filter",
1780
+ "metadata",
1781
+ "title",
1782
+ "desc",
1783
+ "switch",
1784
+ "view"
1785
+ ]);
1786
+ return svgTags.has(tag);
1787
+ }
1727
1788
  };
1728
1789
  var ObservableManager = class {
1729
1790
  constructor(t, guards) {
@@ -1871,7 +1932,7 @@ var ElementTransformer = class {
1871
1932
  transformDOMElement(jsxElement, tag, scope, context2) {
1872
1933
  const elId = scope.generateUidIdentifier("el");
1873
1934
  const statements = [];
1874
- const isSVGTag = this.isSVGTag(tag);
1935
+ const isSVGTag = this.jsxUtils.isSVGTag(tag);
1875
1936
  statements.push(
1876
1937
  this.t.variableDeclaration("var", [
1877
1938
  this.t.variableDeclarator(
@@ -1941,36 +2002,6 @@ var ElementTransformer = class {
1941
2002
  }
1942
2003
  return { id: elId, statements };
1943
2004
  }
1944
- isSVGTag(tag) {
1945
- const svgTags = /* @__PURE__ */ new Set([
1946
- "svg",
1947
- "circle",
1948
- "rect",
1949
- "line",
1950
- "path",
1951
- "polygon",
1952
- "polyline",
1953
- "ellipse",
1954
- "text",
1955
- "tspan",
1956
- "g",
1957
- "defs",
1958
- "use",
1959
- "symbol",
1960
- "marker",
1961
- "clipPath",
1962
- "mask",
1963
- "pattern",
1964
- "linearGradient",
1965
- "radialGradient",
1966
- "stop",
1967
- "animate",
1968
- "animateTransform",
1969
- "foreignObject",
1970
- "image"
1971
- ]);
1972
- return svgTags.has(tag);
1973
- }
1974
2005
  transformFragment(path17, scope, context2) {
1975
2006
  const fragId = scope.generateUidIdentifier("frag");
1976
2007
  const statements = [];
@@ -6740,7 +6771,7 @@ async function compileFiles(entryPoints) {
6740
6771
  // src/index.ts
6741
6772
  import { fileURLToPath } from "url";
6742
6773
  var program = new Command();
6743
- program.name("pod").description("Pod cli tool").version("1.0.40");
6774
+ program.name("pod").description("Pod cli tool").version("1.0.41");
6744
6775
  program.command("new <name> [type]").description("Start a new Orca Project").action(async (name, type) => {
6745
6776
  const orca = async () => {
6746
6777
  await addNew(name);