@milaboratories/milaboratories.monetization-test.model 1.0.47 → 1.0.49

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,16 +1,16 @@
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.monetization-test.model@1.0.47 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.49 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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.5s
10
+ created dist, dist in 3.4s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
14
  ../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/pframe_utils/columns.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 5.1s
15
+ created dist in 3.9s
16
16
  Build completed successfully
@@ -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.monetization-test.model@1.0.47 lint /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.49 lint /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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.monetization-test.model@1.0.47 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.49 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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,19 @@
1
1
  # @milaboratories/milaboratories.monetization-test.model
2
2
 
3
+ ## 1.0.49
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [48e8984]
8
+ - @platforma-sdk/model@1.52.7
9
+
10
+ ## 1.0.48
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [1e4b72a]
15
+ - @platforma-sdk/model@1.52.3
16
+
3
17
  ## 1.0.47
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4698,6 +4698,9 @@
4698
4698
  var canonicalizeExports = requireCanonicalize();
4699
4699
  var canonicalize = /*@__PURE__*/getDefaultExportFromCjs(canonicalizeExports);
4700
4700
 
4701
+ function stringifyJson(value) {
4702
+ return JSON.stringify(value);
4703
+ }
4701
4704
  function canonicalizeJson(value) {
4702
4705
  return canonicalize(value);
4703
4706
  }
@@ -7478,7 +7481,7 @@
7478
7481
  }
7479
7482
  }
7480
7483
 
7481
- var version = "1.52.0";
7484
+ var version = "1.52.7";
7482
7485
 
7483
7486
  const PlatformaSDKVersion = version;
7484
7487
 
@@ -7736,9 +7739,8 @@
7736
7739
  * directly - they only see `state`.
7737
7740
  *
7738
7741
  * Registered callbacks (all prefixed with `__pl_` for internal SDK use):
7739
- * - `__pl_storage_normalize`: (rawStorage) => { storage, data }
7740
7742
  * - `__pl_storage_applyUpdate`: (currentStorageJson, payload) => updatedStorageJson
7741
- * - `__pl_storage_getInfo`: (rawStorage) => JSON string with storage info
7743
+ * - `__pl_storage_debugView`: (rawStorage) => JSON string with storage debug view
7742
7744
  * - `__pl_storage_migrate`: (currentStorageJson) => MigrationResult
7743
7745
  * - `__pl_args_derive`: (storageJson) => ArgsDeriveResult
7744
7746
  * - `__pl_prerunArgs_derive`: (storageJson) => ArgsDeriveResult
@@ -7822,31 +7824,28 @@
7822
7824
  // =============================================================================
7823
7825
  // Auto-register internal callbacks when module is loaded in VM
7824
7826
  // =============================================================================
7825
- // Register normalize callback
7826
- tryRegisterCallback('__pl_storage_normalize', (rawStorage) => {
7827
- return normalizeStorage(rawStorage);
7828
- });
7829
7827
  // Register apply update callback (requires existing storage)
7830
7828
  tryRegisterCallback('__pl_storage_applyUpdate', (currentStorageJson, payload) => {
7831
7829
  return applyStorageUpdate(currentStorageJson, payload);
7832
7830
  });
7833
7831
  /**
7834
- * Gets storage info from raw storage data.
7835
- * Returns structured info about the storage state.
7832
+ * Gets storage debug view from raw storage data.
7833
+ * Returns structured debug info about the storage state.
7836
7834
  *
7837
7835
  * @param rawStorage - Raw data from blockStorage field (may be JSON string or object)
7838
- * @returns JSON string with storage info
7836
+ * @returns JSON string with storage debug view
7839
7837
  */
7840
- function getStorageInfo(rawStorage) {
7838
+ function getStorageDebugView(rawStorage) {
7841
7839
  const { storage } = normalizeStorage(rawStorage);
7842
- const info = {
7840
+ const debugView = {
7843
7841
  dataVersion: storage.__dataVersion,
7842
+ data: storage.__data,
7844
7843
  };
7845
- return JSON.stringify(info);
7844
+ return stringifyJson(debugView);
7846
7845
  }
7847
- // Register get info callback
7848
- tryRegisterCallback('__pl_storage_getInfo', (rawStorage) => {
7849
- return getStorageInfo(rawStorage);
7846
+ // Register debug view callback
7847
+ tryRegisterCallback('__pl_storage_debugView', (rawStorage) => {
7848
+ return getStorageDebugView(rawStorage);
7850
7849
  });
7851
7850
  /**
7852
7851
  * Runs storage migration using the DataModel's upgrade callback.