@gusto/embedded-react-sdk 0.6.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusto/embedded-react-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "homepage": "https://github.com/Gusto/embedded-react-sdk",
5
5
  "bugs": {
6
6
  "url": "https://github.com/Gusto/embedded-react-sdk/issues"
@@ -28,23 +28,19 @@
28
28
  "./CHANGELOG.md"
29
29
  ],
30
30
  "scripts": {
31
- "build": "npm run build:clean && npm run generate && npm run tsc && vite build",
31
+ "build": "npm run build:clean && npm run i18n:generate && vite build",
32
32
  "build:clean": "rm -rf ./dist && mkdir ./dist",
33
33
  "commitlint": "commitlint --edit",
34
34
  "watch:vite": "vite build --watch",
35
35
  "watch:translations": "node ./build/translationWatcher.js",
36
36
  "dev": "node ./build/prompt.js && npm run build && npm-run-all --parallel watch:vite watch:translations",
37
- "doc": "typedoc",
37
+ "docs": "npx tsx ./build/eventTypeDocsEmitter.ts",
38
38
  "format": "prettier . --write --log-level error",
39
39
  "format:check": "prettier . --check --log-level error",
40
- "generate": "npm run openapi:generate && npm run i18n:generate",
41
40
  "ladle": "ladle serve",
42
41
  "i18n:generate": "node ./build/interface.js",
43
42
  "lint": "npm run lint:check -- --fix",
44
43
  "lint:check": "eslint .",
45
- "openapi": "npm run openapi:download && npm run openapi:generate",
46
- "openapi:download": "node build/getTargetSpecFromReadme.js",
47
- "openapi:generate": "node build/generateOpenApiFiles.js",
48
44
  "pack": "npm run build && npm pack",
49
45
  "postversion": "git push",
50
46
  "prepare": "husky",
@@ -55,42 +51,40 @@
55
51
  "tsc": "tsc --pretty"
56
52
  },
57
53
  "devDependencies": {
58
- "@commitlint/cli": "^19.5.0",
59
- "@commitlint/config-conventional": "^19.5.0",
54
+ "@commitlint/cli": "^19.8.0",
55
+ "@commitlint/config-conventional": "^19.8.0",
60
56
  "@eslint/js": "^9.13.0",
61
- "@ladle/react": "^5.0.1",
62
- "@tanstack/react-query-devtools": "^5.59.15",
57
+ "@ladle/react": "^5.0.2",
63
58
  "@testing-library/jest-dom": "^6.6.3",
64
- "@testing-library/react": "^16.0.1",
65
- "@testing-library/user-event": "^14.5.2",
59
+ "@testing-library/react": "^16.2.0",
60
+ "@testing-library/user-event": "^14.6.1",
66
61
  "@types/dompurify": "^3.0.5",
67
- "@types/react": "^19.0.7",
68
- "@vitejs/plugin-react-swc": "^3.7.1",
62
+ "@types/react": "^19.0.12",
63
+ "@vitejs/plugin-react-swc": "^3.8.1",
69
64
  "@vitest/coverage-v8": "^2.1.9",
70
- "eslint": "^9.13.0",
65
+ "eslint": "^9.23.0",
71
66
  "eslint-plugin-import": "^2.31.0",
72
- "eslint-plugin-jsx-a11y": "^6.10.1",
73
- "eslint-plugin-react": "^7.37.2",
74
- "eslint-plugin-react-hooks": "^5.0.0",
75
- "globals": "^15.11.0",
76
- "husky": "^9.1.6",
67
+ "eslint-plugin-jsx-a11y": "^6.10.2",
68
+ "eslint-plugin-react": "^7.37.4",
69
+ "eslint-plugin-react-hooks": "^5.2.0",
70
+ "globals": "^15.15.0",
71
+ "husky": "^9.1.7",
77
72
  "i18next-resources-for-ts": "^1.5.0",
78
73
  "jsdom": "^25.0.1",
79
74
  "jsdom-testing-mocks": "^1.13.1",
80
- "lint-staged": "^15.4.1",
81
- "msw": "^2.4.3",
75
+ "lint-staged": "^15.5.0",
76
+ "msw": "^2.7.3",
82
77
  "npm-run-all": "^4.1.5",
83
- "openapi-typescript": "^7.4.1",
84
- "prettier": "^3.3.3",
85
- "sass-embedded": "^1.80.2",
86
- "ts-node": "^10.9.2",
87
- "typedoc": "^0.26.10",
88
- "typescript-eslint": "^8.11.0",
89
- "vite": "^5.4.9",
90
- "vite-plugin-dts": "^4.3.0",
91
- "vite-plugin-sass-dts": "^1.3.29",
78
+ "prettier": "^3.5.3",
79
+ "sass-embedded": "^1.86.0",
80
+ "tsx": "^4.19.3",
81
+ "typescript-eslint": "^8.28.0",
82
+ "vite": "^5.4.15",
83
+ "vite-plugin-circular-dependency": "^0.5.0",
84
+ "vite-plugin-dts": "^4.5.3",
85
+ "vite-plugin-sass-dts": "^1.3.31",
92
86
  "vite-plugin-stylelint": "^5.3.1",
93
- "vite-plugin-svgr": "^4.2.0",
87
+ "vite-plugin-svgr": "^4.3.0",
94
88
  "vitest": "^2.1.9"
95
89
  },
