@base-framework/base 3.7.64 → 3.7.67

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.
@@ -33,12 +33,6 @@ export class Component extends Unit {
33
33
  * @type {string|null} stateTargetId // optional override of state id
34
34
  */
35
35
  stateTargetId: string | null;
36
- /**
37
- * @type {boolean} _externalData - true when data is provided
38
- * externally (e.g. temp components from { data: localVar }).
39
- * Preserve the value if already set by setupProps() in super().
40
- */
41
- _externalData: boolean;
42
36
  /**
43
37
  * This will set the data.
44
38
  *
@@ -123,6 +123,7 @@ export class Unit {
123
123
  * @returns {void}
124
124
  */
125
125
  protected setupProps(props?: object): void;
126
+ _externalData: boolean;
126
127
  /**
127
128
  * This will get the child scope instance of the component.
128
129
  * If the component is transparent, children see through
@@ -254,9 +255,9 @@ export class Unit {
254
255
  * @protected
255
256
  * @param {*} prop
256
257
  * @param {*} content
257
- * @returns {object}
258
+ * @returns {object|null}
258
259
  */
259
- protected if(prop: any, content: any): object;
260
+ protected if(prop: any, content: any): object | null;
260
261
  /**
261
262
  * This will map an array to children elements.
262
263
  *
@@ -217,6 +217,24 @@ export class BasicData {
217
217
  * @returns {this}
218
218
  */
219
219
  set(data: object): this;
220
+ /**
221
+ * Bulk-write top-level keys directly into stage WITHOUT
222
+ * publishing to subscribers.
223
+ *
224
+ * Used by the persist/resume system: when a fresh component
225
+ * instance is being seeded with persisted state, no watchers
226
+ * have subscribed yet (the new layout has not been built),
227
+ * so the deep `Publisher.publish` cascade fires into an empty
228
+ * subscriber set. For large data trees that is the dominant
229
+ * cost of resume.
230
+ *
231
+ * Subclasses (DeepData) may override to also keep their
232
+ * committed-attribute mirror in sync.
233
+ *
234
+ * @param {object} updates
235
+ * @returns {void}
236
+ */
237
+ _silentSet(updates: object): void;
220
238
  /**
221
239
  * This will get the model data.
222
240
  *
@@ -183,9 +183,9 @@ export class ModelService {
183
183
  * @param {(string|object)} params
184
184
  * @param {function} [callBack]
185
185
  * @param {function} [requestCallBack]
186
- * @returns {XMLHttpRequest}
186
+ * @returns {XMLHttpRequest?}
187
187
  */
188
- protected setupRequest(url: string, method: string, params: (string | object), callBack?: Function, requestCallBack?: Function): XMLHttpRequest;
188
+ protected setupRequest(url: string, method: string, params: (string | object), callBack?: Function, requestCallBack?: Function): XMLHttpRequest | null;
189
189
  /**
190
190
  * Set up an EventSource for real-time activity updates with auto-reconnection.
191
191
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.64",
3
+ "version": "3.7.67",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",