@fairfox/polly 0.38.2 → 0.47.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/dist/cli/polly.js.map +1 -1
- package/dist/src/background/index.js +1 -2
- package/dist/src/background/index.js.map +6 -6
- package/dist/src/background/message-router.js +1 -2
- package/dist/src/background/message-router.js.map +6 -6
- package/dist/src/client/index.js +46 -27
- package/dist/src/client/index.js.map +5 -5
- package/dist/src/client/wrapper.d.ts +8 -0
- package/dist/src/elysia/index.js +10 -31
- package/dist/src/elysia/index.js.map +5 -5
- package/dist/src/elysia/route-match.d.ts +9 -0
- package/dist/src/elysia/types.d.ts +4 -5
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +7 -7
- package/dist/src/mesh-node.js.map +1 -1
- package/dist/src/mesh.js.map +7 -7
- package/dist/src/peer.js.map +3 -3
- package/dist/src/polly-ui/index.js.map +3 -3
- package/dist/src/polly-ui/markdown.js +583 -517
- package/dist/src/polly-ui/markdown.js.map +6 -6
- package/dist/src/polly-ui/registry.d.ts +16 -0
- package/dist/src/polly-ui/registry.generated.d.ts +20 -0
- package/dist/src/shared/adapters/index.js.map +3 -3
- package/dist/src/shared/lib/context-helpers.js +1 -2
- package/dist/src/shared/lib/context-helpers.js.map +6 -6
- package/dist/src/shared/lib/mesh-signaling-client.d.ts +1 -1
- package/dist/src/shared/lib/message-bus.js +1 -2
- package/dist/src/shared/lib/message-bus.js.map +6 -6
- package/dist/src/shared/lib/peer-relay-adapter.d.ts +3 -2
- package/dist/src/shared/lib/resource.js.map +3 -3
- package/dist/src/shared/lib/state.js.map +3 -3
- package/dist/src/shared/state/app-state.js.map +4 -4
- package/dist/src/shared/types/messages.d.ts +0 -9
- package/dist/src/shared/types/messages.js.map +1 -1
- package/dist/tools/quality/src/attest.d.ts +55 -0
- package/dist/tools/quality/src/cache.d.ts +34 -0
- package/dist/tools/quality/src/cli.js +1738 -2
- package/dist/tools/quality/src/cli.js.map +13 -4
- package/dist/tools/quality/src/config.d.ts +18 -0
- package/dist/tools/quality/src/host.d.ts +46 -0
- package/dist/tools/quality/src/index.d.ts +7 -0
- package/dist/tools/quality/src/index.js +1637 -1
- package/dist/tools/quality/src/index.js.map +13 -4
- package/dist/tools/quality/src/plugins/core-checks.d.ts +20 -0
- package/dist/tools/quality/src/plugins/core.d.ts +18 -0
- package/dist/tools/quality/src/plugins/extra-checks.d.ts +14 -0
- package/dist/tools/quality/src/plugins/import-checks.d.ts +16 -0
- package/dist/tools/quality/src/plugins/polly-ui.d.ts +31 -0
- package/dist/tools/quality/src/types.d.ts +104 -0
- package/dist/tools/test/src/adapters/index.js.map +1 -1
- package/dist/tools/test/src/index.js.map +1 -1
- package/dist/tools/test/src/visual/index.js +64 -38
- package/dist/tools/test/src/visual/index.js.map +4 -4
- package/dist/tools/verify/Dockerfile +1 -1
- package/dist/tools/verify/specs/Dockerfile +1 -1
- package/dist/tools/verify/src/cli.js +324 -226
- package/dist/tools/verify/src/cli.js.map +8 -7
- package/dist/tools/visualize/src/cli.js.map +3 -3
- package/package.json +40 -29
- package/dist/src/utils/function-serialization.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairfox/polly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Multi-execution-context framework with reactive state and cross-context messaging for Chrome extensions, PWAs, and worker-based applications",
|
|
@@ -102,6 +102,10 @@
|
|
|
102
102
|
"import": "./dist/src/polly-ui/index.js",
|
|
103
103
|
"types": "./dist/src/polly-ui/index.d.ts"
|
|
104
104
|
},
|
|
105
|
+
"./ui/registry": {
|
|
106
|
+
"import": "./dist/src/polly-ui/registry.js",
|
|
107
|
+
"types": "./dist/src/polly-ui/registry.d.ts"
|
|
108
|
+
},
|
|
105
109
|
"./ui/styles.css": "./dist/src/polly-ui/styles.css",
|
|
106
110
|
"./ui/theme.css": "./dist/src/polly-ui/theme.css",
|
|
107
111
|
"./ui/components.css": "./dist/src/polly-ui/index.css",
|
|
@@ -119,7 +123,8 @@
|
|
|
119
123
|
"dev": "bun run build.ts --watch",
|
|
120
124
|
"build": "bun run build.ts",
|
|
121
125
|
"build:prod": "bun run build.ts --prod",
|
|
122
|
-
"build:lib": "bun run build-lib.ts",
|
|
126
|
+
"build:lib": "bun scripts/build-polly-ui-registry.ts && bun run build-lib.ts",
|
|
127
|
+
"build:registry": "bun scripts/build-polly-ui-registry.ts",
|
|
123
128
|
"build:full-featured": "bun run scripts/build-user-extension.ts examples/full-featured",
|
|
124
129
|
"build:full-featured:prod": "bun run scripts/build-user-extension.ts examples/full-featured --prod",
|
|
125
130
|
"typecheck": "bunx tsc --noEmit && bun run --cwd tests typecheck",
|
|
@@ -135,43 +140,42 @@
|
|
|
135
140
|
"test:example:todo-list": "echo '\\n--- Todo List ---' && bun run --cwd examples/todo-list test:all",
|
|
136
141
|
"test:example:full-featured": "echo '\\n--- Full Featured ---' && bun run --cwd examples/full-featured test:all",
|
|
137
142
|
"test:e2e:visualize": "bun scripts/e2e-visualize.ts",
|
|
143
|
+
"check": "bun scripts/check.ts",
|
|
138
144
|
"prepublishOnly": "bun run typecheck && bun run lint && bun run --cwd tests test && bun run build:lib",
|
|
139
145
|
"publish:public": "npm publish --access public --otp=$(pass-cli item totp --output json --item-id Rdr--oUgHp-IfyjoTB7vhMPHfNt6Oz2JpXfS1WrdQMQ9damDMPOvKiOxxpCZqp92WgqXnfY68cSXWdQ_JVMNMQ== --share-id Ixmpll6U5ioU_1P4fzUbarQNANRPU51O68xzFblTB08S0HUfw4dhQaNAv4Yv7Sud_Vf8ps4mnQUFqdvN-eTRdQ== | jq -r '.totp')"
|
|
140
146
|
},
|
|
141
147
|
"devDependencies": {
|
|
142
|
-
"@automerge/automerge-repo": "
|
|
143
|
-
"@automerge/automerge-repo-network-websocket": "
|
|
144
|
-
"@automerge/automerge-repo-storage-indexeddb": "
|
|
145
|
-
"@automerge/automerge-repo-storage-nodefs": "
|
|
146
|
-
"@biomejs/biome": "
|
|
147
|
-
"@elysiajs/eden": "
|
|
148
|
-
"@types/bun": "
|
|
149
|
-
"@types/chrome": "
|
|
150
|
-
"@types/pixelmatch": "
|
|
151
|
-
"@types/pngjs": "
|
|
152
|
-
"@types/
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"typescript": "^5.9.3"
|
|
148
|
+
"@automerge/automerge-repo": "2.5.5",
|
|
149
|
+
"@automerge/automerge-repo-network-websocket": "2.5.5",
|
|
150
|
+
"@automerge/automerge-repo-storage-indexeddb": "2.5.5",
|
|
151
|
+
"@automerge/automerge-repo-storage-nodefs": "2.5.5",
|
|
152
|
+
"@biomejs/biome": "2.4.14",
|
|
153
|
+
"@elysiajs/eden": "1.4.9",
|
|
154
|
+
"@types/bun": "1.3.13",
|
|
155
|
+
"@types/chrome": "0.1.40",
|
|
156
|
+
"@types/pixelmatch": "5.2.6",
|
|
157
|
+
"@types/pngjs": "6.0.5",
|
|
158
|
+
"@types/ws": "8.18.1",
|
|
159
|
+
"dompurify": "3.4.2",
|
|
160
|
+
"elysia": "1.4.28",
|
|
161
|
+
"fast-check": "4.7.0",
|
|
162
|
+
"marked": "18.0.3",
|
|
163
|
+
"pixelmatch": "7.2.0",
|
|
164
|
+
"pngjs": "7.0.0",
|
|
165
|
+
"puppeteer": "24.42.0",
|
|
166
|
+
"tweetnacl": "1.0.3",
|
|
167
|
+
"typescript": "6.0.3"
|
|
163
168
|
},
|
|
164
169
|
"engines": {
|
|
165
170
|
"bun": ">=1.2.0"
|
|
166
171
|
},
|
|
167
172
|
"dependencies": {
|
|
168
|
-
"@preact/signals": "
|
|
169
|
-
"preact": "
|
|
170
|
-
"
|
|
171
|
-
"ts-morph": "^21.0.1"
|
|
173
|
+
"@preact/signals": "2.9.0",
|
|
174
|
+
"preact": "10.29.1",
|
|
175
|
+
"ts-morph": "28.0.0"
|
|
172
176
|
},
|
|
173
177
|
"peerDependencies": {
|
|
174
|
-
"typescript": "
|
|
178
|
+
"typescript": ">= 5.9.3",
|
|
175
179
|
"preact": "^10.28.1",
|
|
176
180
|
"@preact/signals": "^2.5.1",
|
|
177
181
|
"elysia": ">= 1.4.0",
|
|
@@ -260,5 +264,12 @@
|
|
|
260
264
|
"homepage": "https://github.com/AlexJeffcott/polly#readme",
|
|
261
265
|
"trustedDependencies": [
|
|
262
266
|
"node-datachannel"
|
|
263
|
-
]
|
|
267
|
+
],
|
|
268
|
+
"overrides": {
|
|
269
|
+
"brace-expansion": "^2.0.3",
|
|
270
|
+
"file-type": "^21.3.1",
|
|
271
|
+
"ip-address": "^10.1.1",
|
|
272
|
+
"minimatch": "^9.0.6",
|
|
273
|
+
"uuid": "^14.0.0"
|
|
274
|
+
}
|
|
264
275
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serialize a function to send to client
|
|
3
|
-
*
|
|
4
|
-
* DEV ONLY: Used for hot reloading and debugging
|
|
5
|
-
* PROD: No-op - client effects are baked into bundle at build time
|
|
6
|
-
*/
|
|
7
|
-
export declare function serializeFunction(fn: Function): string;
|
|
8
|
-
/**
|
|
9
|
-
* Deserialize a function received from server
|
|
10
|
-
*
|
|
11
|
-
* DEV ONLY: Eval serialized function source
|
|
12
|
-
* PROD: Should never be called - effects come from bundle
|
|
13
|
-
*/
|
|
14
|
-
export declare function deserializeFunction(serialized: string): Function;
|