96
90
  "peerDependencies": {
@@ -99,24 +93,23 @@
99
93
  "typescript": "^5.6.3"
100
94
  },
101
95
  "dependencies": {
102
- "@gusto/embedded-api": "^0.5.2",
96
+ "@gusto/embedded-api": "^0.5.9",
103
97
  "@hookform/error-message": "^2.0.1",
104
- "@hookform/resolvers": "^3.9.0",
105
- "@internationalized/date": "^3.5.6",
106
- "@internationalized/number": "^3.5.4",
107
- "@tanstack/react-query": "^5.59.15",
98
+ "@hookform/resolvers": "^3.10.0",
99
+ "@internationalized/date": "^3.7.0",
100
+ "@internationalized/number": "^3.6.0",
108
101
  "classnames": "^2.5.1",
109
102
  "deepmerge": "^4.3.1",
110
- "dompurify": "^3.1.7",
111
- "i18next": "^23.11.2",
112
- "openapi-fetch": "^0.12.2",
113
- "react-aria": "^3.35.1",
114
- "react-aria-components": "^1.4.1",
115
- "react-error-boundary": "^4.1.1",
116
- "react-hook-form": "^7.53.0",
117
- "react-i18next": "^15.0.3",
103
+ "dompurify": "^3.2.4",
104
+ "i18next": "^23.16.8",
105
+ "openapi-fetch": "^0.12.5",
106
+ "react-aria": "^3.38.1",
107
+ "react-aria-components": "^1.7.1",
108
+ "react-error-boundary": "^4.1.2",
109
+ "react-hook-form": "^7.54.2",
110
+ "react-i18next": "^15.4.1",
118
111
  "react-robot": "^1.2.0",
119
- "robot3": "^1.1.0",
112
+ "robot3": "^1.1.1",
120
113
  "valibot": "^0.42.1"
121
114
  },
