@taipa/ui 0.0.0-cdn-probe.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/client.d.mts +9 -0
- package/dist/client.mjs +16 -0
- package/dist/forms.d.mts +9 -0
- package/dist/forms.mjs +11 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.mjs +16 -0
- package/dist/server.d.mts +9 -0
- package/dist/server.mjs +11 -0
- package/package.json +41 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/client.d.ts
|
|
2
|
+
declare const probeTarget = "@taipa/ui:client";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: mounts a reactive text node. DOM access stays inside
|
|
5
|
+
* the function body so the module remains importable in server runtimes.
|
|
6
|
+
*/
|
|
7
|
+
declare function mountProbe(element: Element, label: string): (next: string) => void;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { mountProbe, probeTarget };
|
package/dist/client.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { effect, signal } from "alien-signals";
|
|
2
|
+
//#region src/client.ts
|
|
3
|
+
const probeTarget = "@taipa/ui:client";
|
|
4
|
+
/**
|
|
5
|
+
* U1 CDN-probe canary: mounts a reactive text node. DOM access stays inside
|
|
6
|
+
* the function body so the module remains importable in server runtimes.
|
|
7
|
+
*/
|
|
8
|
+
function mountProbe(element, label) {
|
|
9
|
+
const text = signal(label);
|
|
10
|
+
effect(() => {
|
|
11
|
+
element.textContent = text();
|
|
12
|
+
});
|
|
13
|
+
return (next) => text(next);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { mountProbe, probeTarget };
|
package/dist/forms.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/forms.d.ts
|
|
2
|
+
declare const probeTarget = "@taipa/ui:forms";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: forms subpath placeholder. The real form contract
|
|
5
|
+
* lands with the forms integration units.
|
|
6
|
+
*/
|
|
7
|
+
declare function probeFieldName(name: string): string;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { probeFieldName, probeTarget };
|
package/dist/forms.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/forms.ts
|
|
2
|
+
const probeTarget = "@taipa/ui:forms";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: forms subpath placeholder. The real form contract
|
|
5
|
+
* lands with the forms integration units.
|
|
6
|
+
*/
|
|
7
|
+
function probeFieldName(name) {
|
|
8
|
+
return `taipa:${name}`;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { probeFieldName, probeTarget };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
declare const probeTarget = "@taipa/ui:root";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: proves the root subpath ships ESM and keeps
|
|
5
|
+
* alien-signals as an external import. Replaced by the real runtime in U2+.
|
|
6
|
+
*/
|
|
7
|
+
declare function createProbeCount(initial: number): {
|
|
8
|
+
get: () => number;
|
|
9
|
+
set: (value: number) => void;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createProbeCount, probeTarget };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { signal } from "alien-signals";
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
const probeTarget = "@taipa/ui:root";
|
|
4
|
+
/**
|
|
5
|
+
* U1 CDN-probe canary: proves the root subpath ships ESM and keeps
|
|
6
|
+
* alien-signals as an external import. Replaced by the real runtime in U2+.
|
|
7
|
+
*/
|
|
8
|
+
function createProbeCount(initial) {
|
|
9
|
+
const count = signal(initial);
|
|
10
|
+
return {
|
|
11
|
+
get: () => count(),
|
|
12
|
+
set: (value) => count(value)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { createProbeCount, probeTarget };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/server.d.ts
|
|
2
|
+
declare const probeTarget = "@taipa/ui:server";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: server-safe subpath placeholder. The real
|
|
5
|
+
* server-rendering contract lands with the Django integration units.
|
|
6
|
+
*/
|
|
7
|
+
declare function renderProbe(label: string): string;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { probeTarget, renderProbe };
|
package/dist/server.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/server.ts
|
|
2
|
+
const probeTarget = "@taipa/ui:server";
|
|
3
|
+
/**
|
|
4
|
+
* U1 CDN-probe canary: server-safe subpath placeholder. The real
|
|
5
|
+
* server-rendering contract lands with the Django integration units.
|
|
6
|
+
*/
|
|
7
|
+
function renderProbe(label) {
|
|
8
|
+
return `<span data-taipa-probe="server">${label}</span>`;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { probeTarget, renderProbe };
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taipa/ui",
|
|
3
|
+
"version": "0.0.0-cdn-probe.0",
|
|
4
|
+
"description": "Signal-native UI runtime with server-rendered state components for Python backends.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./dist/index.mjs",
|
|
13
|
+
"./client": "./dist/client.mjs",
|
|
14
|
+
"./forms": "./dist/forms.mjs",
|
|
15
|
+
"./server": "./dist/server.mjs",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"alien-signals": "3.2.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "24.13.3",
|
|
26
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
27
|
+
"playwright": "1.61.1",
|
|
28
|
+
"typescript": "7.0.2",
|
|
29
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.5",
|
|
30
|
+
"vite-plus": "0.2.5"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=22.12.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vp pack",
|
|
37
|
+
"dev": "vp pack --watch",
|
|
38
|
+
"test": "vp test",
|
|
39
|
+
"check": "vp check"
|
|
40
|
+
}
|
|
41
|
+
}
|