@momoyu-ink/kit 0.5.4 → 0.5.5

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/lib.cjs CHANGED
@@ -212,7 +212,8 @@ var hostConfig = {
212
212
  * @required
213
213
  */
214
214
  createInstance(type, props, _root, _hostContext, _internalInstanceHandle) {
215
- const node = Node.create(props.label ?? "", type, props);
215
+ const { ref, ...restProps } = props;
216
+ const node = Node.create(props.label ?? "", type, restProps);
216
217
  return node;
217
218
  },
218
219
  /**
@@ -282,7 +283,7 @@ var hostConfig = {
282
283
  },
283
284
  commitUpdate(instance, _type, prevProps, nextProps, _internalHandle) {
284
285
  const { label: _oldLabel, children: _oldChildren, ...oldProps } = prevProps;
285
- const { label, children, ...newProps } = nextProps;
286
+ const { label, children, ref, ...newProps } = nextProps;
286
287
  const changedProps = {};
287
288
  for (const key in newProps) {
288
289
  if (newProps[key] !== oldProps[key]) {
package/dist/lib.mjs CHANGED
@@ -199,7 +199,8 @@ var hostConfig = {
199
199
  * @required
200
200
  */
201
201
  createInstance(type, props, _root, _hostContext, _internalInstanceHandle) {
202
- const node = Node.create(props.label ?? "", type, props);
202
+ const { ref, ...restProps } = props;
203
+ const node = Node.create(props.label ?? "", type, restProps);
203
204
  return node;
204
205
  },
205
206
  /**
@@ -269,7 +270,7 @@ var hostConfig = {
269
270
  },
270
271
  commitUpdate(instance, _type, prevProps, nextProps, _internalHandle) {
271
272
  const { label: _oldLabel, children: _oldChildren, ...oldProps } = prevProps;
272
- const { label, children, ...newProps } = nextProps;
273
+ const { label, children, ref, ...newProps } = nextProps;
273
274
  const changedProps = {};
274
275
  for (const key in newProps) {
275
276
  if (newProps[key] !== oldProps[key]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momoyu-ink/kit",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Software Development Kit of Moyu Visual Novel Engine",
5
5
  "main": "dist/lib.cjs",
6
6
  "module": "dist/lib.mjs",