122
115
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
@@ -1,43 +0,0 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./67EVQ76A-CpAwQIaO.js";
2
- import { g as v, c as C, a as e } from "./index-BjyRpZDE.js";
3
- var h = (t) => {
4
- const [r, o] = s({
5
- prefix: "TanstackQueryDevtools"
6
- }), a = v(), l = C(() => {
7
- const n = r.theme_preference || c;
8
- return n !== "system" ? n : a();
9
- });
10
- return e(d.Provider, {
11
- value: t,
12
- get children() {
13
- return e(u, {
14
- disabled: !0,
15
- localStore: r,
16
- setLocalStore: o,
17
- get children() {
18
- return e(i.Provider, {
19
- value: l,
20
- get children() {
21
- return e(m, {
22
- get children() {
23
- return e(P, {
24
- localStore: r,
25
- setLocalStore: o,
26
- get onClose() {
27
- return t.onClose;
28
- },
29
- showPanelViewOnly: !0
30
- });
31
- }
32
- });
33
- }
34
- });
35
- }
36
- });
37
- }
38
- });
39
- }, p = h;
40
- export {
41
- p as default
42
- };
43
- //# sourceMappingURL=3VW64HDT-DZCphYiC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"3VW64HDT-DZCphYiC.js","sources":["../node_modules/@tanstack/query-devtools/build/DevtoolsPanelComponent/3VW64HDT.js"],"sourcesContent":["import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/67EVQ76A.js';\nimport { getPreferredColorScheme, createMemo, createComponent } from '../chunk/4F76KWFD.js';\n\n// src/DevtoolsPanelComponent.tsx\nvar DevtoolsPanelComponent = (props) => {\n const [localStore, setLocalStore] = createLocalStorage({\n prefix: \"TanstackQueryDevtools\"\n });\n const colorScheme = getPreferredColorScheme();\n const theme = createMemo(() => {\n const preference = localStore.theme_preference || THEME_PREFERENCE;\n if (preference !== \"system\")\n return preference;\n return colorScheme();\n });\n return createComponent(QueryDevtoolsContext.Provider, {\n value: props,\n get children() {\n return createComponent(PiPProvider, {\n disabled: true,\n localStore,\n setLocalStore,\n get children() {\n return createComponent(ThemeContext.Provider, {\n value: theme,\n get children() {\n return createComponent(ParentPanel, {\n get children() {\n return createComponent(ContentView, {\n localStore,\n setLocalStore,\n get onClose() {\n return props.onClose;\n },\n showPanelViewOnly: true\n });\n }\n });\n }\n });\n }\n });\n }\n });\n};\nvar DevtoolsPanelComponent_default = DevtoolsPanelComponent;\n\nexport { DevtoolsPanelComponent_default as default };\n"],"names":["DevtoolsPanelComponent","props","localStore","setLocalStore","createLocalStorage","colorScheme","getPreferredColorScheme","theme","createMemo","preference","THEME_PREFERENCE","createComponent","QueryDevtoolsContext","PiPProvider","ThemeContext","ParentPanel","ContentView","DevtoolsPanelComponent_default"],"mappings":";;AAIA,IAAIA,IAAyB,CAACC,MAAU;AACtC,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAmB;AAAA,IACrD,QAAQ;AAAA,EACZ,CAAG,GACKC,IAAcC,EAAyB,GACvCC,IAAQC,EAAW,MAAM;AAC7B,UAAMC,IAAaP,EAAW,oBAAoBQ;AAClD,WAAID,MAAe,WACVA,IACFJ,EAAa;AAAA,EACxB,CAAG;AACD,SAAOM,EAAgBC,EAAqB,UAAU;AAAA,IACpD,OAAOX;AAAA,IACP,IAAI,WAAW;AACb,aAAOU,EAAgBE,GAAa;AAAA,QAClC,UAAU;AAAA,QACV,YAAAX;AAAA,QACA,eAAAC;AAAA,QACA,IAAI,WAAW;AACb,iBAAOQ,EAAgBG,EAAa,UAAU;AAAA,YAC5C,OAAOP;AAAA,YACP,IAAI,WAAW;AACb,qBAAOI,EAAgBI,GAAa;AAAA,gBAClC,IAAI,WAAW;AACb,yBAAOJ,EAAgBK,GAAa;AAAA,oBAClC,YAAAd;AAAA,oBACA,eAAAC;AAAA,oBACA,IAAI,UAAU;AACZ,6BAAOF,EAAM;AAAA,oBACd;AAAA,oBACD,mBAAmB;AAAA,kBACvC,CAAmB;AAAA,gBACnB;AAAA,cACA,CAAe;AAAA,YACf;AAAA,UACA,CAAW;AAAA,QACX;AAAA,MACA,CAAO;AAAA,IACP;AAAA,EACA,CAAG;AACH,GACIgB,IAAiCjB;","x_google_ignoreList":[0]}