mftsccs-browser 2.2.48-beta → 2.2.50-beta
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/main.bundle.js +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/types/Services/Transaction/LocalTransaction.d.ts +9 -0
- package/dist/types/Widgets/BuilderStatefulWidget.d.ts +10 -0
- package/dist/types/Widgets/RenderWidgetService.d.ts +19 -2
- package/dist/types/app.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/Metadata/AutocompleteMetadata.d.ts +0 -7
- package/dist/types/wico.d.ts +0 -3
- package/dist/wico-metadata.bundle.js +0 -2
- package/dist/wico-metadata.bundle.js.LICENSE.txt +0 -1
|
@@ -28,6 +28,15 @@ export declare class LocalTransaction {
|
|
|
28
28
|
/**
|
|
29
29
|
* Deletions
|
|
30
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* Queues a connection ID for deletion during the next commit.
|
|
33
|
+
*/
|
|
34
|
+
deleteConnection(id: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* Queues connection IDs for deletion during the next commit.
|
|
37
|
+
* Duplicate IDs are removed so each connection is deleted once.
|
|
38
|
+
*/
|
|
39
|
+
deleteConnections(ids: number[]): void;
|
|
31
40
|
/**
|
|
32
41
|
* Queries the backend for connections matching the given criteria and queues all
|
|
33
42
|
* returned connection IDs for batched bulk deletion when commitTransaction() is called.
|
|
@@ -96,6 +96,16 @@ export declare class BuilderStatefulWidget extends StatefulWidget {
|
|
|
96
96
|
customFunctions: TCustomFunction[];
|
|
97
97
|
/** JavaScript code (as string) for widget dependencies initialization */
|
|
98
98
|
widgetDependenciesData: string;
|
|
99
|
+
/** ID of the widget this instance was built from, used to identify it in error logs */
|
|
100
|
+
widgetId: number;
|
|
101
|
+
/** Name of the widget this instance was built from, used to identify it in error logs */
|
|
102
|
+
widgetName: string;
|
|
103
|
+
/**
|
|
104
|
+
* Runs one lifecycle hook's source with `this` bound to the widget. The hook is async and its
|
|
105
|
+
* promise is not awaited by callers, so a rejection is logged here with the widget it came from
|
|
106
|
+
* and then rethrown, which keeps the usual "Uncaught (in promise)" report.
|
|
107
|
+
*/
|
|
108
|
+
protected runLifecycle(hook: string, source: unknown): any;
|
|
99
109
|
/**
|
|
100
110
|
* Retrieves the current user's ID from local storage.
|
|
101
111
|
*
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
|
|
2
|
+
/**
|
|
3
|
+
* Optional render behaviour for {@link renderLatestWidget} and {@link materializeWidget}.
|
|
4
|
+
*/
|
|
5
|
+
export type WidgetRenderOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* The attach node already holds server-rendered HTML for this widget (the page cache that the
|
|
8
|
+
* cache server writes into #app). Rendering normally clears that HTML first and rebuilds the page
|
|
9
|
+
* widget by widget, so visitors see the page blank out and then jump while it rebuilds
|
|
10
|
+
* (PageSpeed on databn.com: CLS 0.60 to 0.75, 1,980 ms LCP render delay on mobile).
|
|
11
|
+
*
|
|
12
|
+
* With this option the server HTML stays on screen, in a snapshot positioned exactly where it
|
|
13
|
+
* was, while the live widgets build hidden underneath. Both swap in a single frame when the
|
|
14
|
+
* render finishes. Images the server HTML marked `loading="lazy"` stay lazy in the live render.
|
|
15
|
+
*/
|
|
16
|
+
preserveServerHtml?: boolean;
|
|
17
|
+
};
|
|
2
18
|
/**
|
|
3
19
|
* Renders a complete page with its widgets and properties.
|
|
4
20
|
*
|
|
@@ -60,8 +76,9 @@ export declare function renderImportedWidget(widgetId: number, attachNode: HTMLE
|
|
|
60
76
|
* @param attachNode - DOM element to attach the widget to
|
|
61
77
|
* @param props - Optional properties to pass to the widget
|
|
62
78
|
* @param showDocumentation - Whether to show documentation button
|
|
79
|
+
* @param options - Optional render behaviour, see {@link WidgetRenderOptions}
|
|
63
80
|
*/
|
|
64
|
-
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
81
|
+
export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean, options?: WidgetRenderOptions): Promise<BuilderStatefulWidget | undefined>;
|
|
65
82
|
/**
|
|
66
83
|
* Renders a specific widget by ID.
|
|
67
84
|
*
|
|
@@ -87,7 +104,7 @@ export declare function renderWidget(widgetId: number, attachNode: HTMLElement,
|
|
|
87
104
|
* @param showDocumentation - Whether to show documentation button (default: true)
|
|
88
105
|
* @returns Promise resolving to the rendered widget instance
|
|
89
106
|
*/
|
|
90
|
-
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
|
|
107
|
+
export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean, options?: WidgetRenderOptions): Promise<BuilderStatefulWidget | undefined>;
|
|
91
108
|
/**
|
|
92
109
|
* Fetches and builds a complete widget tree from a widget ID.
|
|
93
110
|
*
|
package/dist/types/app.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export { LogEvent } from './Services/Logs/LogEvent';
|
|
|
137
137
|
export { Selector } from './Api/Prototype/Selector';
|
|
138
138
|
export { AccessControlService } from './Services/AccessControl/AccessControl';
|
|
139
139
|
export { importLatestWidget, importRecentWidget, renderImportedWidget, renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
|
|
140
|
+
export type { WidgetRenderOptions } from './Widgets/RenderWidgetService';
|
|
140
141
|
export { CreateData } from './Services/automated/automated-concept-connection';
|
|
141
142
|
export { Prototype } from './DataStructures/Prototype/Prototype';
|
|
142
143
|
export { Environments } from './DataStructures/environments/environments';
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type TsccsAutocompleteEntry = {
|
|
2
|
-
parameters: string[];
|
|
3
|
-
documentation?: string;
|
|
4
|
-
};
|
|
5
|
-
export type TsccsAutocompleteMetadata = Record<string, Record<string, TsccsAutocompleteEntry>>;
|
|
6
|
-
export declare const tsccsAutocompleteMetadata: TsccsAutocompleteMetadata;
|
|
7
|
-
export declare function getTsccsAutocompleteMetadata(): TsccsAutocompleteMetadata;
|
package/dist/types/wico.d.ts
DELETED