@fragmentsx/runtime-react 0.2.0-dev-20261025103802 → 0.2.0-dev-20261112074602
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/index.d.ts +3 -5
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ export { FragmentsAreaError }
|
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
365
|
* Псевдоним для GraphState — возвращаемый тип `createFragmentsClient(...)` из
|
|
366
|
-
* `@fragmentsx/client
|
|
366
|
+
* `@fragmentsx/fragments-client`. Compiled Fragment.tsx не зависит от fragments-client
|
|
367
367
|
* напрямую: он импортирует тип отсюда и читает client через
|
|
368
368
|
* `FragmentsClientContext` (D-07).
|
|
369
369
|
*/
|
|
@@ -815,12 +815,10 @@ export declare type UseAreaStatus = "idle" | "loading" | "ready" | "not-found";
|
|
|
815
815
|
* Контекст: fragment-compiler (Phase 4 Plan 04-03) эмитит
|
|
816
816
|
* `import { useCssChunk } from "@fragmentsx/runtime-react"` + lifted calls
|
|
817
817
|
* `useCssChunk(<chunkId>);` в Fragment init body — отражая runtime-контракт
|
|
818
|
-
* interpreter'
|
|
818
|
+
* interpreter'а.
|
|
819
819
|
*
|
|
820
820
|
* В compiled production-pipeline CSS chunks инжектятся раньше — на уровне
|
|
821
|
-
* `$area.resolve → $cssChunks.populate → injectStylesheet
|
|
822
|
-
* `packages/client-core/src/compiled/$area/index.ts:186-187` и
|
|
823
|
-
* `packages/client-core/src/compiled/$cssChunks/index.ts:74-86`). К моменту mount
|
|
821
|
+
* `$area.resolve → $cssChunks.populate → injectStylesheet`. К моменту mount
|
|
824
822
|
* fragment'а `<link rel="stylesheet">` уже в DOM (с ref-count dedup в injectStylesheet
|
|
825
823
|
* registry). Per-fragment hook не делает дополнительной работы.
|
|
826
824
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragmentsx/runtime-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.0-dev-
|
|
4
|
+
"version": "0.2.0-dev-20261112074602",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@graph-state/core": "^0.13.3",
|
|
35
|
-
"@fragmentsx/fragments-client": "0.2.0-dev-
|
|
35
|
+
"@fragmentsx/fragments-client": "0.2.0-dev-20261112074602"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"playwright": "1.58.2",
|
|
46
46
|
"react": "^19.0.0",
|
|
47
47
|
"react-dom": "^19.2.3",
|
|
48
|
-
"typescript": "
|
|
48
|
+
"typescript": "~6.0.3",
|
|
49
49
|
"vite": "^6.1.0",
|
|
50
50
|
"vite-plugin-dts": "^4.5.0",
|
|
51
51
|
"vitest": "4.0.18",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"scripts": {
|
|
55
55
|
"clear": "rm -r -f ./dist",
|
|
56
56
|
"build": "vite build",
|
|
57
|
+
"typecheck": "tsc --noEmit",
|
|
57
58
|
"dev": "vite build -w",
|
|
58
59
|
"test": "NODE_OPTIONS=--max-old-space-size=2048 vitest run --config ./vitest.config.ts",
|
|
59
60
|
"test:browser": "NODE_OPTIONS=--max-old-space-size=2048 vitest run --config ./vitest.config.browser.ts",
|
|
60
|
-
"test:watch": "vitest --config ./vitest.config.ts"
|
|
61
|
-
"lint": "eslint . --ext .ts,.tsx --fix"
|
|
61
|
+
"test:watch": "vitest --config ./vitest.config.ts"
|
|
62
62
|
}
|
|
63
63
|
}
|