@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.
- package/README.md +8 -0
- package/dist/cjs/api/helpers.js +14 -4
- package/dist/cjs/data/auth/reducer.js +2 -12
- package/dist/cjs/data/breakpoint/index.js +2 -12
- package/dist/cjs/data/wait-message/reducer.js +2 -12
- package/dist/cjs/utils/session.js +13 -3
- package/dist/cjs/utils/storybook/main.js +63 -0
- package/dist/cjs/utils/storybook/manager.js +2 -2
- package/dist/cjs/utils/storybook/middleware.js +27 -0
- package/dist/cjs/utils/storybook/preview.js +9 -3
- package/dist/cjs/utils/storybook/theme.js +5 -8
- package/dist/cjs/utils/storybook/vite.js +33 -0
- package/dist/cjs/utils/storybook/webpack.js +42 -0
- package/dist/cjs/view/fetch-host-app-data/store.js +12 -2
- package/dist/cjs/view/fields/autocomplete/index.js +2 -0
- package/dist/cjs/view/micro-app/use-app-will-render.js +12 -2
- package/dist/cjs/view/storybook/decorator.js +1 -1
- package/dist/esm/data/auth/reducer.js +1 -1
- package/dist/esm/data/breakpoint/index.js +1 -1
- package/dist/esm/data/wait-message/reducer.js +1 -1
- package/dist/esm/utils/storybook/main.js +33 -0
- package/dist/esm/utils/storybook/manager.js +2 -2
- package/dist/esm/utils/storybook/middleware.js +7 -0
- package/dist/esm/utils/storybook/preview.js +9 -3
- package/dist/esm/utils/storybook/theme.js +5 -8
- package/dist/esm/utils/storybook/vite.js +13 -0
- package/dist/esm/utils/storybook/webpack.js +22 -0
- package/dist/esm/view/fields/autocomplete/index.js +2 -0
- package/dist/esm/view/storybook/decorator.js +1 -1
- package/dist/types/lib/utils/storybook/main.d.ts +2 -0
- package/dist/types/lib/utils/storybook/manager.d.ts +2 -1
- package/dist/types/lib/utils/storybook/middleware.d.ts +1 -0
- package/dist/types/lib/utils/storybook/preview.d.ts +5 -29
- package/dist/types/lib/utils/storybook/theme.d.ts +2 -5
- package/dist/types/lib/utils/storybook/vite.d.ts +10 -0
- package/dist/types/lib/utils/storybook/webpack.d.ts +17 -0
- package/dist/types/lib/utils/testing/render-with-state-addons.d.ts +1 -1
- package/dist/types/lib/view/app-root/hosted-app.d.ts +1 -1
- package/dist/types/lib/view/app-root/index.d.ts +1 -1
- package/dist/types/lib/view/app-root/stand-alone-app.d.ts +1 -1
- package/dist/types/lib/view/app-router.d.ts +1 -1
- package/dist/types/lib/view/breakpoint/index.stories.d.ts +6 -3
- package/dist/types/lib/view/error-boundary/default-error-template.d.ts +1 -1
- package/dist/types/lib/view/error-boundary/index.d.ts +1 -1
- package/dist/types/lib/view/error-toast/index.d.ts +1 -2
- package/dist/types/lib/view/error-toast/index.stories.d.ts +12 -5
- package/dist/types/lib/view/fields/autocomplete/advanced-autocomplete.stories.d.ts +8 -4
- package/dist/types/lib/view/fields/autocomplete/async-suggestions-autocomplete.stories.d.ts +8 -4
- package/dist/types/lib/view/fields/autocomplete/index.d.ts +1 -1
- package/dist/types/lib/view/fields/autocomplete/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/check-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/check-box/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/check-box/set-value.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/combo-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/combo-box-v3/index.d.ts +1 -1
- package/dist/types/lib/view/fields/combo-box-v3/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/connect-form.d.ts +1 -0
- package/dist/types/lib/view/fields/date-input/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-input/index.stories.d.ts +8 -7
- package/dist/types/lib/view/fields/date-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-picker/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/date-range-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-range-picker/index.stories.d.ts +8 -7
- package/dist/types/lib/view/fields/date-time-picker/index.d.ts +1 -1
- package/dist/types/lib/view/fields/date-time-picker/index.stories.d.ts +19 -39
- package/dist/types/lib/view/fields/form-item-layout/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-item-layout/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/form-layout-block-item/index.d.ts +1 -1
- package/dist/types/lib/view/fields/form-layout-block-item/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/input-mask/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-mask/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/input-text/index.d.ts +1 -1
- package/dist/types/lib/view/fields/input-text/index.stories.d.ts +8 -10
- package/dist/types/lib/view/fields/large-text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/large-text-box/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/masked-input-text/index.d.ts +1 -1
- package/dist/types/lib/view/fields/masked-input-text/index.stories.d.ts +10 -0
- package/dist/types/lib/view/fields/radio/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/radio/set-value.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/radio-group/index.d.ts +1 -1
- package/dist/types/lib/view/fields/radio-group/index.stories.d.ts +8 -5
- package/dist/types/lib/view/fields/text-box/index.d.ts +1 -1
- package/dist/types/lib/view/fields/text-box/index.stories.d.ts +8 -7
- package/dist/types/lib/view/fields/toggle/index.d.ts +1 -1
- package/dist/types/lib/view/fields/toggle/index.stories.d.ts +8 -11
- package/dist/types/lib/view/fields/watch-value.d.ts +1 -1
- package/dist/types/lib/view/form/index.d.ts +1 -1
- package/dist/types/lib/view/form/index.stories.d.ts +7 -3
- package/dist/types/lib/view/form/personal-info-section.d.ts +3 -3
- package/dist/types/lib/view/form/submit-button/index.d.ts +1 -1
- package/dist/types/lib/view/form/usecases.stories.d.ts +9 -12
- package/dist/types/lib/view/live-message/index.d.ts +1 -1
- package/dist/types/lib/view/live-message/index.stories.d.ts +6 -4
- package/dist/types/lib/view/loadable/index.d.ts +1 -1
- package/dist/types/lib/view/login/index.d.ts +1 -1
- package/dist/types/lib/view/modals/error/index.d.ts +1 -1
- package/dist/types/lib/view/modals/error/index.stories.d.ts +9 -6
- package/dist/types/lib/view/modals/navigation-prompt/index.stories.d.ts +9 -10
- package/dist/types/lib/view/modals/session-expiry/index.stories.d.ts +10 -6
- package/dist/types/lib/view/page.d.ts +1 -1
- package/dist/types/lib/view/render-with-host-data/index.d.ts +1 -1
- package/dist/types/lib/view/require-auth.d.ts +1 -1
- package/dist/types/lib/view/session-timeout/index.d.ts +1 -1
- package/dist/types/lib/view/session-timeout/index.stories.d.ts +8 -4
- package/dist/types/lib/view/storybook/decorator.d.ts +1 -1
- package/dist/types/lib/view/wait-message/index.stories.d.ts +11 -9
- package/package.json +40 -35
- package/dist/cjs/utils/storybook/cjs/main.js +0 -56
- package/dist/cjs/utils/storybook/cjs/middleware.js +0 -6
- package/dist/cjs/utils/storybook/cjs/vite.js +0 -8
- package/dist/cjs/utils/storybook/cjs/webpack.js +0 -20
- package/dist/types/lib/utils/storybook/cjs/main.d.ts +0 -65
- package/dist/types/lib/utils/storybook/cjs/middleware.d.ts +0 -2
- package/dist/types/lib/utils/storybook/cjs/vite.d.ts +0 -5
- package/dist/types/lib/utils/storybook/cjs/webpack.d.ts +0 -17
- package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +0 -11
- 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,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,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
|
-
}>;
|