@lvce-editor/shared-process 0.112.19 → 0.112.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.112.19",
3
+ "version": "0.112.21",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'ad9f04d', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '582d897', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.112.19'
59
+ export const version = '0.112.21'
60
60
 
61
- export const commit = 'ad9f04d'
61
+ export const commit = '582d897'
62
62
 
63
- export const date = '2026-09-03T20:46:14.000Z'
63
+ export const date = '2026-09-03T22:48:40.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  return version
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', 'ad9f04d', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', '582d897', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -1,4 +1,44 @@
1
1
  [
2
+ {
3
+ "id": "componentState",
4
+ "fileName": "componentStateWorkerMain.js",
5
+ "defaultPath": "/packages/renderer-worker/node_modules/@lvce-editor/component-state-worker/dist/componentStateWorkerMain.js",
6
+ "productionPath": "/packages/component-state-worker/dist/componentStateWorkerMain.js",
7
+ "settingName": "develop.componentStateWorkerPath",
8
+ "hotReloadCommand": "",
9
+ "contentSecurityPolicy": ["default-src 'none'", "sandbox allow-same-origin"],
10
+ "viewlet": {
11
+ "name": "ComponentState",
12
+ "css": ["/css/parts/ViewletComponentState.css"],
13
+ "state": { "idKey": "uid", "fields": ["x", "y", "width", "height"] },
14
+ "commandPrefix": "ComponentState",
15
+ "commandReturnStateWhenCommandsEmpty": true,
16
+ "methods": {
17
+ "create": {
18
+ "name": "ComponentState.create",
19
+ "parameters": [
20
+ { "source": "state", "name": "uid" }, { "source": "state", "name": "x" }, { "source": "state", "name": "y" },
21
+ { "source": "state", "name": "width" }, { "source": "state", "name": "height" }
22
+ ]
23
+ },
24
+ "loadContent": { "name": "ComponentState.loadContent", "parameters": [{ "source": "state", "name": "uid" }] },
25
+ "diff": { "name": "ComponentState.diff2", "parameters": [{ "source": "state", "name": "uid" }] },
26
+ "render": {
27
+ "name": "ComponentState.render2",
28
+ "parameters": [{ "source": "state", "name": "uid" }, { "source": "result", "name": "diff" }]
29
+ },
30
+ "resize": {
31
+ "name": "ComponentState.resize",
32
+ "parameters": [{ "source": "state", "name": "uid" }, { "source": "argument", "name": "dimensions" }]
33
+ },
34
+ "getCommandIds": { "name": "ComponentState.getCommandIds", "parameters": [] },
35
+ "renderEventListeners": { "name": "ComponentState.renderEventListeners", "parameters": [] }
36
+ },
37
+ "capabilities": { "events": true, "render": true, "resize": true, "rootRender": true },
38
+ "renderComparison": "always",
39
+ "title": "Component State"
40
+ }
41
+ },
2
42
  {
3
43
  "id": "notificationCenterView",
4
44
  "fileName": "notificationCenterWorkerMain.js",
@@ -612,11 +652,19 @@
612
652
  "saveState": { "name": "Explorer.saveState", "parameters": [{ "source": "state", "name": "uid" }] },
613
653
  "terminate": { "name": "Explorer.terminate", "parameters": [] },
614
654
  "getCommandIds": { "name": "Explorer.getCommandIds", "parameters": [] },
655
+ "getComponentState": { "name": "Explorer.getComponentState", "parameters": [{ "source": "state", "name": "uid" }] },
615
656
  "getKeyBindings": { "name": "Explorer.getKeyBindings", "parameters": [] },
616
657
  "getMenuEntryIds": { "name": "Explorer.getMenuIds", "parameters": [] },
617
658
  "getMenuEntries": { "name": "Explorer.getMenuEntries", "parameters": [{ "source": "argument", "name": "args", "spread": true }] },
618
659
  "getTitle": { "name": "Explorer.getTitle", "parameters": [{ "source": "state", "name": "uid" }], "fallback": "Explorer" },
619
- "renderEventListeners": { "name": "Explorer.renderEventListeners", "parameters": [] }
660
+ "renderEventListeners": { "name": "Explorer.renderEventListeners", "parameters": [] },
661
+ "setComponentState": {
662
+ "name": "Explorer.setComponentState",
663
+ "parameters": [
664
+ { "source": "state", "name": "uid" },
665
+ { "source": "argument", "name": "componentState" }
666
+ ]
667
+ }
620
668
  },
621
669
  "outputs": [
622
670
  { "stateField": "actionsDom", "hotReload": false, "method": { "name": "Explorer.renderActions2", "parameters": [{ "source": "state", "name": "uid" }] } },