@milaboratories/milaboratories.ui-examples.model 1.4.1 → 1.4.2

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.
@@ -1,13 +1,13 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.1 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.2 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > ts-builder build --target block-model && block-tools build-model
5
5
 
6
6
  Building block-model project...
7
7
  ↳ rollup -c /configs/rollup.block-model.config.js
8
8
  
9
9
  ./src/index.ts → dist, dist...
10
- created dist, dist in 4.3s
10
+ created dist, dist in 2.5s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.1 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.2 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > eslint .
5
5
 
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.1 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.2 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > ts-builder types --target block-model
5
5
 
6
6
  ↳ tsc --noEmit --project ./tsconfig.json --customConditions ,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [48e8984]
8
+ - @platforma-sdk/model@1.52.7
9
+
3
10
  ## 1.4.1
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -7498,7 +7498,7 @@
7498
7498
  }
7499
7499
  }
7500
7500
 
7501
- var version = "1.52.3";
7501
+ var version = "1.52.7";
7502
7502
 
7503
7503
  const PlatformaSDKVersion = version;
7504
7504
 
@@ -7756,9 +7756,8 @@
7756
7756
  * directly - they only see `state`.
7757
7757
  *
7758
7758
  * Registered callbacks (all prefixed with `__pl_` for internal SDK use):
7759
- * - `__pl_storage_normalize`: (rawStorage) => { storage, data }
7760
7759
  * - `__pl_storage_applyUpdate`: (currentStorageJson, payload) => updatedStorageJson
7761
- * - `__pl_storage_getInfo`: (rawStorage) => JSON string with storage info
7760
+ * - `__pl_storage_debugView`: (rawStorage) => JSON string with storage debug view
7762
7761
  * - `__pl_storage_migrate`: (currentStorageJson) => MigrationResult
7763
7762
  * - `__pl_args_derive`: (storageJson) => ArgsDeriveResult
7764
7763
  * - `__pl_prerunArgs_derive`: (storageJson) => ArgsDeriveResult
@@ -7842,31 +7841,28 @@
7842
7841
  // =============================================================================
7843
7842
  // Auto-register internal callbacks when module is loaded in VM
7844
7843
  // =============================================================================
7845
- // Register normalize callback
7846
- tryRegisterCallback('__pl_storage_normalize', (rawStorage) => {
7847
- return normalizeStorage(rawStorage);
7848
- });
7849
7844
  // Register apply update callback (requires existing storage)
7850
7845
  tryRegisterCallback('__pl_storage_applyUpdate', (currentStorageJson, payload) => {
7851
7846
  return applyStorageUpdate(currentStorageJson, payload);
7852
7847
  });
7853
7848
  /**
7854
- * Gets storage info from raw storage data.
7855
- * Returns structured info about the storage state.
7849
+ * Gets storage debug view from raw storage data.
7850
+ * Returns structured debug info about the storage state.
7856
7851
  *
7857
7852
  * @param rawStorage - Raw data from blockStorage field (may be JSON string or object)
7858
- * @returns JSON string with storage info
7853
+ * @returns JSON string with storage debug view
7859
7854
  */
7860
- function getStorageInfo(rawStorage) {
7855
+ function getStorageDebugView(rawStorage) {
7861
7856
  const { storage } = normalizeStorage(rawStorage);
7862
- const info = {
7857
+ const debugView = {
7863
7858
  dataVersion: storage.__dataVersion,
7859
+ data: storage.__data,
7864
7860
  };
7865
- return JSON.stringify(info);
7861
+ return stringifyJson(debugView);
7866
7862
  }
7867
- // Register get info callback
7868
- tryRegisterCallback('__pl_storage_getInfo', (rawStorage) => {
7869
- return getStorageInfo(rawStorage);
7863
+ // Register debug view callback
7864
+ tryRegisterCallback('__pl_storage_debugView', (rawStorage) => {
7865
+ return getStorageDebugView(rawStorage);
7870
7866
  });
7871
7867
  /**
7872
7868
  * Runs storage migration using the DataModel's upgrade callback.