@elliemae/pui-app-sdk 5.3.2 → 6.0.0-next.2

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 (119) hide show
  1. package/README.md +8 -0
  2. package/dist/cjs/api/helpers.js +14 -4
  3. package/dist/cjs/data/auth/reducer.js +2 -12
  4. package/dist/cjs/data/breakpoint/index.js +2 -12
  5. package/dist/cjs/data/wait-message/reducer.js +2 -12
  6. package/dist/cjs/utils/session.js +13 -3
  7. package/dist/cjs/utils/storybook/main.js +63 -0
  8. package/dist/cjs/utils/storybook/manager.js +2 -2
  9. package/dist/cjs/utils/storybook/middleware.js +27 -0
  10. package/dist/cjs/utils/storybook/preview.js +9 -3
  11. package/dist/cjs/utils/storybook/theme.js +5 -8
  12. package/dist/cjs/utils/storybook/vite.js +33 -0
  13. package/dist/cjs/utils/storybook/webpack.js +42 -0
  14. package/dist/cjs/view/fetch-host-app-data/store.js +12 -2
  15. package/dist/cjs/view/fields/autocomplete/index.js +2 -0
  16. package/dist/cjs/view/micro-app/use-app-will-render.js +12 -2
  17. package/dist/cjs/view/storybook/decorator.js +1 -1
  18. package/dist/esm/data/auth/reducer.js +1 -1
  19. package/dist/esm/data/breakpoint/index.js +1 -1
  20. package/dist/esm/data/wait-message/reducer.js +1 -1
  21. package/dist/esm/utils/storybook/main.js +33 -0
  22. package/dist/esm/utils/storybook/manager.js +2 -2
  23. package/dist/esm/utils/storybook/middleware.js +7 -0
  24. package/dist/esm/utils/storybook/preview.js +9 -3
  25. package/dist/esm/utils/storybook/theme.js +5 -8
  26. package/dist/esm/utils/storybook/vite.js +13 -0
  27. package/dist/esm/utils/storybook/webpack.js +22 -0
  28. package/dist/esm/view/fields/autocomplete/index.js +2 -0
  29. package/dist/esm/view/storybook/decorator.js +1 -1
  30. package/dist/types/lib/utils/storybook/main.d.ts +2 -0
  31. package/dist/types/lib/utils/storybook/manager.d.ts +2 -1
  32. package/dist/types/lib/utils/storybook/middleware.d.ts +1 -0
  33. package/dist/types/lib/utils/storybook/preview.d.ts +5 -29
  34. package/dist/types/lib/utils/storybook/theme.d.ts +2 -5
  35. package/dist/types/lib/utils/storybook/vite.d.ts +10 -0
  36. package/dist/types/lib/utils/storybook/webpack.d.ts +17 -0
  37. package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +1 -1
  38. package/dist/types/lib/view/app-root/hosted-app.d.ts +1 -1
  39. package/dist/types/lib/view/app-root/index.d.ts +1 -1
  40. package/dist/types/lib/view/app-root/stand-alone-app.d.ts +1 -1
  41. package/dist/types/lib/view/app-router.d.ts +1 -1
  42. package/dist/types/lib/view/breakpoint/index.stories.d.ts +6 -3
  43. package/dist/types/lib/view/error-boundary/default-error-template.d.ts +1 -1
  44. package/dist/types/lib/view/error-boundary/index.d.ts +1 -1
  45. package/dist/types/lib/view/error-toast/index.d.ts +1 -2
  46. package/dist/types/lib/view/error-toast/index.stories.d.ts +12 -5
  47. package/dist/types/lib/view/fields/autocomplete/advanced-autocomplete.stories.d.ts +8 -4
  48. package/dist/types/lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.d.ts +8 -4
  49. package/dist/types/lib/view/fields/autocomplete/index.d.ts +1 -1
  50. package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +8 -5
  51. package/dist/types/lib/view/fields/check-box/index.d.ts +1 -1
  52. package/dist/types/lib/view/fields/check-box/index.stories.d.ts +8 -5
  53. package/dist/types/lib/view/fields/check-box/set-value.stories.d.ts +8 -5
  54. package/dist/types/lib/view/fields/combo-box/index.d.ts +1 -1
  55. package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +8 -5
  56. package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +1 -1
  57. package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +8 -5
  58. package/dist/types/lib/view/fields/connect-form.d.ts +1 -0
  59. package/dist/types/lib/view/fields/date-input/index.d.ts +1 -1
  60. package/dist/types/lib/view/fields/date-input/index.stories.d.ts +8 -7
  61. package/dist/types/lib/view/fields/date-picker/index.d.ts +1 -1
  62. package/dist/types/lib/view/fields/date-picker/index.stories.d.ts +8 -5
  63. package/dist/types/lib/view/fields/date-range-picker/index.d.ts +1 -1
  64. package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +8 -7
  65. package/dist/types/lib/view/fields/date-time-picker/index.d.ts +1 -1
  66. package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +19 -39
  67. package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
  68. package/dist/types/lib/view/fields/form-item-layout/index.stories.d.ts +8 -5
  69. package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
  70. package/dist/types/lib/view/fields/form-layout-block-item/index.stories.d.ts +8 -5
  71. package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
  72. package/dist/types/lib/view/fields/input-mask/index.stories.d.ts +8 -5
  73. package/dist/types/lib/view/fields/input-text/index.d.ts +1 -1
  74. package/dist/types/lib/view/fields/input-text/index.stories.d.ts +8 -10
  75. package/dist/types/lib/view/fields/large-text-box/index.d.ts +1 -1
  76. package/dist/types/lib/view/fields/large-text-box/index.stories.d.ts +8 -5
  77. package/dist/types/lib/view/fields/masked-input-text/index.d.ts +1 -1
  78. package/dist/types/lib/view/fields/masked-input-text/index.stories.d.ts +10 -0
  79. package/dist/types/lib/view/fields/radio/index.d.ts +1 -1
  80. package/dist/types/lib/view/fields/radio/index.stories.d.ts +8 -5
  81. package/dist/types/lib/view/fields/radio/set-value.stories.d.ts +8 -5
  82. package/dist/types/lib/view/fields/radio-group/index.d.ts +1 -1
  83. package/dist/types/lib/view/fields/radio-group/index.stories.d.ts +8 -5
  84. package/dist/types/lib/view/fields/text-box/index.d.ts +1 -1
  85. package/dist/types/lib/view/fields/text-box/index.stories.d.ts +8 -7
  86. package/dist/types/lib/view/fields/toggle/index.d.ts +1 -1
  87. package/dist/types/lib/view/fields/toggle/index.stories.d.ts +8 -11
  88. package/dist/types/lib/view/fields/watch-value.d.ts +1 -1
  89. package/dist/types/lib/view/form/index.d.ts +1 -1
  90. package/dist/types/lib/view/form/index.stories.d.ts +7 -3
  91. package/dist/types/lib/view/form/personal-info-section.d.ts +3 -3
  92. package/dist/types/lib/view/form/submit-button/index.d.ts +1 -1
  93. package/dist/types/lib/view/form/usecases.stories.d.ts +9 -12
  94. package/dist/types/lib/view/live-message/index.d.ts +1 -1
  95. package/dist/types/lib/view/live-message/index.stories.d.ts +6 -4
  96. package/dist/types/lib/view/loadable/index.d.ts +1 -1
  97. package/dist/types/lib/view/login/index.d.ts +1 -1
  98. package/dist/types/lib/view/modals/error/index.d.ts +1 -1
  99. package/dist/types/lib/view/modals/error/index.stories.d.ts +9 -6
  100. package/dist/types/lib/view/modals/navigation-prompt/index.stories.d.ts +9 -10
  101. package/dist/types/lib/view/modals/session-expiry/index.stories.d.ts +10 -6
  102. package/dist/types/lib/view/page.d.ts +1 -1
  103. package/dist/types/lib/view/render-with-host-data/index.d.ts +1 -1
  104. package/dist/types/lib/view/require-auth.d.ts +1 -1
  105. package/dist/types/lib/view/session-timeout/index.d.ts +1 -1
  106. package/dist/types/lib/view/session-timeout/index.stories.d.ts +8 -4
  107. package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
  108. package/dist/types/lib/view/wait-message/index.stories.d.ts +11 -9
  109. package/package.json +40 -35
  110. package/dist/cjs/utils/storybook/cjs/main.js +0 -56
  111. package/dist/cjs/utils/storybook/cjs/middleware.js +0 -6
  112. package/dist/cjs/utils/storybook/cjs/vite.js +0 -8
  113. package/dist/cjs/utils/storybook/cjs/webpack.js +0 -20
  114. package/dist/types/lib/utils/storybook/cjs/main.d.ts +0 -65
  115. package/dist/types/lib/utils/storybook/cjs/middleware.d.ts +0 -2
  116. package/dist/types/lib/utils/storybook/cjs/vite.d.ts +0 -5
  117. package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +0 -17
  118. package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +0 -11
  119. package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +0 -11
