@seedprotocol/sdk 0.3.0 → 0.3.1
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/{ArweaveClient-CmJYeuq1.js → ArweaveClient-C0g0es2v.js} +2 -2
- package/dist/{ArweaveClient-EXXrXUzz.js.map → ArweaveClient-C0g0es2v.js.map} +1 -1
- package/dist/{ArweaveClient-EXXrXUzz.js → ArweaveClient-CzkBgiZY.js} +2 -2
- package/dist/{ArweaveClient-CmJYeuq1.js.map → ArweaveClient-CzkBgiZY.js.map} +1 -1
- package/dist/{Db-CESKJH-G.js → Db-C4oog-0n.js} +3 -3
- package/dist/{Db-CESKJH-G.js.map → Db-C4oog-0n.js.map} +1 -1
- package/dist/{Db-DiTPSbQ8.js → Db-VPouegkr.js} +3 -3
- package/dist/{Db-DiTPSbQ8.js.map → Db-VPouegkr.js.map} +1 -1
- package/dist/{EasClient-BesHK2bO.js → EasClient-B9a3NsTi.js} +2 -2
- package/dist/{EasClient-BesHK2bO.js.map → EasClient-B9a3NsTi.js.map} +1 -1
- package/dist/{EasClient-Cop6WtWl.js → EasClient-DQ93i2ci.js} +2 -2
- package/dist/{EasClient-Cop6WtWl.js.map → EasClient-DQ93i2ci.js.map} +1 -1
- package/dist/{FileManager-DTzkncLh.js → FileManager-_ErxVuwb.js} +8 -5
- package/dist/FileManager-_ErxVuwb.js.map +1 -0
- package/dist/{Item-B5Tz-Y7t.js → Item-D9HFPxsK.js} +3 -3
- package/dist/{Item-B5Tz-Y7t.js.map → Item-D9HFPxsK.js.map} +1 -1
- package/dist/{ItemProperty-DBV0Iib_.js → ItemProperty-BdtvKrEy.js} +3 -3
- package/dist/{ItemProperty-DBV0Iib_.js.map → ItemProperty-BdtvKrEy.js.map} +1 -1
- package/dist/{QueryClient-C7a0NHCt.js → QueryClient-Bmnv_moN.js} +2 -2
- package/dist/{QueryClient-C7a0NHCt.js.map → QueryClient-Bmnv_moN.js.map} +1 -1
- package/dist/{QueryClient-BnwbHtqe.js → QueryClient-hzOtFe99.js} +2 -2
- package/dist/{QueryClient-BnwbHtqe.js.map → QueryClient-hzOtFe99.js.map} +1 -1
- package/dist/bin.js +5 -5
- package/dist/bin.js.map +1 -1
- package/dist/{constants-CWg2B3Au.js → constants-Bhl5dZpN.js} +4 -1
- package/dist/constants-Bhl5dZpN.js.map +1 -0
- package/dist/{index-CQ9FS10O.js → index-BAtjd9W-.js} +3 -3
- package/dist/index-BAtjd9W-.js.map +1 -0
- package/dist/{index-BHGJ-Es9.js → index-BSR5hv7Q.js} +59 -27
- package/dist/index-BSR5hv7Q.js.map +1 -0
- package/dist/main.js +2 -2
- package/dist/{seed.schema.config-DDzfQguf.js → seed.schema.config-BxJYabim.js} +3 -3
- package/dist/{seed.schema.config-DDzfQguf.js.map → seed.schema.config-BxJYabim.js.map} +1 -1
- package/dist/src/AppStateSchema.ts +10 -0
- package/dist/src/ArweaveClient.ts +13 -0
- package/dist/src/Attestation.ts +21 -0
- package/dist/src/BaseArweaveClient.ts +13 -0
- package/dist/src/BaseClientManager.ts +35 -0
- package/dist/src/BaseDb.ts +35 -0
- package/dist/src/BaseEasClient.ts +14 -0
- package/dist/src/BaseFileManager.ts +60 -0
- package/dist/src/BaseItem.ts +413 -0
- package/dist/src/BaseItemProperty.ts +416 -0
- package/dist/src/BaseQueryClient.ts +13 -0
- package/dist/src/ClientManager.ts +63 -0
- package/dist/src/ConfigSchema.ts +15 -0
- package/dist/src/Db.ts +82 -0
- package/dist/src/EasClient.ts +13 -0
- package/dist/src/FileDownloader.ts +63 -0
- package/dist/src/FileManager.ts +59 -0
- package/dist/src/IDb.ts +7 -0
- package/dist/src/IEasClient.ts +2 -0
- package/dist/src/IItem.ts +26 -0
- package/dist/src/IItemProperty.ts +28 -0
- package/dist/src/IQueryClient.ts +11 -0
- package/dist/src/ImageResizer.ts +81 -0
- package/dist/src/Item.ts +12 -0
- package/dist/src/ItemProperty.ts +9 -0
- package/dist/src/MetadataSchema.ts +28 -0
- package/dist/src/ModelSchema.ts +46 -0
- package/dist/src/ModelUidSchema.ts +16 -0
- package/dist/src/PropertyUidSchema.ts +16 -0
- package/dist/src/QueryClient.ts +26 -0
- package/dist/src/Schema.ts +17 -0
- package/dist/src/SeedProtocolSdk.d.ts +19 -0
- package/dist/src/SeedSchema.ts +29 -0
- package/dist/src/VersionSchema.ts +16 -0
- package/dist/src/actors.ts +295 -0
- package/dist/src/addModelsToDb.ts +152 -0
- package/dist/src/allItems.ts +31 -0
- package/dist/src/analyzeInput.ts +144 -0
- package/dist/src/browser.app.db.config.ts +27 -0
- package/dist/src/browser.ts +30 -0
- package/dist/src/checkStatus.ts +57 -0
- package/dist/src/clientManagerMachine.ts +59 -0
- package/dist/src/configureFs.ts +98 -0
- package/dist/src/connectToDb.ts +41 -0
- package/dist/src/connectionManager.ts +67 -0
- package/dist/src/constants.ts +125 -0
- package/dist/src/content-hash.ts +30 -0
- package/dist/src/create.ts +39 -0
- package/dist/src/createMetadata.ts +77 -0
- package/dist/src/createNewItem.ts +61 -0
- package/dist/src/createPublishAttempt.ts +16 -0
- package/dist/src/createSeed.ts +31 -0
- package/dist/src/createSeeds.ts +24 -0
- package/dist/src/createVersion.ts +33 -0
- package/dist/src/dbMachine.ts +182 -0
- package/dist/src/deleteItem.ts +19 -0
- package/dist/src/download.ts +208 -0
- package/dist/src/drizzle.ts +78 -0
- package/dist/src/eas.ts +40 -0
- package/dist/src/environment.ts +35 -0
- package/dist/src/eventBus.ts +5 -0
- package/dist/src/events.ts +14 -0
- package/dist/src/fetchDataFromEas.ts +94 -0
- package/dist/src/fetchDbData.ts +19 -0
- package/dist/src/fetchRelatedItems.ts +184 -0
- package/dist/src/fetchSeeds.ts +45 -0
- package/dist/src/fetchVersions.ts +49 -0
- package/dist/src/files.ts +81 -0
- package/dist/src/filesDownload.ts +326 -0
- package/dist/src/fragment-masking.ts +87 -0
- package/dist/src/getExistingItem.ts +60 -0
- package/dist/src/getItem.ts +32 -0
- package/dist/src/getItemData.ts +99 -0
- package/dist/src/getItemProperties.ts +56 -0
- package/dist/src/getItemProperty.ts +34 -0
- package/dist/src/getItems.ts +70 -0
- package/dist/src/getMetadata.ts +40 -0
- package/dist/src/getModelSchemas.ts +89 -0
- package/dist/src/getPropertyData.ts +50 -0
- package/dist/src/getPublishPayload.ts +355 -0
- package/dist/src/getPublishUploads.ts +207 -0
- package/dist/src/getRelationValueData.ts +27 -0
- package/dist/src/getSchemaForItemProperty.ts +68 -0
- package/dist/src/getSchemaForModel.ts +42 -0
- package/dist/src/getSchemaUidForModel.ts +32 -0
- package/dist/src/getSeedData.ts +34 -0
- package/dist/src/getSegmentedItemProperties.ts +65 -0
- package/dist/src/getStorageTransactionIdForSeedUid.ts +38 -0
- package/dist/src/getVersionData.ts +46 -0
- package/dist/src/getVersionsForVersionUids.ts +39 -0
- package/dist/src/globalMachine.ts +280 -0
- package/dist/src/gql.ts +118 -0
- package/dist/src/graphql.ts +3209 -0
- package/dist/src/helpers.ts +273 -0
- package/dist/src/hydrateExistingItem.ts +137 -0
- package/dist/src/hydrateFromDb.ts +270 -0
- package/dist/src/hydrateNewItem.ts +34 -0
- package/dist/src/imageResize.ts +507 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.ts +4 -0
- package/dist/src/initialize.ts +124 -0
- package/dist/src/internalMachine.ts +241 -0
- package/dist/src/itemMachineAll.ts +157 -0
- package/dist/src/itemMachineSingle.ts +158 -0
- package/dist/src/loadAppDb.ts +44 -0
- package/dist/src/machines.ts +66 -0
- package/dist/src/metadataLatest.ts +34 -0
- package/dist/src/migrate.ts +57 -0
- package/dist/src/model.ts +72 -0
- package/dist/src/modelClass.ts +19 -0
- package/dist/src/node.app.db.config.ts +41 -0
- package/dist/src/prepareDb.ts +29 -0
- package/dist/src/preparePublishRequestData.ts +81 -0
- package/dist/src/processItems.ts +74 -0
- package/dist/src/property.ts +156 -0
- package/dist/src/propertyMachine.ts +202 -0
- package/dist/src/publish.ts +28 -0
- package/dist/src/publishMachine.ts +77 -0
- package/dist/src/queries.ts +13 -0
- package/dist/src/recoverDeletedItem.ts +14 -0
- package/dist/src/reload.ts +33 -0
- package/dist/src/request.ts +45 -0
- package/dist/src/requestAll.ts +157 -0
- package/dist/src/resolveRelatedValue.ts +367 -0
- package/dist/src/resolveRemoteStorage.ts +88 -0
- package/dist/src/saveAppState.ts +50 -0
- package/dist/src/saveConfig.ts +106 -0
- package/dist/src/saveDataToDb.ts +145 -0
- package/dist/src/saveImageSrc.ts +242 -0
- package/dist/src/saveItemStorage.ts +156 -0
- package/dist/src/saveMetadata.ts +18 -0
- package/dist/src/savePublishService.ts +30 -0
- package/dist/src/saveRelation.ts +112 -0
- package/dist/src/seed.schema.config.ts +25 -0
- package/dist/src/seed.ts +10 -0
- package/dist/src/seedProtocol.ts +17 -0
- package/dist/src/services.ts +365 -0
- package/dist/src/setAddresses.ts +16 -0
- package/dist/src/sqlWasmClient.ts +88 -0
- package/dist/src/syncDbWithEas.ts +628 -0
- package/dist/src/trash.ts +29 -0
- package/dist/src/ts-to-proto.ts +101 -0
- package/dist/src/types.ts +12 -0
- package/dist/src/updateItemPropertyValue.ts +243 -0
- package/dist/src/updateMachineContext.ts +21 -0
- package/dist/src/updateMetadata.ts +59 -0
- package/dist/src/upload.ts +86 -0
- package/dist/src/validate.ts +45 -0
- package/dist/src/validateInput.ts +43 -0
- package/dist/src/validateItemData.ts +20 -0
- package/dist/src/versionData.ts +24 -0
- package/dist/src/waitForDb.ts +25 -0
- package/dist/src/waitForFiles.ts +41 -0
- package/dist/src/wasm.d.ts +8300 -0
- package/dist/types/scripts/bin.d.ts.map +1 -1
- package/dist/types/src/browser/helpers/FileManager.d.ts +2 -1
- package/dist/types/src/browser/helpers/FileManager.d.ts.map +1 -1
- package/dist/types/src/helpers/FileManager/BaseFileManager.d.ts +1 -0
- package/dist/types/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -1
- package/dist/types/src/node/helpers/FileManager.d.ts +2 -1
- package/dist/types/src/node/helpers/FileManager.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/FileManager-DTzkncLh.js.map +0 -1
- package/dist/constants-CWg2B3Au.js.map +0 -1
- package/dist/index-BHGJ-Es9.js.map +0 -1
- package/dist/index-CQ9FS10O.js.map +0 -1
- package/dist/package.json +0 -189
|
@@ -2,7 +2,7 @@ import { immerable, produce, enableMapSet } from 'immer';
|
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
import { Type } from '@sinclair/typebox';
|
|
4
4
|
import { fromCallback, setup, assign, waitFor, raise, createActor } from 'xstate';
|
|
5
|
-
import { c as BaseQueryClient, a as BaseEasClient, G as GLOBAL_INITIALIZING_INTERNAL_SERVICE_READY, f as GLOBAL_INITIALIZING_SEND_CONFIG, g as GLOBAL_INITIALIZING_CREATE_ALL_ITEMS_SERVICES, h as GLOBAL_ADDING_MODELS_TO_DB_SUCCESS, d as BROWSER_FS_TOP_DIR, D as DB_CHECK_STATUS_UPDATE_PATHS, i as DB_CHECK_STATUS_EXISTS, j as DB_CREATING_SUCCESS, k as DB_VALIDATING_SUCCESS, l as DB_VALIDATING_WAIT, b as BaseFileManager, m as DB_MIGRATING_SUCCESS, n as DB_WAITING_FOR_FILES_RECEIVED, o as DbState, M as MachineIds, p as DB_MIGRATING_WAIT, q as ARWEAVE_HOST, I as INTERNAL_VALIDATING_INPUT_SUCCESS, B as BaseArweaveClient, r as INTERNAL_CONFIGURING_FS_SUCCESS, s as INTERNAL_SAVING_CONFIG_SUCCESS, t as INTERNAL_LOADING_APP_DB_SUCCESS, u as DB_NAME_APP, v as DB_ON_SNAPSHOT, w as InternalState, P as PublishMachineStates, x as GlobalState, y as INTERNAL_DATA_TYPES, z as ImageSize, C as internalPropertyNames, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA, F as defaultAttestationData, H as CLIENT_NOT_INITIALIZED } from './constants-
|
|
5
|
+
import { c as BaseQueryClient, a as BaseEasClient, G as GLOBAL_INITIALIZING_INTERNAL_SERVICE_READY, f as GLOBAL_INITIALIZING_SEND_CONFIG, g as GLOBAL_INITIALIZING_CREATE_ALL_ITEMS_SERVICES, h as GLOBAL_ADDING_MODELS_TO_DB_SUCCESS, d as BROWSER_FS_TOP_DIR, D as DB_CHECK_STATUS_UPDATE_PATHS, i as DB_CHECK_STATUS_EXISTS, j as DB_CREATING_SUCCESS, k as DB_VALIDATING_SUCCESS, l as DB_VALIDATING_WAIT, b as BaseFileManager, m as DB_MIGRATING_SUCCESS, n as DB_WAITING_FOR_FILES_RECEIVED, o as DbState, M as MachineIds, p as DB_MIGRATING_WAIT, q as ARWEAVE_HOST, I as INTERNAL_VALIDATING_INPUT_SUCCESS, B as BaseArweaveClient, r as INTERNAL_CONFIGURING_FS_SUCCESS, s as INTERNAL_SAVING_CONFIG_SUCCESS, t as INTERNAL_LOADING_APP_DB_SUCCESS, u as DB_NAME_APP, v as DB_ON_SNAPSHOT, w as InternalState, P as PublishMachineStates, x as GlobalState, y as INTERNAL_DATA_TYPES, z as ImageSize, C as internalPropertyNames, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA, F as defaultAttestationData, H as CLIENT_NOT_INITIALIZED } from './constants-Bhl5dZpN.js';
|
|
6
6
|
import debug from 'debug';
|
|
7
7
|
import pluralize from 'pluralize';
|
|
8
8
|
import { sqliteTable, int, text, unique, getTableConfig } from 'drizzle-orm/sqlite-core';
|
|
@@ -1351,7 +1351,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1351
1351
|
if (!models$1) {
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
|
-
const { models: SeedModels } = await import('./seed.schema.config-
|
|
1354
|
+
const { models: SeedModels } = await import('./seed.schema.config-BxJYabim.js');
|
|
1355
1355
|
const allModels = {
|
|
1356
1356
|
...SeedModels,
|
|
1357
1357
|
...models$1,
|
|
@@ -2265,18 +2265,11 @@ class ImageResizer {
|
|
|
2265
2265
|
|
|
2266
2266
|
const logger$j = debug('app:browser:helpers:FileManager');
|
|
2267
2267
|
class FileManager extends BaseFileManager {
|
|
2268
|
-
static async readFileAsBuffer(filePath) {
|
|
2269
|
-
return new Promise((resolve, reject) => {
|
|
2270
|
-
reject(new Error('Not implemented'));
|
|
2271
|
-
});
|
|
2272
|
-
}
|
|
2273
2268
|
static async getContentUrlFromPath(path) {
|
|
2274
|
-
const
|
|
2275
|
-
const fileExists = await fs.promises.exists(path);
|
|
2269
|
+
const fileExists = await this.pathExists(path);
|
|
2276
2270
|
if (fileExists) {
|
|
2277
|
-
const
|
|
2278
|
-
|
|
2279
|
-
return URL.createObjectURL(fileHandler);
|
|
2271
|
+
const file = await this.readFile(path);
|
|
2272
|
+
return URL.createObjectURL(file);
|
|
2280
2273
|
}
|
|
2281
2274
|
}
|
|
2282
2275
|
static async initializeFileSystem() {
|
|
@@ -2456,7 +2449,7 @@ class FileManager extends BaseFileManager {
|
|
|
2456
2449
|
const fileHandle = await currentDir.getFileHandle(fileName, { create: true });
|
|
2457
2450
|
// Create a writable stream and write the content
|
|
2458
2451
|
const writable = await fileHandle.createWritable();
|
|
2459
|
-
if (typeof content === 'string') {
|
|
2452
|
+
if (typeof content === 'string' || content instanceof Uint8Array) {
|
|
2460
2453
|
await writable.write(content);
|
|
2461
2454
|
}
|
|
2462
2455
|
else if (content instanceof Blob) {
|
|
@@ -2475,6 +2468,45 @@ class FileManager extends BaseFileManager {
|
|
|
2475
2468
|
console.error(`Error writing to OPFS: ${error.message}`);
|
|
2476
2469
|
}
|
|
2477
2470
|
}
|
|
2471
|
+
static async readFile(filePath) {
|
|
2472
|
+
try {
|
|
2473
|
+
// Get a handle to the OPFS root directory
|
|
2474
|
+
const root = await navigator.storage.getDirectory();
|
|
2475
|
+
// Split the file path into directory and file name
|
|
2476
|
+
const pathParts = filePath.split('/');
|
|
2477
|
+
const fileName = pathParts.pop();
|
|
2478
|
+
if (!fileName)
|
|
2479
|
+
throw new Error('Invalid file path');
|
|
2480
|
+
// Traverse directories to reach the target file
|
|
2481
|
+
let currentDir = root;
|
|
2482
|
+
for (const part of pathParts) {
|
|
2483
|
+
if (part !== '') {
|
|
2484
|
+
currentDir = await currentDir.getDirectoryHandle(part, { create: false });
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
// Get the file handle
|
|
2488
|
+
const fileHandle = await currentDir.getFileHandle(fileName, { create: false });
|
|
2489
|
+
// Get the file and read it as an ArrayBuffer
|
|
2490
|
+
return await fileHandle.getFile();
|
|
2491
|
+
}
|
|
2492
|
+
catch (error) {
|
|
2493
|
+
console.error(`Error reading from OPFS: ${error.message}`);
|
|
2494
|
+
throw error;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
static async readFileAsBuffer(filePath) {
|
|
2498
|
+
try {
|
|
2499
|
+
// Get the file and read it as an ArrayBuffer
|
|
2500
|
+
const file = await this.readFile(filePath);
|
|
2501
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
2502
|
+
// Convert ArrayBuffer to Buffer
|
|
2503
|
+
return Buffer.from(arrayBuffer);
|
|
2504
|
+
}
|
|
2505
|
+
catch (error) {
|
|
2506
|
+
console.error(`Error reading from OPFS: ${error.message}`);
|
|
2507
|
+
throw error;
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2478
2510
|
}
|
|
2479
2511
|
BaseFileManager.setPlatformClass(FileManager);
|
|
2480
2512
|
class CancelableInterval {
|
|
@@ -3031,10 +3063,10 @@ const GET_TRANSACTION_TAGS = graphql(/* GraphQL */ `
|
|
|
3031
3063
|
|
|
3032
3064
|
const initArweaveClient = async () => {
|
|
3033
3065
|
if (isBrowser()) {
|
|
3034
|
-
(await import('./ArweaveClient-
|
|
3066
|
+
(await import('./ArweaveClient-C0g0es2v.js')).ArweaveClient;
|
|
3035
3067
|
}
|
|
3036
3068
|
if (!isBrowser()) {
|
|
3037
|
-
(await import('./ArweaveClient-
|
|
3069
|
+
(await import('./ArweaveClient-CzkBgiZY.js')).ArweaveClient;
|
|
3038
3070
|
}
|
|
3039
3071
|
};
|
|
3040
3072
|
let domain = 'arweave.net';
|
|
@@ -5914,7 +5946,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
5914
5946
|
if (propertyRecordSchema &&
|
|
5915
5947
|
propertyRecordSchema.storageType &&
|
|
5916
5948
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
5917
|
-
const { Item } = await import('./index-
|
|
5949
|
+
const { Item } = await import('./index-BAtjd9W-.js');
|
|
5918
5950
|
const item = await Item.find({
|
|
5919
5951
|
seedLocalId,
|
|
5920
5952
|
modelName,
|
|
@@ -7860,7 +7892,7 @@ const initItem = async () => {
|
|
|
7860
7892
|
Item$2 = (await Promise.resolve().then(function () { return Item$1; })).Item;
|
|
7861
7893
|
}
|
|
7862
7894
|
if (!isBrowser()) {
|
|
7863
|
-
Item$2 = (await import('./Item-
|
|
7895
|
+
Item$2 = (await import('./Item-D9HFPxsK.js')).Item;
|
|
7864
7896
|
}
|
|
7865
7897
|
};
|
|
7866
7898
|
|
|
@@ -7870,17 +7902,17 @@ const initItemProperty = async () => {
|
|
|
7870
7902
|
ItemProperty$2 = (await Promise.resolve().then(function () { return ItemProperty$1; })).ItemProperty;
|
|
7871
7903
|
}
|
|
7872
7904
|
if (!isBrowser()) {
|
|
7873
|
-
ItemProperty$2 = (await import('./ItemProperty-
|
|
7905
|
+
ItemProperty$2 = (await import('./ItemProperty-BdtvKrEy.js')).ItemProperty;
|
|
7874
7906
|
}
|
|
7875
7907
|
};
|
|
7876
7908
|
|
|
7877
7909
|
let Db;
|
|
7878
7910
|
const initDb = async () => {
|
|
7879
7911
|
if (isBrowser()) {
|
|
7880
|
-
Db = (await import('./Db-
|
|
7912
|
+
Db = (await import('./Db-C4oog-0n.js')).Db;
|
|
7881
7913
|
}
|
|
7882
7914
|
if (!isBrowser()) {
|
|
7883
|
-
Db = (await import('./Db-
|
|
7915
|
+
Db = (await import('./Db-VPouegkr.js')).Db;
|
|
7884
7916
|
}
|
|
7885
7917
|
// TODO: Add config for React Native
|
|
7886
7918
|
};
|
|
@@ -8636,10 +8668,10 @@ const withSeed = (config, webpack, isServer) => {
|
|
|
8636
8668
|
|
|
8637
8669
|
const initEasClient = async () => {
|
|
8638
8670
|
if (isBrowser()) {
|
|
8639
|
-
(await import('./EasClient-
|
|
8671
|
+
(await import('./EasClient-B9a3NsTi.js')).EasClient;
|
|
8640
8672
|
}
|
|
8641
8673
|
if (!isBrowser()) {
|
|
8642
|
-
(await import('./EasClient-
|
|
8674
|
+
(await import('./EasClient-DQ93i2ci.js')).EasClient;
|
|
8643
8675
|
}
|
|
8644
8676
|
};
|
|
8645
8677
|
|
|
@@ -8648,16 +8680,16 @@ const initFileManager = async () => {
|
|
|
8648
8680
|
(await Promise.resolve().then(function () { return FileManager$1; })).FileManager;
|
|
8649
8681
|
}
|
|
8650
8682
|
if (!isBrowser()) {
|
|
8651
|
-
(await import('./FileManager-
|
|
8683
|
+
(await import('./FileManager-_ErxVuwb.js')).FileManager;
|
|
8652
8684
|
}
|
|
8653
8685
|
};
|
|
8654
8686
|
|
|
8655
8687
|
const initQueryClient = async () => {
|
|
8656
8688
|
if (isBrowser()) {
|
|
8657
|
-
(await import('./QueryClient-
|
|
8689
|
+
(await import('./QueryClient-hzOtFe99.js')).QueryClient;
|
|
8658
8690
|
}
|
|
8659
8691
|
if (!isBrowser()) {
|
|
8660
|
-
(await import('./QueryClient-
|
|
8692
|
+
(await import('./QueryClient-Bmnv_moN.js')).QueryClient;
|
|
8661
8693
|
}
|
|
8662
8694
|
};
|
|
8663
8695
|
|
|
@@ -8735,7 +8767,7 @@ const initialize = fromCallback(({ sendBack, input: { context, event } }) => {
|
|
|
8735
8767
|
arweaveDomain,
|
|
8736
8768
|
filesDir: files,
|
|
8737
8769
|
});
|
|
8738
|
-
const { models: internalModels } = await import('./seed.schema.config-
|
|
8770
|
+
const { models: internalModels } = await import('./seed.schema.config-BxJYabim.js');
|
|
8739
8771
|
for (const [key, value] of Object.entries(internalModels)) {
|
|
8740
8772
|
setModel(key, value);
|
|
8741
8773
|
}
|
|
@@ -8905,4 +8937,4 @@ const ClientManager = {
|
|
|
8905
8937
|
enableMapSet();
|
|
8906
8938
|
|
|
8907
8939
|
export { BaseItem as B, ClientManager as C, Db as D, FileManager as F, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, BaseItemProperty as a, BaseDb as b, appState as c, ImageSrc as d, Item$2 as e, ItemProperty$2 as f, useItem as g, useItemProperties as h, isBrowser as i, useCreateItem as j, useItemProperty as k, useDeleteItem as l, useGlobalServiceStatus as m, usePublishItem as n, usePersistedSnapshots as o, useServices as p, useService as q, getCorrectId as r, getGlobalService as s, eventEmitter as t, useItems as u, withSeed as w };
|
|
8908
|
-
//# sourceMappingURL=index-
|
|
8940
|
+
//# sourceMappingURL=index-BSR5hv7Q.js.map
|