@sonata-innovations/fiber-fbre 2.0.0 → 2.0.3
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/README.md +37 -6
- package/dist/fiber-fbre.cjs +1 -1
- package/dist/fiber-fbre.css +1 -1
- package/dist/fiber-fbre.js +1387 -1238
- package/dist/index.d.ts +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { FlowConditionConfig } from '@sonata-innovations/fiber-types';
|
|
|
24
24
|
import { FlowConfiguration } from '@sonata-innovations/fiber-types';
|
|
25
25
|
import { FlowData } from '@sonata-innovations/fiber-types';
|
|
26
26
|
import { FlowMetadata } from '@sonata-innovations/fiber-types';
|
|
27
|
+
import { FlowModeType } from '@sonata-innovations/fiber-types';
|
|
27
28
|
import { FlowScreen } from '@sonata-innovations/fiber-types';
|
|
28
29
|
import { FlowValidationConfig } from '@sonata-innovations/fiber-types';
|
|
29
30
|
import { NavigationConfig } from '@sonata-innovations/fiber-types';
|
|
@@ -104,6 +105,7 @@ declare interface FBREApiContextValue {
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
declare interface FBRECallbackProps {
|
|
108
|
+
mode?: FlowModeType;
|
|
107
109
|
theme?: ThemeConfig;
|
|
108
110
|
navigation?: NavigationConfig;
|
|
109
111
|
controls?: ControlsConfig;
|
|
@@ -139,6 +141,7 @@ export declare interface FBREServerDrivenModeProps {
|
|
|
139
141
|
sessionEndpoint: string;
|
|
140
142
|
flowId: string;
|
|
141
143
|
apiKey?: string;
|
|
144
|
+
mode?: FlowModeType;
|
|
142
145
|
theme?: ThemeConfig;
|
|
143
146
|
context?: Record<string, string | boolean | number>;
|
|
144
147
|
onFlowComplete: (data: any) => void;
|
|
@@ -172,6 +175,7 @@ export declare type FBREStoreState = {
|
|
|
172
175
|
calculationsByDependency: Record<string, string[]>;
|
|
173
176
|
/** Source template UUID → list of computed component template UUIDs that depend on it */
|
|
174
177
|
computedByDependency: Record<string, string[]>;
|
|
178
|
+
selectionTick: number;
|
|
175
179
|
loadFlow: (flow: Flow, data?: FlowData, context?: Record<string, string | boolean | number>) => void;
|
|
176
180
|
updateComponentValue: (uuid: string, value: any) => void;
|
|
177
181
|
addGroupIteration: (groupUUID: string) => Component[][] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonata-innovations/fiber-fbre",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Fiber Render Engine — renders Flow JSON forms with conditional logic, validation, and screen transitions",
|
|
5
5
|
"keywords": ["fiber", "form-builder", "form-renderer", "react", "flow-json", "data-collection"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"sideEffects": ["./dist/*.css"],
|
|
29
|
+
"sideEffects": ["./dist/*.css", "./src/styles/**/*.css"],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"dev": "vite",
|
|
32
32
|
"build": "tsc --noEmit && vite build",
|