@weaverse/core 5.5.0 → 5.6.0

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.d.mts CHANGED
@@ -404,6 +404,7 @@ declare class Weaverse extends EventEmitter {
404
404
  static itemInstances: Map<any, any>;
405
405
  weaverseHost: string;
406
406
  weaverseVersion: string;
407
+ sdkVersion: string;
407
408
  projectId: string;
408
409
  isDesignMode: boolean;
409
410
  isPreviewMode: boolean;
package/dist/index.d.ts CHANGED
@@ -404,6 +404,7 @@ declare class Weaverse extends EventEmitter {
404
404
  static itemInstances: Map<any, any>;
405
405
  weaverseHost: string;
406
406
  weaverseVersion: string;
407
+ sdkVersion: string;
407
408
  projectId: string;
408
409
  isDesignMode: boolean;
409
410
  isPreviewMode: boolean;
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ var require_react_production = __commonJS({
44
44
  var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
45
45
  var REACT_MEMO_TYPE = Symbol.for("react.memo");
46
46
  var REACT_LAZY_TYPE = Symbol.for("react.lazy");
47
+ var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
47
48
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
48
49
  function getIteratorFn(maybeIterable) {
49
50
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -94,27 +95,22 @@ var require_react_production = __commonJS({
94
95
  assign(pureComponentPrototype, Component.prototype);
95
96
  pureComponentPrototype.isPureReactComponent = true;
96
97
  var isArrayImpl = Array.isArray;
97
- var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
98
+ function noop() {
99
+ }
100
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null };
98
101
  var hasOwnProperty = Object.prototype.hasOwnProperty;
99
- function ReactElement(type, key, self, source, owner, props) {
100
- self = props.ref;
102
+ function ReactElement(type, key, props) {
103
+ var refProp = props.ref;
101
104
  return {
102
105
  $$typeof: REACT_ELEMENT_TYPE,
103
106
  type,
104
107
  key,
105
- ref: void 0 !== self ? self : null,
108
+ ref: void 0 !== refProp ? refProp : null,
106
109
  props
107
110
  };
108
111
  }
109
112
  function cloneAndReplaceKey(oldElement, newKey) {
110
- return ReactElement(
111
- oldElement.type,
112
- newKey,
113
- void 0,
114
- void 0,
115
- void 0,
116
- oldElement.props
117
- );
113
+ return ReactElement(oldElement.type, newKey, oldElement.props);
118
114
  }
119
115
  function isValidElement(object) {
120
116
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
@@ -129,8 +125,6 @@ var require_react_production = __commonJS({
129
125
  function getElementKey(element, index) {
130
126
  return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
131
127
  }
132
- function noop$1() {
133
- }
134
128
  function resolveThenable(thenable) {
135
129
  switch (thenable.status) {
136
130
  case "fulfilled":
@@ -138,7 +132,7 @@ var require_react_production = __commonJS({
138
132
  case "rejected":
139
133
  throw thenable.reason;
140
134
  default:
141
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
135
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
142
136
  function(fulfilledValue) {
143
137
  "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
144
138
  },
@@ -270,9 +264,7 @@ var require_react_production = __commonJS({
270
264
  }
271
265
  console.error(error);
272
266
  };
273
- function noop() {
274
- }
275
- exports2.Children = {
267
+ var Children = {
276
268
  map: mapChildren,
277
269
  forEach: function(children, forEachFunc, forEachContext) {
278
270
  mapChildren(
@@ -303,6 +295,8 @@ var require_react_production = __commonJS({
303
295
  return children;
304
296
  }
305
297
  };
298
+ exports2.Activity = REACT_ACTIVITY_TYPE;
299
+ exports2.Children = Children;
306
300
  exports2.Component = Component;
307
301
  exports2.Fragment = REACT_FRAGMENT_TYPE;
308
302
  exports2.Profiler = REACT_PROFILER_TYPE;
@@ -321,14 +315,17 @@ var require_react_production = __commonJS({
321
315
  return fn.apply(null, arguments);
322
316
  };
323
317
  };
318
+ exports2.cacheSignal = function() {
319
+ return null;
320
+ };
324
321
  exports2.cloneElement = function(element, config, children) {
325
322
  if (null === element || void 0 === element)
326
323
  throw Error(
327
324
  "The argument must be a React element, but you passed " + element + "."
328
325
  );
329
- var props = assign({}, element.props), key = element.key, owner = void 0;
326
+ var props = assign({}, element.props), key = element.key;
330
327
  if (null != config)
331
- for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
328
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
332
329
  !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
333
330
  var propName = arguments.length - 2;
334
331
  if (1 === propName) props.children = children;
@@ -337,7 +334,7 @@ var require_react_production = __commonJS({
337
334
  childArray[i] = arguments[i + 2];
338
335
  props.children = childArray;
339
336
  }
340
- return ReactElement(element.type, key, void 0, void 0, owner, props);
337
+ return ReactElement(element.type, key, props);
341
338
  };
342
339
  exports2.createContext = function(defaultValue) {
343
340
  defaultValue = {
@@ -370,7 +367,7 @@ var require_react_production = __commonJS({
370
367
  if (type && type.defaultProps)
371
368
  for (propName in childrenLength = type.defaultProps, childrenLength)
372
369
  void 0 === props[propName] && (props[propName] = childrenLength[propName]);
373
- return ReactElement(type, key, void 0, void 0, null, props);
370
+ return ReactElement(type, key, props);
374
371
  };
375
372
  exports2.createRef = function() {
376
373
  return { current: null };
@@ -403,7 +400,7 @@ var require_react_production = __commonJS({
403
400
  } catch (error) {
404
401
  reportGlobalError(error);
405
402
  } finally {
406
- ReactSharedInternals.T = prevTransition;
403
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
407
404
  }
408
405
  };
409
406
  exports2.unstable_useCacheRefresh = function() {
@@ -426,13 +423,11 @@ var require_react_production = __commonJS({
426
423
  exports2.useDeferredValue = function(value, initialValue) {
427
424
  return ReactSharedInternals.H.useDeferredValue(value, initialValue);
428
425
  };
429
- exports2.useEffect = function(create, createDeps, update) {
430
- var dispatcher = ReactSharedInternals.H;
431
- if ("function" === typeof update)
432
- throw Error(
433
- "useEffect CRUD overload is not enabled in this build of React."
434
- );
435
- return dispatcher.useEffect(create, createDeps);
426
+ exports2.useEffect = function(create, deps) {
427
+ return ReactSharedInternals.H.useEffect(create, deps);
428
+ };
429
+ exports2.useEffectEvent = function(callback) {
430
+ return ReactSharedInternals.H.useEffectEvent(callback);
436
431
  };
437
432
  exports2.useId = function() {
438
433
  return ReactSharedInternals.H.useId();
@@ -471,7 +466,7 @@ var require_react_production = __commonJS({
471
466
  exports2.useTransition = function() {
472
467
  return ReactSharedInternals.H.useTransition();
473
468
  };
474
- exports2.version = "19.1.1";
469
+ exports2.version = "19.2.0";
475
470
  }
476
471
  });
477
472
 
@@ -520,6 +515,8 @@ var require_react_development = __commonJS({
520
515
  this.refs = emptyObject;
521
516
  this.updater = updater || ReactNoopUpdateQueue;
522
517
  }
518
+ function noop() {
519
+ }
523
520
  function testStringCoercion(value) {
524
521
  return "" + value;
525
522
  }
@@ -568,7 +565,7 @@ var require_react_development = __commonJS({
568
565
  case REACT_PORTAL_TYPE:
569
566
  return "Portal";
570
567
  case REACT_CONTEXT_TYPE:
571
- return (type.displayName || "Context") + ".Provider";
568
+ return type.displayName || "Context";
572
569
  case REACT_CONSUMER_TYPE:
573
570
  return (type._context.displayName || "Context") + ".Consumer";
574
571
  case REACT_FORWARD_REF_TYPE:
@@ -634,8 +631,8 @@ var require_react_development = __commonJS({
634
631
  componentName = this.props.ref;
635
632
  return void 0 !== componentName ? componentName : null;
636
633
  }
637
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
638
- self = props.ref;
634
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
635
+ var refProp = props.ref;
639
636
  type = {
640
637
  $$typeof: REACT_ELEMENT_TYPE,
641
638
  type,
@@ -643,7 +640,7 @@ var require_react_development = __commonJS({
643
640
  props,
644
641
  _owner: owner
645
642
  };
646
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
643
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
647
644
  enumerable: false,
648
645
  get: elementRefGetterWithDeprecationWarning
649
646
  }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
@@ -679,16 +676,17 @@ var require_react_development = __commonJS({
679
676
  newKey = ReactElement(
680
677
  oldElement.type,
681
678
  newKey,
682
- void 0,
683
- void 0,
684
- oldElement._owner,
685
679
  oldElement.props,
680
+ oldElement._owner,
686
681
  oldElement._debugStack,
687
682
  oldElement._debugTask
688
683
  );
689
684
  oldElement._store && (newKey._store.validated = oldElement._store.validated);
690
685
  return newKey;
691
686
  }
687
+ function validateChildKeys(node) {
688
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
689
+ }
692
690
  function isValidElement(object) {
693
691
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
694
692
  }
@@ -701,8 +699,6 @@ var require_react_development = __commonJS({
701
699
  function getElementKey(element, index) {
702
700
  return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
703
701
  }
704
- function noop$1() {
705
- }
706
702
  function resolveThenable(thenable) {
707
703
  switch (thenable.status) {
708
704
  case "fulfilled":
@@ -710,7 +706,7 @@ var require_react_development = __commonJS({
710
706
  case "rejected":
711
707
  throw thenable.reason;
712
708
  default:
713
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
709
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
714
710
  function(fulfilledValue) {
715
711
  "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
716
712
  },
@@ -817,28 +813,46 @@ var require_react_development = __commonJS({
817
813
  }
818
814
  function lazyInitializer(payload) {
819
815
  if (-1 === payload._status) {
820
- var ctor = payload._result;
821
- ctor = ctor();
822
- ctor.then(
816
+ var ioInfo = payload._ioInfo;
817
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
818
+ ioInfo = payload._result;
819
+ var thenable = ioInfo();
820
+ thenable.then(
823
821
  function(moduleObject) {
824
- if (0 === payload._status || -1 === payload._status)
825
- payload._status = 1, payload._result = moduleObject;
822
+ if (0 === payload._status || -1 === payload._status) {
823
+ payload._status = 1;
824
+ payload._result = moduleObject;
825
+ var _ioInfo = payload._ioInfo;
826
+ null != _ioInfo && (_ioInfo.end = performance.now());
827
+ void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
828
+ }
826
829
  },
827
830
  function(error) {
828
- if (0 === payload._status || -1 === payload._status)
829
- payload._status = 2, payload._result = error;
831
+ if (0 === payload._status || -1 === payload._status) {
832
+ payload._status = 2;
833
+ payload._result = error;
834
+ var _ioInfo2 = payload._ioInfo;
835
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
836
+ void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
837
+ }
830
838
  }
831
839
  );
832
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
840
+ ioInfo = payload._ioInfo;
841
+ if (null != ioInfo) {
842
+ ioInfo.value = thenable;
843
+ var displayName = thenable.displayName;
844
+ "string" === typeof displayName && (ioInfo.name = displayName);
845
+ }
846
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
833
847
  }
834
848
  if (1 === payload._status)
835
- return ctor = payload._result, void 0 === ctor && console.error(
849
+ return ioInfo = payload._result, void 0 === ioInfo && console.error(
836
850
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
837
- ctor
838
- ), "default" in ctor || console.error(
851
+ ioInfo
852
+ ), "default" in ioInfo || console.error(
839
853
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
840
- ctor
841
- ), ctor.default;
854
+ ioInfo
855
+ ), ioInfo.default;
842
856
  throw payload._result;
843
857
  }
844
858
  function resolveDispatcher() {
@@ -848,7 +862,8 @@ var require_react_development = __commonJS({
848
862
  );
849
863
  return dispatcher;
850
864
  }
851
- function noop() {
865
+ function releaseAsyncTransition() {
866
+ ReactSharedInternals.asyncTransitions--;
852
867
  }
853
868
  function enqueueTask(task) {
854
869
  if (null === enqueueTaskImpl)
@@ -924,9 +939,7 @@ var require_react_development = __commonJS({
924
939
  }
925
940
  }
926
941
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
927
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
928
- Symbol.for("react.provider");
929
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
942
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
930
943
  isMounted: function() {
931
944
  return false;
932
945
  },
@@ -961,7 +974,7 @@ var require_react_development = __commonJS({
961
974
  "replaceState",
962
975
  "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
963
976
  ]
964
- }, fnName;
977
+ };
965
978
  for (fnName in deprecatedAPIs)
966
979
  deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
967
980
  ComponentDummy.prototype = Component.prototype;
@@ -974,8 +987,8 @@ var require_react_development = __commonJS({
974
987
  A: null,
975
988
  T: null,
976
989
  S: null,
977
- V: null,
978
990
  actQueue: null,
991
+ asyncTransitions: 0,
979
992
  isBatchingLegacy: false,
980
993
  didScheduleLegacyUpdate: false,
981
994
  didUsePromise: false,
@@ -1022,7 +1035,7 @@ var require_react_development = __commonJS({
1022
1035
  return resolveDispatcher().useMemoCache(size);
1023
1036
  }
1024
1037
  });
1025
- exports2.Children = {
1038
+ var fnName = {
1026
1039
  map: mapChildren,
1027
1040
  forEach: function(children, forEachFunc, forEachContext) {
1028
1041
  mapChildren(
@@ -1053,6 +1066,8 @@ var require_react_development = __commonJS({
1053
1066
  return children;
1054
1067
  }
1055
1068
  };
1069
+ exports2.Activity = REACT_ACTIVITY_TYPE;
1070
+ exports2.Children = fnName;
1056
1071
  exports2.Component = Component;
1057
1072
  exports2.Fragment = REACT_FRAGMENT_TYPE;
1058
1073
  exports2.Profiler = REACT_PROFILER_TYPE;
@@ -1143,6 +1158,9 @@ var require_react_development = __commonJS({
1143
1158
  return fn.apply(null, arguments);
1144
1159
  };
1145
1160
  };
1161
+ exports2.cacheSignal = function() {
1162
+ return null;
1163
+ };
1146
1164
  exports2.captureOwnerStack = function() {
1147
1165
  var getCurrentStack = ReactSharedInternals.getCurrentStack;
1148
1166
  return null === getCurrentStack ? null : getCurrentStack();
@@ -1181,15 +1199,13 @@ var require_react_development = __commonJS({
1181
1199
  props = ReactElement(
1182
1200
  element.type,
1183
1201
  key,
1184
- void 0,
1185
- void 0,
1186
- owner,
1187
1202
  props,
1203
+ owner,
1188
1204
  element._debugStack,
1189
1205
  element._debugTask
1190
1206
  );
1191
1207
  for (key = 2; key < arguments.length; key++)
1192
- owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1208
+ validateChildKeys(arguments[key]);
1193
1209
  return props;
1194
1210
  };
1195
1211
  exports2.createContext = function(defaultValue) {
@@ -1211,16 +1227,14 @@ var require_react_development = __commonJS({
1211
1227
  return defaultValue;
1212
1228
  };
1213
1229
  exports2.createElement = function(type, config, children) {
1214
- for (var i = 2; i < arguments.length; i++) {
1215
- var node = arguments[i];
1216
- isValidElement(node) && node._store && (node._store.validated = 1);
1217
- }
1230
+ for (var i = 2; i < arguments.length; i++)
1231
+ validateChildKeys(arguments[i]);
1218
1232
  i = {};
1219
- node = null;
1233
+ var key = null;
1220
1234
  if (null != config)
1221
1235
  for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1222
1236
  "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1223
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1237
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
1224
1238
  hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1225
1239
  var childrenLength = arguments.length - 2;
1226
1240
  if (1 === childrenLength) i.children = children;
@@ -1233,18 +1247,16 @@ var require_react_development = __commonJS({
1233
1247
  if (type && type.defaultProps)
1234
1248
  for (propName in childrenLength = type.defaultProps, childrenLength)
1235
1249
  void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1236
- node && defineKeyPropWarningGetter(
1250
+ key && defineKeyPropWarningGetter(
1237
1251
  i,
1238
1252
  "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1239
1253
  );
1240
1254
  var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1241
1255
  return ReactElement(
1242
1256
  type,
1243
- node,
1244
- void 0,
1245
- void 0,
1246
- getOwner(),
1257
+ key,
1247
1258
  i,
1259
+ getOwner(),
1248
1260
  propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1249
1261
  propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1250
1262
  );
@@ -1283,11 +1295,23 @@ var require_react_development = __commonJS({
1283
1295
  };
1284
1296
  exports2.isValidElement = isValidElement;
1285
1297
  exports2.lazy = function(ctor) {
1286
- return {
1298
+ ctor = { _status: -1, _result: ctor };
1299
+ var lazyType = {
1287
1300
  $$typeof: REACT_LAZY_TYPE,
1288
- _payload: { _status: -1, _result: ctor },
1301
+ _payload: ctor,
1289
1302
  _init: lazyInitializer
1303
+ }, ioInfo = {
1304
+ name: "lazy",
1305
+ start: -1,
1306
+ end: -1,
1307
+ value: null,
1308
+ owner: null,
1309
+ debugStack: Error("react-stack-top-frame"),
1310
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1290
1311
  };
1312
+ ctor._ioInfo = ioInfo;
1313
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1314
+ return lazyType;
1291
1315
  };
1292
1316
  exports2.memo = function(type, compare) {
1293
1317
  null == type && console.error(
@@ -1315,18 +1339,20 @@ var require_react_development = __commonJS({
1315
1339
  };
1316
1340
  exports2.startTransition = function(scope) {
1317
1341
  var prevTransition = ReactSharedInternals.T, currentTransition = {};
1318
- ReactSharedInternals.T = currentTransition;
1319
1342
  currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1343
+ ReactSharedInternals.T = currentTransition;
1320
1344
  try {
1321
1345
  var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1322
1346
  null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1323
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1347
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
1324
1348
  } catch (error) {
1325
1349
  reportGlobalError(error);
1326
1350
  } finally {
1327
1351
  null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1328
1352
  "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1329
- )), ReactSharedInternals.T = prevTransition;
1353
+ )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
1354
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1355
+ ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1330
1356
  }
1331
1357
  };
1332
1358
  exports2.unstable_useCacheRefresh = function() {
@@ -1358,16 +1384,14 @@ var require_react_development = __commonJS({
1358
1384
  exports2.useDeferredValue = function(value, initialValue) {
1359
1385
  return resolveDispatcher().useDeferredValue(value, initialValue);
1360
1386
  };
1361
- exports2.useEffect = function(create, createDeps, update) {
1387
+ exports2.useEffect = function(create, deps) {
1362
1388
  null == create && console.warn(
1363
1389
  "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1364
1390
  );
1365
- var dispatcher = resolveDispatcher();
1366
- if ("function" === typeof update)
1367
- throw Error(
1368
- "useEffect CRUD overload is not enabled in this build of React."
1369
- );
1370
- return dispatcher.useEffect(create, createDeps);
1391
+ return resolveDispatcher().useEffect(create, deps);
1392
+ };
1393
+ exports2.useEffectEvent = function(callback) {
1394
+ return resolveDispatcher().useEffectEvent(callback);
1371
1395
  };
1372
1396
  exports2.useId = function() {
1373
1397
  return resolveDispatcher().useId();
@@ -1412,7 +1436,7 @@ var require_react_development = __commonJS({
1412
1436
  exports2.useTransition = function() {
1413
1437
  return resolveDispatcher().useTransition();
1414
1438
  };
1415
- exports2.version = "19.1.1";
1439
+ exports2.version = "19.2.0";
1416
1440
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1417
1441
  })();
1418
1442
  }
@@ -1548,7 +1572,7 @@ var WeaverseItemStore = class extends EventEmitter {
1548
1572
  stitchesClass = "";
1549
1573
  constructor(initialData, weaverse) {
1550
1574
  super();
1551
- let { type, id } = initialData || {};
1575
+ const { type, id } = initialData || {};
1552
1576
  this.weaverse = weaverse;
1553
1577
  if (id && type) {
1554
1578
  Weaverse.itemInstances.set(id, this);
@@ -1570,8 +1594,8 @@ var WeaverseItemStore = class extends EventEmitter {
1570
1594
  return this.weaverse.elementRegistry.get(this._store.type);
1571
1595
  }
1572
1596
  getDefaultCss = () => {
1573
- let defaultCss = this.Element?.defaultCss || {};
1574
- let currentCss = this._store.css || {};
1597
+ const defaultCss = this.Element?.defaultCss || {};
1598
+ const currentCss = this._store.css || {};
1575
1599
  return merge(defaultCss, currentCss);
1576
1600
  };
1577
1601
  get data() {
@@ -1595,6 +1619,7 @@ var Weaverse = class _Weaverse extends EventEmitter {
1595
1619
  static itemInstances = /* @__PURE__ */ new Map();
1596
1620
  weaverseHost = "https://studio.weaverse.io";
1597
1621
  weaverseVersion = version;
1622
+ sdkVersion = version;
1598
1623
  projectId = "";
1599
1624
  isDesignMode = false;
1600
1625
  isPreviewMode = false;
@@ -1610,24 +1635,22 @@ var Weaverse = class _Weaverse extends EventEmitter {
1610
1635
  constructor(params) {
1611
1636
  super();
1612
1637
  for (const param of Object.entries(params)) {
1613
- let [key, value] = param;
1638
+ const [key, value] = param;
1614
1639
  this[key] = value || this[key];
1615
1640
  }
1616
1641
  this.initProject();
1617
1642
  _Weaverse.initStitches();
1618
1643
  }
1619
- getSnapShot = () => {
1620
- return this.data;
1621
- };
1644
+ getSnapShot = () => this.data;
1622
1645
  /**
1623
1646
  * Create new `WeaverseItemStore` instance for each item in the project.
1624
1647
  */
1625
1648
  initProject = () => {
1626
- let { data } = this;
1627
- let itemInstances = _Weaverse.itemInstances;
1649
+ const { data } = this;
1650
+ const itemInstances = _Weaverse.itemInstances;
1628
1651
  if (data?.items) {
1629
1652
  for (const item of data.items) {
1630
- let itemInstance = itemInstances.get(item.id);
1653
+ const itemInstance = itemInstances.get(item.id);
1631
1654
  if (itemInstance) {
1632
1655
  itemInstance.setData(item);
1633
1656
  } else {
@@ -1639,9 +1662,7 @@ var Weaverse = class _Weaverse extends EventEmitter {
1639
1662
  get itemInstances() {
1640
1663
  return _Weaverse.itemInstances;
1641
1664
  }
1642
- createItemInstance = (data) => {
1643
- return new _Weaverse.ItemConstructor(data, this);
1644
- };
1665
+ createItemInstance = (data) => new _Weaverse.ItemConstructor(data, this);
1645
1666
  static initStitches = (externalConfig) => {
1646
1667
  _Weaverse.stitchesInstance = _Weaverse.stitchesInstance || (0, import_core.createStitches)({
1647
1668
  prefix: "weaverse",