juxscript 1.1.309 → 1.1.311
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageState.d.ts","sourceRoot":"","sources":["../../../lib/state/pageState.ts"],"names":[],"mappings":"AAeA,cAAM,SAAS;IACX,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,MAAM,CAAsB;IAEpC,MAAM,CAAC,QAAQ,CAAC,WAAW,mKAQhB;;IA+BX,OAAO,CAAC,qBAAqB;
|
|
1
|
+
{"version":3,"file":"pageState.d.ts","sourceRoot":"","sources":["../../../lib/state/pageState.ts"],"names":[],"mappings":"AAeA,cAAM,SAAS;IACX,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,MAAM,CAAsB;IAEpC,MAAM,CAAC,QAAQ,CAAC,WAAW,mKAQhB;;IA+BX,OAAO,CAAC,qBAAqB;IAkH7B,OAAO,CAAC,SAAS;IAkEjB,OAAO,CAAC,UAAU;IAgClB,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,OAAO;IA2Cf,OAAO,CAAC,MAAM;IAmBd,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAGlC;AAID,eAAO,MAAM,SAAS,qBAAuB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -123,6 +123,14 @@ class PageState {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
else if (prop === 'visible') {
|
|
127
|
+
const el = this._findElement(comp);
|
|
128
|
+
// For wrapped components, toggle the wrapper
|
|
129
|
+
const target = comp._wrapper instanceof HTMLElement ? comp._wrapper : el;
|
|
130
|
+
if (target) {
|
|
131
|
+
target.style.display = value ? '' : 'none';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
126
134
|
// Update tracked props
|
|
127
135
|
entry.props[prop] = value;
|
|
128
136
|
// Notify listeners
|
|
@@ -161,6 +169,8 @@ class PageState {
|
|
|
161
169
|
entry.props.content = component.getContent();
|
|
162
170
|
if (component.getValues)
|
|
163
171
|
entry.props.values = component.getValues();
|
|
172
|
+
// Seed visibility — default true
|
|
173
|
+
entry.props.visible = true;
|
|
164
174
|
if (component.opts || component.options) {
|
|
165
175
|
const opts = component.opts || component.options;
|
|
166
176
|
if ('disabled' in opts)
|