@btst/stack 2.5.5 → 2.5.6
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/packages/stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +3 -1
- package/dist/packages/stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +3 -1
- package/dist/plugins/ui-builder/client/index.d.cts +6 -1
- package/dist/plugins/ui-builder/client/index.d.mts +6 -1
- package/dist/plugins/ui-builder/client/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +2 -0
- package/src/plugins/ui-builder/client/overrides.ts +10 -1
|
@@ -118,7 +118,8 @@ function PageBuilderPageContent({
|
|
|
118
118
|
const {
|
|
119
119
|
navigate,
|
|
120
120
|
Link,
|
|
121
|
-
componentRegistry: customRegistry
|
|
121
|
+
componentRegistry: customRegistry,
|
|
122
|
+
functionRegistry
|
|
122
123
|
} = context.usePluginOverrides("ui-builder");
|
|
123
124
|
const basePath = context.useBasePath();
|
|
124
125
|
const createMutation = uiBuilderHooks.useCreateUIBuilderPage();
|
|
@@ -298,6 +299,7 @@ function PageBuilderPageContent({
|
|
|
298
299
|
initialVariables: existingVariables.length > 0 ? existingVariables : void 0,
|
|
299
300
|
onVariablesChange: handleVariablesChange,
|
|
300
301
|
componentRegistry,
|
|
302
|
+
functionRegistry,
|
|
301
303
|
persistLayerStore: false,
|
|
302
304
|
allowVariableEditing: true,
|
|
303
305
|
allowPagesCreation: false,
|
|
@@ -116,7 +116,8 @@ function PageBuilderPageContent({
|
|
|
116
116
|
const {
|
|
117
117
|
navigate,
|
|
118
118
|
Link,
|
|
119
|
-
componentRegistry: customRegistry
|
|
119
|
+
componentRegistry: customRegistry,
|
|
120
|
+
functionRegistry
|
|
120
121
|
} = usePluginOverrides("ui-builder");
|
|
121
122
|
const basePath = useBasePath();
|
|
122
123
|
const createMutation = useCreateUIBuilderPage();
|
|
@@ -296,6 +297,7 @@ function PageBuilderPageContent({
|
|
|
296
297
|
initialVariables: existingVariables.length > 0 ? existingVariables : void 0,
|
|
297
298
|
onVariablesChange: handleVariablesChange,
|
|
298
299
|
componentRegistry,
|
|
300
|
+
functionRegistry,
|
|
299
301
|
persistLayerStore: false,
|
|
300
302
|
allowVariableEditing: true,
|
|
301
303
|
allowPagesCreation: false,
|
|
@@ -4,7 +4,7 @@ import react__default, { ComponentType } from 'react';
|
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
6
|
import { c as UIBuilderClientHooks } from '../../../shared/stack.Cl7ok_cY.cjs';
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.C5ZSOJGJ.cjs';
|
|
7
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.C5ZSOJGJ.cjs';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.8nldKomx.cjs';
|
|
10
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.cjs';
|
|
@@ -342,6 +342,11 @@ interface UIBuilderPluginOverrides {
|
|
|
342
342
|
* Component registry for the UI Builder
|
|
343
343
|
*/
|
|
344
344
|
componentRegistry?: ComponentRegistry;
|
|
345
|
+
/**
|
|
346
|
+
* Function registry for resolving bindable event handlers (onClick, onSubmit, etc.)
|
|
347
|
+
* in the preview modal and layer renderer.
|
|
348
|
+
*/
|
|
349
|
+
functionRegistry?: FunctionRegistry;
|
|
345
350
|
/**
|
|
346
351
|
* Base path for UI Builder admin pages (default: /pages/ui-builder)
|
|
347
352
|
*/
|
|
@@ -4,7 +4,7 @@ import react__default, { ComponentType } from 'react';
|
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
6
|
import { c as UIBuilderClientHooks } from '../../../shared/stack.VMmQdbsJ.mjs';
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.Dq4qVr1F.mjs';
|
|
7
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.Dq4qVr1F.mjs';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.8nldKomx.mjs';
|
|
10
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.mjs';
|
|
@@ -342,6 +342,11 @@ interface UIBuilderPluginOverrides {
|
|
|
342
342
|
* Component registry for the UI Builder
|
|
343
343
|
*/
|
|
344
344
|
componentRegistry?: ComponentRegistry;
|
|
345
|
+
/**
|
|
346
|
+
* Function registry for resolving bindable event handlers (onClick, onSubmit, etc.)
|
|
347
|
+
* in the preview modal and layer renderer.
|
|
348
|
+
*/
|
|
349
|
+
functionRegistry?: FunctionRegistry;
|
|
345
350
|
/**
|
|
346
351
|
* Base path for UI Builder admin pages (default: /pages/ui-builder)
|
|
347
352
|
*/
|
|
@@ -4,7 +4,7 @@ import react__default, { ComponentType } from 'react';
|
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
6
|
import { c as UIBuilderClientHooks } from '../../../shared/stack.B2DwzF3r.js';
|
|
7
|
-
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.D0QupDcQ.js';
|
|
7
|
+
import { a as ComponentRegistry, b as FieldConfigFunction, C as ComponentLayer, F as FunctionRegistry } from '../../../shared/stack.D0QupDcQ.js';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import { A as AutoFormInputComponentProps, F as FieldConfigItem } from '../../../shared/stack.8nldKomx.js';
|
|
10
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.js';
|
|
@@ -342,6 +342,11 @@ interface UIBuilderPluginOverrides {
|
|
|
342
342
|
* Component registry for the UI Builder
|
|
343
343
|
*/
|
|
344
344
|
componentRegistry?: ComponentRegistry;
|
|
345
|
+
/**
|
|
346
|
+
* Function registry for resolving bindable event handlers (onClick, onSubmit, etc.)
|
|
347
|
+
* in the preview modal and layer renderer.
|
|
348
|
+
*/
|
|
349
|
+
functionRegistry?: FunctionRegistry;
|
|
345
350
|
/**
|
|
346
351
|
* Base path for UI Builder admin pages (default: /pages/ui-builder)
|
|
347
352
|
*/
|
package/package.json
CHANGED
|
@@ -215,6 +215,7 @@ function PageBuilderPageContent({
|
|
|
215
215
|
navigate,
|
|
216
216
|
Link,
|
|
217
217
|
componentRegistry: customRegistry,
|
|
218
|
+
functionRegistry,
|
|
218
219
|
} = usePluginOverrides<UIBuilderPluginOverrides>("ui-builder");
|
|
219
220
|
const basePath = useBasePath();
|
|
220
221
|
|
|
@@ -463,6 +464,7 @@ function PageBuilderPageContent({
|
|
|
463
464
|
}
|
|
464
465
|
onVariablesChange={handleVariablesChange}
|
|
465
466
|
componentRegistry={componentRegistry}
|
|
467
|
+
functionRegistry={functionRegistry}
|
|
466
468
|
persistLayerStore={false}
|
|
467
469
|
allowVariableEditing={true}
|
|
468
470
|
allowPagesCreation={false}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ComponentType } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
ComponentRegistry,
|
|
4
|
+
FunctionRegistry,
|
|
5
|
+
} from "@workspace/ui/components/ui-builder/types";
|
|
3
6
|
import type { UIBuilderClientHooks } from "../types";
|
|
4
7
|
|
|
5
8
|
/**
|
|
@@ -63,6 +66,12 @@ export interface UIBuilderPluginOverrides {
|
|
|
63
66
|
*/
|
|
64
67
|
componentRegistry?: ComponentRegistry;
|
|
65
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Function registry for resolving bindable event handlers (onClick, onSubmit, etc.)
|
|
71
|
+
* in the preview modal and layer renderer.
|
|
72
|
+
*/
|
|
73
|
+
functionRegistry?: FunctionRegistry;
|
|
74
|
+
|
|
66
75
|
/**
|
|
67
76
|
* Base path for UI Builder admin pages (default: /pages/ui-builder)
|
|
68
77
|
*/
|