@elliemae/pui-app-sdk 5.8.1 → 5.9.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.
- package/dist/cjs/utils/app-config/index.js +1 -1
- package/dist/cjs/view/fields/date-picker/index.js +2 -12
- package/dist/cjs/view/fields/toggle/index.js +0 -1
- package/dist/esm/utils/app-config/index.js +1 -1
- package/dist/esm/view/fields/date-picker/index.js +1 -1
- package/dist/esm/view/fields/toggle/index.js +0 -1
- package/dist/types/lib/analytics/index.d.ts +1 -1
- package/dist/types/lib/communication/http-client/baseQuery.d.ts +1 -1
- package/dist/types/lib/communication/http-client/index.d.ts +5 -5
- package/dist/types/lib/data/wait-message/actions.d.ts +3 -6
- package/dist/types/lib/utils/testing/render-with-redux.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +1 -1
- package/dist/types/lib/utils/testing/render-with-router.d.ts +1 -1
- package/dist/types/lib/view/fields/input-text/index.stories.d.ts +1 -2
- package/dist/types/lib/view/fields/masked-input-text/with-money-mask.stories.d.ts +1 -2
- package/dist/types/lib/view/fields/masked-input-text/with-percentage-mask.stories.d.ts +1 -2
- package/dist/types/lib/view/fields/toggle/index.d.ts +0 -1
- package/dist/types/lib/view/fields/toggle/index.stories.d.ts +1 -1
- package/dist/types/lib/view/micro-app/app-factory/index.d.ts +1 -1
- package/dist/types/lib/view/micro-app/resources/manifest.d.ts +2 -2
- package/package.json +44 -44
|
@@ -48,7 +48,7 @@ const parseAppConfig = (data) => {
|
|
|
48
48
|
(0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
|
|
49
49
|
(0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
|
|
50
50
|
};
|
|
51
|
-
const getUnVersionedPath = (path) => path.replace(
|
|
51
|
+
const getUnVersionedPath = (path) => path.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/, "latest");
|
|
52
52
|
const loadAppConfig = async (configPath = (0, import_window.getAssetPath)()) => {
|
|
53
53
|
const appConfigUrl = `${configPath.replace(/\/?$/, "/")}app.config.json`;
|
|
54
54
|
const unversionedConfigPath = getUnVersionedPath(configPath);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
var date_picker_exports = {};
|
|
30
20
|
__export(date_picker_exports, {
|
|
@@ -32,7 +22,7 @@ __export(date_picker_exports, {
|
|
|
32
22
|
});
|
|
33
23
|
module.exports = __toCommonJS(date_picker_exports);
|
|
34
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_ds_date_picker =
|
|
25
|
+
var import_ds_date_picker = require("@elliemae/ds-date-picker");
|
|
36
26
|
var import_react_hook_form = require("react-hook-form");
|
|
37
27
|
const DatePicker = ({
|
|
38
28
|
name,
|
|
@@ -45,6 +35,6 @@ const DatePicker = ({
|
|
|
45
35
|
name,
|
|
46
36
|
defaultValue,
|
|
47
37
|
rules,
|
|
48
|
-
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_date_picker.
|
|
38
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_date_picker.DSDatePicker, { ...rest, ...field })
|
|
49
39
|
}
|
|
50
40
|
);
|
|
@@ -23,7 +23,6 @@ __export(toggle_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(toggle_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
|
|
26
|
-
var import_ds_form_toggle = require("@elliemae/ds-form-toggle");
|
|
27
26
|
var import_react_hook_form = require("react-hook-form");
|
|
28
27
|
const Toggle = ({
|
|
29
28
|
name,
|
|
@@ -14,7 +14,7 @@ const parseAppConfig = (data) => {
|
|
|
14
14
|
setAppDynamicsUserData({ envName: activeEnv });
|
|
15
15
|
updateBAEventParameters({ envName: activeEnv });
|
|
16
16
|
};
|
|
17
|
-
const getUnVersionedPath = (path) => path.replace(
|
|
17
|
+
const getUnVersionedPath = (path) => path.replace(/(\d+\.\d+)(?!.*\d+\.\d+)/, "latest");
|
|
18
18
|
const loadAppConfig = async (configPath = getAssetPath()) => {
|
|
19
19
|
const appConfigUrl = `${configPath.replace(/\/?$/, "/")}app.config.json`;
|
|
20
20
|
const unversionedConfigPath = getUnVersionedPath(configPath);
|
|
@@ -4,12 +4,12 @@ export type RequestConfig = {
|
|
|
4
4
|
Authorization?: string;
|
|
5
5
|
} & AxiosRequestHeaders;
|
|
6
6
|
export declare const getHTTPClient: ({ baseURL, headers, }?: {
|
|
7
|
-
baseURL?: string
|
|
8
|
-
headers?: RequestConfig
|
|
7
|
+
baseURL?: string;
|
|
8
|
+
headers?: RequestConfig;
|
|
9
9
|
}) => AxiosInstance;
|
|
10
10
|
export declare const getAuthHTTPClient: ({ baseURL, headers, ...rest }?: {
|
|
11
|
-
baseURL?: string
|
|
12
|
-
headers?: RequestConfig
|
|
13
|
-
rest?: any[]
|
|
11
|
+
baseURL?: string;
|
|
12
|
+
headers?: RequestConfig;
|
|
13
|
+
rest?: any[];
|
|
14
14
|
}) => AxiosInstance;
|
|
15
15
|
export {};
|
|
@@ -4,11 +4,8 @@ export declare const ACTIONS: {
|
|
|
4
4
|
CLOSE: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const waitMessage: {
|
|
7
|
-
open: (message?: string) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
7
|
+
open: (message?: string) => PayloadAction<{
|
|
8
|
+
message: string;
|
|
9
|
+
}>;
|
|
13
10
|
close: () => PayloadAction<null>;
|
|
14
11
|
};
|
|
@@ -25,7 +25,7 @@ export declare const renderWithRedux: (ui: React.ReactElement, { initialState, s
|
|
|
25
25
|
container: HTMLElement;
|
|
26
26
|
baseElement: HTMLElement;
|
|
27
27
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
28
|
-
rerender: (ui: import("react").
|
|
28
|
+
rerender: (ui: import("react").ReactNode) => void;
|
|
29
29
|
unmount: () => void;
|
|
30
30
|
asFragment: () => DocumentFragment;
|
|
31
31
|
getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
@@ -28,7 +28,7 @@ export declare const renderWithRouterRedux: (ui: React.ReactElement, { route, hi
|
|
|
28
28
|
container: HTMLElement;
|
|
29
29
|
baseElement: HTMLElement;
|
|
30
30
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
31
|
-
rerender: (ui: import("react").
|
|
31
|
+
rerender: (ui: import("react").ReactNode) => void;
|
|
32
32
|
unmount: () => void;
|
|
33
33
|
asFragment: () => DocumentFragment;
|
|
34
34
|
getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
@@ -9,7 +9,7 @@ export declare const renderWithRouter: (ui: React.ReactElement, { route, history
|
|
|
9
9
|
container: HTMLElement;
|
|
10
10
|
baseElement: HTMLElement;
|
|
11
11
|
debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
|
|
12
|
-
rerender: (ui: import("react").
|
|
12
|
+
rerender: (ui: import("react").ReactNode) => void;
|
|
13
13
|
unmount: () => void;
|
|
14
14
|
asFragment: () => DocumentFragment;
|
|
15
15
|
getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/react';
|
|
2
|
-
import '@elliemae/ds-form-input-text';
|
|
3
2
|
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare const Basic: Story<{
|
|
6
5
|
name: string;
|
|
7
6
|
defaultValue?: string | undefined;
|
|
8
7
|
rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
9
|
-
} & import("@elliemae/ds-form
|
|
8
|
+
} & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
|
|
10
9
|
labelText: string;
|
|
11
10
|
}>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/react';
|
|
2
|
-
import '@elliemae/ds-form-input-text';
|
|
3
2
|
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare const WithMoneyMask: Story<{
|
|
6
5
|
name: string;
|
|
7
6
|
defaultValue?: string | undefined;
|
|
8
7
|
rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
9
|
-
} & import("@elliemae/ds-form
|
|
8
|
+
} & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
|
|
10
9
|
labelText: string;
|
|
11
10
|
}>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/react';
|
|
2
|
-
import '@elliemae/ds-form-input-text';
|
|
3
2
|
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare const WithPercentageMask: Story<{
|
|
6
5
|
name: string;
|
|
7
6
|
defaultValue?: string | undefined;
|
|
8
7
|
rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
9
|
-
} & import("@elliemae/ds-form
|
|
8
|
+
} & import("@elliemae/ds-controlled-form").DSInputTextT.Props & {
|
|
10
9
|
labelText: string;
|
|
11
10
|
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DSControlledToggleT } from '@elliemae/ds-controlled-form';
|
|
2
|
-
import '@elliemae/ds-form-toggle';
|
|
3
2
|
import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
|
|
4
3
|
export type ToggleProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
5
4
|
name: string;
|
|
@@ -5,6 +5,6 @@ export declare const Basic: Story<{
|
|
|
5
5
|
name: string;
|
|
6
6
|
defaultValue?: boolean | undefined;
|
|
7
7
|
rules?: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
8
|
-
} & Omit<import("@elliemae/ds-form
|
|
8
|
+
} & Omit<import("@elliemae/ds-controlled-form").DSControlledToggleT.Props, "onChange" | "defaultValue" | "selectedValues"> & {
|
|
9
9
|
label: string;
|
|
10
10
|
}>;
|
|
@@ -4,6 +4,6 @@ export declare const unmountApp: ({ id, name }: MicroAppConfig) => Promise<void
|
|
|
4
4
|
export declare const loadApp: (appConfig: MicroAppConfig) => Promise<void>;
|
|
5
5
|
export declare const unloadApp: ({ id, hostUrl, documentEle, }: {
|
|
6
6
|
id: string;
|
|
7
|
-
hostUrl?: string
|
|
7
|
+
hostUrl?: string;
|
|
8
8
|
documentEle: Document;
|
|
9
9
|
}) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type Manifest = Record<string, string>;
|
|
2
2
|
export declare const getAppManifest: ({ hostUrl, manifestPath, }: {
|
|
3
|
-
hostUrl?: string
|
|
4
|
-
manifestPath?: string
|
|
3
|
+
hostUrl?: string;
|
|
4
|
+
manifestPath?: string;
|
|
5
5
|
}) => Promise<Manifest>;
|
|
6
6
|
export declare const getFullFileNameofAssetsFromManifest: (manifest: Record<string, string>, assetNames?: Array<string>) => Array<string>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -111,56 +111,56 @@
|
|
|
111
111
|
"indent": 4
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@elliemae/app-react-dependencies": "^4.
|
|
115
|
-
"@elliemae/ds-backdrop": "^3.
|
|
116
|
-
"@elliemae/ds-basic": "^3.
|
|
117
|
-
"@elliemae/ds-button": "^3.
|
|
118
|
-
"@elliemae/ds-circular-progress-indicator": "^3.
|
|
119
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
120
|
-
"@elliemae/ds-date-picker": "^3.
|
|
121
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
122
|
-
"@elliemae/ds-dialog": "^3.
|
|
123
|
-
"@elliemae/ds-form": "^3.
|
|
124
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
125
|
-
"@elliemae/ds-grid": "^3.
|
|
126
|
-
"@elliemae/ds-modal": "^3.
|
|
127
|
-
"@elliemae/ds-popperjs": "^3.
|
|
128
|
-
"@elliemae/ds-toast": "^3.
|
|
129
|
-
"@elliemae/ds-utilities": "^3.
|
|
114
|
+
"@elliemae/app-react-dependencies": "^4.16.0",
|
|
115
|
+
"@elliemae/ds-backdrop": "^3.33.1",
|
|
116
|
+
"@elliemae/ds-basic": "^3.33.1",
|
|
117
|
+
"@elliemae/ds-button": "^3.33.1",
|
|
118
|
+
"@elliemae/ds-circular-progress-indicator": "^3.33.1",
|
|
119
|
+
"@elliemae/ds-controlled-form": "^3.33.1",
|
|
120
|
+
"@elliemae/ds-date-picker": "^3.33.1",
|
|
121
|
+
"@elliemae/ds-date-range-picker": "^3.33.1",
|
|
122
|
+
"@elliemae/ds-dialog": "^3.33.1",
|
|
123
|
+
"@elliemae/ds-form": "^3.33.1",
|
|
124
|
+
"@elliemae/ds-form-layout-blocks": "^3.33.1",
|
|
125
|
+
"@elliemae/ds-grid": "^3.33.1",
|
|
126
|
+
"@elliemae/ds-modal": "^3.33.1",
|
|
127
|
+
"@elliemae/ds-popperjs": "^3.33.1",
|
|
128
|
+
"@elliemae/ds-toast": "^3.33.1",
|
|
129
|
+
"@elliemae/ds-utilities": "^3.33.1",
|
|
130
130
|
"@elliemae/em-ssf-guest": "^1.11.3",
|
|
131
|
-
"@elliemae/pui-diagnostics": "^3.
|
|
131
|
+
"@elliemae/pui-diagnostics": "^3.5.1",
|
|
132
132
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
133
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
134
|
-
"@elliemae/pui-theme": "^2.
|
|
135
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
133
|
+
"@elliemae/pui-scripting-object": "^1.36.0",
|
|
134
|
+
"@elliemae/pui-theme": "^2.9.3",
|
|
135
|
+
"@elliemae/pui-user-monitoring": "^1.23.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@elliemae/app-react-dependencies": "~4.
|
|
139
|
-
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.
|
|
140
|
-
"@elliemae/ds-backdrop": "~3.
|
|
141
|
-
"@elliemae/ds-basic": "~3.
|
|
142
|
-
"@elliemae/ds-button": "~3.
|
|
143
|
-
"@elliemae/ds-circular-progress-indicator": "~3.
|
|
144
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
145
|
-
"@elliemae/ds-date-picker": "~3.
|
|
146
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
147
|
-
"@elliemae/ds-dialog": "~3.
|
|
148
|
-
"@elliemae/ds-form": "~3.
|
|
149
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
150
|
-
"@elliemae/ds-grid": "~3.
|
|
151
|
-
"@elliemae/ds-modal": "~3.
|
|
152
|
-
"@elliemae/ds-popperjs": "~3.
|
|
153
|
-
"@elliemae/ds-toast": "~3.
|
|
154
|
-
"@elliemae/ds-utilities": "~3.
|
|
138
|
+
"@elliemae/app-react-dependencies": "~4.16.0",
|
|
139
|
+
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.9.0",
|
|
140
|
+
"@elliemae/ds-backdrop": "~3.33.1",
|
|
141
|
+
"@elliemae/ds-basic": "~3.33.1",
|
|
142
|
+
"@elliemae/ds-button": "~3.33.1",
|
|
143
|
+
"@elliemae/ds-circular-progress-indicator": "~3.33.1",
|
|
144
|
+
"@elliemae/ds-controlled-form": "~3.33.1",
|
|
145
|
+
"@elliemae/ds-date-picker": "~3.33.1",
|
|
146
|
+
"@elliemae/ds-date-range-picker": "~3.33.1",
|
|
147
|
+
"@elliemae/ds-dialog": "~3.33.1",
|
|
148
|
+
"@elliemae/ds-form": "~3.33.1",
|
|
149
|
+
"@elliemae/ds-form-layout-blocks": "~3.33.1",
|
|
150
|
+
"@elliemae/ds-grid": "~3.33.1",
|
|
151
|
+
"@elliemae/ds-modal": "~3.33.1",
|
|
152
|
+
"@elliemae/ds-popperjs": "~3.33.1",
|
|
153
|
+
"@elliemae/ds-toast": "~3.33.1",
|
|
154
|
+
"@elliemae/ds-utilities": "~3.33.1",
|
|
155
155
|
"@elliemae/em-ssf-guest": "~1.11.3",
|
|
156
|
-
"@elliemae/pui-cli": "~8.
|
|
157
|
-
"@elliemae/pui-diagnostics": "~3.
|
|
156
|
+
"@elliemae/pui-cli": "~8.33.0",
|
|
157
|
+
"@elliemae/pui-diagnostics": "~3.5.1",
|
|
158
158
|
"@elliemae/pui-doc-gen": "~1.9.0",
|
|
159
159
|
"@elliemae/pui-e2e-test-sdk": "~8.1.4",
|
|
160
160
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
161
|
-
"@elliemae/pui-scripting-object": "~1.
|
|
162
|
-
"@elliemae/pui-theme": "~2.
|
|
163
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
164
|
-
"@types/react-aria-live": "~2.0.
|
|
161
|
+
"@elliemae/pui-scripting-object": "~1.36.0",
|
|
162
|
+
"@elliemae/pui-theme": "~2.9.3",
|
|
163
|
+
"@elliemae/pui-user-monitoring": "~1.23.0",
|
|
164
|
+
"@types/react-aria-live": "~2.0.6"
|
|
165
165
|
}
|
|
166
166
|
}
|