@jxsuite/import 0.40.3 → 0.40.4
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 +5 -5
- package/src/apply-popovers.ts +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/import",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.4",
|
|
4
4
|
"description": "Clone a live website into a Jx project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"import": "bun run src/cli.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@jxsuite/markup": "^0.4.
|
|
39
|
-
"@jxsuite/schema": "^2.
|
|
38
|
+
"@jxsuite/markup": "^0.4.11",
|
|
39
|
+
"@jxsuite/schema": "^2.3.0",
|
|
40
40
|
"pixelmatch": "^7.2.0",
|
|
41
41
|
"pngjs": "^7.0.0",
|
|
42
|
-
"puppeteer-core": "^
|
|
42
|
+
"puppeteer-core": "^25.12.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/pngjs": "^6.0.5",
|
|
46
46
|
"happy-dom": "^20.10.6"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@jxsuite/compiler": "^4.0.
|
|
49
|
+
"@jxsuite/compiler": "^4.0.2"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/apply-popovers.ts
CHANGED
|
@@ -193,12 +193,15 @@ function openValueFor(property: string, closed: unknown): string | null {
|
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* Move a panel's closed-state declarations into `:popover-open`, where they describe the open one.
|
|
198
|
+
*
|
|
199
|
+
* `node` is always a panel `looksLikePanel` already accepted, and that requires a concealing style
|
|
200
|
+
* declaration to exist (`concealedBy(style).length === 0` rejects it otherwise) — so
|
|
201
|
+
* `styleOf(node)` is never empty here.
|
|
202
|
+
*/
|
|
197
203
|
function liftConcealment(node: JxElement): void {
|
|
198
|
-
const style = styleOf(node)
|
|
199
|
-
if (!style) {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
204
|
+
const style = styleOf(node)!;
|
|
202
205
|
const open = (style[":popover-open"] as Record<string, unknown> | undefined) ?? {};
|
|
203
206
|
for (const property of Object.keys(style)) {
|
|
204
207
|
if (!CONCEALING.has(property)) {
|