@seedprotocol/sdk 0.1.95 → 0.1.97
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-Cnez8pwA.js → index-BHJ84k-m.js} +2 -2
- package/dist/{index-Cnez8pwA.js.map → index-BHJ84k-m.js.map} +1 -1
- package/dist/{index-3sREmGEH.js → index-uwYqpfQT.js} +12 -6
- package/dist/{index-3sREmGEH.js.map → index-uwYqpfQT.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-mWDkZ4po.js → seed.schema.config-DLj7z3au.js} +2 -2
- package/dist/{seed.schema.config-mWDkZ4po.js.map → seed.schema.config-DLj7z3au.js.map} +1 -1
- package/dist/src/actors.ts +6 -48
- package/dist/src/getPublishPayload.ts +11 -1
- package/dist/src/index.ts +12 -49
- package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-
|
|
1
|
+
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-uwYqpfQT.js';
|
|
2
2
|
import './constants-rmQ8zg8_.js';
|
|
3
3
|
import '@ethereum-attestation-service/eas-sdk';
|
|
4
4
|
import 'thirdweb';
|
|
@@ -29,4 +29,4 @@ import 'rxjs';
|
|
|
29
29
|
import 'drizzle-orm/sqlite-proxy';
|
|
30
30
|
import '@zenfs/dom';
|
|
31
31
|
import 'arweave';
|
|
32
|
-
//# sourceMappingURL=index-
|
|
32
|
+
//# sourceMappingURL=index-BHJ84k-m.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BHJ84k-m.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -20,7 +20,7 @@ import { useImmer } from 'use-immer';
|
|
|
20
20
|
import { useSelector } from '@xstate/react';
|
|
21
21
|
import EventEmitter from 'eventemitter3';
|
|
22
22
|
import { immerable, produce, enableMapSet } from 'immer';
|
|
23
|
-
import pluralize from 'pluralize';
|
|
23
|
+
import pluralize, { singular } from 'pluralize';
|
|
24
24
|
import { createBrowserInspector } from '@statelyai/inspect';
|
|
25
25
|
import { BehaviorSubject } from 'rxjs';
|
|
26
26
|
import { drizzle } from 'drizzle-orm/sqlite-proxy';
|
|
@@ -1068,7 +1068,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1068
1068
|
if (propertyRecordSchema &&
|
|
1069
1069
|
propertyRecordSchema.storageType &&
|
|
1070
1070
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1071
|
-
const { Item } = yield import('./index-
|
|
1071
|
+
const { Item } = yield import('./index-BHJ84k-m.js');
|
|
1072
1072
|
const item = yield Item.find({
|
|
1073
1073
|
seedLocalId,
|
|
1074
1074
|
modelName: itemModelName,
|
|
@@ -2622,7 +2622,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2622
2622
|
if (!models$1) {
|
|
2623
2623
|
return;
|
|
2624
2624
|
}
|
|
2625
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2625
|
+
const { models: SeedModels } = yield import('./seed.schema.config-DLj7z3au.js');
|
|
2626
2626
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2627
2627
|
let hasModelsInDb = false;
|
|
2628
2628
|
const schemaDefsByModelName = new Map();
|
|
@@ -5840,7 +5840,13 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5840
5840
|
}
|
|
5841
5841
|
if (itemProperty.propertyDef.dataType === 'List' &&
|
|
5842
5842
|
itemProperty.propertyDef.ref) {
|
|
5843
|
-
|
|
5843
|
+
const singularPropertyName = singular(propertyName);
|
|
5844
|
+
const compositePropertyName = `${singularPropertyName}${itemProperty.propertyDef.ref}Ids`;
|
|
5845
|
+
propertyNameForSchema = compositePropertyName;
|
|
5846
|
+
}
|
|
5847
|
+
if (itemProperty.propertyDef.storageType &&
|
|
5848
|
+
itemProperty.propertyDef.storageType === 'ItemStorage') {
|
|
5849
|
+
continue;
|
|
5844
5850
|
}
|
|
5845
5851
|
const foundPropertySchema = yield getSchemaForItemProperty({
|
|
5846
5852
|
schemaUid: itemProperty.schemaUid,
|
|
@@ -6667,7 +6673,7 @@ const client = {
|
|
|
6667
6673
|
console.error('fs listeners not ready during init');
|
|
6668
6674
|
}
|
|
6669
6675
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6670
|
-
import('./seed.schema.config-
|
|
6676
|
+
import('./seed.schema.config-DLj7z3au.js').then(({ models }) => {
|
|
6671
6677
|
for (const [key, value] of Object.entries(models)) {
|
|
6672
6678
|
setModel(key, value);
|
|
6673
6679
|
}
|
|
@@ -7612,4 +7618,4 @@ if (isNode()) {
|
|
|
7612
7618
|
}
|
|
7613
7619
|
|
|
7614
7620
|
export { 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_SCHEMA_BY_NAME as a, GET_SEEDS as b, GET_SEED_IDS as c, GET_STORAGE_TRANSACTION_ID as d, GET_VERSIONS as e, GET_PROPERTIES as f, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as g, itemMachineAll as h, itemMachineSingle as i, ImageSrc as j, ItemProperty as k, useItem as l, useItemProperties as m, useCreateItem as n, useItemProperty as o, useDeleteItem as p, useGlobalServiceStatus as q, useServices as r, getGlobalService as s, client as t, useItems as u, getCorrectId as v, withSeed as w };
|
|
7615
|
-
//# sourceMappingURL=index-
|
|
7621
|
+
//# sourceMappingURL=index-uwYqpfQT.js.map
|