@servicetitan/culture 32.3.0 → 32.4.1
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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { Culture } from './culture';
|
|
2
|
+
import type { Culture } from './culture';
|
|
3
3
|
export declare const CULTURE_TOKEN: import("@servicetitan/react-ioc").SymbolToken<Culture>;
|
|
4
4
|
interface CultureProviderProps {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
value?: Culture;
|
|
7
7
|
}
|
|
8
|
-
export { Culture };
|
|
8
|
+
export type { Culture };
|
|
9
9
|
export declare const CultureProvider: FC<CultureProviderProps>;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,eAAO,MAAM,aAAa,wDAAwC,CAAC;AAEnE,UAAU,oBAAoB;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAMpD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Provider, symbolToken } from '@servicetitan/react-ioc';
|
|
3
|
-
import { Culture } from './culture';
|
|
4
3
|
export const CULTURE_TOKEN = symbolToken('CULTURE_TOKEN');
|
|
5
|
-
export { Culture };
|
|
6
4
|
export const CultureProvider = ({ value, children })=>{
|
|
7
5
|
return /*#__PURE__*/ _jsx(Provider, {
|
|
8
6
|
singletons: value ? [
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import { FC, ReactNode } from 'react';\n\nimport { Provider, symbolToken } from '@servicetitan/react-ioc';\nimport { Culture } from './culture';\n\nexport const CULTURE_TOKEN = symbolToken<Culture>('CULTURE_TOKEN');\n\ninterface CultureProviderProps {\n children?: ReactNode;\n value?: Culture;\n}\n\nexport { Culture };\n\nexport const CultureProvider: FC<CultureProviderProps> = ({ value, children }) => {\n return (\n <Provider singletons={value ? [{ provide: CULTURE_TOKEN, useValue: value }] : undefined}>\n {children}\n </Provider>\n );\n};\n"],"names":["Provider","symbolToken","
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["import { FC, ReactNode } from 'react';\n\nimport { Provider, symbolToken } from '@servicetitan/react-ioc';\nimport type { Culture } from './culture';\n\nexport const CULTURE_TOKEN = symbolToken<Culture>('CULTURE_TOKEN');\n\ninterface CultureProviderProps {\n children?: ReactNode;\n value?: Culture;\n}\n\nexport type { Culture };\n\nexport const CultureProvider: FC<CultureProviderProps> = ({ value, children }) => {\n return (\n <Provider singletons={value ? [{ provide: CULTURE_TOKEN, useValue: value }] : undefined}>\n {children}\n </Provider>\n );\n};\n"],"names":["Provider","symbolToken","CULTURE_TOKEN","CultureProvider","value","children","singletons","provide","useValue","undefined"],"mappings":";AAEA,SAASA,QAAQ,EAAEC,WAAW,QAAQ,0BAA0B;AAGhE,OAAO,MAAMC,gBAAgBD,YAAqB,iBAAiB;AASnE,OAAO,MAAME,kBAA4C,CAAC,EAAEC,KAAK,EAAEC,QAAQ,EAAE;IACzE,qBACI,KAACL;QAASM,YAAYF,QAAQ;YAAC;gBAAEG,SAASL;gBAAeM,UAAUJ;YAAM;SAAE,GAAGK;kBACzEJ;;AAGb,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/culture",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/culture",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"src"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@servicetitan/react-ioc": "^31.
|
|
19
|
+
"@servicetitan/react-ioc": "^31.6.0",
|
|
20
20
|
"@types/react": "~18.2.55",
|
|
21
21
|
"react": "^18.2.0"
|
|
22
22
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"cli": {
|
|
31
31
|
"webpack": false
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "5bc4f3c9c8a181df124fdc614964757e5490ea9b"
|
|
34
34
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
import { Provider, symbolToken } from '@servicetitan/react-ioc';
|
|
4
|
-
import { Culture } from './culture';
|
|
4
|
+
import type { Culture } from './culture';
|
|
5
5
|
|
|
6
6
|
export const CULTURE_TOKEN = symbolToken<Culture>('CULTURE_TOKEN');
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ interface CultureProviderProps {
|
|
|
10
10
|
value?: Culture;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export { Culture };
|
|
13
|
+
export type { Culture };
|
|
14
14
|
|
|
15
15
|
export const CultureProvider: FC<CultureProviderProps> = ({ value, children }) => {
|
|
16
16
|
return (
|