@seedprotocol/sdk 0.1.33 → 0.1.35

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.
@@ -1,4 +1,4 @@
1
- export { f as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, e as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SEEDS, b as GET_SEED_IDS, c as GET_STORAGE_TRANSACTION_ID, d as GET_VERSIONS, I as Item, g as itemMachineAll, i as itemMachineSingle } from './index-BgZMod4t.js';
1
+ export { f as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, e as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SEEDS, b as GET_SEED_IDS, c as GET_STORAGE_TRANSACTION_ID, d as GET_VERSIONS, I as Item, g as itemMachineAll, i as itemMachineSingle } from './index-CAT7d9F9.js';
2
2
  import './constants-KW2RTtZB.js';
3
3
  import 'path';
4
4
  import 'reflect-metadata';
@@ -27,4 +27,4 @@ import '@xstate/react';
27
27
  import '@statelyai/inspect';
28
28
  import 'drizzle-orm/sqlite-proxy';
29
29
  import '@zenfs/dom';
30
- //# sourceMappingURL=index-C5t1T2iY.js.map
30
+ //# sourceMappingURL=index-Ba6KDFRa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Ba6KDFRa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -999,7 +999,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
999
999
  renderValue: refResolvedDisplayValue,
1000
1000
  });
1001
1001
  if (propertyNameFromDb === 'storageTransactionId') {
1002
- const { Item } = yield import('./index-C5t1T2iY.js');
1002
+ const { Item } = yield import('./index-Ba6KDFRa.js');
1003
1003
  const item = yield Item.find({
1004
1004
  seedLocalId,
1005
1005
  modelName: itemModelName,
@@ -4318,7 +4318,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
4318
4318
  if (!models$1) {
4319
4319
  return;
4320
4320
  }
4321
- const { models: SeedModels } = yield import('./seed.schema.config-Cp-DUNSB.js');
4321
+ const { models: SeedModels } = yield import('./seed.schema.config-CBSMvlVo.js');
4322
4322
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
4323
4323
  let hasModelsInDb = false;
4324
4324
  const schemaDefsByModelName = new Map();
@@ -5782,11 +5782,11 @@ const globalMachine = setup({
5782
5782
  (_a) => __awaiter(void 0, [_a], void 0, function* ({ context }) {
5783
5783
  let SeedClass;
5784
5784
  if (context.environment === 'node') {
5785
- const { SeedNode } = yield import('./seed-VcgMFZrT.js');
5785
+ const { SeedNode } = yield import('./seed-D27QqqZj.js');
5786
5786
  SeedClass = SeedNode;
5787
5787
  }
5788
5788
  else {
5789
- const { SeedBrowser } = yield import('./seed-nWPHoYI5.js');
5789
+ const { SeedBrowser } = yield import('./seed-NqlwXMHy.js');
5790
5790
  SeedClass = SeedBrowser;
5791
5791
  }
5792
5792
  return SeedClass;
@@ -6221,9 +6221,10 @@ const useItemProperty = ({ propertyName, seedLocalId, seedUid, }) => {
6221
6221
  }
6222
6222
  setProperty(() => foundProperty);
6223
6223
  setIsInitialized(true);
6224
- }), []);
6224
+ }), [internalStatus, isReadingFromDb]);
6225
6225
  useEffect(() => {
6226
6226
  if (internalStatus === 'ready') {
6227
+ console.log('[useItemPropertyTest] [useEffect] internalStatus is ready');
6227
6228
  readFromDb();
6228
6229
  }
6229
6230
  }, [internalStatus]);
@@ -6543,7 +6544,7 @@ const client = {
6543
6544
  console.error('fs listeners not ready during init');
6544
6545
  }
6545
6546
  globalService.send({ type: 'init', endpoints, models, addresses });
6546
- import('./seed.schema.config-Cp-DUNSB.js').then(({ models }) => {
6547
+ import('./seed.schema.config-CBSMvlVo.js').then(({ models }) => {
6547
6548
  for (const [key, value] of Object.entries(models)) {
6548
6549
  setModel(key, value);
6549
6550
  }
@@ -6600,4 +6601,4 @@ if (isNode()) {
6600
6601
  }
6601
6602
 
6602
6603
  export { CHILD_SNAPSHOT as C, GET_SCHEMAS as G, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, GET_SEEDS as a, GET_SEED_IDS as b, GET_STORAGE_TRANSACTION_ID as c, GET_VERSIONS as d, GET_PROPERTIES as e, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as f, itemMachineAll as g, internalMachine as h, itemMachineSingle as i, isNode as j, isBrowser as k, isReactNative as l, ImageSrc as m, ItemProperty as n, useItem as o, useItemProperties as p, useCreateItem as q, useItemProperty as r, useDeleteItem as s, useGlobalServiceStatus as t, useItems as u, useServices as v, withSeed as w, getGlobalService as x, client as y, getCorrectId as z };
6603
- //# sourceMappingURL=index-BgZMod4t.js.map
6604
+ //# sourceMappingURL=index-CAT7d9F9.js.map