@elliemae/pui-cli 9.0.0-next.5 → 9.0.0-next.50

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.
Files changed (204) hide show
  1. package/app.tsconfig.json +1 -1
  2. package/dist/cjs/babel.config.cjs +1 -1
  3. package/dist/cjs/cli.js +2 -2
  4. package/dist/cjs/commands/build.js +4 -6
  5. package/dist/cjs/commands/codemod.js +1 -1
  6. package/dist/cjs/commands/gendoc.js +2 -2
  7. package/dist/cjs/commands/lint.js +28 -11
  8. package/dist/cjs/commands/pack.js +3 -4
  9. package/dist/cjs/commands/start.js +3 -3
  10. package/dist/cjs/commands/storybook.js +1 -1
  11. package/dist/cjs/commands/test.js +46 -23
  12. package/dist/cjs/commands/tscheck.js +3 -3
  13. package/dist/cjs/commands/utils.js +37 -10
  14. package/dist/cjs/commands/version.js +1 -1
  15. package/dist/cjs/commands/vitest.js +6 -11
  16. package/dist/cjs/index.cjs +0 -2
  17. package/dist/cjs/index.js +4 -2
  18. package/dist/cjs/lint-config/eslint/common.cjs +3 -2
  19. package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
  20. package/dist/cjs/lint-config/lint-staged.config.js +2 -2
  21. package/dist/cjs/lint-config/stylelint.config.js +45 -0
  22. package/dist/cjs/monorepo/delete-merged-tags.js +2 -3
  23. package/dist/cjs/monorepo/set-registry-version.js +3 -3
  24. package/dist/cjs/monorepo/set-workspace-version.js +3 -3
  25. package/dist/cjs/monorepo/utils.js +1 -1
  26. package/dist/cjs/pui-config.js +5 -6
  27. package/dist/cjs/release.config.js +46 -0
  28. package/dist/cjs/server/appRoutes.js +5 -8
  29. package/dist/cjs/server/csp.js +6 -5
  30. package/dist/cjs/server/index.js +6 -1
  31. package/dist/cjs/server/logger.js +2 -2
  32. package/dist/cjs/server/middlewares.js +5 -5
  33. package/dist/cjs/server/utils.js +12 -5
  34. package/dist/cjs/server/wsServer.js +125 -0
  35. package/dist/cjs/testing/ExtendedJSDomEnv.cjs +27 -0
  36. package/dist/cjs/testing/extended/axe-core/getMessageAndPass.js +36 -0
  37. package/dist/cjs/testing/extended/axe-core/index.js +24 -0
  38. package/dist/cjs/testing/extended/axe-core/reporter.js +50 -0
  39. package/dist/cjs/testing/extended/axe-core/shouldIgnoreNodeViolation.js +31 -0
  40. package/dist/cjs/testing/extended/axe-core/toHaveNoViolations.js +42 -0
  41. package/dist/cjs/testing/jest.config.cjs +6 -2
  42. package/dist/cjs/testing/jest.polyfills.cjs +30 -0
  43. package/dist/cjs/testing/mocks/svg.js +1 -1
  44. package/dist/cjs/testing/setup-react-env.js +1 -1
  45. package/dist/cjs/testing/setup-test-env.js +0 -2
  46. package/dist/cjs/testing/setup-tests.js +30 -12
  47. package/dist/cjs/testing/vitest.config.js +10 -10
  48. package/dist/cjs/transpile/.swcrc +1 -1
  49. package/dist/cjs/transpile/esbuild.js +48 -15
  50. package/dist/cjs/transpile/react-shim.js +1 -1
  51. package/dist/cjs/update-notifier.js +3 -3
  52. package/dist/cjs/utils.js +4 -5
  53. package/dist/cjs/webpack/helpers.js +29 -23
  54. package/dist/cjs/webpack/webpack.base.babel.js +21 -35
  55. package/dist/cjs/webpack/webpack.dev.babel.js +20 -10
  56. package/dist/cjs/webpack/webpack.lib.base.babel.js +22 -13
  57. package/dist/cjs/webpack/webpack.lib.dev.babel.js +14 -18
  58. package/dist/cjs/webpack/webpack.lib.prod.babel.js +12 -11
  59. package/dist/cjs/webpack/webpack.prod.babel.js +8 -8
  60. package/dist/cjs/webpack/webpack.storybook.js +15 -17
  61. package/dist/esm/babel.config.cjs +1 -1
  62. package/dist/esm/commands/build.js +2 -4
  63. package/dist/esm/commands/lint.js +27 -9
  64. package/dist/esm/commands/pack.js +1 -2
  65. package/dist/esm/commands/start.js +1 -1
  66. package/dist/esm/commands/test.js +45 -22
  67. package/dist/esm/commands/utils.js +33 -6
  68. package/dist/esm/commands/vitest.js +5 -10
  69. package/dist/esm/index.cjs +0 -2
  70. package/dist/esm/index.js +4 -2
  71. package/dist/esm/lint-config/eslint/common.cjs +3 -2
  72. package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
  73. package/dist/esm/lint-config/stylelint.config.js +25 -0
  74. package/dist/esm/monorepo/delete-merged-tags.js +2 -3
  75. package/dist/esm/monorepo/set-registry-version.js +1 -1
  76. package/dist/esm/monorepo/set-workspace-version.js +1 -1
  77. package/dist/esm/pui-config.js +2 -3
  78. package/dist/esm/release.config.js +26 -0
  79. package/dist/esm/server/appRoutes.js +3 -6
  80. package/dist/esm/server/csp.js +2 -1
  81. package/dist/esm/server/index.js +6 -1
  82. package/dist/esm/server/utils.js +11 -4
  83. package/dist/esm/server/wsServer.js +95 -0
  84. package/dist/esm/testing/ExtendedJSDomEnv.cjs +27 -0
  85. package/dist/esm/testing/extended/axe-core/getMessageAndPass.js +16 -0
  86. package/dist/esm/testing/extended/axe-core/index.js +4 -0
  87. package/dist/esm/testing/extended/axe-core/reporter.js +30 -0
  88. package/dist/esm/testing/extended/axe-core/shouldIgnoreNodeViolation.js +11 -0
  89. package/dist/esm/testing/extended/axe-core/toHaveNoViolations.js +22 -0
  90. package/dist/esm/testing/jest.config.cjs +6 -2
  91. package/dist/esm/testing/jest.polyfills.cjs +30 -0
  92. package/dist/esm/testing/setup-test-env.js +0 -2
  93. package/dist/esm/testing/setup-tests.js +29 -11
  94. package/dist/esm/testing/vitest.config.js +8 -8
  95. package/dist/esm/transpile/.swcrc +1 -1
  96. package/dist/esm/transpile/esbuild.js +45 -12
  97. package/dist/esm/update-notifier.js +1 -1
  98. package/dist/esm/utils.js +2 -3
  99. package/dist/esm/webpack/helpers.js +25 -19
  100. package/dist/esm/webpack/webpack.base.babel.js +13 -27
  101. package/dist/esm/webpack/webpack.dev.babel.js +13 -3
  102. package/dist/esm/webpack/webpack.lib.base.babel.js +14 -5
  103. package/dist/esm/webpack/webpack.lib.dev.babel.js +9 -13
  104. package/dist/esm/webpack/webpack.lib.prod.babel.js +12 -7
  105. package/dist/esm/webpack/webpack.prod.babel.js +4 -4
  106. package/dist/esm/webpack/webpack.storybook.js +12 -14
  107. package/dist/types/docusaurus.config.d.ts +2 -0
  108. package/dist/types/{babel.config.d.cts → lib/babel.config.d.cts} +7 -7
  109. package/dist/types/{commands → lib/commands}/build.d.ts +2 -2
  110. package/dist/types/{commands → lib/commands}/codemod.d.ts +2 -2
  111. package/dist/types/{commands → lib/commands}/lint.d.ts +3 -2
  112. package/dist/types/{commands → lib/commands}/pack.d.ts +2 -2
  113. package/dist/types/{commands → lib/commands}/start.d.ts +2 -2
  114. package/dist/types/{commands → lib/commands}/storybook.d.ts +2 -2
  115. package/dist/types/{commands → lib/commands}/test.d.ts +4 -2
  116. package/dist/types/{commands → lib/commands}/tscheck.d.ts +2 -2
  117. package/dist/types/lib/commands/utils.d.ts +39 -0
  118. package/dist/types/{commands → lib/commands}/version.d.ts +2 -2
  119. package/dist/types/{commands → lib/commands}/vitest.d.ts +2 -2
  120. package/dist/types/{index.d.cts → lib/index.d.cts} +1 -2
  121. package/dist/types/{index.d.ts → lib/index.d.ts} +3 -1
  122. package/dist/types/{lint-config → lib/lint-config}/commitlint.config.d.cts +1 -1
  123. package/dist/types/{lint-config → lib/lint-config}/eslint/common.d.cts +18 -12
  124. package/dist/types/{lint-config → lib/lint-config}/eslint/non-react.d.cts +8 -1
  125. package/dist/types/{lint-config → lib/lint-config}/eslint/react.d.cts +8 -1
  126. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/common.d.cts +6 -6
  127. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/non-react.d.cts +9 -2
  128. package/dist/types/{lint-config → lib/lint-config}/eslint/typescript/react.d.cts +9 -2
  129. package/dist/types/lib/lint-config/lint-staged.config.d.ts +5 -0
  130. package/dist/types/lib/lint-config/prettier.config.d.cts +8 -0
  131. package/dist/types/lib/lint-config/stylelint.config.d.ts +13 -0
  132. package/dist/types/lib/release.config.d.ts +10 -0
  133. package/dist/types/{server → lib/server}/csp.d.ts +2 -2
  134. package/dist/types/{server → lib/server}/utils.d.ts +1 -0
  135. package/dist/types/lib/server/wsServer.d.ts +13 -0
  136. package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts +5 -0
  137. package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts +8 -0
  138. package/dist/types/lib/testing/extended/axe-core/index.d.ts +1 -0
  139. package/dist/types/lib/testing/extended/axe-core/reporter.d.ts +2 -0
  140. package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +2 -0
  141. package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts +12 -0
  142. package/dist/types/lib/testing/jest.config.d.cts +45 -0
  143. package/dist/types/{testing → lib/testing}/jest.node.config.d.cts +4 -0
  144. package/dist/types/lib/testing/mocks/axios.d.ts +17 -0
  145. package/dist/types/{testing → lib/testing}/mocks/pui-diagnostics.d.ts +13 -13
  146. package/dist/types/lib/testing/setup-tests.d.ts +1 -0
  147. package/dist/types/lib/testing/vitest.config.d.ts +1 -0
  148. package/dist/types/lib/tests/basic.test.d.ts +0 -0
  149. package/dist/types/{transpile → lib/transpile}/esbuild.d.ts +3 -3
  150. package/dist/types/lib/typedoc.d.cts +3 -0
  151. package/dist/types/{webpack → lib/webpack}/helpers.d.ts +4 -1
  152. package/dist/types/{webpack → lib/webpack}/webpack.storybook.d.ts +0 -1
  153. package/nx.json +97 -0
  154. package/package.json +209 -193
  155. package/dist/cjs/lint-config/stylelint.config.cjs +0 -19
  156. package/dist/cjs/release.config.cjs +0 -24
  157. package/dist/esm/lint-config/stylelint.config.cjs +0 -19
  158. package/dist/esm/release.config.cjs +0 -24
  159. package/dist/types/commands/utils.d.ts +0 -17
  160. package/dist/types/lint-config/lint-staged.config.d.ts +0 -5
  161. package/dist/types/lint-config/prettier.config.d.cts +0 -8
  162. package/dist/types/lint-config/stylelint.config.d.cts +0 -10
  163. package/dist/types/release.config.d.cts +0 -7
  164. package/dist/types/testing/jest.config.d.cts +0 -41
  165. package/dist/types/testing/mocks/axios.d.ts +0 -17
  166. package/dist/types/testing/vitest.config.d.ts +0 -1
  167. package/dist/types/typedoc.d.cts +0 -3
  168. /package/dist/types/{cli.d.ts → lib/cli.d.ts} +0 -0
  169. /package/dist/types/{commands → lib/commands}/gendoc.d.ts +0 -0
  170. /package/dist/types/{dummy.d.ts → lib/dummy.d.ts} +0 -0
  171. /package/dist/types/{monorepo → lib/monorepo}/delete-merged-tags.d.ts +0 -0
  172. /package/dist/types/{monorepo → lib/monorepo}/set-registry-version.d.ts +0 -0
  173. /package/dist/types/{monorepo → lib/monorepo}/set-workspace-version.d.ts +0 -0
  174. /package/dist/types/{monorepo → lib/monorepo}/utils.d.cts +0 -0
  175. /package/dist/types/{monorepo → lib/monorepo}/utils.d.ts +0 -0
  176. /package/dist/types/{pui-config.d.ts → lib/pui-config.d.ts} +0 -0
  177. /package/dist/types/{server → lib/server}/appRoutes.d.ts +0 -0
  178. /package/dist/types/{server → lib/server}/index.d.ts +0 -0
  179. /package/dist/types/{server → lib/server}/logger.d.ts +0 -0
  180. /package/dist/types/{server → lib/server}/middlewares.d.ts +0 -0
  181. /package/dist/types/{testing/setup-react-env.d.ts → lib/testing/jest.polyfills.d.cts} +0 -0
  182. /package/dist/types/{testing → lib/testing}/mocks/cssModule.d.ts +0 -0
  183. /package/dist/types/{testing → lib/testing}/mocks/html.d.ts +0 -0
  184. /package/dist/types/{testing → lib/testing}/mocks/image.d.ts +0 -0
  185. /package/dist/types/{testing → lib/testing}/mocks/matchMedia.d.ts +0 -0
  186. /package/dist/types/{testing → lib/testing}/mocks/pui-app-loader.d.ts +0 -0
  187. /package/dist/types/{testing → lib/testing}/mocks/pui-user-monitoring.d.ts +0 -0
  188. /package/dist/types/{testing → lib/testing}/mocks/retry-axios.d.ts +0 -0
  189. /package/dist/types/{testing → lib/testing}/mocks/svg.d.ts +0 -0
  190. /package/dist/types/{testing → lib/testing}/mocks/webpack-hmr.d.ts +0 -0
  191. /package/dist/types/{testing → lib/testing}/resolver.d.cts +0 -0
  192. /package/dist/types/{testing/setup-test-env.d.ts → lib/testing/setup-react-env.d.ts} +0 -0
  193. /package/dist/types/{testing/setup-tests.d.ts → lib/testing/setup-test-env.d.ts} +0 -0
  194. /package/dist/types/{transpile → lib/transpile}/react-shim.d.ts +0 -0
  195. /package/dist/types/{transpile → lib/transpile}/swcrc.config.d.cts +0 -0
  196. /package/dist/types/{update-notifier.d.ts → lib/update-notifier.d.ts} +0 -0
  197. /package/dist/types/{utils.d.cts → lib/utils.d.cts} +0 -0
  198. /package/dist/types/{utils.d.ts → lib/utils.d.ts} +0 -0
  199. /package/dist/types/{webpack → lib/webpack}/webpack.base.babel.d.ts +0 -0
  200. /package/dist/types/{webpack → lib/webpack}/webpack.dev.babel.d.ts +0 -0
  201. /package/dist/types/{webpack → lib/webpack}/webpack.lib.base.babel.d.ts +0 -0
  202. /package/dist/types/{webpack → lib/webpack}/webpack.lib.dev.babel.d.ts +0 -0
  203. /package/dist/types/{webpack → lib/webpack}/webpack.lib.prod.babel.d.ts +0 -0
  204. /package/dist/types/{webpack → lib/webpack}/webpack.prod.babel.d.ts +0 -0
