@servicetitan/startup 17.0.0 → 17.2.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.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=get-global-this.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-this.d.ts","sourceRoot":"","sources":["../../../../../src/webpack/loaders/expose-loader/runtime/get-global-this.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ // @ts-nocheck
4
+ module.exports = (function () {
5
+ if (typeof globalThis === 'object') {
6
+ return globalThis;
7
+ }
8
+ let result;
9
+ try {
10
+ // This works if eval is allowed (see CSP)
11
+ result = this || new Function('return this')();
12
+ }
13
+ catch (e) {
14
+ // This works if the window reference is available
15
+ if (typeof window === 'object') {
16
+ return window;
17
+ }
18
+ // This works if the self reference is available
19
+ if (typeof self === 'object') {
20
+ return self;
21
+ }
22
+ // This works if the global reference is available
23
+ if (typeof global !== 'undefined') {
24
+ return global;
25
+ }
26
+ }
27
+ return result;
28
+ })();
29
+ //# sourceMappingURL=get-global-this.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-this.js","sourceRoot":"","sources":["../../../../../src/webpack/loaders/expose-loader/runtime/get-global-this.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,cAAc;AACd,MAAM,CAAC,OAAO,GAAG,CAAC;IACd,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAChC,OAAO,UAAU,CAAC;KACrB;IAED,IAAI,MAAM,CAAC;IAEX,IAAI;QACA,0CAA0C;QAC1C,MAAM,GAAG,IAAI,IAAI,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;KAClD;IAAC,OAAO,CAAC,EAAE;QACR,kDAAkD;QAClD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC5B,OAAO,MAAM,CAAC;SACjB;QAED,gDAAgD;QAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QAED,kDAAkD;QAClD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC/B,OAAO,MAAM,CAAC;SACjB;KACJ;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/startup",
3
- "version": "17.0.0",
3
+ "version": "17.2.0",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/startup",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "bin": "./bin/index.js",
23
23
  "devDependencies": {
24
24
  "@types/cpx": "~1.5.2",
25
- "@types/eslint": "~7.28.0",
25
+ "@types/eslint": "~7.28.1",
26
26
  "@types/less": "~3.0.3",
27
27
  "@types/mini-css-extract-plugin": "~2.3.0",
28
28
  "@types/sass": "~1.16.1",
@@ -31,11 +31,11 @@
31
31
  "@types/yargs": "~17.0.3"
32
32
  },
33
33
  "dependencies": {
34
- "@jest/core": "~27.2.0",
34
+ "@jest/core": "~27.2.5",
35
35
  "@jest/types": "~27.2.4",
36
36
  "@lerna/exec": "~4.0.0",
37
- "@servicetitan/eslint-config": "^17.0.0",
38
- "@servicetitan/stylelint-config": "^17.0.0",
37
+ "@servicetitan/eslint-config": "^17.2.0",
38
+ "@servicetitan/stylelint-config": "^17.2.0",
39
39
  "@types/jest": "~27.0.2",
40
40
  "chalk": "~4.1.2",
41
41
  "chokidar": "~3.5.2",
@@ -51,7 +51,7 @@
51
51
  "jest-circus": "~27.2.3",
52
52
  "jest-fetch-mock": "~3.0.3",
53
53
  "lerna": "~4.0.0",
54
- "less": "~4.1.1",
54
+ "less": "~4.1.2",
55
55
  "less-loader": "~10.0.1",
56
56
  "less-plugin-npm-import": "~2.1.0",
57
57
  "memfs": "~3.3.0",
@@ -68,7 +68,7 @@
68
68
  "ts-node": "~10.2.1",
69
69
  "typed-css-modules": "~0.7.0",
70
70
  "typescript": "~4.4.3",
71
- "webpack": "~5.54.0",
71
+ "webpack": "~5.57.1",
72
72
  "webpack-dev-server": "~3.11.2",
73
73
  "webpack-filter-warnings-plugin": "~1.2.1",
74
74
  "webpack-merge": "~5.8.0",
@@ -83,5 +83,5 @@
83
83
  "cli": {
84
84
  "webpack": false
85
85
  },
86
- "gitHead": "afe94cb5a9f840f311627751e23fb71fd2c6fe4e"
86
+ "gitHead": "4a3151bd82763b1a8d4407bcabc675bb17d6a629"
87
87
  }
