@mica-js/editor 0.3.2 → 0.4.0
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/README.md +96 -1
- package/dist/fused-html.d.ts +849 -0
- package/dist/fused-html.js +1 -0
- package/dist/fused-runtime.d.ts +685 -0
- package/dist/fused-runtime.js +3 -0
- package/dist/fused.d.ts +537 -0
- package/dist/fused.js +6725 -0
- package/dist/fused.js.map +1 -0
- package/dist/html-HXwZq1my.js +1618 -0
- package/dist/html-HXwZq1my.js.map +1 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +174 -280
- package/dist/index.js.map +1 -1
- package/dist/runtime-CXYJzbbj.js +1739 -0
- package/dist/runtime-CXYJzbbj.js.map +1 -0
- package/dist/style.css +1486 -0
- package/dist/view-environment/content.html +36 -0
- package/dist/view-environment/content.js +666 -0
- package/dist/view-environment/environment-sw.js +632 -0
- package/dist/view-environment/environment.js +783 -0
- package/dist/view-environment/index.html +32 -0
- package/dist/wire-BDHL5Aj9.js +183 -0
- package/dist/wire-BDHL5Aj9.js.map +1 -0
- package/dist/wire-JZIiIOI0.js +260 -0
- package/dist/wire-JZIiIOI0.js.map +1 -0
- package/dist/workers-BsocIPUc.js +34 -0
- package/dist/workers-BsocIPUc.js.map +1 -0
- package/package.json +41 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workers-BsocIPUc.js","names":["SimulationEntry","DisplayEntry"],"sources":["../src/fused/runtime/workers.ts"],"sourcesContent":["/**\n * Generated workers of the fused editor runtime.\n *\n * `?sandbox-worker` bundles each entry module in memory as one self-contained classic script and\n * inlines it into this module, so the editor publishes no separate worker file. `createFusedRuntime`\n * imports this module lazily: callers that inject their own workers never pull the bundled guests in.\n */\nimport type { SandboxWorker } from '@mica-js/sandbox';\nimport DisplayEntry from './display/entry.ts?sandbox-worker';\nimport SimulationEntry from './simulation/entry.ts?sandbox-worker';\nimport type { IFusedWorkerFactories } from './host/types';\n\nexport const fusedWorkerFactories: IFusedWorkerFactories = {\n createSimulationWorker(options = {}): SandboxWorker {\n return new SimulationEntry({ name: 'fused-simulation', ...options });\n },\n createDisplayWorker(options = {}): SandboxWorker {\n return new DisplayEntry({ name: 'fused-display', ...options });\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAYA,IAAa,uBAA8C;CACzD,uBAAuB,UAAU,CAAC,GAAkB;EAClD,OAAO,IAAIA,aAAgB;GAAE,MAAM;GAAoB,GAAG;EAAQ,CAAC;CACrE;CACA,oBAAoB,UAAU,CAAC,GAAkB;EAC/C,OAAO,IAAIC,eAAa;GAAE,MAAM;GAAiB,GAAG;EAAQ,CAAC;CAC/D;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mica-js/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Mica editors: independent composition roots, commands and scoped services",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,24 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"import": "./dist/index.js"
|
|
19
19
|
},
|
|
20
|
+
"./fused": {
|
|
21
|
+
"types": "./dist/fused.d.ts",
|
|
22
|
+
"import": "./dist/fused.js"
|
|
23
|
+
},
|
|
24
|
+
"./fused/style.css": "./dist/style.css",
|
|
25
|
+
"./fused/runtime": {
|
|
26
|
+
"types": "./dist/fused-runtime.d.ts",
|
|
27
|
+
"import": "./dist/fused-runtime.js"
|
|
28
|
+
},
|
|
29
|
+
"./fused/html": {
|
|
30
|
+
"types": "./dist/fused-html.d.ts",
|
|
31
|
+
"import": "./dist/fused-html.js"
|
|
32
|
+
},
|
|
33
|
+
"./fused/view-environment/index.html": "./dist/view-environment/index.html",
|
|
34
|
+
"./fused/view-environment/environment.js": "./dist/view-environment/environment.js",
|
|
35
|
+
"./fused/view-environment/environment-sw.js": "./dist/view-environment/environment-sw.js",
|
|
36
|
+
"./fused/view-environment/content.html": "./dist/view-environment/content.html",
|
|
37
|
+
"./fused/view-environment/content.js": "./dist/view-environment/content.js",
|
|
20
38
|
"./style.css": "./dist/style.css"
|
|
21
39
|
},
|
|
22
40
|
"files": [
|
|
@@ -27,12 +45,30 @@
|
|
|
27
45
|
},
|
|
28
46
|
"dependencies": {
|
|
29
47
|
"@mica-js/core": "0.7.0",
|
|
30
|
-
"@mica-js/simulator": "2.
|
|
31
|
-
"@mica-js/sdk": "0.
|
|
32
|
-
"@mica-js/widget": "0.
|
|
33
|
-
"@mica-js/document": "0.
|
|
48
|
+
"@mica-js/simulator": "2.5.1",
|
|
49
|
+
"@mica-js/sdk": "0.4.0",
|
|
50
|
+
"@mica-js/widget": "0.5.0",
|
|
51
|
+
"@mica-js/document": "0.3.0",
|
|
52
|
+
"@mica-js/sandbox": "0.5.1",
|
|
53
|
+
"@vscode/codicons": "^0.0.45"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "^19.2.0",
|
|
57
|
+
"react-dom": "^19.2.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"react": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"react-dom": {
|
|
64
|
+
"optional": true
|
|
65
|
+
}
|
|
34
66
|
},
|
|
35
67
|
"devDependencies": {
|
|
68
|
+
"@types/react": "^19.2.2",
|
|
69
|
+
"@types/react-dom": "^19.2.1",
|
|
70
|
+
"react": "^19.2.0",
|
|
71
|
+
"react-dom": "^19.2.0",
|
|
36
72
|
"typescript": "^6.0.3",
|
|
37
73
|
"vite": "^8.3.4",
|
|
38
74
|
"vite-plugin-dts": "^5.1.2",
|