@seedprotocol/sdk 0.7.9 → 0.7.10-next.1344.g3828e8a

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.
Files changed (126) hide show
  1. package/README.md +1 -1
  2. package/dist/{BaseFileManager-BAlySv8w.js → BaseFileManager-DLou1TZS.js} +5 -1
  3. package/dist/BaseFileManager-DLou1TZS.js.map +1 -0
  4. package/dist/{Item-Bf4kWKpH.js → Item-CXLcIHsi.js} +559 -346
  5. package/dist/Item-CXLcIHsi.js.map +1 -0
  6. package/dist/{ModelProperty-BlaEgb_U.js → ModelProperty-B3mfR6u4.js} +35 -35
  7. package/dist/{ModelProperty-BlaEgb_U.js.map → ModelProperty-B3mfR6u4.js.map} +1 -1
  8. package/dist/{Schema-J_1f6p0c.js → Schema-BeUyEmte.js} +18 -18
  9. package/dist/{Schema-J_1f6p0c.js.map → Schema-BeUyEmte.js.map} +1 -1
  10. package/dist/{SchemaValidationService-CnmKyzR-.js → SchemaValidationService-C1xqJFxI.js} +5 -5
  11. package/dist/{SchemaValidationService-CnmKyzR-.js.map → SchemaValidationService-C1xqJFxI.js.map} +1 -1
  12. package/dist/{errors-C1qUEZ7A.js → browserSupport-C64rX-2I.js} +38 -2
  13. package/dist/browserSupport-C64rX-2I.js.map +1 -0
  14. package/dist/{configurePlatform-CiOJ1R3q.js → configurePlatform-WkmvqeTO.js} +2 -2
  15. package/dist/{configurePlatform-CiOJ1R3q.js.map → configurePlatform-WkmvqeTO.js.map} +1 -1
  16. package/dist/{detachRowsBeforeDelete-sEaUwlOU.js → detachRowsBeforeDelete-BZr_0iZU.js} +2 -2
  17. package/dist/{detachRowsBeforeDelete-sEaUwlOU.js.map → detachRowsBeforeDelete-BZr_0iZU.js.map} +1 -1
  18. package/dist/dist/{BaseFileManager-BAlySv8w.d.ts → BaseFileManager-DLou1TZS.d.ts} +3 -1
  19. package/dist/dist/BaseFileManager-DLou1TZS.d.ts.map +1 -0
  20. package/dist/dist/{configurePlatform-CiOJ1R3q.d.ts → configurePlatform-WkmvqeTO.d.ts} +1 -1
  21. package/dist/dist/configurePlatform-WkmvqeTO.d.ts.map +1 -0
  22. package/dist/dist/{index-D0V-mjCV.d.ts → index-BjWk0x4-.d.ts} +1 -1
  23. package/dist/dist/{index-D0V-mjCV.d.ts.map → index-BjWk0x4-.d.ts.map} +1 -1
  24. package/dist/dist/{index.node-CYPemH-t.d.ts → index.node-BfiBriEq.d.ts} +7 -1
  25. package/dist/dist/{index.node-CYPemH-t.d.ts.map → index.node-BfiBriEq.d.ts.map} +1 -1
  26. package/dist/dist/platform.node.d.ts +2 -2
  27. package/dist/{eas-wB_fQ8Tc.js → eas-DpHg66jR.js} +5 -5
  28. package/dist/{eas-wB_fQ8Tc.js.map → eas-DpHg66jR.js.map} +1 -1
  29. package/dist/{errors-DLSoqSHG.js → errors-DpC9W4i3.js} +84 -45
  30. package/dist/{errors-DLSoqSHG.js.map → errors-DpC9W4i3.js.map} +1 -1
  31. package/dist/{getPublishPayload-BnIwpwz1.js → getPublishPayload-yidQCgY_.js} +8 -8
  32. package/dist/{getPublishPayload-BnIwpwz1.js.map → getPublishPayload-yidQCgY_.js.map} +1 -1
  33. package/dist/{getPublishPendingDiff-D6_-A5ns.js → getPublishPendingDiff-D__9bh6d.js} +7 -7
  34. package/dist/{getPublishPendingDiff-D6_-A5ns.js.map → getPublishPendingDiff-D__9bh6d.js.map} +1 -1
  35. package/dist/{getPublishUploads-sS6JfPgz.js → getPublishUploads-BdZmYCo2.js} +7 -7
  36. package/dist/{getPublishUploads-sS6JfPgz.js.map → getPublishUploads-BdZmYCo2.js.map} +1 -1
  37. package/dist/{index-CYGWPoOx.js → index-BMHqJ4kN.js} +7 -7
  38. package/dist/index-BMHqJ4kN.js.map +1 -0
  39. package/dist/{index-D0V-mjCV.js → index-BjWk0x4-.js} +2 -2
  40. package/dist/index-BjWk0x4-.js.map +1 -0
  41. package/dist/{index-DmTtj1nk.js → index-CVYB2g7a.js} +402 -20
  42. package/dist/index-CVYB2g7a.js.map +1 -0
  43. package/dist/{index-BVBmz_cc.js → index-uDLe9y9H.js} +7 -7
  44. package/dist/index-uDLe9y9H.js.map +1 -0
  45. package/dist/{index.browser-CUmBVYen.js → index.browser-OACFlpMH.js} +46 -10
  46. package/dist/index.browser-OACFlpMH.js.map +1 -0
  47. package/dist/{index.node-CYPemH-t.js → index.node-BfiBriEq.js} +31 -4
  48. package/dist/index.node-BfiBriEq.js.map +1 -0
  49. package/dist/main.js +17 -16
  50. package/dist/main.js.map +1 -1
  51. package/dist/{modelPropertyRecordSchemas-C7UgA5TH.js → modelPropertyRecordSchemas-BGvtTyaG.js} +5 -5
  52. package/dist/{modelPropertyRecordSchemas-C7UgA5TH.js.map → modelPropertyRecordSchemas-BGvtTyaG.js.map} +1 -1
  53. package/dist/node.js +8 -8
  54. package/dist/platform.browser.js +6 -6
  55. package/dist/platform.node.js +4 -4
  56. package/dist/{property-BxUYznH0.js → property-QjljUeb9.js} +8 -8
  57. package/dist/{property-BxUYznH0.js.map → property-QjljUeb9.js.map} +1 -1
  58. package/dist/{publishGraph-EcB40Uii.js → publishGraph-CP8IROkb.js} +5 -5
  59. package/dist/{publishGraph-EcB40Uii.js.map → publishGraph-CP8IROkb.js.map} +1 -1
  60. package/dist/{readHtmlBodyForStorageSeed-D6KPtWoR.js → readHtmlBodyForStorageSeed-D3OPk2iU.js} +10 -10
  61. package/dist/{readHtmlBodyForStorageSeed-D6KPtWoR.js.map → readHtmlBodyForStorageSeed-D3OPk2iU.js.map} +1 -1
  62. package/dist/src/Item/Item.d.ts +26 -5
  63. package/dist/src/Item/Item.d.ts.map +1 -1
  64. package/dist/src/ItemProperty/ItemProperty.d.ts +20 -5
  65. package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
  66. package/dist/src/ItemProperty/loadProperty.d.ts.map +1 -1
  67. package/dist/src/ItemProperty/propertyWrite.d.ts.map +1 -1
  68. package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
  69. package/dist/src/archive/exportArchive.d.ts +57 -0
  70. package/dist/src/archive/exportArchive.d.ts.map +1 -0
  71. package/dist/src/browser/db/Db.d.ts +5 -0
  72. package/dist/src/browser/db/Db.d.ts.map +1 -1
  73. package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
  74. package/dist/src/browser/helpers/tolerantWebAccess.d.ts +12 -1
  75. package/dist/src/browser/helpers/tolerantWebAccess.d.ts.map +1 -1
  76. package/dist/src/client/ClientManager.d.ts +14 -4
  77. package/dist/src/client/ClientManager.d.ts.map +1 -1
  78. package/dist/src/db/Db/BaseDb.d.ts +2 -0
  79. package/dist/src/db/Db/BaseDb.d.ts.map +1 -1
  80. package/dist/src/helpers/FileManager/errors.d.ts +11 -0
  81. package/dist/src/helpers/FileManager/errors.d.ts.map +1 -1
  82. package/dist/src/helpers/browserSupport.d.ts +23 -0
  83. package/dist/src/helpers/browserSupport.d.ts.map +1 -0
  84. package/dist/src/helpers/cachedPropertyRefresh.d.ts +6 -6
  85. package/dist/src/helpers/cachedPropertyRefresh.d.ts.map +1 -1
  86. package/dist/src/helpers/entity/entityCache.d.ts +34 -3
  87. package/dist/src/helpers/entity/entityCache.d.ts.map +1 -1
  88. package/dist/src/helpers/entity/entityLifecycle.d.ts +21 -3
  89. package/dist/src/helpers/entity/entityLifecycle.d.ts.map +1 -1
  90. package/dist/src/helpers/propertyDefinition.d.ts +2 -0
  91. package/dist/src/helpers/propertyDefinition.d.ts.map +1 -1
  92. package/dist/src/helpers/tabCoordinator.d.ts +9 -2
  93. package/dist/src/helpers/tabCoordinator.d.ts.map +1 -1
  94. package/dist/src/index.d.ts +4 -1
  95. package/dist/src/index.d.ts.map +1 -1
  96. package/dist/src/interfaces/IDb.d.ts +6 -0
  97. package/dist/src/interfaces/IDb.d.ts.map +1 -1
  98. package/dist/src/node/db/Db.d.ts +6 -0
  99. package/dist/src/node/db/Db.d.ts.map +1 -1
  100. package/dist/src/outbox/conflicts.d.ts.map +1 -1
  101. package/dist/src/outbox/outbox.d.ts +6 -0
  102. package/dist/src/outbox/outbox.d.ts.map +1 -1
  103. package/dist/src/types/index.d.ts +16 -0
  104. package/dist/src/types/index.d.ts.map +1 -1
  105. package/dist/{syncDbWithEas-CA7PvBgu.js → syncDbWithEas-CDjSNrVR.js} +14 -14
  106. package/dist/{syncDbWithEas-CA7PvBgu.js.map → syncDbWithEas-CDjSNrVR.js.map} +1 -1
  107. package/dist/{tabEvents-CaVmngqr.js → tabEvents-BHPY5I08.js} +38 -12
  108. package/dist/tabEvents-BHPY5I08.js.map +1 -0
  109. package/dist/{tolerantWebAccess-BJqViq08.js → tolerantWebAccess-hDq9ZGXH.js} +53 -13
  110. package/dist/tolerantWebAccess-hDq9ZGXH.js.map +1 -0
  111. package/dist/{updateSeedRevokedAt-BL9Bg-G7.js → updateSeedRevokedAt-BMwBnlnC.js} +3 -3
  112. package/dist/{updateSeedRevokedAt-BL9Bg-G7.js.map → updateSeedRevokedAt-BMwBnlnC.js.map} +1 -1
  113. package/package.json +10 -12
  114. package/dist/BaseFileManager-BAlySv8w.js.map +0 -1
  115. package/dist/Item-Bf4kWKpH.js.map +0 -1
  116. package/dist/dist/BaseFileManager-BAlySv8w.d.ts.map +0 -1
  117. package/dist/dist/configurePlatform-CiOJ1R3q.d.ts.map +0 -1
  118. package/dist/errors-C1qUEZ7A.js.map +0 -1
  119. package/dist/index-BVBmz_cc.js.map +0 -1
  120. package/dist/index-CYGWPoOx.js.map +0 -1
  121. package/dist/index-D0V-mjCV.js.map +0 -1
  122. package/dist/index-DmTtj1nk.js.map +0 -1
  123. package/dist/index.browser-CUmBVYen.js.map +0 -1
  124. package/dist/index.node-CYPemH-t.js.map +0 -1
  125. package/dist/tabEvents-CaVmngqr.js.map +0 -1
  126. package/dist/tolerantWebAccess-BJqViq08.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
  import { fromCallback, setup, assign, createActor, waitFor } from 'xstate';