@@ -4,7 +4,7 @@ exports[`expose-loader should work for a nested property for a global object: er
4
4
 
5
5
  exports[`expose-loader should work for a nested property for a global object: module 1`] = `
6
6
  "var ___EXPOSE_LOADER_IMPORT___ = require(\\"-!./configuration.expose-loader.js\\");
7
- var ___EXPOSE_LOADER_GLOBAL_THIS___ = require(\\"../../runtime/get-global-this.js\\");
7
+ var ___EXPOSE_LOADER_GLOBAL_THIS___ = require(\\"../../runtime/get-global-this.ts\\");
8
8
  var ___EXPOSE_LOADER_STORAGE_KEY___ = Symbol.for('SERVICETITAN_EXPOSE_LOADER_STORAGE');
9
9
  if (___EXPOSE_LOADER_GLOBAL_THIS___[___EXPOSE_LOADER_STORAGE_KEY___] === undefined) {
10
10
  ___EXPOSE_LOADER_GLOBAL_THIS___[___EXPOSE_LOADER_STORAGE_KEY___] = Object.assign(
@@ -72,7 +72,7 @@ exports[`expose-loader should work: errors 1`] = `Array []`;
72
72
 
73
73
  exports[`expose-loader should work: module 1`] = `
74
74
  "var ___EXPOSE_LOADER_IMPORT___ = require(\\"-!./configuration.expose-loader.js\\");
75
- var ___EXPOSE_LOADER_GLOBAL_THIS___ = require(\\"../../runtime/get-global-this.js\\");
75
+ var ___EXPOSE_LOADER_GLOBAL_THIS___ = require(\\"../../runtime/get-global-this.ts\\");
76
76
  var ___EXPOSE_LOADER_STORAGE_KEY___ = Symbol.for('SERVICETITAN_EXPOSE_LOADER_STORAGE');
77
77
  if (___EXPOSE_LOADER_GLOBAL_THIS___[___EXPOSE_LOADER_STORAGE_KEY___] === undefined) {
78
78
  ___EXPOSE_LOADER_GLOBAL_THIS___[___EXPOSE_LOADER_STORAGE_KEY___] = Object.assign(
@@ -1,3 +1,5 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
1
3
  module.exports = (function () {
2
4
  if (typeof globalThis === 'object') {
3
5
  return globalThis;
@@ -13,7 +13,7 @@
13
13
  "test": "startup test"
14
14
  },
15
15
  "devDependencies": {
16
- "@servicetitan/startup": "~14.1.0"
16
+ "@servicetitan/startup": "~17.1.0"
17
17
  },
18
18
  "workspaces": [
19
19
  "packages/*"
@@ -8,7 +8,7 @@
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@servicetitan/design-system": "~10.3.3",
11
- "@servicetitan/link-item": "~15.0.0",
11
+ "@servicetitan/link-item": "~17.1.0",
12
12
  "feature-a": "^0.0.0",
13
13
  "feature-b": "^0.0.0",
14
14
  "feature-c": "^0.0.0",
@@ -17,8 +17,8 @@
17
17
  "react-router-dom": "~5.3.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/react": "~17.0.21",
20
+ "@types/react": "~17.0.26",
21
21
  "@types/react-dom": "~17.0.9",
22
- "@types/react-router-dom": "~5.1.9"
22
+ "@types/react-router-dom": "~5.3.0"
23
23
  }
24
24
  }
@@ -11,7 +11,7 @@ export const App: FC = () => (
11
11
  <Frame>
12
12
  <Page
13
13
  sidebar={
14
- <Sidebar>
14
+ <Sidebar localStorageKey="sidebar-application">
15
15
  <Sidebar.Section padding="y">
16
16
  <SideNav title="Application">
17
17
  <SideNavLinkItem pathname="/" exact>
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "extends": "@servicetitan/startup/tsconfig/base",
3
3
  "compilerOptions": {
4
+ "module": "esnext",
5
+ "moduleResolution": "node",
4
6
  "outDir": "dist",
5
7
  "rootDir": "src"
6
8
  },
@@ -10,7 +10,7 @@
10
10
  "react-dom": "~17.0.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/react": "~17.0.21",
13
+ "@types/react": "~17.0.26",
14
14
  "@types/react-dom": "~17.0.9"
15
15
  },
16
16
  "cli": {
@@ -10,7 +10,7 @@
10
10
  "react-dom": "~17.0.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/react": "~17.0.21",
13
+ "@types/react": "~17.0.26",
14
14
  "@types/react-dom": "~17.0.9"
15
15
  },
16
16
  "cli": {
@@ -10,7 +10,7 @@
10
10
  "react-dom": "~17.0.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/react": "~17.0.21",
13
+ "@types/react": "~17.0.26",
14
14
  "@types/react-dom": "~17.0.9"
15
15
  },
16
16
  "cli": {