@@ -1,56 +0,0 @@
1
- "use strict";
2
- const { mergeWith, isArray } = require("lodash");
3
- const webpackConfig = require("./webpack.js");
4
- const viteConfig = require("./vite.js");
5
- const customizer = (objValue, srcValue) => {
6
- if (isArray(objValue)) {
7
- return objValue.concat(srcValue);
8
- }
9
- };
10
- const baseConfig = {
11
- addons: [
12
- {
13
- name: "@storybook/addon-docs",
14
- options: {
15
- sourceLoaderOptions: {
16
- injectStoryParameters: false
17
- }
18
- }
19
- },
20
- { name: "@storybook/addon-essentials", options: { docs: false } },
21
- "@storybook/addon-storysource",
22
- "@storybook/addon-links",
23
- "@storybook/addon-events",
24
- "@storybook/addon-interactions",
25
- "@storybook/addon-a11y"
26
- ],
27
- framework: "@storybook/react",
28
- features: {
29
- fastRefresh: true,
30
- storyStoreV7: true
31
- // babelModeV7: true,
32
- },
33
- reactOptions: {
34
- fastRefresh: true,
35
- strictMode: true
36
- },
37
- typescript: {
38
- check: false,
39
- checkOptions: {},
40
- // reactDocgen: 'react-docgen-typescript', // ToDo: remove this once this plugin supports TS v5
41
- reactDocgen: false,
42
- reactDocgenTypescriptOptions: {
43
- shouldExtractLiteralValuesFromEnum: true,
44
- propFilter: (prop) => prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
45
- compilerOptions: {
46
- allowSyntheticDefaultImports: false,
47
- esModuleInterop: false
48
- }
49
- }
50
- }
51
- };
52
- module.exports = (viteBuilder = false) => {
53
- const config = viteBuilder ? viteConfig : webpackConfig;
54
- console.log("using", viteBuilder ? "vite" : "webpack", "builder config");
55
- return mergeWith(baseConfig, config, customizer);
56
- };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- const { loadRoutes } = require("@elliemae/pui-cli/server/routes");
3
- const expressMiddleWare = (router) => {
4
- loadRoutes(router);
5
- };
6
- module.exports = expressMiddleWare;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- stories: ["../@(lib|app)/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
4
- core: {
5
- builder: "storybook-builder-vite",
6
- disableTelemetry: true
7
- }
8
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
- const { webpackFinal, managerWebpack } = require("@elliemae/pui-cli/storybook");
3
- module.exports = {
4
- stories: [{ directory: "../lib" }],
5
- addons: [
6
- {
7
- name: "storybook-addon-turbo-build",
8
- options: {
9
- optimizationLevel: 2,
10
- esbuildMinifyOptions: { target: "es2020" }
11
- }
12
- }
13
- ],
14
- managerWebpack,
15
- webpackFinal,
16
- core: {
17
- builder: "webpack5",
18
- disableTelemetry: true
19
- }
20
- };
@@ -1,65 +0,0 @@
1
- declare function _exports(viteBuilder?: boolean): {
2
- addons: (string | {
3
- name: string;
4
- options: {
5
- sourceLoaderOptions: {
6
- injectStoryParameters: boolean;
7
- };
8
- docs?: undefined;
9
- };
10
- } | {
11
- name: string;
12
- options: {
13
- docs: boolean;
14
- sourceLoaderOptions?: undefined;
15
- };
16
- })[];
17
- framework: string;
18
- features: {
19
- fastRefresh: boolean;
20
- storyStoreV7: boolean;
21
- };
22
- reactOptions: {
23
- fastRefresh: boolean;
24
- strictMode: boolean;
25
- };
26
- typescript: {
27
- check: boolean;
28
- checkOptions: {};
29
- reactDocgen: boolean;
30
- reactDocgenTypescriptOptions: {
31
- shouldExtractLiteralValuesFromEnum: boolean;
32
- propFilter: (prop: any) => boolean;
33
- compilerOptions: {
34
- allowSyntheticDefaultImports: boolean;
35
- esModuleInterop: boolean;
36
- };
37
- };
38
- };
39
- } & ({
40
- stories: string[];
41
- core: {
42
- builder: string;
43
- disableTelemetry: boolean;
44
- };
45
- } | {
46
- stories: {
47
- directory: string;
48
- }[];
49
- addons: {
50
- name: string;
51
- options: {
52
- optimizationLevel: number;
53
- esbuildMinifyOptions: {
54
- target: string;
55
- };
56
- };
57
- }[];
58
- managerWebpack: any;
59
- webpackFinal: any;
60
- core: {
61
- builder: string;
62
- disableTelemetry: boolean;
63
- };
64
- });
65
- export = _exports;
@@ -1,2 +0,0 @@
1
- export = expressMiddleWare;
2
- declare function expressMiddleWare(router: any): void;
@@ -1,5 +0,0 @@
1
- export const stories: string[];
2
- export namespace core {
3
- const builder: string;
4
- const disableTelemetry: boolean;
5
- }
@@ -1,17 +0,0 @@
1
- export declare const stories: {
2
- directory: string;
3
- }[];
4
- export declare const addons: {
5
- name: string;
6
- options: {
7
- optimizationLevel: number;
8
- esbuildMinifyOptions: {
9
- target: string;
10
- };
11
- };
12
- }[];
13
- export declare namespace core {
14
- const builder: string;
15
- const disableTelemetry: boolean;
16
- }
17
- export { managerWebpack, webpackFinal };
@@ -1,11 +0,0 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import '@elliemae/ds-form-input-text';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const WithMoneyMask: Story<{
6
- name: string;
7
- defaultValue?: string | undefined;
8
- rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
9
- } & import("@elliemae/ds-form-input-text/dist/types/react-desc-prop-types.js").DSInputTextT.Props & {
10
- labelText: string;
11
- }>;
@@ -1,11 +0,0 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import '@elliemae/ds-form-input-text';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const WithPercentageMask: Story<{
6
- name: string;
7
- defaultValue?: string | undefined;
8
- rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
9
- } & import("@elliemae/ds-form-input-text/dist/types/react-desc-prop-types.js").DSInputTextT.Props & {
10
- labelText: string;
11
- }>;