mftsccs-browser 2.2.47-beta → 2.2.49-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.
@@ -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.
@@ -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
  *
@@ -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';
@@ -358,6 +359,7 @@ declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUr
358
359
  logPackage?: boolean;
359
360
  accessTracker?: boolean;
360
361
  isTest?: boolean;
362
+ accessControl?: boolean;
361
363
  }, parameters?: {
362
364
  logserver?: string;
363
365
  isPwa?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.2.47-beta",
3
+ "version": "2.2.49-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",