@@ -0,0 +1,39 @@
1
+ /// <reference types="node" />
2
+ export declare const exec: (command: string, options?: import("execa").Options<import("execa").BufferEncodingOption> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
3
+ export declare const logInfo: {
4
+ (...data: any[]): void;
5
+ (message?: any, ...optionalParams: any[]): void;
6
+ };
7
+ export declare const logWarning: (...args: string[]) => void;
8
+ export declare const logSuccess: (...args: string[]) => void;
9
+ export declare const logError: {
10
+ (...data: any[]): void;
11
+ (message?: any, ...optionalParams: any[]): void;
12
+ };
13
+ export declare const writeAppInfo: () => Promise<void>;
14
+ export declare const copyBuildAssetsToVersionedFolder: () => Promise<void>;
15
+ export declare const isPathExist: (pathToCheck: string) => Promise<boolean>;
16
+ export declare const isApp: () => Promise<boolean>;
17
+ export declare const getCIEnv: () => boolean;
18
+ export declare const isTypeScriptEnabled: () => boolean;
19
+ /**
20
+ * argv will generate an object with many assumptions based on the library own functionality.
21
+ * some of those assumptions make it hard to use the ...rest operator to get the options,
22
+ * this function is meant to get the options that are not specificially expected.
23
+ * @param {object} options - the options the command is specifically expecting
24
+ * @param {string} command - the raw command (without the prefix nor tag)
25
+ * @returns {object} - options that were not specifically expected by the command, key are camelCase, values are forced to be strings
26
+ * @example
27
+ * // options {
28
+ * // someOption: { alias: 'my-test', string: true, default:'foo' },
29
+ * // 'hello-world': { boolean: true, default:'bar' },
30
+ * // }
31
+ * // command "test"
32
+ * // user's args string
33
+ * // "test --hello-world -my-test='is-working' --orMaybe=\"it isn't\" is_it='? '--a"
34
+ * // ^ command ^ expected option ^ expected option(alias) | unspecified options...
35
+ * // returns { orMaybe: "it isn't", is_it: '? ', a: true }
36
+ * // note that the unspecified options are forced to be strings, unless boolean (without '=')
37
+ * @see {@link https://stackblitz.com/edit/node-gqcdb4?file=package.json stackblitz test}
38
+ */
39
+ export declare const getUnspecifiedOptions: (options: Record<string, Record<string, unknown>>, command: string) => Record<string, string | boolean>;
@@ -1,9 +1,9 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  deleteTags: boolean;
4
4
  useRegistry: boolean;
5
5
  useWorkspace: boolean;
6
6
  lernaOptions?: string;
7
- };
7
+ }
8
8
  export declare const versionCmd: CommandModule<Record<string, never>, Arguments>;
