fontdue-js 2.17.1 → 2.17.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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.17.2
2
+
3
+ - Tweaked the checkout step max width to hug the embedded checkout layout
4
+
1
5
  ## 2.17.1
2
6
 
3
7
  - Show validation errors properly in the "Customer information" step
@@ -8,8 +8,13 @@ interface FormConfig {
8
8
  interface StripeConfig {
9
9
  appearance?: Appearance;
10
10
  }
11
+ interface SegmentConfig {
12
+ writeKey?: string;
13
+ integrations?: Record<string, boolean>;
14
+ }
11
15
  interface TrackingConfig {
12
16
  enabled?: boolean;
17
+ segment?: SegmentConfig;
13
18
  }
14
19
  export interface Config {
15
20
  form?: FormConfig;
@@ -38,10 +43,10 @@ export declare const makeConfig: (config?: Config) => {
38
43
  buttonLabel: string;
39
44
  interactionStyle: "select" | "panel";
40
45
  columns: {
41
- features: (string | {
46
+ features: ({
42
47
  code: string;
43
48
  name: string;
44
- })[];
49
+ } | string)[];
45
50
  range: number;
46
51
  }[] | undefined;
47
52
  selectionStyle: "checkbox" | "bullet";
@@ -100,10 +105,10 @@ declare const _default: React.Context<{
100
105
  buttonLabel: string;
101
106
  interactionStyle: "select" | "panel";
102
107
  columns: {
103
- features: (string | {
108
+ features: ({
104
109
  code: string;
105
110
  name: string;
106
- })[];
111
+ } | string)[];
107
112
  range: number;
108
113
  }[] | undefined;
109
114
  selectionStyle: "checkbox" | "bullet";
@@ -8,5 +8,5 @@ interface Select_props {
8
8
  }[];
9
9
  }
10
10
  type SelectHTMLProps = React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
11
- declare const Select: ({ options, value, nullText, ...rest }: Select_props & Omit<SelectHTMLProps, 'value'>) => React.JSX.Element;
11
+ declare const Select: ({ options, value, nullText, ...rest }: Select_props & Omit<SelectHTMLProps, "value">) => React.JSX.Element;
12
12
  export default Select;
@@ -7,11 +7,11 @@ declare const useFeaturesData: ({ fontStyle }: useFeatures_props) => {
7
7
  [feature: string]: string;
8
8
  };
9
9
  fontFeatures: {
10
- readonly stylisticSetNames: readonly {
10
+ readonly stylisticSetNames: ReadonlyArray<{
11
11
  readonly featureName: string;
12
12
  readonly humanName: string;
13
- }[];
14
- readonly supportedFeatures: readonly string[];
13
+ }>;
14
+ readonly supportedFeatures: ReadonlyArray<string>;
15
15
  };
16
16
  " $fragmentType": "useFeaturesData_fontStyle";
17
17
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditorState } from 'draft-js';
3
2
  import { Alignment } from './types';
4
3
  import { VariableSettings } from '../../utils';
package/dist/fontdue.css CHANGED
@@ -1344,7 +1344,7 @@ body[data-fontdue-store-modal=open] {
1344
1344
  max-width: 1600px;
1345
1345
  }
1346
1346
  [data-route=checkout] .store-modal__container__container {
1347
- max-width: 1200px;
1347
+ max-width: 992px;
1348
1348
  }
1349
1349
  }
1350
1350
  .store-modal__container__container * {
package/dist/hooks.d.ts CHANGED
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const useNewPortalElement: () => import("react").RefObject<HTMLDivElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "2.17.1",
3
+ "version": "2.17.2",
4
4
  "scripts": {
5
5
  "build": "npm run relay && run-p build-js build-css build-ts",
6
6
  "build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",
@@ -58,7 +58,7 @@
58
58
  "react-dom": "^19.0.0",
59
59
  "relay-compiler": "^18.0.0",
60
60
  "sass": "^1.62",
61
- "typescript": "5.1.3"
61
+ "typescript": "^5.9"
62
62
  },
63
63
  "relay": {
64
64
  "src": "./src",