@grahlnn/comps 0.1.0 → 0.1.1
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.js +4 -1
- package/package.json +2 -1
- package/torph/src/vendor/pretext/NOTICE.md +24 -11
package/dist/index.js
CHANGED
|
@@ -3596,7 +3596,10 @@ function getRootStyle(stage, plan, measurement, layoutContext) {
|
|
|
3596
3596
|
width = plan.layoutInlineSizeFrom;
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
|
-
|
|
3599
|
+
let height;
|
|
3600
|
+
if (plan !== null) {
|
|
3601
|
+
height = plan.frameHeight;
|
|
3602
|
+
}
|
|
3600
3603
|
const shouldTransitionWidth = stage === "animate" && plan !== null && !nearlyEqual(plan.layoutInlineSizeFrom, plan.layoutInlineSizeTo);
|
|
3601
3604
|
const style = {
|
|
3602
3605
|
position: "relative",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grahlnn/comps",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React components from grahlnn/comps.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"build": "bun run build:js && bun run build:types",
|
|
23
23
|
"build:js": "bun build ./index.ts --outdir ./dist --format esm --target browser --external react --external react/jsx-runtime",
|
|
24
24
|
"build:types": "tsc -p tsconfig.build.json",
|
|
25
|
+
"test:vendor-pretext": "bun test vendor-sync/pretext/layout.test.ts",
|
|
25
26
|
"prepublishOnly": "bun run build"
|
|
26
27
|
},
|
|
27
28
|
"publishConfig": {
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
Vendored from `C:\Users\admin\pretext` under the MIT license.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-
|
|
5
|
-
- `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- `src/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
Vendored from `C:\Users\admin\pretext` under the MIT license.
|
|
2
|
+
|
|
3
|
+
Current upstream sync baseline:
|
|
4
|
+
- repo: `@chenglou/pretext`
|
|
5
|
+
- commit: `488d8c6`
|
|
6
|
+
|
|
7
|
+
Upstream runtime files copied here:
|
|
8
|
+
- `src/analysis.ts`
|
|
9
|
+
- `src/bidi.ts`
|
|
10
|
+
- `src/layout.ts`
|
|
11
|
+
- `src/line-break.ts`
|
|
12
|
+
- `src/measurement.ts`
|
|
13
|
+
|
|
14
|
+
Local compatibility patch:
|
|
15
|
+
- `analysis.ts` keeps `export function normalizeWhitespacePreWrap(...)`
|
|
16
|
+
because `torph/src/utils/text-layout/pretextMorph.ts` imports it directly.
|
|
17
|
+
|
|
18
|
+
Vendor sync guardrails live under `vendor-sync/pretext/`:
|
|
19
|
+
- `layout.test.ts`
|
|
20
|
+
- `test-data.ts`
|
|
21
|
+
|
|
22
|
+
Local project code should import through `torph/src/utils/text-layout/pretext.ts`
|
|
23
|
+
instead of importing these vendor files directly, except for the intentional
|
|
24
|
+
internal use in `pretextMorph.ts`.
|