9
9
  export {};
@@ -1,10 +1,10 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  fix?: boolean;
4
4
  watch?: boolean;
5
5
  passWithNoTests?: boolean;
6
6
  findReleatedTests?: boolean;
7
7
  silent?: boolean;
8
- };
8
+ }
9
9
  export declare const vitestCmd: CommandModule<Record<string, never>, Arguments>;
10
10
  export {};
@@ -1,9 +1,8 @@
1
1
  import { babelConfig } from "./babel.config.cjs";
2
2
  import { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
3
3
  import { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
4
- import { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
4
  import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
5
  import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
6
  import { jestConfig } from "./testing/jest.config.cjs";
8
7
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
- export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
8
+ export { babelConfig, eslintBaseConfig, eslintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
@@ -1,7 +1,8 @@
1
+ export type LIB_NAME = 'pui-cli';
1
2
  export { babelConfig } from './babel.config.cjs';
2
3
  export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
3
4
  export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
4
- export { stylelintConfig } from './lint-config/stylelint.config.cjs';
5
+ export { stylelintConfig } from './lint-config/stylelint.config.js';
5
6
  export { prettierConfig } from './lint-config/prettier.config.cjs';
6
7
  export { commitlintConfig } from './lint-config/commitlint.config.cjs';
7
8
  export { jestConfig } from './testing/jest.config.cjs';
@@ -9,3 +10,4 @@ export { vitestConfig } from './testing/vitest.config.js';
9
10
  export { jestNodeConfig } from './testing/jest.node.config.cjs';
10
11
  export { lintStagedConfig } from './lint-config/lint-staged.config.js';
11
12
  export { loadRoutes } from './server/appRoutes.js';
13
+ export { webpackFinal } from './webpack/webpack.storybook.js';
@@ -1,4 +1,4 @@
1
1
  export namespace commitlintConfig {
2
- const _extends: string[];
2
+ let _extends: string[];
3
3
  export { _extends as extends };
4
4
  }
@@ -6,24 +6,24 @@ export const baseOverrides: {
6
6
  };
7
7
  }[];
8
8
  export namespace baseConfig {
9
- export const parser: string;
9
+ export let parser: string;
10
10
  export { basePlugins as plugins };
11
11
  export namespace env {
12
- const jest: boolean;
13
- const browser: boolean;
14
- const node: boolean;
15
- const es2021: boolean;
12
+ let jest: boolean;
13
+ let browser: boolean;
14
+ let node: boolean;
15
+ let es2021: boolean;
16
16
  }
17
17
  export namespace parserOptions {
18
- const sourceType: string;
18
+ let sourceType: string;
19
19
  namespace ecmaFeatures {
20
- const jsx: boolean;
20
+ let jsx: boolean;
21
21
  }
22
22
  namespace babelOptions {
23
- const plugins: string[];
23
+ let plugins: string[];
24
24
  }
25
25
  }
26
- export const settings: {
26
+ export let settings: {
27
27
  react: {
28
28
  version: string;
29
29
  };
@@ -36,11 +36,18 @@ export namespace baseConfig {
36
36
  };
37
37
  };
38
38
  };
39
- export const ignorePatterns: string[];
39
+ export let ignorePatterns: string[];
40
40
  }
41
41
  export const basePlugins: string[];
42
42
  export const baseRules: {
43
- "prettier/prettier": (string | typeof prettierOptions)[];
43
+ "prettier/prettier": (string | {
44
+ printWidth: number;
45
+ tabWidth: number;
46
+ useTabs: boolean;
47
+ semi: boolean;
48
+ singleQuote: boolean;
49
+ trailingComma: string;
50
+ })[];
44
51
  "arrow-body-style": (string | number)[];
45
52
  "class-methods-use-this": number;
46
53
  "import/imports-first": number;
@@ -127,4 +134,3 @@ export const reactRules: {
127
134
  "redux-saga/no-yield-in-race": number;
128
135
  "redux-saga/yield-effects": number;
129
136
  };
130
- import prettierOptions = require("../prettier.config.cjs");
@@ -1,7 +1,14 @@
1
1
  export const esConfig: {
2
2
  extends: string[];
3
3
  rules: {
4
- "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
4
+ "prettier/prettier": (string | {
5
+ printWidth: number;
6
+ tabWidth: number;
7
+ useTabs: boolean;
8
+ semi: boolean;
9
+ singleQuote: boolean;
10
+ trailingComma: string;
11
+ })[];
5
12
  "arrow-body-style": (string | number)[];
6
13
  "class-methods-use-this": number;
7
14
  "import/imports-first": number;
@@ -31,7 +31,14 @@ export const esReactConfig: {
31
31
  })[];
32
32
  "redux-saga/no-yield-in-race": number;
33
33
  "redux-saga/yield-effects": number;
34
- "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
34
+ "prettier/prettier": (string | {
35
+ printWidth: number;
36
+ tabWidth: number;
37
+ useTabs: boolean;
38
+ semi: boolean;
39
+ singleQuote: boolean;
40
+ trailingComma: string;
41
+ })[];
35
42
  "arrow-body-style": (string | number)[];
36
43
  "class-methods-use-this": number;
37
44
  "import/imports-first": number;
@@ -20,14 +20,14 @@ export const tsBaseRules: {
20
20
  })[];
21
21
  };
22
22
  export namespace tsBaseConfig {
23
- const files: string[];
24
- const parser: string;
25
- const plugins: string[];
23
+ let files: string[];
24
+ let parser: string;
25
+ let plugins: string[];
26
26
  namespace parserOptions {
27
- const tsconfigRootDir: string;
28
- const project: string;
27
+ let tsconfigRootDir: string;
28
+ let project: boolean;
29
29
  }
30
- const settings: {
30
+ let settings: {
31
31
  'import/resolver': {
32
32
  typescript: {
33
33
  alwaysTryTypes: boolean;
@@ -19,7 +19,14 @@ export const tsConfig: {
19
19
  '@typescript-eslint/no-floating-promises': (string | {
20
20
  ignoreIIFE: boolean;
21
21
  })[];
22
- "prettier/prettier": (string | typeof import("../../prettier.config.cjs"))[];
22
+ "prettier/prettier": (string | {
23
+ printWidth: number;
24
+ tabWidth: number;
25
+ useTabs: boolean;
26
+ semi: boolean;
27
+ singleQuote: boolean;
28
+ trailingComma: string;
29
+ })[];
23
30
  "arrow-body-style": (string | number)[];
24
31
  "class-methods-use-this": number;
25
32
  "import/imports-first": number;
@@ -75,7 +82,7 @@ export const tsConfig: {
75
82
  plugins: string[];
76
83
  parserOptions: {
77
84
  tsconfigRootDir: string;
78
- project: string;
85
+ project: boolean;
79
86
  };
80
87
  settings: {
81
88
  'import/resolver': {
@@ -50,7 +50,14 @@ export const tsReactConfig: {
50
50
  '@typescript-eslint/no-floating-promises': (string | {
51
51
  ignoreIIFE: boolean;
52
52
  })[];
53
- "prettier/prettier": (string | typeof import("../../prettier.config.cjs"))[];
53
+ "prettier/prettier": (string | {
54
+ printWidth: number;
55
+ tabWidth: number;
56
+ useTabs: boolean;
57
+ semi: boolean;
58
+ singleQuote: boolean;
59
+ trailingComma: string;
60
+ })[];
54
61
  "arrow-body-style": (string | number)[];
55
62
  "class-methods-use-this": number;
56
63
  "import/imports-first": number;
@@ -106,7 +113,7 @@ export const tsReactConfig: {
106
113
  plugins: string[];
107
114
  parserOptions: {
108
115
  tsconfigRootDir: string;
109
- project: string;
116
+ project: boolean;
110
117
  };
111
118
  settings: {
112
119
  'import/resolver': {
@@ -0,0 +1,5 @@
1
+ export const lintStagedConfig: {
2
+ '*.{js,ts,jsx,tsx,md,mdx,html,css,json}': string[];
3
+ '*.{ts,tsx}': string[];
4
+ '*.{js,ts,jsx,tsx}': string[];
5
+ };
@@ -0,0 +1,8 @@
1
+ export namespace prettierConfig {
2
+ let printWidth: number;
3
+ let tabWidth: number;
4
+ let useTabs: boolean;
5
+ let semi: boolean;
6
+ let singleQuote: boolean;
7
+ let trailingComma: string;
8
+ }
@@ -0,0 +1,13 @@
1
+ export namespace stylelintConfig {
2
+ export let ignoreFiles: string[];
3
+ let _extends: string[];
4
+ export { _extends as extends };
5
+ export let customSyntax: string;
6
+ export let rules: {
7
+ 'selector-type-no-unknown': null;
8
+ 'function-no-unknown': null;
9
+ 'value-no-vendor-prefix': boolean;
10
+ 'property-no-vendor-prefix': boolean;
11
+ 'no-empty-source': null;
12
+ };
13
+ }
@@ -0,0 +1,10 @@
1
+ declare namespace _default {
2
+ let branches: (string | {
3
+ name: string;
4
+ prerelease: boolean;
5
+ })[];
6
+ let plugins: (string | (string | {
7
+ changelogTitle: string;
8
+ })[])[];
9
+ }
10
+ export default _default;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import fs from 'node:fs';
3
3
  import { Application, Response } from 'express';
4
- type CSPConfig = {
4
+ interface CSPConfig {
5
5
  buildPath: string;
6
6
  page?: string;
7
7
  nonceRegex?: RegExp;
8
8
  res: Response<unknown, Record<string, unknown>>;
9
9
  fileSystem?: typeof fs;
10
- };
10
+ }
11
11
  export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void;
12
12
  export declare const csp: (app: Application) => void;
13
13
  export {};
@@ -1,3 +1,4 @@
1
1
  export declare const getCWD: () => string;
2
2
  export declare const port: number;
3
3
  export declare const host: string;
4
+ export declare const wsPort: number;
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import http from 'node:http';
3
+ import * as wsLib from 'ws';
4
+ export interface Servers {
5
+ httpServer: http.Server;
6
+ wsServer: wsLib.WebSocketServer;
7
+ }
8
+ export interface WSServerOptions {
9
+ port?: number;
10
+ pingInterval?: number;
11
+ onOpen?: (webSocket: wsLib.WebSocket) => void;
12
+ }
13
+ export declare const createWSServer: ({ port, pingInterval, onOpen, }: WSServerOptions) => Promise<Servers>;
@@ -0,0 +1,5 @@
1
+ export = FixJSDOMEnvironment;
2
+ declare const FixJSDOMEnvironment_base: typeof import("jest-environment-jsdom").default;
3
+ declare class FixJSDOMEnvironment extends FixJSDOMEnvironment_base {
4
+ constructor(...args: any[]);
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Result } from 'axe-core';
2
+ export declare const getMessageAndPass: (violations: Result[]) => {
3
+ message: () => string;
4
+ pass: true;
5
+ } | {
6
+ message: () => string;
7
+ pass: false;
8
+ };
@@ -0,0 +1 @@
1
+ export { toHaveNoViolations } from './toHaveNoViolations.js';
@@ -0,0 +1,2 @@
1
+ import type { Result } from 'axe-core';
2
+ export declare const reporter: (violToFormat: Result[]) => string;
@@ -0,0 +1,2 @@
1
+ import type { NodeResult, Result } from 'axe-core';
2
+ export declare const shouldIgnoreNodeViolation: (node: NodeResult, violation: Result) => boolean;
@@ -0,0 +1,12 @@
1
+ import type { AxeResults, Result } from 'axe-core';
2
+ export declare const toHaveNoViolations: {
3
+ toHaveNoViolations(results: AxeResults): {
4
+ message: () => string;
5
+ pass: true;
6
+ actual: Result[];
7
+ } | {
8
+ message: () => string;
9
+ pass: false;
10
+ actual: Result[];
11
+ };
12
+ };
@@ -0,0 +1,45 @@
1
+ export namespace jestConfig {
2
+ let collectCoverageFrom: string[];
3
+ let coverageThreshold: {};
4
+ let coverageDirectory: string;
5
+ let coverageReporters: string[];
6
+ let moduleDirectories: string[];
7
+ let moduleNameMapper: {
8
+ d3: string;
9
+ '^d3-(.*)$': string;
10
+ '.*\\webpack-hmr(.[t|j]s)?$': string;
11
+ '.*\\.(css|scss)$': string;
12
+ '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
13
+ '.*\\.svg(?:\\?[a-zA-Z]+)?$': string;
14
+ '.*\\.html(?:\\?[a-zA-Z]+)?$': string;
15
+ '@elliemae/pui-user-monitoring': string;
16
+ '@elliemae/pui-app-loader': string;
17
+ '@elliemae/pui-diagnostics': string;
18
+ 'react-spring/web': string;
19
+ 'react-spring/renderprops': string;
20
+ };
21
+ let moduleFileExtensions: string[];
22
+ let setupFilesAfterEnv: string[];
23
+ let setupFiles: string[];
24
+ let testRegex: string;
25
+ let snapshotSerializers: never[];
26
+ let testResultsProcessor: string;
27
+ let resolver: string;
28
+ let transform: {
29
+ '^.+\\.[jt]sx?$': any[];
30
+ };
31
+ let transformIgnorePatterns: string[];
32
+ namespace globals {
33
+ let APP_CONFIG: string | Buffer;
34
+ let __webpack_public_path__: string;
35
+ }
36
+ namespace testEnvironmentOptions {
37
+ let url: string;
38
+ let resources: string;
39
+ let customExportConditions: string[];
40
+ }
41
+ let testEnvironment: string;
42
+ let watchPlugins: string[];
43
+ let testTimeout: number;
44
+ let prettierPath: null;
45
+ }
@@ -9,6 +9,8 @@ export const jestNodeConfig: {
9
9
  coverageReporters: string[];
10
10
  moduleDirectories: string[];
11
11
  moduleNameMapper: {
12
+ d3: string;
13
+ '^d3-(.*)$': string;
12
14
  '.*\\webpack-hmr(.[t|j]s)?$': string;
13
15
  '.*\\.(css|scss)$': string;
14
16
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': string;
@@ -35,7 +37,9 @@ export const jestNodeConfig: {
35
37
  testEnvironmentOptions: {
36
38
  url: string;
37
39
  resources: string;
40
+ customExportConditions: string[];
38
41
  };
39
42
  watchPlugins: string[];
40
43
  testTimeout: number;
44
+ prettierPath: null;
41
45
  };
@@ -0,0 +1,17 @@
1
+ declare namespace _default {
2
+ let defaults: {};
3
+ namespace interceptors {
4
+ namespace request {
5
+ let use: jest.Mock<any, any, any>;
6
+ }
7
+ namespace response {
8
+ let use_1: jest.Mock<any, any, any>;
9
+ export { use_1 as use };
10
+ }
11
+ }
12
+ let create: jest.Mock<any, any, any>;
13
+ let get: jest.Mock<any, any, any>;
14
+ let post: jest.Mock<any, any, any>;
15
+ let put: jest.Mock<any, any, any>;
16
+ }
17
+ export default _default;
@@ -1,10 +1,10 @@
1
1
  export namespace LogLevels {
2
- const DEBUG: number;
3
- const INFO: number;
4
- const AUDIT: number;
5
- const WARN: number;
6
- const ERROR: number;
7
- const FATAL: number;
2
+ let DEBUG: number;
3
+ let INFO: number;
4
+ let AUDIT: number;
5
+ let WARN: number;
6
+ let ERROR: number;
7
+ let FATAL: number;
8
8
  }
9
9
  export function logger(): {
10
10
  setLogLevel(): void;
@@ -19,13 +19,13 @@ export function logger(): {
19
19
  fatal(): void;
20
20
  };
21
21
  export namespace LogLevel {
22
- const info: string;
23
- const debug: string;
24
- const trace: string;
25
- const warn: string;
26
- const error: string;
27
- const audit: string;
28
- const fatal: string;
22
+ let info: string;
23
+ let debug: string;
24
+ let trace: string;
25
+ let warn: string;
26
+ let error: string;
27
+ let audit: string;
28
+ let fatal: string;
29
29
  }
30
30
  export function Console(): {
31
31
  log: () => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const vitestConfig: import("vite").UserConfig;
File without changes
@@ -1,7 +1,7 @@
1
1
  export namespace TARGETS {
2
- const browserslist: string[];
3
- const web: string;
4
- const node: string;
2
+ let browserslist: string[];
3
+ let web: string;
4
+ let node: string;
5
5
  }
6
6
  export function esBuild({ srcdir, outdir, esmOnly, target, injectReactShim, skipNestedPackageJSON, }: {
7
7
  srcdir: any;
@@ -0,0 +1,3 @@
1
+ export let entryPoints: string[];
2
+ export let exclude: string[];
3
+ export let out: string;
@@ -1,13 +1,16 @@
1
1
  /// <reference types="node" />
2
+ import zlib from 'zlib';
2
3
  import CompressionPlugin from 'compression-webpack-plugin';
3
4
  import { ObjectPattern } from 'copy-webpack-plugin';
4
- import zlib from 'zlib';
5
5
  export declare const LATEST_VERSION = "latest";
6
6
  export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
7
7
  export declare const getLibraryName: () => string;
8
8
  export declare const getLibraryVariableName: () => string[];
9
9
  export declare const mapToFolder: (dependencies: string[], folder: string) => {};
10
10
  export declare const getAlias: () => {};
11
+ export declare const getLibraryAlias: (name: string, alias: string) => {
12
+ [x: string]: string;
13
+ };
11
14
  export declare const modulesToTranspile: string[];
12
15
  export declare const getAppVersion: () => string;
13
16
  export declare const getPaths: (latestVersion?: boolean) => {
@@ -2,4 +2,3 @@ import webpack, { Configuration } from 'webpack';
2
2
  export declare const webpackFinal: (config: Configuration, { configType }: {
3
3
  configType: string;
4
4
  }) => webpack.Configuration;
5
- export declare const managerWebpack: (config: Configuration) => webpack.Configuration;