2
- import { M as Model, F as saveDefinition } from './errors-DLSoqSHG.js';
3
- import { r as resolveModelRecord, n as normalizeDataType, m as generateId, a2 as definitionOnlyFields, a3 as persistDefinitionFields, a4 as getPropertyDefinition, a5 as propertyDefinitionFromRow, M as ModelPropertyDataTypes, a6 as setCachedPropertyRefresher } from './tabEvents-CaVmngqr.js';
2
+ import { M as Model, F as saveDefinition } from './errors-DpC9W4i3.js';
3
+ import { r as resolveModelRecord, n as normalizeDataType, m as generateId, a2 as definitionOnlyFields, a3 as persistDefinitionFields, a4 as getPropertyDefinition, a5 as propertyDefinitionFromRow, M as ModelPropertyDataTypes, a6 as addCachedPropertyRefresher } from './tabEvents-BHPY5I08.js';
4
4
  import 'pluralize';
5
5
  import '@seedprotocol/eas';
6
- import { B as BaseDb, d as models, l as properties, t as schemas, j as modelSchemas, w as BaseFileManager } from './BaseFileManager-BAlySv8w.js';
7
- import { aj as isActorStopped, T as applyContextUpdate, U as isInternalUpdate, ak as differsFromOriginals, V as evictionLog, a7 as modelPropertiesToObject, Z as DEFAULT_READY_TIMEOUT_MS, _ as waitForEntityReady, $ as createReactiveProxy, al as onEntityTeardown, a0 as runEntityLoad, W as holdChild, a2 as entityStatus, a1 as evictEntities, a3 as releaseEntity, a4 as destroyEntity, a5 as EntityCache } from './Item-Bf4kWKpH.js';
6
+ import { B as BaseDb, d as models, l as properties, t as schemas, j as modelSchemas, w as BaseFileManager } from './BaseFileManager-DLou1TZS.js';
7
+ import { aj as isActorStopped, T as applyContextUpdate, U as isInternalUpdate, ak as differsFromOriginals, V as evictionLog, a7 as modelPropertiesToObject, Z as DEFAULT_READY_TIMEOUT_MS, _ as waitForEntityReady, $ as createReactiveProxy, al as onEntityTeardown, a0 as runEntityLoad, W as holdChild, a2 as entityStatus, a1 as evictEntities, a3 as releaseEntity, a4 as destroyEntity, a5 as EntityCache } from './Item-CXLcIHsi.js';
8
8
  import debug from 'debug';
