@seedprotocol/sdk 0.1.28 → 0.1.29

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.
@@ -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-D0rZ64nV.js');
1002
+ const { Item } = yield import('./index-riVmJZc4.js');
1003
1003
  const item = yield Item.find({
1004
1004
  seedLocalId,
1005
1005
  modelName: itemModelName,
@@ -4321,7 +4321,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
4321
4321
  if (!models$1) {
4322
4322
  return;
4323
4323
  }
4324
- const { models: SeedModels } = yield import('./seed.schema.config-yz1aTqaQ.js');
4324
+ const { models: SeedModels } = yield import('./seed.schema.config-DERpjCrF.js');
4325
4325
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
4326
4326
  let hasModelsInDb = false;
4327
4327
  const schemaDefsByModelName = new Map();
@@ -5785,11 +5785,11 @@ const globalMachine = setup({
5785
5785
  (_a) => __awaiter(void 0, [_a], void 0, function* ({ context }) {
5786
5786
  let SeedClass;
5787
5787
  if (context.environment === 'node') {
5788
- const { SeedNode } = yield import('./seed-BvhBPoan.js');
5788
+ const { SeedNode } = yield import('./seed-CmMzZNRI.js');
5789
5789
  SeedClass = SeedNode;
5790
5790
  }
5791
5791
  else {
5792
- const { SeedBrowser } = yield import('./seed-j9PdVqyP.js');
5792
+ const { SeedBrowser } = yield import('./seed-BjjMAQIE.js');
5793
5793
  SeedClass = SeedBrowser;
5794
5794
  }
5795
5795
  return SeedClass;
@@ -6264,8 +6264,9 @@ const useItemProperty = ({ propertyName, seedLocalId, seedUid, }) => {
6264
6264
  }, [dbsAreReady, property, value]);
6265
6265
  const readFromDb = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
6266
6266
  if (!propertyName ||
6267
- (!seedLocalId && !seedUid) ||
6268
- (!dbsAreReady && isReadingFromDb)) {
6267
+ !dbsAreReady ||
6268
+ isReadingFromDb ||
6269
+ (!seedLocalId && !seedUid)) {
6269
6270
  return;
6270
6271
  }
6271
6272
  setIsReadingFromDb(true);
@@ -6602,7 +6603,7 @@ const client = {
6602
6603
  console.error('fs listeners not ready during init');
6603
6604
  }
6604
6605
  globalService.send({ type: 'init', endpoints, models, addresses });
6605
- import('./seed.schema.config-yz1aTqaQ.js').then(({ models }) => {
6606
+ import('./seed.schema.config-DERpjCrF.js').then(({ models }) => {
6606
6607
  for (const [key, value] of Object.entries(models)) {
6607
6608
  setModel(key, value);
6608
6609
  }
@@ -6659,4 +6660,4 @@ if (isNode()) {
6659
6660
  }
6660
6661
 
6661
6662
  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, useServices as t, useItems as u, getGlobalService as v, withSeed as w, client as x, getCorrectId as y };
6662
- //# sourceMappingURL=index-Dv3N222g.js.map
6663
+ //# sourceMappingURL=index-CgMkqsGG.js.map