@fanfare-io/fanfare-sdk-react 0.21.0 → 0.23.0
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 +12 -0
- package/dist/components/checkout/card-brand.d.ts +2 -0
- package/dist/components/checkout/checkout-processing-panel.d.ts +2 -1
- package/dist/components/checkout/payment-collection-panel.d.ts +3 -3
- package/dist/components/checkout/payment-method-list.d.ts +18 -0
- package/dist/components/checkout/receipt-panel.d.ts +4 -3
- package/dist/components/primitives/countdown.d.ts +53 -14
- package/dist/components/primitives/spinner.d.ts +5 -0
- package/dist/components/widgets/experience-widget.d.ts +23 -0
- package/dist/components/widgets/internal/auction-ledger.d.ts +1 -12
- package/dist/components/widgets/internal/selection-branches.d.ts +0 -2
- package/dist/index-DbLojDF1.js +8337 -0
- package/dist/index.js +4 -4
- package/dist/stripe-card-field-DIxqCt1r.js +186 -0
- package/dist/styles/base.css +1 -1
- package/dist/styles/index.d.ts +0 -1
- package/dist/styles/theme.css +583 -1
- package/dist/theme/font-loader.d.ts +58 -0
- package/dist/theme/theme-context.d.ts +8 -0
- package/package.json +6 -7
- package/dist/index-DWJSw9N8.js +0 -7861
- package/dist/stripe-card-field-CPZoyAm1.js +0 -170
|
@@ -2,8 +2,16 @@ import { BrandTheme } from '@fanfare-io/fanfare-sdk-core/theme';
|
|
|
2
2
|
import { ResolvedTheme, WidgetVariant } from './theme.types';
|
|
3
3
|
/**
|
|
4
4
|
* Context value for theme state.
|
|
5
|
+
*
|
|
6
|
+
* `theme` is the merged value a component renders with, every field filled from the SDK defaults.
|
|
7
|
+
* `overrides` answers the different question of what the host actually asked for: the raw fields
|
|
8
|
+
* the providers above this point set, accumulated but never merged with defaults, and `{}` where no
|
|
9
|
+
* provider set anything. A merged value cannot answer that — a host naming the default family is
|
|
10
|
+
* indistinguishable there from a host naming nothing.
|
|
5
11
|
*/
|
|
6
12
|
export interface ThemeContextValue extends ResolvedTheme {
|
|
13
|
+
/** The raw fields providers up the tree explicitly set, without defaults */
|
|
14
|
+
overrides: BrandTheme;
|
|
7
15
|
/** Whether this is the root theme provider */
|
|
8
16
|
isRoot: boolean;
|
|
9
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanfare-io/fanfare-sdk-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "React adapter for Fanfare SDK",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"nanostores": "^1.1.0",
|
|
44
44
|
"tailwind-merge": "^2.6.0",
|
|
45
45
|
"valibot": "^1.1.0",
|
|
46
|
-
"@fanfare-io/fanfare-sdk-core": "0.
|
|
47
|
-
"@fanfare-io/fanfare-sdk-i18n": "0.
|
|
46
|
+
"@fanfare-io/fanfare-sdk-core": "0.23.0",
|
|
47
|
+
"@fanfare-io/fanfare-sdk-i18n": "0.23.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@iconify-json/heroicons": "^1.2.3",
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"@size-limit/preset-small-lib": "^11.1.8",
|
|
56
56
|
"@storybook/addon-a11y": "^10.4.0",
|
|
57
57
|
"@storybook/addon-docs": "^10.4.0",
|
|
58
|
-
"@storybook/addon-themes": "^10.4.0",
|
|
59
58
|
"@storybook/addon-vitest": "~10.2.16",
|
|
60
59
|
"@storybook/react-vite": "^10.4.0",
|
|
61
60
|
"@stripe/stripe-js": "^7.3.1",
|
|
@@ -91,8 +90,8 @@
|
|
|
91
90
|
"vite-plugin-dts": "^4.5.4",
|
|
92
91
|
"vite-tsconfig-paths": "^5.1.4",
|
|
93
92
|
"vitest": "^5.0.0",
|
|
94
|
-
"@fanfare-io/fanfare-sdk-core": "0.
|
|
95
|
-
"@fanfare-io/fanfare-sdk-solid": "0.
|
|
93
|
+
"@fanfare-io/fanfare-sdk-core": "0.23.0",
|
|
94
|
+
"@fanfare-io/fanfare-sdk-solid": "0.23.0"
|
|
96
95
|
},
|
|
97
96
|
"sideEffects": [
|
|
98
97
|
"**/*.css"
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
{
|
|
111
110
|
"name": "React adapter",
|
|
112
111
|
"path": "dist/index.js",
|
|
113
|
-
"limit": "
|
|
112
|
+
"limit": "71 KB",
|
|
114
113
|
"ignore": [
|
|
115
114
|
"react",
|
|
116
115
|
"react-dom",
|