backflow-ui-renderer 0.1.0 → 0.1.2
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/index.cjs +29 -24
- package/dist/index.js +6935 -5134
- package/package.json +5 -3
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/renderer/complex-components.d.ts +0 -8
- package/dist/renderer/complex-components.d.ts.map +0 -1
- package/dist/renderer/components.d.ts +0 -25
- package/dist/renderer/components.d.ts.map +0 -1
- package/dist/renderer/config.d.ts +0 -19
- package/dist/renderer/config.d.ts.map +0 -1
- package/dist/renderer/grid.d.ts +0 -16
- package/dist/renderer/grid.d.ts.map +0 -1
- package/dist/renderer/icons.d.ts +0 -4
- package/dist/renderer/icons.d.ts.map +0 -1
- package/dist/renderer/index.d.ts +0 -10
- package/dist/renderer/index.d.ts.map +0 -1
- package/dist/renderer/layout-components.d.ts +0 -34
- package/dist/renderer/layout-components.d.ts.map +0 -1
- package/dist/renderer/navigation.d.ts +0 -2
- package/dist/renderer/navigation.d.ts.map +0 -1
- package/dist/renderer/render-api.d.ts +0 -53
- package/dist/renderer/render-api.d.ts.map +0 -1
- package/dist/renderer/render-component.d.ts +0 -5
- package/dist/renderer/render-component.d.ts.map +0 -1
- package/dist/renderer/responsive-engine.d.ts +0 -58
- package/dist/renderer/responsive-engine.d.ts.map +0 -1
- package/dist/renderer/routing.d.ts +0 -8
- package/dist/renderer/routing.d.ts.map +0 -1
- package/dist/renderer/sdk-executor.d.ts +0 -25
- package/dist/renderer/sdk-executor.d.ts.map +0 -1
- package/dist/renderer/style-sheet.d.ts +0 -4
- package/dist/renderer/style-sheet.d.ts.map +0 -1
- package/dist/renderer/tailwind-parser.d.ts +0 -16
- package/dist/renderer/tailwind-parser.d.ts.map +0 -1
- package/dist/renderer/types.d.ts +0 -382
- package/dist/renderer/types.d.ts.map +0 -1
- package/dist/renderer/ui-overlays.d.ts +0 -18
- package/dist/renderer/ui-overlays.d.ts.map +0 -1
- package/dist/standalone.d.ts +0 -14
- package/dist/standalone.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backflow-ui-renderer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Standalone React workflow renderer for Backflow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"files": [
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
17
19
|
"scripts": {
|
|
18
20
|
"dev": "vite build --watch",
|
|
19
21
|
"build": "tsc && vite build",
|
|
@@ -38,4 +40,4 @@
|
|
|
38
40
|
"vite": "^5.0.12",
|
|
39
41
|
"vite-plugin-dts": "^4.0.0"
|
|
40
42
|
}
|
|
41
|
-
}
|
|
43
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { UnifiedWorkflowRenderer, getFeatherIcon, renderIcon, useContainerWidth, resolveConfig, DARK_COLORS, LIGHT_COLORS, buildRouteMaps, getSceneFromHash, setHashForScene, } from './renderer/index';
|
|
2
|
-
export { executeSDKCall, isSDKCall, extractSDKCall, buildSDKCall, } from './renderer/sdk-executor';
|
|
3
|
-
export { parseClassName } from './renderer/tailwind-parser';
|
|
4
|
-
export type { WorkflowComponent, SceneEvent, SceneEvents, SceneConfig, WorkflowStep, NavigationItem, NavigationStyle, RoutingConfig, NavigationConfig, ModalAction, ModalDefinition, Workflow, StyleOverride, AppTheme, RendererColors, RendererTypography, RendererLayout, RendererEffects, RendererComponentDefaults, RendererConfig, ResolvedConfig, ImageReplacement, WorkflowRendererProps, WorkflowRendererState, PaginationState, RenderMode, } from './renderer/types';
|
|
5
|
-
export type { ButtonCallbacks, RenderAPI, RenderComponentFn, } from './renderer/render-api';
|
|
6
|
-
export { generateStandaloneHTML } from './standalone';
|
|
7
|
-
export type { StandaloneOptions } from './standalone';
|
|
8
|
-
export { parseAllResponsiveClasses, hasAnyResponsive, parseFlexDirectionResponsive, parseGapResponsive, parseWidthResponsive, parseMarginResponsive, parseAlignItemsResponsive, parseJustifyResponsive, parseBorderRadiusResponsive, parseDisplayResponsive, parseGridColsResponsive, parseTextSizeResponsive, parsePaddingResponsive, BREAKPOINTS_LIST, BREAKPOINT_MIN_WIDTHS, } from './renderer/responsive-engine';
|
|
9
|
-
export type { Breakpoint, ResponsiveClassMap, ResponsiveMarginMap } from './renderer/responsive-engine';
|
|
10
|
-
export { generateComponentCSS } from './renderer/style-sheet';
|
|
11
|
-
export { parseClassName as parseClassNameFull } from './renderer/tailwind-parser';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,cAAc,EAAE,UAAU,EAC1B,iBAAiB,EACjB,aAAa,EACb,WAAW,EAAE,YAAY,EACzB,cAAc,EAAE,gBAAgB,EAAE,eAAe,GAClD,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,GACxD,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,YAAY,EACV,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EACrE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAChE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAC/D,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EACnE,yBAAyB,EAAE,cAAc,EAAE,cAAc,EACzD,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAC/E,UAAU,GACX,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,eAAe,EAAE,SAAS,EAAE,iBAAiB,GAC9C,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,yBAAyB,EAAE,gBAAgB,EAC3C,4BAA4B,EAAE,kBAAkB,EAAE,oBAAoB,EACtE,qBAAqB,EAAE,yBAAyB,EAAE,sBAAsB,EACxE,2BAA2B,EAAE,sBAAsB,EAAE,uBAAuB,EAC5E,uBAAuB,EAAE,sBAAsB,EAC/C,gBAAgB,EAAE,qBAAqB,GACxC,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RenderAPI } from './render-api';
|
|
3
|
-
declare function renderTabs(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
4
|
-
declare function renderAccordion(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
5
|
-
declare function renderList(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
6
|
-
declare function renderTable(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
7
|
-
export { renderList, renderTable, renderTabs, renderAccordion };
|
|
8
|
-
//# sourceMappingURL=complex-components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complex-components.d.ts","sourceRoot":"","sources":["../../src/renderer/complex-components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,iBAAS,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CA2DjF;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAwDtF;AAED,iBAAS,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAsMjF;AAED,iBAAS,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAiGlF;AAED,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RenderAPI } from './render-api';
|
|
3
|
-
export { type RenderAPI };
|
|
4
|
-
declare function renderText(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
5
|
-
declare function renderLink(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
6
|
-
declare function renderButton(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
7
|
-
declare function renderImage(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
8
|
-
declare function renderInput(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
9
|
-
declare function renderHidden(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
10
|
-
declare function renderSelect(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
11
|
-
declare function renderCheckbox(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
12
|
-
declare function renderBadge(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
13
|
-
declare function renderTag(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
14
|
-
declare function renderAvatar(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
15
|
-
declare function renderProgress(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
16
|
-
declare function renderSearch(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
17
|
-
declare function renderBreadcrumb(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
18
|
-
declare function renderSpacer(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
19
|
-
declare function renderDivider(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
20
|
-
declare function renderTextarea(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
21
|
-
declare function renderIcon(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
22
|
-
declare function renderDefault(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
23
|
-
declare function renderForm(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
24
|
-
export { renderText, renderLink, renderButton, renderImage, renderInput, renderHidden, renderSelect, renderCheckbox, renderBadge, renderTag, renderAvatar, renderProgress, renderSearch, renderBreadcrumb, renderSpacer, renderDivider, renderDefault, renderForm, renderTextarea, renderIcon };
|
|
25
|
-
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/renderer/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAC;AAI/D,OAAO,EAAE,KAAK,SAAS,EAAE,CAAC;AAE1B,iBAAS,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,E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AE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AppTheme, RendererColors, RendererTypography, RendererLayout, RendererEffects, RendererComponentDefaults, RendererConfig, ResolvedConfig } from './types';
|
|
2
|
-
export declare const DARK_COLORS: RendererColors;
|
|
3
|
-
export declare const LIGHT_COLORS: RendererColors;
|
|
4
|
-
export declare const DEFAULT_TYPOGRAPHY: RendererTypography;
|
|
5
|
-
export declare const DEFAULT_LAYOUT: RendererLayout;
|
|
6
|
-
export declare const DEFAULT_EFFECTS: RendererEffects;
|
|
7
|
-
export declare const DEFAULT_COMPONENT_DEFAULTS: RendererComponentDefaults;
|
|
8
|
-
/**
|
|
9
|
-
* Parse a hex color and return its perceived brightness (0-255).
|
|
10
|
-
* Returns -1 if the color can't be parsed.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getColorBrightness(color: string): number;
|
|
13
|
-
/**
|
|
14
|
-
* Determine if a background color is light (needs dark text) or dark (needs light text).
|
|
15
|
-
* Uses perceived brightness: > 128 is light, <= 128 is dark.
|
|
16
|
-
*/
|
|
17
|
-
export declare function inferColorMode(backgroundColor: string): "light" | "dark";
|
|
18
|
-
export declare function resolveConfig(workflowConfig?: RendererConfig, propConfig?: RendererConfig, legacyTheme?: AppTheme, sceneBackground?: string): ResolvedConfig;
|
|
19
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/renderer/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,yBAAyB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAExK,eAAO,MAAM,WAAW,EAAE,cAgBzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,cAgB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAMhC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAQ5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAK7B,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,yBAOxC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAIxE;AAED,wBAAgB,aAAa,CAC3B,cAAc,CAAC,EAAE,cAAc,EAC/B,UAAU,CAAC,EAAE,cAAc,EAC3B,WAAW,CAAC,EAAE,QAAQ,EACtB,eAAe,CAAC,EAAE,MAAM,GACvB,cAAc,CA4DhB"}
|
package/dist/renderer/grid.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare const BREAKPOINTS: Record<string, number>;
|
|
3
|
-
export declare const SPACING: Record<string, string>;
|
|
4
|
-
export declare const TEXT_SIZES: Record<string, string>;
|
|
5
|
-
export declare function parseResponsiveGridCols(className: string): Map<string, number>;
|
|
6
|
-
export declare function getResponsiveGridCols(responsiveCols: Map<string, number>, containerWidth: number): number;
|
|
7
|
-
export declare function parseResponsiveTextSize(className: string): Map<string, string>;
|
|
8
|
-
export declare function getResponsiveValue<T>(responsiveMap: Map<string, T>, containerWidth: number, defaultValue: T): T;
|
|
9
|
-
export declare function parseResponsivePadding(className: string): {
|
|
10
|
-
px: Map<string, string>;
|
|
11
|
-
py: Map<string, string>;
|
|
12
|
-
p: Map<string, string>;
|
|
13
|
-
};
|
|
14
|
-
export declare function parseResponsiveDisplay(className: string): Map<string, string>;
|
|
15
|
-
export declare function useContainerWidth(ref: React.RefObject<HTMLElement | null>): number;
|
|
16
|
-
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/renderer/grid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC;AACtD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC;AAClD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC;AAErD,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAE9E;AAED,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACnC,cAAc,EAAE,MAAM,GACrB,MAAM,CAqBR;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAE9E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAC7B,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,CAAC,GACd,CAAC,CAUH;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG;IACzD,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxB,CAMA;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAE7E;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAkClF"}
|
package/dist/renderer/icons.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare function getFeatherIcon(name: string): React.ComponentType<any> | null;
|
|
3
|
-
export declare function renderIcon(iconStr: string, size: number, style?: React.CSSProperties): React.ReactElement;
|
|
4
|
-
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/renderer/icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAG5E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,YAAY,CAMzG"}
|
package/dist/renderer/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { getFeatherIcon, renderIcon } from './icons';
|
|
3
|
-
import { useContainerWidth } from './grid';
|
|
4
|
-
import { resolveConfig, DARK_COLORS, LIGHT_COLORS } from './config';
|
|
5
|
-
import { buildRouteMaps, getSceneFromHash, setHashForScene } from './routing';
|
|
6
|
-
import { WorkflowComponent, SceneEvent, SceneEvents, SceneConfig, WorkflowStep, ModalAction, ModalDefinition, Workflow, StyleOverride, AppTheme, RendererColors, RendererTypography, RendererLayout, RendererEffects, RendererComponentDefaults, RendererConfig, ResolvedConfig, ImageReplacement, WorkflowRendererProps, WorkflowRendererState, PaginationState, RenderMode } from './types';
|
|
7
|
-
import { RenderAPI, ButtonCallbacks } from './render-api';
|
|
8
|
-
export { getFeatherIcon, renderIcon, useContainerWidth, resolveConfig, DARK_COLORS, LIGHT_COLORS, buildRouteMaps, getSceneFromHash, setHashForScene, WorkflowComponent, SceneEvent, SceneEvents, SceneConfig, WorkflowStep, ModalAction, ModalDefinition, Workflow, StyleOverride, AppTheme, RendererColors, RendererTypography, RendererLayout, RendererEffects, RendererComponentDefaults, RendererConfig, ResolvedConfig, ImageReplacement, WorkflowRendererProps, WorkflowRendererState, PaginationState, RenderMode, ButtonCallbacks, RenderAPI, };
|
|
9
|
-
export declare function UnifiedWorkflowRenderer(props: WorkflowRendererProps): React.FunctionComponentElement<WorkflowRendererProps>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAe,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,aAAa,EAAkB,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,KAAK,EACV,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EACrE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAC/D,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EACnE,yBAAyB,EAAE,cAAc,EAAE,cAAc,EACzD,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAC/E,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAW/D,OAAO,EACL,cAAc,EAAE,UAAU,EAC1B,iBAAiB,EACjB,aAAa,EACb,WAAW,EAAE,YAAY,EACzB,cAAc,EAAE,gBAAgB,EAAE,eAAe,EACjD,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EACrE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAC/D,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EACnE,yBAAyB,EAAE,cAAc,EAAE,cAAc,EACzD,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAC/E,UAAU,EACV,eAAe,EAAE,SAAS,GAC3B,CAAC;AAmyBF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,yDAEnE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RenderAPI } from './render-api';
|
|
3
|
-
export declare function hasMobileHiddenClass(child: any): boolean;
|
|
4
|
-
export declare function getMobileHiddenChildren(component: any): any[];
|
|
5
|
-
export declare function getMobileVisibleChildren(component: any): any[];
|
|
6
|
-
export declare function isNavigationSection(component: any): boolean;
|
|
7
|
-
export declare function getNavCollapsibleChildren(component: any): any[];
|
|
8
|
-
export declare function getNavVisibleChildren(component: any): any[];
|
|
9
|
-
export declare function renderHamburgerIcon(mobileMenuOpen: boolean, setMobileMenuOpen: (v: boolean) => void): React.DetailedReactHTMLElement<{
|
|
10
|
-
key: string;
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
style: {
|
|
13
|
-
background: string;
|
|
14
|
-
border: string;
|
|
15
|
-
cursor: "pointer";
|
|
16
|
-
padding: string;
|
|
17
|
-
display: "flex";
|
|
18
|
-
alignItems: "center";
|
|
19
|
-
justifyContent: "center";
|
|
20
|
-
color: "inherit";
|
|
21
|
-
fontSize: string;
|
|
22
|
-
lineHeight: number;
|
|
23
|
-
};
|
|
24
|
-
"aria-label": string;
|
|
25
|
-
}, HTMLElement>;
|
|
26
|
-
export declare function stripHiddenClasses(className: string): string;
|
|
27
|
-
export declare function renderMobileMenuDrawer(navLinks: any[], parentKey: string, renderComponentFn: (comp: any, idx: number, parentKey: string) => React.ReactNode, mobileMenuOpen: boolean, colorMode: "dark" | "light"): React.ReactNode;
|
|
28
|
-
export declare function renderCard(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
29
|
-
export declare function renderSection(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
30
|
-
export declare function renderGrid(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
31
|
-
export declare function renderHero(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
32
|
-
export declare function renderHeader(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
33
|
-
export declare function renderFooter(api: RenderAPI, c: any, componentKey: string): React.ReactNode;
|
|
34
|
-
//# sourceMappingURL=layout-components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-components.d.ts","sourceRoot":"","sources":["../../src/renderer/layout-components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAIxD;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE,CAG7D;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE,CAG9D;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAqB3D;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE,CAE/D;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,EA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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/renderer/navigation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ResolvedConfig, StyleOverride, WorkflowComponent, ImageReplacement, PaginationState, RenderMode } from './types';
|
|
3
|
-
export interface ButtonCallbacks {
|
|
4
|
-
onSuccess?: {
|
|
5
|
-
type: "none" | "toast" | "modal" | "navigate" | "redirect" | "route";
|
|
6
|
-
value?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
};
|
|
9
|
-
onError?: {
|
|
10
|
-
type: "toast";
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export type RenderComponentFn = (comp: WorkflowComponent, idx: number, parentKey?: string) => React.ReactNode;
|
|
15
|
-
export interface RenderAPI {
|
|
16
|
-
cfg: ResolvedConfig;
|
|
17
|
-
renderMode: RenderMode;
|
|
18
|
-
scopeId: string;
|
|
19
|
-
parseClassName: (className: string) => React.CSSProperties;
|
|
20
|
-
imageReplacements?: Map<string, ImageReplacement>;
|
|
21
|
-
listData?: Record<string, any[]>;
|
|
22
|
-
loading?: Record<string, boolean>;
|
|
23
|
-
paginationState?: Record<string, PaginationState>;
|
|
24
|
-
containerWidth: number;
|
|
25
|
-
interactionDisabled?: boolean;
|
|
26
|
-
styleOverrides?: StyleOverride;
|
|
27
|
-
selectedComponentKey?: string | null;
|
|
28
|
-
selectedComponentClass?: string | null;
|
|
29
|
-
sceneData: Record<string, any>;
|
|
30
|
-
setSceneData: React.Dispatch<React.SetStateAction<Record<string, any>>>;
|
|
31
|
-
imageErrors: Record<string, boolean>;
|
|
32
|
-
setImageErrors: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
33
|
-
handleButtonClick: (onClick: string, callbacks?: ButtonCallbacks) => Promise<void>;
|
|
34
|
-
interpolateText: (text: string) => string;
|
|
35
|
-
showToast: (message: string | string[], type: "success" | "error") => void;
|
|
36
|
-
setActiveModal: React.Dispatch<React.SetStateAction<any>>;
|
|
37
|
-
fetchListData: (dataSource: string, componentKey: string, page?: number, limit?: number) => Promise<void>;
|
|
38
|
-
goBack: () => void;
|
|
39
|
-
currentSceneId: string;
|
|
40
|
-
isMobileView: boolean;
|
|
41
|
-
navigateToScene: (sceneId: string) => void;
|
|
42
|
-
mobileMenuOpen: boolean;
|
|
43
|
-
setMobileMenuOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
44
|
-
renderComponent: RenderComponentFn;
|
|
45
|
-
renderIcon: (iconStr: string, size: number, style?: React.CSSProperties) => React.ReactElement;
|
|
46
|
-
getCommonProps: (componentKey: string, baseStyle: React.CSSProperties, component?: any) => {
|
|
47
|
-
"data-component-key": string;
|
|
48
|
-
style?: React.CSSProperties;
|
|
49
|
-
};
|
|
50
|
-
renderPhaserGame?: (comp: any, componentKey: string) => React.ReactNode;
|
|
51
|
-
parseClassNameResponsive?: (className: string, componentKey: string) => React.CSSProperties;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=render-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-api.d.ts","sourceRoot":"","sources":["../../src/renderer/render-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE/H,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;QACrE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC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aAAa,CAAA;KAAE,CAAC;IACzJ,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACxE,wBAAwB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,KAAK,CAAC,aAAa,CAAC;CAC7F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RenderAPI } from './render-api';
|
|
3
|
-
import { WorkflowComponent } from './types';
|
|
4
|
-
export declare function renderComponent(api: RenderAPI, comp: WorkflowComponent, idx: number, parentKey?: string): React.ReactNode;
|
|
5
|
-
//# sourceMappingURL=render-component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-component.d.ts","sourceRoot":"","sources":["../../src/renderer/render-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgBjD,wBAAgB,eAAe,CAC7B,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,MAAW,GACrB,KAAK,CAAC,SAAS,CAsGjB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
2
|
-
export declare const BREAKPOINTS: {
|
|
3
|
-
readonly sm: 640;
|
|
4
|
-
readonly md: 768;
|
|
5
|
-
readonly lg: 1024;
|
|
6
|
-
readonly xl: 1280;
|
|
7
|
-
readonly "2xl": 1536;
|
|
8
|
-
};
|
|
9
|
-
export declare const BREAKPOINT_MIN_WIDTHS: Record<Exclude<Breakpoint, "base">, number>;
|
|
10
|
-
export declare const BREAKPOINTS_LIST: Breakpoint[];
|
|
11
|
-
export declare const SPACING: Record<string, string>;
|
|
12
|
-
export declare const TEXT_SIZES: Record<string, string>;
|
|
13
|
-
export interface ResponsiveMarginMap {
|
|
14
|
-
all: Map<Breakpoint, string>;
|
|
15
|
-
t: Map<Breakpoint, string>;
|
|
16
|
-
r: Map<Breakpoint, string>;
|
|
17
|
-
b: Map<Breakpoint, string>;
|
|
18
|
-
l: Map<Breakpoint, string>;
|
|
19
|
-
x: Map<Breakpoint, string>;
|
|
20
|
-
y: Map<Breakpoint, string>;
|
|
21
|
-
}
|
|
22
|
-
export interface ResponsiveClassMap {
|
|
23
|
-
flexDirection: Map<Breakpoint, string>;
|
|
24
|
-
gap: Map<Breakpoint, string>;
|
|
25
|
-
width: Map<Breakpoint, string>;
|
|
26
|
-
margin: ResponsiveMarginMap;
|
|
27
|
-
alignItems: Map<Breakpoint, string>;
|
|
28
|
-
justifyContent: Map<Breakpoint, string>;
|
|
29
|
-
padding: {
|
|
30
|
-
px: Map<Breakpoint, string>;
|
|
31
|
-
py: Map<Breakpoint, string>;
|
|
32
|
-
p: Map<Breakpoint, string>;
|
|
33
|
-
};
|
|
34
|
-
display: Map<Breakpoint, string>;
|
|
35
|
-
gridCols: Map<Breakpoint, number>;
|
|
36
|
-
textSize: Map<Breakpoint, string>;
|
|
37
|
-
borderRadius: Map<Breakpoint, string>;
|
|
38
|
-
any: boolean;
|
|
39
|
-
}
|
|
40
|
-
export declare function parseFlexDirectionResponsive(className: string): Map<Breakpoint, string>;
|
|
41
|
-
export declare function parseGapResponsive(className: string): Map<Breakpoint, string>;
|
|
42
|
-
export declare function parseWidthResponsive(className: string): Map<Breakpoint, string>;
|
|
43
|
-
export declare function parseMarginResponsive(className: string): ResponsiveMarginMap;
|
|
44
|
-
export declare function parseAlignItemsResponsive(className: string): Map<Breakpoint, string>;
|
|
45
|
-
export declare function parseJustifyResponsive(className: string): Map<Breakpoint, string>;
|
|
46
|
-
export declare function parseBorderRadiusResponsive(className: string): Map<Breakpoint, string>;
|
|
47
|
-
export declare function parseDisplayResponsive(className: string): Map<Breakpoint, string>;
|
|
48
|
-
export declare function parseGridColsResponsive(className: string): Map<Breakpoint, number>;
|
|
49
|
-
export declare function parseTextSizeResponsive(className: string): Map<Breakpoint, string>;
|
|
50
|
-
export declare function parsePaddingResponsive(className: string): {
|
|
51
|
-
px: Map<Breakpoint, string>;
|
|
52
|
-
py: Map<Breakpoint, string>;
|
|
53
|
-
p: Map<Breakpoint, string>;
|
|
54
|
-
};
|
|
55
|
-
export declare function hasAnyResponsive(m: ResponsiveClassMap): boolean;
|
|
56
|
-
export declare function parseAllResponsiveClasses(className: string): ResponsiveClassMap;
|
|
57
|
-
export declare function isResponsiveClass(cls: string): boolean;
|
|
58
|
-
//# sourceMappingURL=responsive-engine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responsive-engine.d.ts","sourceRoot":"","sources":["../../src/renderer/responsive-engine.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEpE,eAAO,MAAM,WAAW;;;;;;CAEd,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,CAE7E,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,EAA4C,CAAC;AAEtF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAU1C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI7C,CAAC;AAuCF,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC,EAAE,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3B,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ED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WorkflowStep } from './types';
|
|
2
|
-
export declare function buildRouteMaps(steps: WorkflowStep[]): {
|
|
3
|
-
sceneToRoute: Map<string, string>;
|
|
4
|
-
routeToScene: Map<string, string>;
|
|
5
|
-
};
|
|
6
|
-
export declare function getSceneFromHash(routeToScene: Map<string, string>): string | null;
|
|
7
|
-
export declare function setHashForScene(sceneId: string, sceneToRoute: Map<string, string>, replace?: boolean): void;
|
|
8
|
-
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/renderer/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG;IACrD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAqBA;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI,CAMjF;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,OAAO,GAAE,OAAe,QAYzB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BackflowSDK } from '@backflow.sdk/admin';
|
|
2
|
-
interface ExecuteOptions {
|
|
3
|
-
onError?: (error: Error) => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Execute an SDK call string
|
|
7
|
-
* @param sdk - BackflowSDK instance
|
|
8
|
-
* @param callString - SDK call like "entities.list('users', {limit: 10})"
|
|
9
|
-
* @param context - Variable context for interpolation (e.g., sceneData)
|
|
10
|
-
*/
|
|
11
|
-
export declare function executeSDKCall(sdk: BackflowSDK, callString: string, context?: Record<string, any>, options?: ExecuteOptions): Promise<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Check if a string is an SDK call
|
|
14
|
-
*/
|
|
15
|
-
export declare function isSDKCall(action: string): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Extract SDK call from action string
|
|
18
|
-
*/
|
|
19
|
-
export declare function extractSDKCall(action: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Build SDK call string from parts
|
|
22
|
-
*/
|
|
23
|
-
export declare function buildSDKCall(resource: string, method: string, ...args: any[]): string;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=sdk-executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-executor.d.ts","sourceRoot":"","sources":["../../src/renderer/sdk-executor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,WAAW,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC,CA0Cd;AAkHD;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,MAAM,CASR"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ResponsiveClassMap } from './responsive-engine';
|
|
2
|
-
export declare function generateComponentCSS(scopeId: string, componentKey: string, responsiveMap: ResponsiveClassMap): string;
|
|
3
|
-
export declare function generateStyleTagContent(scopeId: string, rules: Map<string, string>): string;
|
|
4
|
-
//# sourceMappingURL=style-sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-sheet.d.ts","sourceRoot":"","sources":["../../src/renderer/style-sheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA6C1E,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,kBAAkB,GAChC,MAAM,CAyBR;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,MAAM,CAER"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Theme color overrides for semantic color tokens (primary, accent, etc.)
|
|
4
|
-
* When provided, `bg-primary`, `text-primary`, etc. resolve to brand colors.
|
|
5
|
-
*/
|
|
6
|
-
export interface ThemeColorOverrides {
|
|
7
|
-
primary?: string;
|
|
8
|
-
accent?: string;
|
|
9
|
-
secondary?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Parse Tailwind className string and convert to React CSSProperties
|
|
13
|
-
* Handles most common Tailwind classes used in generated workflows
|
|
14
|
-
*/
|
|
15
|
-
export declare function parseClassName(className: string, themeColors?: ThemeColorOverrides): CSSProperties;
|
|
16
|
-
//# sourceMappingURL=tailwind-parser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind-parser.d.ts","sourceRoot":"","sources":["../../src/renderer/tailwind-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAiN3C;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,mBAAmB,GAAG,aAAa,CA+3DlG"}
|