9
9
  import '@seedprotocol/arweave';
10
10
  import { eq, and, inArray } from 'drizzle-orm';
11
- import { S as Schema } from './Schema-J_1f6p0c.js';
11
+ import { S as Schema } from './Schema-BeUyEmte.js';
12
12
  import '@sinclair/typebox';
13
13
  import 'lodash-es';
14
14
  import '@noble/hashes/sha3';
@@ -19,7 +19,7 @@ import 'nanoid';
19
19
  import 'nanoid-dictionary';
20
20
  import '@noble/hashes/sha256';
21
21
  import 'rxjs';
22
- import './SchemaValidationService-CnmKyzR-.js';
22
+ import './SchemaValidationService-C1xqJFxI.js';
23
23
  import '@sinclair/typebox/value';
24
24
 
25
25
  const logger$3 = debug('seedSdk:modelProperty:actors:saveToSchema');
@@ -30,14 +30,14 @@ const logger$3 = debug('seedSdk:modelProperty:actors:saveToSchema');
30
30
  */
31
31
  async function getSchemaNameFromModel(modelName) {
32
32
  // Get the latest schema files and find which one contains this model
33
- const _mod_0 = await import('./errors-DLSoqSHG.js');
33
+ const _mod_0 = await import('./errors-DpC9W4i3.js');
34
34
  const _ns_0 = _mod_0.a5;
35
35
  const schemaHelpersMod = _ns_0;
36
36
  const { listLatestSchemaFiles } = schemaHelpersMod;
37
37
  const latestSchemas = await listLatestSchemaFiles();
38
38
  for (const schema of latestSchemas) {
39
39
  try {
40
- const _mod_1 = await import('./BaseFileManager-BAlySv8w.js');
40
+ const _mod_1 = await import('./BaseFileManager-DLou1TZS.js');
41
41
  const _ns_1 = _mod_1.A;
42
42
  const fileManagerMod = _ns_1;
43
43
  const { BaseFileManager } = fileManagerMod;
@@ -57,7 +57,7 @@ async function getSchemaNameFromModel(modelName) {
57
57
  const saveToSchema = fromCallback(({ sendBack, input: { context }, self }) => {
58
58
  const _saveToSchema = async () => {
59
59
  // Use dynamic import to break circular dependency
60
- const validationServiceMod = await import('./SchemaValidationService-CnmKyzR-.js');
60
+ const validationServiceMod = await import('./SchemaValidationService-C1xqJFxI.js');
61
61
  const { SchemaValidationService } = validationServiceMod;
62
62
  const validationService = new SchemaValidationService();
63
63
  // Validate property structure before saving
@@ -76,15 +76,15 @@ const saveToSchema = fromCallback(({ sendBack, input: { context }, self }) => {
76
76
  throw new Error(`Model not found for modelId: ${context.modelId}`);
77
77
  }
78
78
  // Persist to database only - schema file is updated only when user calls Schema.saveNewVersion()
79
- const _mod_2 = await import('./tabEvents-CaVmngqr.js');
80
- const _ns_2 = _mod_2.bh;
79
+ const _mod_2 = await import('./tabEvents-BHPY5I08.js');
80
+ const _ns_2 = _mod_2.bk;
81
81
  const dbMod = _ns_2;
82
82
  const { savePropertyToDb } = dbMod;
83
83
  await savePropertyToDb(context);
84
84
  // Mark schema as draft so user knows to save
85
85
  const schemaName = context._schemaName ?? (await getSchemaNameFromModel(context.modelName));
86
86
  if (schemaName) {
87
- const _mod_3 = await import('./Schema-J_1f6p0c.js');
87
+ const _mod_3 = await import('./Schema-BeUyEmte.js');
88
88
  const _ns_3 = _mod_3.a;
89
89
  const schemaMod = _ns_3;
90
90
  const { Schema } = schemaMod;
@@ -122,8 +122,8 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
122
122
  const schemaFileIdForResolve = fullContext._propertyFileId || (typeof fullContext.id === 'string' ? fullContext.id : undefined);
123
123
  if (schemaFileIdForResolve && (fullContext.modelName === undefined || fullContext.dataType === undefined)) {
124
124
  try {
125
- const _mod_4 = await import('./tabEvents-CaVmngqr.js');
126
- const _ns_4 = _mod_4.be;
125
+ const _mod_4 = await import('./tabEvents-BHPY5I08.js');
126
+ const _ns_4 = _mod_4.bh;
127
127
  const { resolveModelRecord, resolvePropertyModelRecord } = _ns_4;
128
128
  const fromDb = await resolvePropertyModelRecord(schemaFileIdForResolve);
129
129
  if (fromDb) {
@@ -161,8 +161,8 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
161
161
  if (fullContext.modelName && fullContext.name && schemaFileId) {
162
162
  logger$2(`[compareAndMarkDraft] _originalValues not set, but saving to database anyway for property ${context.modelName}:${context.name} (schemaFileId: ${schemaFileId})`);
163
163
  try {
164
- const _mod_5 = await import('./tabEvents-CaVmngqr.js');
165
- const _ns_5 = _mod_5.bh;
164
+ const _mod_5 = await import('./tabEvents-BHPY5I08.js');
165
+ const _ns_5 = _mod_5.bk;
166
166
  const dbMod = _ns_5;
167
167
  const { savePropertyToDb } = dbMod;
168
168
  // Ensure _propertyFileId is set for savePropertyToDb to find the property
@@ -223,8 +223,8 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
223
223
  logger$2(`Property ${fullContext.modelName}:${fullContext.name} has changes, marking as edited`);
224
224
  logger$2(`[compareAndMarkDraft] Context when saving: id=${fullContext.id}, _propertyFileId=${fullContext._propertyFileId}, name=${fullContext.name}, _originalValues.name=${fullContext._originalValues?.name}`);
225
225
  // Use dynamic import to break circular dependency
226
- const _mod_6 = await import('./tabEvents-CaVmngqr.js');
227
- const _ns_6 = _mod_6.bh;
226
+ const _mod_6 = await import('./tabEvents-BHPY5I08.js');
227
+ const _ns_6 = _mod_6.bk;
228
228
  const dbMod = _ns_6;
229
229
  const { savePropertyToDb } = dbMod;
230
230
  // Save to database (but not JSON file) - always save to DB when there are changes
@@ -239,7 +239,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
239
239
  // Mark schema as draft if schema name is available
240
240
  if (fullContext._schemaName) {
241
241
  // Get the Schema instance and mark it as draft
242
- const _mod_7 = await import('./Schema-J_1f6p0c.js');
242
+ const _mod_7 = await import('./Schema-BeUyEmte.js');
243
243
  const _ns_7 = _mod_7.a;
244
244
  const schemaMod = _ns_7;
245
245
  const { Schema } = schemaMod;
@@ -259,7 +259,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
259
259
  logger$2(`Property ${fullContext.modelName}:${fullContext.name} has no changes`);
260
260
  // Clear isEdited flag in database
261
261
  try {
262
- const _mod_8 = await import('./index-D0V-mjCV.js');
262
+ const _mod_8 = await import('./index-BjWk0x4-.js');
263
263
  const _ns_8 = _mod_8.s;
264
264
  const seedSchemaMod = _ns_8;
265
265
  const { properties: propertiesTable } = seedSchemaMod;
@@ -268,8 +268,8 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
268
268
  const db = BaseDb.getAppDb();
269
269
  if (db && fullContext.modelName && fullContext.name) {
270
270
  // Find this property's model (model names are only unique per schema)
271
- const _mod_9 = await import('./tabEvents-CaVmngqr.js');
272
- const _ns_9 = _mod_9.be;
271
+ const _mod_9 = await import('./tabEvents-BHPY5I08.js');
272
+ const _ns_9 = _mod_9.bh;
273
273
  const { resolveModelRecord } = _ns_9;
274
274
  const modelRecord = await resolveModelRecord(fullContext.modelName, {
275
275
  modelId: typeof fullContext.modelId === 'number' ? fullContext.modelId : undefined,
@@ -326,8 +326,8 @@ const validateProperty = fromCallback(({ sendBack, input: { context }, self }) =
326
326
  const schemaFileId = typeof context.id === 'string' ? context.id : undefined;
327
327
  if (schemaFileId && (fullContext.modelName === undefined || fullContext.dataType === undefined)) {
328
328
  try {
329
- const _mod_10 = await import('./tabEvents-CaVmngqr.js');
330
- const _ns_10 = _mod_10.be;
329
+ const _mod_10 = await import('./tabEvents-BHPY5I08.js');
330
+ const _ns_10 = _mod_10.bh;
331
331
  const { resolveModelRecord, resolvePropertyModelRecord } = _ns_10;
332
332
  // Try pending write first (property row may not exist yet)
333
333
  if (fullContext.modelName === undefined && schemaFileId) {
@@ -360,10 +360,10 @@ const validateProperty = fromCallback(({ sendBack, input: { context }, self }) =
360
360
  fullContext = { ...fullContext, dataType: (fullContext.dataType ?? context._originalValues?.dataType) || 'Text' };
361
361
  }
362
362
  // Use dynamic imports to break circular dependencies
363
- const validationServiceMod = await import('./SchemaValidationService-CnmKyzR-.js');
363
+ const validationServiceMod = await import('./SchemaValidationService-C1xqJFxI.js');
364
364
  const { SchemaValidationService } = validationServiceMod;
365
365
  const validationService = new SchemaValidationService();
366
- const _mod_11 = await import('./Schema-J_1f6p0c.js');
366
+ const _mod_11 = await import('./Schema-BeUyEmte.js');
367
367
  const _ns_11 = _mod_11.a;
368
368
  const schemaMod = _ns_11;
369
369
  const { Schema } = schemaMod;
@@ -870,8 +870,8 @@ class ModelProperty {
870
870
  return fallbackIsEdited;
871
871
  }
872
872
  // Find this property's model (by modelId when known; model names are only unique per schema)
873
- const _mod_12 = await import('./tabEvents-CaVmngqr.js');
874
- const _ns_12 = _mod_12.be;
873
+ const _mod_12 = await import('./tabEvents-BHPY5I08.js');
874
+ const _ns_12 = _mod_12.bh;
875
875
  const { resolveModelRecord } = _ns_12;
876
876
  const modelRecord = await resolveModelRecord(property.modelName, this._ownerModelScope(property), db);
877
877
  const modelRecords = modelRecord ? [modelRecord] : [];
@@ -908,8 +908,8 @@ class ModelProperty {
908
908
  return undefined;
909
909
  }
910
910
  // Resolve the ref within the owning model's schema
911
- const _mod_13 = await import('./tabEvents-CaVmngqr.js');
912
- const _ns_13 = _mod_13.be;
911
+ const _mod_13 = await import('./tabEvents-BHPY5I08.js');
912
+ const _ns_13 = _mod_13.bh;
913
913
  const { resolveRefModelRecord } = _ns_13;
914
914
  const refModelRecord = await resolveRefModelRecord(refModelName, property ? this._ownerModelScope(property) : { schemaName: this._getSnapshotContext()._schemaName }, db);
915
915
  if (refModelRecord?.id) {
@@ -954,8 +954,8 @@ class ModelProperty {
954
954
  }
955
955
  }
956
956
  if (!model && modelId) {
957
- const _mod_14 = await import('./tabEvents-CaVmngqr.js');
958
- const _ns_14 = _mod_14.be;
957
+ const _mod_14 = await import('./tabEvents-BHPY5I08.js');
958
+ const _ns_14 = _mod_14.bh;
959
959
  const { resolveModelRecord } = _ns_14;
960
960
  const modelFileId = (await resolveModelRecord(property.modelName, { modelId }))?.schemaFileId;
961
961
  model = modelFileId ? Model.peek(modelFileId) : undefined;
@@ -1754,7 +1754,7 @@ class ModelProperty {
1754
1754
  .where(eq(properties.schemaFileId, propertyFileId))
1755
1755
  .limit(1);
1756
1756
  if (row) {
1757
- const { detachPropertyRows } = await import('./detachRowsBeforeDelete-sEaUwlOU.js');
1757
+ const { detachPropertyRows } = await import('./detachRowsBeforeDelete-BZr_0iZU.js');
1758
1758
  await detachPropertyRows(db, [row.id]);
1759
1759
  await db.delete(properties).where(eq(properties.id, row.id));
1760
1760
  }
@@ -1785,7 +1785,7 @@ class ModelProperty {
1785
1785
  ModelProperty.cache = new EntityCache();
1786
1786
  // Pending writes tracking
1787
1787
  ModelProperty.pendingWrites = new Map();
1788
- setCachedPropertyRefresher((propertyFileIds) => ModelProperty.refreshFromDb(propertyFileIds));
1788
+ addCachedPropertyRefresher((propertyFileIds) => ModelProperty.refreshFromDb(propertyFileIds));
1789
1789
 
1790
1790
  var ModelProperty$1 = /*#__PURE__*/Object.freeze({
1791
1791
  __proto__: null,
@@ -1793,4 +1793,4 @@ var ModelProperty$1 = /*#__PURE__*/Object.freeze({
1793
1793
  });
1794
1794
 
1795
1795
  export { ModelProperty };
1796
- //# sourceMappingURL=ModelProperty-BlaEgb_U.js.map
1796
+ //# sourceMappingURL=ModelProperty-B3mfR6u4.js.map