@gusto/embedded-react-sdk 0.5.0 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ - Allow for default value for flsa_status (employment type field) in compensation
6
+ - The default font that ships with the SDK has been updated to 'Geist' so that will update if you do not have a default font specified in your theme
7
+ - Update company Industry component to use speakeasy
8
+ - Update Employee List component to use speakeasy
9
+ - Add a CalendarDisplay component and introduce it to Company PaySchedule component
10
+ - Add `isSelfOnboardingEnabled` prop to Employee profile components to disallow self onboarding
11
+ - Add company PaySchedule component
12
+ - Add styling to SDK internal error component
13
+
14
+ ### Breaking changes
15
+
16
+ > Note: We are pre alpha and are regularly iterating on the SDK as we learn more about our consumers and their needs which sometimes involves breaking changes. [Read more about our current versioning strategy here](./docs/04/01/versioning.md).
17
+
18
+ #### Update GustoApiProvider `baseUrl` property to use an absolute URL
19
+
20
+ Ex. previously you could set a `baseUrl` to a relative URL as follows
21
+
22
+ ```ts
23
+ <GustoApiProvider
24
+ config={{
25
+ baseUrl: `some/url/path/`,
26
+ }}
27
+ ...
28
+ >
29
+ ...
30
+ </GustoApiProvider>
31
+ ```
32
+
33
+ Moving forward, we require setting an absolute URL. Ex updating to be:
34
+
35
+ ```ts
36
+ <GustoApiProvider
37
+ config={{
38
+ baseUrl: `https://api.example.com/some/url/path/`,
39
+ }}
40
+ ...
41
+ >
42
+ ...
43
+ </GustoApiProvider>
44
+ ```
45
+
46
+ #### fontWeight override for typography theme has been changed from `book` to `regular`
47
+
48
+ Ex. so if you were overriding the `fontWeight` property before using `book`
49
+
50
+ ```ts
51
+ <GustoApiProvider
52
+ theme={{
53
+ typography: {
54
+ fontWeight: {
55
+ book: 400,
56
+ },
57
+ },
58
+ }}
59
+ ...
60
+ >
61
+ ...
62
+ </GustoApiProvider>
63
+ ```
64
+
65
+ You will want to update to use `regular` instead as follows
66
+
67
+ ```ts
68
+ <GustoApiProvider
69
+ theme={{
70
+ typography: {
71
+ fontWeight: {
72
+ regular: 400,
73
+ },
74
+ },
75
+ }}
76
+ ...
77
+ >
78
+ ...
79
+ </GustoApiProvider>
80
+ ```
81
+
3
82
  ## 0.5.0
4
83
 
5
84
  - Update to require proxy to add IP address via `x-gusto-client-ip` header
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-CqyfsoVo.js";
2
- import { g as v, c as C, a as e } from "./index-CqZomo0U.js";
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
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -40,4 +40,4 @@ var h = (t) => {
40
40
  export {
41
41
  p as default
42
42
  };
43
- //# sourceMappingURL=HUY7CZI3-sPAWPtuq.js.map
43
+ //# sourceMappingURL=3VW64HDT-DZCphYiC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HUY7CZI3-sPAWPtuq.js","sources":["../node_modules/@tanstack/query-devtools/build/DevtoolsPanelComponent/HUY7CZI3.js"],"sourcesContent":["import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/B4MFY5CR.js';\nimport { getPreferredColorScheme, createMemo, createComponent } from '../chunk/JAANZ2TG.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]}
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]}