@seedprotocol/sdk 0.1.27 → 0.1.28
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-OeIV396w.js → index-D0rZ64nV.js} +2 -2
- package/dist/index-D0rZ64nV.js.map +1 -0
- package/dist/{index-D26v76gh.js → index-Dv3N222g.js} +9 -7
- package/dist/{index-D26v76gh.js.map → index-Dv3N222g.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed-DYYqlEb1.js → seed-BvhBPoan.js} +3 -3
- package/dist/{seed-DYYqlEb1.js.map → seed-BvhBPoan.js.map} +1 -1
- package/dist/{seed-CXWpd_ga.js → seed-CFFBQjEM.js} +2 -2
- package/dist/{seed-CXWpd_ga.js.map → seed-CFFBQjEM.js.map} +1 -1
- package/dist/{seed-BpwPgvGq.js → seed-j9PdVqyP.js} +3 -3
- package/dist/{seed-BpwPgvGq.js.map → seed-j9PdVqyP.js.map} +1 -1
- package/dist/{seed.schema.config-B8k6uQFV.js → seed.schema.config-yz1aTqaQ.js} +2 -2
- package/dist/{seed.schema.config-B8k6uQFV.js.map → seed.schema.config-yz1aTqaQ.js.map} +1 -1
- package/dist/types/src/browser/react/property.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-OeIV396w.js.map +0 -1
|
@@ -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-
|
|
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-Dv3N222g.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-
|
|
30
|
+
//# sourceMappingURL=index-D0rZ64nV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D0rZ64nV.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-
|
|
1002
|
+
const { Item } = yield import('./index-D0rZ64nV.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-
|
|
4324
|
+
const { models: SeedModels } = yield import('./seed.schema.config-yz1aTqaQ.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-
|
|
5788
|
+
const { SeedNode } = yield import('./seed-BvhBPoan.js');
|
|
5789
5789
|
SeedClass = SeedNode;
|
|
5790
5790
|
}
|
|
5791
5791
|
else {
|
|
5792
|
-
const { SeedBrowser } = yield import('./seed-
|
|
5792
|
+
const { SeedBrowser } = yield import('./seed-j9PdVqyP.js');
|
|
5793
5793
|
SeedClass = SeedBrowser;
|
|
5794
5794
|
}
|
|
5795
5795
|
return SeedClass;
|
|
@@ -6263,7 +6263,9 @@ const useItemProperty = ({ propertyName, seedLocalId, seedUid, }) => {
|
|
|
6263
6263
|
}
|
|
6264
6264
|
}, [dbsAreReady, property, value]);
|
|
6265
6265
|
const readFromDb = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
6266
|
-
if (!propertyName ||
|
|
6266
|
+
if (!propertyName ||
|
|
6267
|
+
(!seedLocalId && !seedUid) ||
|
|
6268
|
+
(!dbsAreReady && isReadingFromDb)) {
|
|
6267
6269
|
return;
|
|
6268
6270
|
}
|
|
6269
6271
|
setIsReadingFromDb(true);
|
|
@@ -6600,7 +6602,7 @@ const client = {
|
|
|
6600
6602
|
console.error('fs listeners not ready during init');
|
|
6601
6603
|
}
|
|
6602
6604
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6603
|
-
import('./seed.schema.config-
|
|
6605
|
+
import('./seed.schema.config-yz1aTqaQ.js').then(({ models }) => {
|
|
6604
6606
|
for (const [key, value] of Object.entries(models)) {
|
|
6605
6607
|
setModel(key, value);
|
|
6606
6608
|
}
|
|
@@ -6657,4 +6659,4 @@ if (isNode()) {
|
|
|
6657
6659
|
}
|
|
6658
6660
|
|
|
6659
6661
|
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 };
|
|
6660
|
-
//# sourceMappingURL=index-
|
|
6662
|
+
//# sourceMappingURL=index-Dv3N222g.js.map
|