@payfit/unity-components 3.18.8 → 3.18.10

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.
@@ -1,2 +1,6 @@
1
- export declare const previewTransform: (code: string) => Promise<string>;
1
+ type SourceTransformContext = {
2
+ args?: Record<string, unknown>;
3
+ };
4
+ export declare const previewTransform: (code: string, context?: SourceTransformContext) => Promise<string>;
2
5
  export declare const extractRenderProperty: (code: string) => string;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ import { StoryContext } from '@storybook/react-vite';
2
+ export interface TanstackRouterSourceOverrides {
3
+ /** Source of the root route component, for example `function RootLayout() { ... }`. */
4
+ rootRoute?: string;
5
+ /** Source of the story render when Storybook cannot expose its JSX source. */
6
+ renderSource?: string;
7
+ /** Route component sources indexed by their configured route path. */
8
+ routes?: Record<string, string>;
9
+ /** Additional named exports to include in the TanStack Router import. */
10
+ imports?: string[];
11
+ }
12
+ export declare const generateTanstackRouterSource: (code: string, context: StoryContext, sourceOverrides?: TanstackRouterSourceOverrides) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "3.18.8",
3
+ "version": "3.18.10",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -103,7 +103,7 @@
103
103
  "@formatjs/intl": "4.1.12",
104
104
  "@internationalized/date": "3.12.4",
105
105
  "minimatch": "10.2.5",
106
- "@payfit/unity-illustrations": "3.18.8",
106
+ "@payfit/unity-illustrations": "3.18.10",
107
107
  "@radix-ui/react-avatar": "1.2.7",
108
108
  "@radix-ui/react-slot": "1.4.0",
109
109
  "@react-aria/interactions": "3.28.1",
@@ -132,8 +132,8 @@
132
132
  "zod": "4.6.5"
133
133
  },
134
134
  "peerDependencies": {
135
- "@payfit/unity-icons": "3.18.8",
136
- "@payfit/unity-themes": "3.18.8",
135
+ "@payfit/unity-icons": "3.18.10",
136
+ "@payfit/unity-themes": "3.18.10",
137
137
  "@storybook/react-vite": "^10",
138
138
  "@tanstack/react-query": "^5",
139
139
  "@tanstack/form-core": "1.33.5",
@@ -156,8 +156,8 @@
156
156
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
157
157
  "@payfit/storybook-addon-datadog-rum": "0.0.0-use.local",
158
158
  "@payfit/storybook-config": "0.0.0-use.local",
159
- "@payfit/unity-icons": "3.18.8",
160
- "@payfit/unity-themes": "3.18.8",
159
+ "@payfit/unity-icons": "3.18.10",
160
+ "@payfit/unity-themes": "3.18.10",
161
161
  "@payfit/vite-configs": "0.0.0-use.local",
162
162
  "@storybook/addon-a11y": "10.6.1",
163
163
  "@storybook/addon-designs": "11.1.4",