@vue-jsx-vapor/runtime 3.0.1 → 3.0.4

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.
@@ -24,19 +24,22 @@ const createProxyComponent = (createComponent$1, type, props, ...args) => {
24
24
  props = null;
25
25
  }
26
26
  const i = require_helpers.getCurrentInstance();
27
- if (typeof type === "function") type = new Proxy(type, {
28
- apply(target, ctx, args$1) {
29
- if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
27
+ if (!type.__proxyed) {
28
+ if (typeof type === "function") type = new Proxy(type, {
29
+ apply(target, ctx, args$1) {
30
+ if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
31
+ return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
32
+ },
33
+ get(target, p, receiver) {
34
+ if ((i && i.appContext).vapor && p === "__vapor") return true;
35
+ return Reflect.get(target, p, receiver);
36
+ }
37
+ });
38
+ else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
30
39
  return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
31
- },
32
- get(target, p, receiver) {
33
- if ((i && i.appContext).vapor && p === "__vapor") return true;
34
- return Reflect.get(target, p, receiver);
35
- }
36
- });
37
- else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
38
- return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
39
- } });
40
+ } });
41
+ type.__proxyed = true;
42
+ }
40
43
  return createComponent$1(type, props, ...args);
41
44
  };
42
45
 
@@ -22,19 +22,22 @@ const createProxyComponent = (createComponent$2, type, props, ...args) => {
22
22
  props = null;
23
23
  }
24
24
  const i = getCurrentInstance$1();
25
- if (typeof type === "function") type = new Proxy(type, {
26
- apply(target, ctx, args$1) {
27
- if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
25
+ if (!type.__proxyed) {
26
+ if (typeof type === "function") type = new Proxy(type, {
27
+ apply(target, ctx, args$1) {
28
+ if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
29
+ return normalizeNode(Reflect.apply(target, ctx, args$1));
30
+ },
31
+ get(target, p, receiver) {
32
+ if ((i && i.appContext).vapor && p === "__vapor") return true;
33
+ return Reflect.get(target, p, receiver);
34
+ }
35
+ });
36
+ else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
28
37
  return normalizeNode(Reflect.apply(target, ctx, args$1));
29
- },
30
- get(target, p, receiver) {
31
- if ((i && i.appContext).vapor && p === "__vapor") return true;
32
- return Reflect.get(target, p, receiver);
33
- }
34
- });
35
- else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
36
- return normalizeNode(Reflect.apply(target, ctx, args$1));
37
- } });
38
+ } });
39
+ type.__proxyed = true;
40
+ }
38
41
  return createComponent$2(type, props, ...args);
39
42
  };
40
43
 
@@ -1,6 +1,6 @@
1
1
  require('./block-sF5z9ijJ.cjs');
2
2
  require('./helpers-Ie9fa1JX.cjs');
3
- const require_component = require('./component-HwEQ3NVf.cjs');
3
+ const require_component = require('./component-DGRkjdbo.cjs');
4
4
 
5
5
  exports.createComponent = require_component.createComponent;
6
6
  exports.createComponentWithFallback = require_component.createComponentWithFallback;
package/dist/component.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./block-BZYKbYTH.js";
2
2
  import "./helpers-C6cGsX4q.js";
3
- import { n as createComponentWithFallback, t as createComponent } from "./component-BwobbDXG.js";
3
+ import { n as createComponentWithFallback, t as createComponent } from "./component-pVAwQvtd.js";
4
4
 
5
5
  export { createComponent, createComponentWithFallback };
@@ -1,5 +1,5 @@
1
1
  const require_block = require('./block-sF5z9ijJ.cjs');
2
- const require_component = require('./component-HwEQ3NVf.cjs');
2
+ const require_component = require('./component-DGRkjdbo.cjs');
3
3
 
4
4
  //#region src/h.ts
5
5
  function h(type, propsOrChildren, children) {
@@ -1,5 +1,5 @@
1
1
  import { t as isBlock } from "./block-BZYKbYTH.js";
2
- import { n as createComponentWithFallback } from "./component-BwobbDXG.js";
2
+ import { n as createComponentWithFallback } from "./component-pVAwQvtd.js";
3
3
 
4
4
  //#region src/h.ts
5
5
  function h(type, propsOrChildren, children) {
package/dist/h.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  require('./block-sF5z9ijJ.cjs');
2
2
  require('./helpers-Ie9fa1JX.cjs');
3
- require('./component-HwEQ3NVf.cjs');
4
- const require_h = require('./h-BSBmQ5xG.cjs');
3
+ require('./component-DGRkjdbo.cjs');
4
+ const require_h = require('./h-BIh3D_lt.cjs');
5
5
 
6
6
  exports.h = require_h.h;
package/dist/h.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./block-BZYKbYTH.js";
2
2
  import "./helpers-C6cGsX4q.js";
3
- import "./component-BwobbDXG.js";
4
- import { t as h } from "./h-H2pnsSY9.js";
3
+ import "./component-pVAwQvtd.js";
4
+ import { t as h } from "./h-CJ77uHHG.js";
5
5
 
6
6
  export { h };
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const require_block = require('./block-sF5z9ijJ.cjs');
3
3
  const require_helpers = require('./helpers-Ie9fa1JX.cjs');
4
- const require_component = require('./component-HwEQ3NVf.cjs');
5
- const require_h = require('./h-BSBmQ5xG.cjs');
4
+ const require_component = require('./component-DGRkjdbo.cjs');
5
+ const require_h = require('./h-BIh3D_lt.cjs');
6
6
  require('./jsx-CTAfwhvm.cjs');
7
7
  const require_node = require('./node-B6xwqC0_.cjs');
8
8
  const require_vue = require('./vue-DN14pNs9.cjs');
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as normalizeNode, t as isBlock } from "./block-BZYKbYTH.js";
2
2
  import { n as useFullProps, r as useProps, t as getCurrentInstance } from "./helpers-C6cGsX4q.js";
3
- import { n as createComponentWithFallback, t as createComponent } from "./component-BwobbDXG.js";
4
- import { t as h } from "./h-H2pnsSY9.js";
3
+ import { n as createComponentWithFallback, t as createComponent } from "./component-pVAwQvtd.js";
4
+ import { t as h } from "./h-CJ77uHHG.js";
5
5
  import "./jsx-C5yte_hi.js";
6
6
  import { n as setNodes, t as createNodes } from "./node-C-c1h4g5.js";
7
7
  import { t as defineVaporComponent } from "./vue-BJLej53a.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/runtime",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "description": "Vue JSX Vapor Runtime",
5
5
  "type": "module",
6
6
  "keywords": [