@seedprotocol/sdk 0.1.13 → 0.1.15
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/bin.js +15 -15
- package/dist/{events-DbpQM9qG.js → events-DgKqHqww.js} +1784 -1675
- package/dist/events-DgKqHqww.js.map +1 -0
- package/dist/{index-D2_skdGT.js → index-CckG4Nv5.js} +18 -17
- package/dist/index-CckG4Nv5.js.map +1 -0
- package/dist/main.js +15 -15
- package/dist/{seed-DM5koJUz.js → seed-C8JBI4UL.js} +19 -18
- package/dist/seed-C8JBI4UL.js.map +1 -0
- package/dist/{seed-DHOFK9DF.js → seed-CJB6INNH.js} +19 -18
- package/dist/seed-CJB6INNH.js.map +1 -0
- package/dist/{seed-CSOeghww.js → seed-z1eQdEXy.js} +2 -2
- package/dist/{seed-CSOeghww.js.map → seed-z1eQdEXy.js.map} +1 -1
- package/dist/{seed.schema.config-Cz8esgav.js → seed.schema.config-C9CEFOxM.js} +15 -15
- package/dist/{seed.schema.config-Cz8esgav.js.map → seed.schema.config-C9CEFOxM.js.map} +1 -1
- package/dist/types/src/browser/index.d.ts +0 -1
- package/dist/types/src/browser/index.d.ts.map +1 -1
- package/dist/types/src/browser/react/db.d.ts +4 -0
- package/dist/types/src/browser/react/db.d.ts.map +1 -0
- package/dist/types/src/browser/react/index.d.ts +4 -53
- package/dist/types/src/browser/react/index.d.ts.map +1 -1
- package/dist/types/src/browser/react/item.d.ts +36 -0
- package/dist/types/src/browser/react/item.d.ts.map +1 -0
- package/dist/types/src/browser/react/property.d.ts +12 -0
- package/dist/types/src/browser/react/property.d.ts.map +1 -0
- package/dist/types/src/browser/react/services.d.ts +30 -0
- package/dist/types/src/browser/react/services.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/shared/helpers/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/events-DbpQM9qG.js.map +0 -1
- package/dist/index-D2_skdGT.js.map +0 -1
- package/dist/seed-DHOFK9DF.js.map +0 -1
- package/dist/seed-DM5koJUz.js.map +0 -1
|
@@ -1,28 +1,29 @@
|
|
|
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 './events-
|
|
2
|
-
import '
|
|
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 './events-DgKqHqww.js';
|
|
2
|
+
import 'use-immer';
|
|
3
|
+
import 'drizzle-orm';
|
|
3
4
|
import 'react';
|
|
5
|
+
import 'debug';
|
|
4
6
|
import 'xstate';
|
|
5
7
|
import 'rxjs';
|
|
6
8
|
import '@zenfs/core';
|
|
7
|
-
import 'drizzle-orm';
|
|
8
|
-
import 'drizzle-orm/sqlite-proxy';
|
|
9
|
-
import 'debug';
|
|
10
|
-
import 'dayjs';
|
|
11
|
-
import 'nanoid';
|
|
12
|
-
import 'nanoid-dictionary';
|
|
13
9
|
import 'lodash-es';
|
|
14
|
-
import '
|
|
10
|
+
import 'immer';
|
|
11
|
+
import 'pluralize';
|
|
12
|
+
import '@xstate/react';
|
|
13
|
+
import '@statelyai/inspect';
|
|
14
|
+
import 'reflect-metadata';
|
|
15
|
+
import '@sinclair/typebox';
|
|
16
|
+
import 'arweave';
|
|
17
|
+
import '@zenfs/dom';
|
|
18
|
+
import 'drizzle-orm/sqlite-proxy';
|
|
15
19
|
import '@tanstack/react-query';
|
|
16
20
|
import 'graphql-request';
|
|
17
21
|
import '@tanstack/query-sync-storage-persister';
|
|
18
22
|
import '@tanstack/react-query-persist-client';
|
|
19
23
|
import 'path';
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import 'arweave';
|
|
25
|
-
import 'use-immer';
|
|
26
|
-
import '@xstate/react';
|
|
24
|
+
import 'drizzle-orm/sqlite-core';
|
|
25
|
+
import 'dayjs';
|
|
26
|
+
import 'nanoid';
|
|
27
|
+
import 'nanoid-dictionary';
|
|
27
28
|
import 'eventemitter3';
|
|
28
|
-
//# sourceMappingURL=index-
|
|
29
|
+
//# sourceMappingURL=index-CckG4Nv5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CckG4Nv5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as isNode, M as Model, P as Property, t as ImageSrc, L as List, T as Text, J as Json, R as Relation, _ as __awaiter, u as createNewMetadataFromExistingRecord, v as generateId, w as eventEmitter, x as getDb, y as DB_NAME_APP, z as setModel, B as setupFsListeners, E as setupAllItemsEventHandlers, F as setupServicesEventHandlers, H as globalService, K as getModel, N as getModels, O as getModelNames, Q as areFsListenersReady } from './events-
|
|
2
|
-
export { I as Item, U as ItemProperty,
|
|
1
|
+
import { j as isNode, M as Model, P as Property, t as ImageSrc, L as List, T as Text, J as Json, R as Relation, _ as __awaiter, u as createNewMetadataFromExistingRecord, v as generateId, w as eventEmitter, x as getDb, y as DB_NAME_APP, z as setModel, B as setupFsListeners, E as setupAllItemsEventHandlers, F as setupServicesEventHandlers, H as globalService, K as getModel, N as getModels, O as getModelNames, Q as areFsListenersReady } from './events-DgKqHqww.js';
|
|
2
|
+
export { I as Item, U as ItemProperty, a2 as getCorrectId, a1 as getGlobalService, Y as useCreateItem, $ as useDeleteItem, W as useItem, X as useItemProperties, Z as useItemProperty, V as useItems, a0 as useServices } from './events-DgKqHqww.js';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import 'reflect-metadata';
|
|
5
5
|
import 'xstate';
|
|
@@ -7,25 +7,25 @@ import 'arweave';
|
|
|
7
7
|
import 'rxjs';
|
|
8
8
|
import { enableMapSet } from 'immer';
|
|
9
9
|
import { sql } from 'drizzle-orm';
|
|
10
|
-
import '
|
|
10
|
+
import 'use-immer';
|
|
11
11
|
import 'react';
|
|
12
|
-
import '@zenfs/core';
|
|
13
|
-
import 'drizzle-orm/sqlite-proxy';
|
|
14
12
|
import 'debug';
|
|
15
|
-
import '
|
|
16
|
-
import 'nanoid';
|
|
17
|
-
import 'nanoid-dictionary';
|
|
13
|
+
import '@zenfs/core';
|
|
18
14
|
import 'lodash-es';
|
|
19
|
-
import '
|
|
15
|
+
import 'pluralize';
|
|
16
|
+
import '@xstate/react';
|
|
17
|
+
import '@statelyai/inspect';
|
|
18
|
+
import '@sinclair/typebox';
|
|
19
|
+
import '@zenfs/dom';
|
|
20
|
+
import 'drizzle-orm/sqlite-proxy';
|
|
20
21
|
import '@tanstack/react-query';
|
|
21
22
|
import 'graphql-request';
|
|
22
23
|
import '@tanstack/query-sync-storage-persister';
|
|
23
24
|
import '@tanstack/react-query-persist-client';
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '@xstate/react';
|
|
25
|
+
import 'drizzle-orm/sqlite-core';
|
|
26
|
+
import 'dayjs';
|
|
27
|
+
import 'nanoid';
|
|
28
|
+
import 'nanoid-dictionary';
|
|
29
29
|
import 'eventemitter3';
|
|
30
30
|
|
|
31
31
|
const withSeed$1 = (config, webpack, isServer) => {
|
|
@@ -370,7 +370,7 @@ const client = {
|
|
|
370
370
|
console.error('fs listeners not ready during init');
|
|
371
371
|
}
|
|
372
372
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
373
|
-
import('./seed.schema.config-
|
|
373
|
+
import('./seed.schema.config-C9CEFOxM.js').then(({ models }) => {
|
|
374
374
|
for (const [key, value] of Object.entries(models)) {
|
|
375
375
|
setModel(key, value);
|
|
376
376
|
}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { S as SeedBase } from './seed-
|
|
2
|
-
import './events-
|
|
3
|
-
import '
|
|
1
|
+
import { S as SeedBase } from './seed-z1eQdEXy.js';
|
|
2
|
+
import './events-DgKqHqww.js';
|
|
3
|
+
import 'use-immer';
|
|
4
|
+
import 'drizzle-orm';
|
|
4
5
|
import 'react';
|
|
6
|
+
import 'debug';
|
|
5
7
|
import 'xstate';
|
|
6
8
|
import 'rxjs';
|
|
7
9
|
import '@zenfs/core';
|
|
8
|
-
import 'drizzle-orm';
|
|
9
|
-
import 'drizzle-orm/sqlite-proxy';
|
|
10
|
-
import 'debug';
|
|
11
|
-
import 'dayjs';
|
|
12
|
-
import 'nanoid';
|
|
13
|
-
import 'nanoid-dictionary';
|
|
14
10
|
import 'lodash-es';
|
|
15
|
-
import '
|
|
11
|
+
import 'immer';
|
|
12
|
+
import 'pluralize';
|
|
13
|
+
import '@xstate/react';
|
|
14
|
+
import '@statelyai/inspect';
|
|
15
|
+
import 'reflect-metadata';
|
|
16
|
+
import '@sinclair/typebox';
|
|
17
|
+
import 'arweave';
|
|
18
|
+
import '@zenfs/dom';
|
|
19
|
+
import 'drizzle-orm/sqlite-proxy';
|
|
16
20
|
import '@tanstack/react-query';
|
|
17
21
|
import 'graphql-request';
|
|
18
22
|
import '@tanstack/query-sync-storage-persister';
|
|
19
23
|
import '@tanstack/react-query-persist-client';
|
|
20
24
|
import 'path';
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import 'arweave';
|
|
26
|
-
import 'use-immer';
|
|
27
|
-
import '@xstate/react';
|
|
25
|
+
import 'drizzle-orm/sqlite-core';
|
|
26
|
+
import 'dayjs';
|
|
27
|
+
import 'nanoid';
|
|
28
|
+
import 'nanoid-dictionary';
|
|
28
29
|
import 'eventemitter3';
|
|
29
30
|
|
|
30
31
|
class SeedNode extends SeedBase {
|
|
@@ -34,4 +35,4 @@ class SeedNode extends SeedBase {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export { SeedNode };
|
|
37
|
-
//# sourceMappingURL=seed-
|
|
38
|
+
//# sourceMappingURL=seed-C8JBI4UL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-C8JBI4UL.js","sources":["../../src/node/seed.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAM,QAAS,SAAQ,QAAQ,CAAA;AAC7B,IAAA,WAAA,CAAY,KAA6B,EAAA;QACvC,KAAK,CAAC,KAAK,CAAC,CAAA;KACb;AACF;;;;"}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { createActor } from 'xstate';
|
|
2
|
-
import { S as SeedBase } from './seed-
|
|
3
|
-
import { h as internalMachine, C as CHILD_SNAPSHOT } from './events-
|
|
2
|
+
import { S as SeedBase } from './seed-z1eQdEXy.js';
|
|
3
|
+
import { h as internalMachine, C as CHILD_SNAPSHOT } from './events-DgKqHqww.js';
|
|
4
4
|
import 'rxjs';
|
|
5
|
-
import '
|
|
6
|
-
import 'react';
|
|
7
|
-
import '@zenfs/core';
|
|
5
|
+
import 'use-immer';
|
|
8
6
|
import 'drizzle-orm';
|
|
9
|
-
import '
|
|
7
|
+
import 'react';
|
|
10
8
|
import 'debug';
|
|
11
|
-
import '
|
|
12
|
-
import 'nanoid';
|
|
13
|
-
import 'nanoid-dictionary';
|
|
9
|
+
import '@zenfs/core';
|
|
14
10
|
import 'lodash-es';
|
|
15
|
-
import '
|
|
11
|
+
import 'immer';
|
|
12
|
+
import 'pluralize';
|
|
13
|
+
import '@xstate/react';
|
|
14
|
+
import '@statelyai/inspect';
|
|
15
|
+
import 'reflect-metadata';
|
|
16
|
+
import '@sinclair/typebox';
|
|
17
|
+
import 'arweave';
|
|
18
|
+
import '@zenfs/dom';
|
|
19
|
+
import 'drizzle-orm/sqlite-proxy';
|
|
16
20
|
import '@tanstack/react-query';
|
|
17
21
|
import 'graphql-request';
|
|
18
22
|
import '@tanstack/query-sync-storage-persister';
|
|
19
23
|
import '@tanstack/react-query-persist-client';
|
|
20
24
|
import 'path';
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import 'arweave';
|
|
26
|
-
import 'use-immer';
|
|
27
|
-
import '@xstate/react';
|
|
25
|
+
import 'drizzle-orm/sqlite-core';
|
|
26
|
+
import 'dayjs';
|
|
27
|
+
import 'nanoid';
|
|
28
|
+
import 'nanoid-dictionary';
|
|
28
29
|
import 'eventemitter3';
|
|
29
30
|
|
|
30
31
|
class SeedBrowser extends SeedBase {
|
|
@@ -67,4 +68,4 @@ class SeedBrowser extends SeedBase {
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
export { SeedBrowser };
|
|
70
|
-
//# sourceMappingURL=seed-
|
|
71
|
+
//# sourceMappingURL=seed-CJB6INNH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-CJB6INNH.js","sources":["../../src/browser/seed.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,WAAY,SAAQ,QAAQ,CAAA;AAGhC,IAAA,WAAA,CAAY,EAAE,MAAM,EAAE,SAAS,EAA0B,EAAA;AACvD,QAAA,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;AACpB,QAAA,IAAI,CAAC,gBAAgB,GAAG,WAAW,CAAC,eAAe,EAAE;AACnD,YAAA,KAAK,EAAE;gBACL,SAAS;AACV,aAAA;AACF,SAAA,CAAC,CAAA;QAEF,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAC7B,CAAC,QAA8C,KAAI;AACjD,YAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;AACvB,SAAC,CACF,CAAA;QAED,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC,KAAK,KAAI;AACjD,YAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;AAC7B,SAAC,CAAC,CAAA;AAEF,QAAA,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAA;KAC9B;AAED,IAAA,MAAM,CAAC,QAAuB,EAAA;AAC5B,QAAA,MAAM,YAAY,GAAG,CAAC,QAA2B,KAAI;AACnD,YAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAA;YAC/B,IAAI,WAAW,EAAE,eAAe,CAAA;AAChC,YAAA,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AAC7C,gBAAA,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;AAC9C,oBAAA,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;iBAChC;AACD,gBAAA,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;AAC9C,oBAAA,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;iBACxC;aACF;AACD,YAAA,OAAA,MAAA,CAAA,MAAA,CAAA,EACE,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,WAAW;AACX,gBAAA,eAAe,EACZ,EAAA,QAAQ,CAAC,OAAO,CACpB,CAAA;AACH,SAAC,CAAA;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAA;KAC3C;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAA;KACzB;AACF;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as isNode, k as isBrowser, l as isReactNative, _ as __awaiter } from './events-
|
|
1
|
+
import { j as isNode, k as isBrowser, l as isReactNative, _ as __awaiter } from './events-DgKqHqww.js';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
|
|
4
4
|
class SeedBase {
|
|
@@ -25,4 +25,4 @@ class SeedBase {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export { SeedBase as S };
|
|
28
|
-
//# sourceMappingURL=seed-
|
|
28
|
+
//# sourceMappingURL=seed-z1eQdEXy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed-
|
|
1
|
+
{"version":3,"file":"seed-z1eQdEXy.js","sources":["../../src/shared/seed.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAMA,MAAe,QAAQ,CAAA;AAIrB,IAAA,WAAA,CAAY,KAA+B,EAAA;QAH1B,IAAI,CAAA,IAAA,GAAgB,SAAS,CAAA;AACpC,QAAA,IAAA,CAAA,QAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAA;AAGrD,QAAA,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;QACtC,IAAI,MAAM,EAAE,EAAE;AACZ,YAAA,IAAI,CAAC,IAAI,GAAG,MAAM,CAAA;SACnB;QACD,IAAI,SAAS,EAAE,EAAE;AACf,YAAA,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;SACtB;QACD,IAAI,aAAa,EAAE,EAAE;AACnB,YAAA,IAAI,CAAC,IAAI,GAAG,cAAc,CAAA;SAC3B;KACF;IAEK,UAAU,GAAA;+DAAK,CAAA,CAAA;AAAA,KAAA;AAErB,IAAA,SAAS,CAAC,QAA8B,EAAA;QACtC,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;KACzC;AACF;;;;"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { m as __decorate, T as Text, n as __metadata, M as Model } from './events-
|
|
1
|
+
import { m as __decorate, T as Text, n as __metadata, M as Model } from './events-DgKqHqww.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'lodash-es';
|
|
5
|
+
import 'immer';
|
|
6
|
+
import 'pluralize';
|
|
7
|
+
import '@xstate/react';
|
|
3
8
|
import 'reflect-metadata';
|
|
4
9
|
import 'xstate';
|
|
5
10
|
import 'arweave';
|
|
6
11
|
import '@zenfs/core';
|
|
7
12
|
import '@zenfs/dom';
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
13
|
+
import 'use-immer';
|
|
14
|
+
import 'debug';
|
|
10
15
|
import 'rxjs';
|
|
16
|
+
import '@statelyai/inspect';
|
|
17
|
+
import '@sinclair/typebox';
|
|
11
18
|
import 'drizzle-orm/sqlite-proxy';
|
|
12
|
-
import 'debug';
|
|
13
|
-
import 'dayjs';
|
|
14
|
-
import 'nanoid';
|
|
15
|
-
import 'nanoid-dictionary';
|
|
16
|
-
import 'lodash-es';
|
|
17
|
-
import 'drizzle-orm/sqlite-core';
|
|
18
19
|
import '@tanstack/react-query';
|
|
19
20
|
import 'graphql-request';
|
|
20
21
|
import '@tanstack/query-sync-storage-persister';
|
|
21
22
|
import '@tanstack/react-query-persist-client';
|
|
22
23
|
import 'path';
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '@xstate/react';
|
|
24
|
+
import 'drizzle-orm/sqlite-core';
|
|
25
|
+
import 'dayjs';
|
|
26
|
+
import 'nanoid';
|
|
27
|
+
import 'nanoid-dictionary';
|
|
28
28
|
import 'eventemitter3';
|
|
29
29
|
|
|
30
30
|
let Seed = class Seed {
|
|
@@ -73,4 +73,4 @@ const models = {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
export { models };
|
|
76
|
-
//# sourceMappingURL=seed.schema.config-
|
|
76
|
+
//# sourceMappingURL=seed.schema.config-C9CEFOxM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.schema.config-
|
|
1
|
+
{"version":3,"file":"seed.schema.config-C9CEFOxM.js","sources":["../../src/shared/configs/seed.schema.config.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAM,IAAI,GAAV,MAAM,IAAI,CAAA;CAGT,CAAA;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAa,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AACZ,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAc,CAAA,EAAA,IAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAFjB,IAAI,GAAA,UAAA,CAAA;IADT,KAAK;AACA,CAAA,EAAA,IAAI,CAGT,CAAA;AAGD,IAAM,OAAO,GAAb,MAAM,OAAO,CAAA;CAGZ,CAAA;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAiB,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAChB,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAc,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAFjB,OAAO,GAAA,UAAA,CAAA;IADZ,KAAK;AACA,CAAA,EAAA,OAAO,CAGZ,CAAA;AAGD,IAAM,QAAQ,GAAd,MAAM,QAAQ,CAAA;CAGb,CAAA;AAFS,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAa,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AACZ,UAAA,CAAA;AAAP,IAAA,IAAI,EAAE;;AAAe,CAAA,EAAA,QAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAFlB,QAAQ,GAAA,UAAA,CAAA;IADb,KAAK;AACA,CAAA,EAAA,QAAQ,CAGb,CAAA;AAEY,MAAA,MAAM,GAAG;IACpB,IAAI;IACJ,OAAO;IACP,QAAQ;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/db.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;CAkE1B,CAAA"}
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
isInitialized: boolean;
|
|
6
|
-
isReadingFromDb: boolean;
|
|
7
|
-
value: any;
|
|
8
|
-
status: string;
|
|
9
|
-
};
|
|
10
|
-
type UseItemProps = {
|
|
11
|
-
modelName: string;
|
|
12
|
-
seedLocalId?: string;
|
|
13
|
-
seedUid?: string;
|
|
14
|
-
};
|
|
15
|
-
type UseItemReturn = {
|
|
16
|
-
item: Item<any> | undefined;
|
|
17
|
-
itemStatus: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
type UseItem = (props: UseItemProps) => UseItemReturn;
|
|
20
|
-
export declare const useItem: UseItem;
|
|
21
|
-
type UseItemsReturn = {
|
|
22
|
-
items: Item<any>[];
|
|
23
|
-
isReadingDb: boolean;
|
|
24
|
-
isInitialized: boolean;
|
|
25
|
-
};
|
|
26
|
-
type UseItemsProps = {
|
|
27
|
-
modelName: string;
|
|
28
|
-
options?: Record<string, unknown>;
|
|
29
|
-
};
|
|
30
|
-
type UseItems = (props: UseItemsProps) => UseItemsReturn;
|
|
31
|
-
export declare const useItems: UseItems;
|
|
32
|
-
export declare const useDbsAreReady: () => {
|
|
33
|
-
dbsAreReady: boolean;
|
|
34
|
-
};
|
|
35
|
-
export declare const useItemIsReady: () => {
|
|
36
|
-
isReady: boolean;
|
|
37
|
-
};
|
|
38
|
-
export declare const useItemProperties: (item?: Item<any>) => {
|
|
39
|
-
properties: {};
|
|
40
|
-
};
|
|
41
|
-
export declare const useCreateItem: <T>(modelName: string) => {
|
|
42
|
-
createItem: (itemData: any) => Promise<void>;
|
|
43
|
-
isCreatingItem: boolean;
|
|
44
|
-
};
|
|
45
|
-
export declare const useDeleteItem: () => {
|
|
46
|
-
deleteItem: (item: Item<any>) => Promise<void>;
|
|
47
|
-
isDeletingItem: boolean;
|
|
48
|
-
};
|
|
49
|
-
export declare const useGlobalServiceStatus: () => {
|
|
50
|
-
status: any;
|
|
51
|
-
internalStatus: any;
|
|
52
|
-
};
|
|
53
|
-
export {};
|
|
1
|
+
export * from './item';
|
|
2
|
+
export * from './property';
|
|
3
|
+
export * from './services';
|
|
4
|
+
export * from './db';
|
|
54
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,MAAM,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Item } from '@/browser/item';
|
|
2
|
+
type UseItemProps = {
|
|
3
|
+
modelName: string;
|
|
4
|
+
seedLocalId?: string;
|
|
5
|
+
seedUid?: string;
|
|
6
|
+
};
|
|
7
|
+
type UseItemReturn = {
|
|
8
|
+
item: Item<any> | undefined;
|
|
9
|
+
itemStatus: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
type UseItem = (props: UseItemProps) => UseItemReturn;
|
|
12
|
+
export declare const useItem: UseItem;
|
|
13
|
+
type UseItemsReturn = {
|
|
14
|
+
items: Item<any>[];
|
|
15
|
+
isReadingDb: boolean;
|
|
16
|
+
isInitialized: boolean;
|
|
17
|
+
};
|
|
18
|
+
type UseItemsProps = {
|
|
19
|
+
modelName: string;
|
|
20
|
+
options?: Record<string, unknown>;
|
|
21
|
+
};
|
|
22
|
+
type UseItems = (props: UseItemsProps) => UseItemsReturn;
|
|
23
|
+
export declare const useItems: UseItems;
|
|
24
|
+
export declare const useItemIsReady: () => {
|
|
25
|
+
isReady: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const useCreateItem: <T>(modelName: string) => {
|
|
28
|
+
createItem: (itemData: any) => Promise<void>;
|
|
29
|
+
isCreatingItem: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare const useDeleteItem: () => {
|
|
32
|
+
deleteItem: (item: Item<any>) => Promise<void>;
|
|
33
|
+
isDeletingItem: boolean;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAarC,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B,CAAA;AAED,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK,aAAa,CAAA;AAErD,eAAO,MAAM,OAAO,EAAE,OAsFrB,CAAA;AACD,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AACD,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC,CAAA;AACD,KAAK,QAAQ,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,cAAc,CAAA;AACxD,eAAO,MAAM,QAAQ,EAAE,QA4DtB,CAAA;AACD,eAAO,MAAM,cAAc;;CA2B1B,CAAA;AACD,eAAO,MAAM,aAAa,GAAI,CAAC,aAAa,MAAM;;;CAwCjD,CAAA;AACD,eAAO,MAAM,aAAa;uBAIT,IAAI,CAAC,GAAG,CAAC;;CAmBzB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Item, ItemProperty } from '@/browser';
|
|
2
|
+
export declare const useItemProperty: (propertyName: string, seedLocalId: string) => {
|
|
3
|
+
property: ItemProperty<any> | undefined;
|
|
4
|
+
isInitialized: boolean;
|
|
5
|
+
isReadingFromDb: boolean;
|
|
6
|
+
value: any;
|
|
7
|
+
status: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const useItemProperties: (item?: Item<any>) => {
|
|
10
|
+
properties: {};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/property.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAkB,MAAM,WAAW,CAAA;AAQ9D,eAAO,MAAM,eAAe,iBAAkB,MAAM,eAAe,MAAM;;;;;;CA2DxE,CAAA;AACD,eAAO,MAAM,iBAAiB,UAAW,IAAI,CAAC,GAAG,CAAC;;CAsCjD,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ActorRef } from 'xstate';
|
|
2
|
+
export declare const getServiceName: (service: ActorRef<any, any>) => string;
|
|
3
|
+
export declare const getServiceValue: (service: ActorRef<any, any>) => string | undefined;
|
|
4
|
+
export declare const getServiceUniqueKey: (service: ActorRef<any, any>) => any;
|
|
5
|
+
export declare const useService: (service: ActorRef<any, any>) => {
|
|
6
|
+
name: string;
|
|
7
|
+
timeElapsed: number;
|
|
8
|
+
value: string | undefined;
|
|
9
|
+
percentComplete: number;
|
|
10
|
+
uniqueKey: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const useServices: () => {
|
|
13
|
+
services: ActorRef<any, any, import("xstate").EventObject>[];
|
|
14
|
+
percentComplete: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const useGlobalServiceStatus: () => {
|
|
17
|
+
status: import("../services/internal/constants").GlobalState.UNINITIALIZED | import("../services/internal/constants").GlobalState.INITIALIZING | import("../services/internal/constants").GlobalState.ADDING_MODELS_TO_DB | {
|
|
18
|
+
initialized: {
|
|
19
|
+
gettingSeedClass: {};
|
|
20
|
+
gettingSchemaForModel: {};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
internalStatus: import("../services/internal/constants").InternalState.IDLE | import("../services/internal/constants").InternalState.VALIDATING_INPUT | import("../services/internal/constants").InternalState.CONFIGURING_FS | import("../services/internal/constants").InternalState.LOADING_SEED_DB | import("../services/internal/constants").InternalState.SAVING_CONFIG | "error" | "ready" | "preparingDb" | {
|
|
24
|
+
loadingDbs: {
|
|
25
|
+
loadingAppDb: "loading" | "appDbLoaded";
|
|
26
|
+
loadingSdkDb: "loading" | "sdkConfigDbLoaded";
|
|
27
|
+
};
|
|
28
|
+
} | undefined;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/services.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAUjC,eAAO,MAAM,cAAc,YAAa,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,WASzD,CAAA;AAED,eAAO,MAAM,eAAe,YACjB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,KAC1B,MAAM,GAAG,SAgBX,CAAA;AAED,eAAO,MAAM,mBAAmB,YAAa,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,QA0B9D,CAAA;AAED,eAAO,MAAM,UAAU,YAAa,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;;;;;;CA0DrD,CAAA;AAED,eAAO,MAAM,WAAW;;;CAqEvB,CAAA;AACD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAyBlC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Model, Property, ImageSrc, List, Text, Json, Relation, } from './browser/schema';
|
|
2
|
-
export { Item, ItemProperty, useItems, useItem, useItemProperties, useCreateItem, useItemProperty, useDeleteItem, client, } from './browser';
|
|
3
|
-
export { getGlobalService } from './browser/services';
|
|
2
|
+
export { Item, ItemProperty, useItems, useItem, useItemProperties, useCreateItem, useItemProperty, useDeleteItem, useServices, getGlobalService, client, } from './browser';
|
|
4
3
|
export { getCorrectId } from './browser/helpers';
|
|
5
4
|
declare let withSeed: any;
|
|
6
5
|
export { withSeed };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,MAAM,GACP,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIhD,QAAA,IAAI,QAAQ,KAAA,CAAA;AAMZ,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -2,7 +2,7 @@ import originalDayjs from 'dayjs';
|
|
|
2
2
|
export declare const dayjs: typeof originalDayjs;
|
|
3
3
|
export declare const generateId: () => string;
|
|
4
4
|
export declare const toSnakeCase: (str: string) => string;
|
|
5
|
-
export declare const identifyString: (str: string) => "json" | "text" | "
|
|
5
|
+
export declare const identifyString: (str: string) => "json" | "text" | "base64" | "html" | "markdown" | undefined;
|
|
6
6
|
export declare const getMimeType: (base64: string) => string | null;
|
|
7
7
|
export declare const getImageDataType: (data: string) => "base64" | "url" | null;
|
|
8
8
|
export declare const convertTxIdToImageSrc: (txId: string) => Promise<string | undefined>;
|