@kubb/react-fabric 0.12.7 → 0.12.8
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{reactPlugin-DbTz9RKJ.cjs → reactPlugin-D9h2zvuq.cjs} +4 -2
- package/dist/{reactPlugin-DbTz9RKJ.cjs.map → reactPlugin-D9h2zvuq.cjs.map} +1 -1
- package/dist/{reactPlugin-C7_IY8_K.js → reactPlugin-DA3LXXbQ.js} +4 -2
- package/dist/{reactPlugin-C7_IY8_K.js.map → reactPlugin-DA3LXXbQ.js.map} +1 -1
- package/package.json +11 -6
- package/src/Renderer.ts +8 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_react$1 = require('./react-DgrQzKJp.cjs');
|
|
2
2
|
const require_jsx_runtime = require('./jsx-runtime-6sQc68DD.cjs');
|
|
3
|
-
const require_reactPlugin = require('./reactPlugin-
|
|
3
|
+
const require_reactPlugin = require('./reactPlugin-D9h2zvuq.cjs');
|
|
4
4
|
let _kubb_fabric_core = require("@kubb/fabric-core");
|
|
5
5
|
let execa = require("execa");
|
|
6
6
|
let signal_exit = require("signal-exit");
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __toESM, r as __name } from "./chunk-CrnDzoTS.js";
|
|
2
2
|
import { t as require_react } from "./react-Cfp4vMID.js";
|
|
3
3
|
import { i as jsxs, n as jsx, t as Fragment } from "./jsx-runtime-CpElaHq6.js";
|
|
4
|
-
import { a as _classPrivateFieldInitSpec, i as _classPrivateFieldGet2, n as Runtime, o as Renderer, r as _classPrivateFieldSet2, s as Root, t as reactPlugin } from "./reactPlugin-
|
|
4
|
+
import { a as _classPrivateFieldInitSpec, i as _classPrivateFieldGet2, n as Runtime, o as Renderer, r as _classPrivateFieldSet2, s as Root, t as reactPlugin } from "./reactPlugin-DA3LXXbQ.js";
|
|
5
5
|
import { AppContext, FileContext, FileManager, FileProcessor, NodeTreeContext, RootContext, TreeNode, createContext, createFabric, createFabric as createFabric$1, createFile, createJSDoc, provide, useApp, useContext, useContext as useContext$1, useFile, useFile as useFile$1, useFileManager, useLifecycle, useNodeTree } from "@kubb/fabric-core";
|
|
6
6
|
import { execa } from "execa";
|
|
7
7
|
import { onExit } from "signal-exit";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as __name } from "./chunk-CrnDzoTS.js";
|
|
2
2
|
import { c as FabricReactElement, l as FabricReactNode } from "./types-BKnc-nPE.js";
|
|
3
3
|
import { t as JSX } from "./jsx-namespace-BMpcDF6T.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react1 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-dev-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react1.ExoticComponent<react1.FragmentProps>;
|
|
9
9
|
declare const jsxDEV: typeof React$1.jsxDEV;
|
|
10
10
|
type JSXElement = FabricReactElement;
|
|
11
11
|
type ReactNode = FabricReactNode;
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as __name } from "./chunk-CrnDzoTS.js";
|
|
2
2
|
import { c as FabricReactElement, l as FabricReactNode } from "./types-BKnc-nPE.js";
|
|
3
3
|
import { t as JSX } from "./jsx-namespace-BMpcDF6T.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react0 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react0.ExoticComponent<react0.FragmentProps>;
|
|
9
9
|
declare const jsx: typeof React$1.jsx;
|
|
10
10
|
declare const jsxDEV: typeof React$1.jsx;
|
|
11
11
|
declare const jsxs: typeof React$1.jsxs;
|
package/dist/plugins.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('./react-DgrQzKJp.cjs');
|
|
2
2
|
require('./jsx-runtime-6sQc68DD.cjs');
|
|
3
|
-
const require_reactPlugin = require('./reactPlugin-
|
|
3
|
+
const require_reactPlugin = require('./reactPlugin-D9h2zvuq.cjs');
|
|
4
4
|
|
|
5
5
|
exports.reactPlugin = require_reactPlugin.reactPlugin;
|
|
6
6
|
var _kubb_fabric_core_plugins = require("@kubb/fabric-core/plugins");
|
package/dist/plugins.js
CHANGED
|
@@ -17440,7 +17440,7 @@ const Renderer = (0, import_react_reconciler.default)({
|
|
|
17440
17440
|
const node = createNode(originalType);
|
|
17441
17441
|
for (const [key, value] of Object.entries(newProps)) {
|
|
17442
17442
|
if (key === "children") continue;
|
|
17443
|
-
setAttribute(node, key, value);
|
|
17443
|
+
if (value !== void 0) setAttribute(node, key, value);
|
|
17444
17444
|
}
|
|
17445
17445
|
return node;
|
|
17446
17446
|
},
|
|
@@ -17483,7 +17483,9 @@ const Renderer = (0, import_react_reconciler.default)({
|
|
|
17483
17483
|
commitMount() {},
|
|
17484
17484
|
commitUpdate(node, _payload, _type, _oldProps, newProps) {
|
|
17485
17485
|
const { props } = newProps;
|
|
17486
|
-
if (props)
|
|
17486
|
+
if (props) {
|
|
17487
|
+
for (const [key, value] of Object.entries(props)) if (value !== void 0) setAttribute(node, key, value);
|
|
17488
|
+
}
|
|
17487
17489
|
},
|
|
17488
17490
|
commitTextUpdate(node, _oldText, newText) {
|
|
17489
17491
|
setTextNodeValue(node, newText);
|