@bespokeagentics/create-microdots-host 0.1.2 → 0.2.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/package.json +1 -1
- package/templates/base/host/package.json +1 -1
- package/templates/base/host/src/main.ts +8 -1
- package/templates/base/microdots/pulse/package.json +8 -4
- package/templates/base/microdots/scope-picker/package.json +8 -4
- package/templates/plain/package.json +6 -3
- package/templates/tailwind/package.json +6 -3
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ensureSection,
|
|
6
6
|
ensureSlot,
|
|
7
7
|
findEntry,
|
|
8
|
+
resolveRegistry,
|
|
8
9
|
hrefFor,
|
|
9
10
|
loadMicroDot,
|
|
10
11
|
mountOverridesFor,
|
|
@@ -118,7 +119,13 @@ const mountRoute = async (route: RouteDefinition): Promise<void> => {
|
|
|
118
119
|
const outcomes = await Promise.allSettled(
|
|
119
120
|
pending.map(async placement => {
|
|
120
121
|
const slot = element(placement.slotId)
|
|
121
|
-
|
|
122
|
+
// The compiled registry PLUS whatever the topology carried, so a
|
|
123
|
+
// generated host can mount a dot it was never built with.
|
|
124
|
+
const entry = findEntry(
|
|
125
|
+
// Same-origin only until this host names an origin it trusts.
|
|
126
|
+
resolveRegistry(registry, topology.registry, []),
|
|
127
|
+
placement.tag,
|
|
128
|
+
)
|
|
122
129
|
if (entry === undefined) {
|
|
123
130
|
panel(
|
|
124
131
|
slot,
|
|
@@ -4,17 +4,21 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"microdot": {
|
|
7
|
-
"tags": [
|
|
7
|
+
"tags": [
|
|
8
|
+
"starter-pulse"
|
|
9
|
+
],
|
|
8
10
|
"port": 3202,
|
|
9
11
|
"bundle": "pulse.js"
|
|
10
12
|
},
|
|
11
|
-
"exports": {
|
|
13
|
+
"exports": {
|
|
14
|
+
"./contract": "./src/contract.ts"
|
|
15
|
+
},
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@bespokeagentics/microdots-element": "0.1.2",
|
|
14
18
|
"@bespokeagentics/microdots-runtime": "0.1.1",
|
|
15
19
|
"@bespokeagentics/microdots-theme": "0.1.1",
|
|
16
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
17
|
-
"effect": "4.0.0-rc.
|
|
20
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
21
|
+
"effect": "4.0.0-rc.112",
|
|
18
22
|
"foldkit": "^0.144.0"
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -4,17 +4,21 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"microdot": {
|
|
7
|
-
"tags": [
|
|
7
|
+
"tags": [
|
|
8
|
+
"starter-scope-picker"
|
|
9
|
+
],
|
|
8
10
|
"port": 3201,
|
|
9
11
|
"bundle": "scope-picker.js"
|
|
10
12
|
},
|
|
11
|
-
"exports": {
|
|
13
|
+
"exports": {
|
|
14
|
+
"./contract": "./src/contract.ts"
|
|
15
|
+
},
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@bespokeagentics/microdots-element": "0.1.2",
|
|
14
18
|
"@bespokeagentics/microdots-runtime": "0.1.1",
|
|
15
19
|
"@bespokeagentics/microdots-theme": "0.1.1",
|
|
16
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
17
|
-
"effect": "4.0.0-rc.
|
|
20
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
21
|
+
"effect": "4.0.0-rc.112",
|
|
18
22
|
"foldkit": "^0.144.0"
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"workspaces": [
|
|
6
|
+
"workspaces": [
|
|
7
|
+
"host",
|
|
8
|
+
"microdots/*"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"dev": "bun scripts/dev.ts",
|
|
9
12
|
"build": "bun scripts/build.ts",
|
|
@@ -19,8 +22,8 @@
|
|
|
19
22
|
"@bespokeagentics/microdots-host": "0.1.3",
|
|
20
23
|
"@bespokeagentics/microdots-runtime": "0.1.1",
|
|
21
24
|
"@bespokeagentics/microdots-theme": "0.1.1",
|
|
22
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
23
|
-
"effect": "4.0.0-rc.
|
|
25
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
26
|
+
"effect": "4.0.0-rc.112",
|
|
24
27
|
"foldkit": "^0.144.0"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"workspaces": [
|
|
6
|
+
"workspaces": [
|
|
7
|
+
"host",
|
|
8
|
+
"microdots/*"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"dev": "bun scripts/dev.ts",
|
|
9
12
|
"build": "bun scripts/build.ts",
|
|
@@ -19,8 +22,8 @@
|
|
|
19
22
|
"@bespokeagentics/microdots-host": "0.1.3",
|
|
20
23
|
"@bespokeagentics/microdots-runtime": "0.1.1",
|
|
21
24
|
"@bespokeagentics/microdots-theme": "0.1.1",
|
|
22
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
23
|
-
"effect": "4.0.0-rc.
|
|
25
|
+
"@effect/platform-node": "4.0.0-rc.112",
|
|
26
|
+
"effect": "4.0.0-rc.112",
|
|
24
27
|
"foldkit": "^0.144.0"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|