gg-wf-scripts 9.2.0 → 9.2.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/switch-engine.js +3 -2
- package/dist/switch-engine.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/switch-engine.js
CHANGED
|
@@ -18,8 +18,9 @@ export function initSwitchEngine() {
|
|
|
18
18
|
});
|
|
19
19
|
// Initial pass for elements present at start AND any inserted later — the
|
|
20
20
|
// mutation observer above only fires on attribute *changes*, so freshly
|
|
21
|
-
// inserted nodes need an explicit apply.
|
|
22
|
-
|
|
21
|
+
// inserted nodes need an explicit apply. Instant so display:none is
|
|
22
|
+
// committed synchronously before the data engine's initial pass reads it.
|
|
23
|
+
const unbind = onElement(SEL.switchState, (el) => applySwitchState(el, { instant: true }));
|
|
23
24
|
return () => {
|
|
24
25
|
observer.disconnect();
|
|
25
26
|
unbind();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-engine.js","sourceRoot":"","sources":["../src/switch-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,UAAU,gBAAgB;IAC9B,4DAA4D;IAC5D,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,CAAC,SAAS,EAAE,EAAE;QAClD,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtB,IACE,CAAC,CAAC,aAAa,KAAK,IAAI,CAAC,WAAW;gBACpC,CAAC,CAAC,MAAM,YAAY,OAAO,EAC3B,CAAC;gBACD,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC,CAAC;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AAC,CACxC,CAAC;IAEF,OAAO,GAAG,EAAE;QACV,QAAQ,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,EAAE,CAAC;IACX,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "9.2.
|
|
1
|
+
export declare const VERSION = "9.2.1";
|
package/dist/version.js
CHANGED