@elliemae/ds-toast 3.70.0-next.7 → 3.70.0-next.71
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/index.js.map +2 -2
- package/dist/cjs/package.json +1 -4
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/package.json +1 -4
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/types/constants.d.ts +4 -4
- package/dist/types/parts/CloseButton.d.ts +2 -1
- package/dist/types/parts/DSToastContent.d.ts +1 -1
- package/package.json +13 -14
- package/dist/types/tests/toast-axe.test.d.ts +0 -1
- package/dist/types/tests/toast-render.test.d.ts +0 -1
- package/dist/types/typescript-testing/typescript-toast-valid.d.ts +0 -1
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["export { DSToast, DSToastWithSchema } from './parts/DSToast.js';\nexport { toast } from './toast.js';\nexport { ToastType, toastTypes, ToastPosition, toastsPositions } from './constants.js';\nexport { DSToastAction, DSToastActionWithSchema } from './parts/DSToastAction.js';\nexport { DSToastActionLink, DSToastActionLinkWithSchema } from './parts/DSToastActionLink.js';\nexport { DSToastContent, DSToastContentWithSchema } from './parts/DSToastContent.js';\nexport {\n DSToastName,\n DSToastActionName,\n DSToastActionLinkName,\n DSToastSlots,\n DSToastActionSlots,\n DSToastActionLinkSlots,\n DSToastDataTestIds,\n DSToastActionDataTestIds,\n DSToastActionLinkDataTestIds,\n} from './DSToastDefinitions.js';\nexport type { DSToastT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAA2C;AAC3C,mBAAsB;AACtB,uBAAsE;AACtE,2BAAuD;AACvD,+BAA+D;AAC/D,4BAAyD;AACzD,gCAUO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import type React from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { toastsPositions, toastTypes } from './constants.js';\nimport { DSToastName, DSToastSlots } from './DSToastDefinitions.js';\n\nexport declare namespace DSToastT {\n type PropsT<D, R, O, E> = Partial<D> &\n R &\n O &\n Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> &\n Omit<XstyledProps, keyof D | keyof R | keyof O>;\n\n type InternalPropsT<D, R, O, E> = D &\n R &\n O &\n Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> &\n Omit<XstyledProps, keyof D | keyof R | keyof O>;\n\n export type ToastPositions = (typeof toastsPositions)[number];\n\n export type ToastTypes = (typeof toastTypes)[number];\n\n export interface DefaultProps {\n containerProps: Record<string, unknown>;\n position: ToastPositions;\n autoClose: number;\n showProgressBar: boolean;\n closeOnClick: boolean;\n enableMultiContainer: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSToastName,\n typeof DSToastSlots\n > {\n containerId?: string | number;\n closeButtonRef?: React.MutableRefObject<HTMLButtonElement | null> | ((node: HTMLButtonElement | null) => void);\n }\n\n export interface RequiredProps {}\n\n export type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n\n export type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n\n export interface ActionDefaultProps {}\n\n export interface ActionOptionalProps {\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n }\n\n export interface ActionRequiredProps {\n children: React.ReactNode;\n }\n\n export type ActionProps = PropsT<ActionDefaultProps, ActionRequiredProps, ActionOptionalProps, HTMLDivElement>;\n\n export type ActionInternalProps = InternalPropsT<\n ActionDefaultProps,\n ActionRequiredProps,\n ActionOptionalProps,\n HTMLDivElement\n >;\n}\n\nexport const defaultProps: DSToastT.DefaultProps = {\n containerProps: {},\n position: 'bottom-left',\n autoClose: 5000,\n showProgressBar: false,\n closeOnClick: false,\n enableMultiContainer: false,\n};\n\nexport const actionDefaultProps: DSToastT.ActionDefaultProps = {};\n\n// =============================================================================\n// PropTypes\n// =============================================================================\nexport const DSToastPropTypes = {\n /** inject props to wrapper */\n containerProps: PropTypes.object.description('inject props to wrapper').defaultValue({}),\n /** Position on the screen to show the toast */\n position: PropTypes.oneOf(toastsPositions as unknown as string[])\n .description('Position on the screen to show the toast')\n .defaultValue('bottom-left'),\n /** ms to autoclose the toast */\n autoClose: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf([false])])\n .description(\"ms to autoclose the toast, false if you don't want to automatically close\")\n .defaultValue(5000),\n /** Whether to show a progress bar indicating when the toast is going to be closed */\n showProgressBar: PropTypes.bool\n .description('Whether to show a progress bar indicating when the toast is going to be closed')\n .defaultValue(false),\n /** Close toast handler */\n closeOnClick: PropTypes.bool.description('Close toast handler').defaultValue(false),\n /** Allows instantiating multiple Toast containers */\n enableMultiContainer: PropTypes.bool\n .description('Allows instantiating multiple Toast containers')\n .defaultValue(false),\n /** unique id for multi container */\n containerId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('unique id for multi container'),\n ...getPropsPerSlotPropTypes(DSToastName, DSToastSlots),\n closeButtonRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description('Close button ref'),\n} as WeakValidationMap<unknown>;\n\nexport const DSToastActionLinkPropTypes = {\n /** link text */\n children: PropTypes.node.isRequired.description('link text'),\n} as React.WeakValidationMap<unknown>;\n\nexport const DSToastActionPropsTypes = {\n /** DSToastActionLink component or text string */\n children: PropTypes.node.description('DSToastActionLink component or text string'),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n} as React.WeakValidationMap<unknown>;\n\nexport const DSToastContentPropTypes = {\n /** Type of toast */\n type: PropTypes.oneOf(toastTypes as unknown as string[])\n .description('Type of toast')\n .defaultValue('default'),\n /** Toast message title */\n messageTitle: PropTypes.string.description('Toast message title').defaultValue(''),\n /** Toast message text */\n messageText: PropTypes.string.description('Toast message text').defaultValue(''),\n /** Toast message component */\n messageComponent: PropTypes.node.description('Toast message component'),\n} as React.WeakValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AAAA,EAEnD,WAAW,kCAAU,KAAK,YAAY,kBAAkB;AAC1D;AAEO,MAAM,0BAA0B;AAAA;AAAA,EAErC,MAAM,kCAAU,MAAM,2BAAiC,EACpD,YAAY,eAAe,EAC3B,aAAa,SAAS;AAAA;AAAA,EAEzB,cAAc,kCAAU,OAAO,YAAY,qBAAqB,EAAE,aAAa,EAAE;AAAA;AAAA,EAEjF,aAAa,kCAAU,OAAO,YAAY,oBAAoB,EAAE,aAAa,EAAE;AAAA;AAAA,EAE/E,kBAAkB,kCAAU,KAAK,YAAY,yBAAyB;AACxE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSToast, DSToastWithSchema } from './parts/DSToast.js';\nexport { toast } from './toast.js';\nexport { ToastType, toastTypes, ToastPosition, toastsPositions } from './constants.js';\nexport { DSToastAction, DSToastActionWithSchema } from './parts/DSToastAction.js';\nexport { DSToastActionLink, DSToastActionLinkWithSchema } from './parts/DSToastActionLink.js';\nexport { DSToastContent, DSToastContentWithSchema } from './parts/DSToastContent.js';\nexport {\n DSToastName,\n DSToastActionName,\n DSToastActionLinkName,\n DSToastSlots,\n DSToastActionSlots,\n DSToastActionLinkSlots,\n DSToastDataTestIds,\n DSToastActionDataTestIds,\n DSToastActionLinkDataTestIds,\n} from './DSToastDefinitions.js';\nexport type { DSToastT } from './react-desc-prop-types.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,SAAS,yBAAyB;AAC3C,SAAS,aAAa;AACtB,SAAS,WAAW,YAAY,eAAe,uBAAuB;AACtE,SAAS,eAAe,+BAA+B;AACvD,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,gBAAgB,gCAAgC;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { toastsPositions, toastTypes } from './constants.js';\nimport { DSToastName, DSToastSlots } from './DSToastDefinitions.js';\n\nexport declare namespace DSToastT {\n type PropsT<D, R, O, E> = Partial<D> &\n R &\n O &\n Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> &\n Omit<XstyledProps, keyof D | keyof R | keyof O>;\n\n type InternalPropsT<D, R, O, E> = D &\n R &\n O &\n Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> &\n Omit<XstyledProps, keyof D | keyof R | keyof O>;\n\n export type ToastPositions = (typeof toastsPositions)[number];\n\n export type ToastTypes = (typeof toastTypes)[number];\n\n export interface DefaultProps {\n containerProps: Record<string, unknown>;\n position: ToastPositions;\n autoClose: number;\n showProgressBar: boolean;\n closeOnClick: boolean;\n enableMultiContainer: boolean;\n }\n\n export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<\n typeof DSToastName,\n typeof DSToastSlots\n > {\n containerId?: string | number;\n closeButtonRef?: React.MutableRefObject<HTMLButtonElement | null> | ((node: HTMLButtonElement | null) => void);\n }\n\n export interface RequiredProps {}\n\n export type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n\n export type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n\n export interface ActionDefaultProps {}\n\n export interface ActionOptionalProps {\n onClick?: React.MouseEventHandler;\n onKeyDown?: React.KeyboardEventHandler;\n }\n\n export interface ActionRequiredProps {\n children: React.ReactNode;\n }\n\n export type ActionProps = PropsT<ActionDefaultProps, ActionRequiredProps, ActionOptionalProps, HTMLDivElement>;\n\n export type ActionInternalProps = InternalPropsT<\n ActionDefaultProps,\n ActionRequiredProps,\n ActionOptionalProps,\n HTMLDivElement\n >;\n}\n\nexport const defaultProps: DSToastT.DefaultProps = {\n containerProps: {},\n position: 'bottom-left',\n autoClose: 5000,\n showProgressBar: false,\n closeOnClick: false,\n enableMultiContainer: false,\n};\n\nexport const actionDefaultProps: DSToastT.ActionDefaultProps = {};\n\n// =============================================================================\n// PropTypes\n// =============================================================================\nexport const DSToastPropTypes = {\n /** inject props to wrapper */\n containerProps: PropTypes.object.description('inject props to wrapper').defaultValue({}),\n /** Position on the screen to show the toast */\n position: PropTypes.oneOf(toastsPositions as unknown as string[])\n .description('Position on the screen to show the toast')\n .defaultValue('bottom-left'),\n /** ms to autoclose the toast */\n autoClose: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf([false])])\n .description(\"ms to autoclose the toast, false if you don't want to automatically close\")\n .defaultValue(5000),\n /** Whether to show a progress bar indicating when the toast is going to be closed */\n showProgressBar: PropTypes.bool\n .description('Whether to show a progress bar indicating when the toast is going to be closed')\n .defaultValue(false),\n /** Close toast handler */\n closeOnClick: PropTypes.bool.description('Close toast handler').defaultValue(false),\n /** Allows instantiating multiple Toast containers */\n enableMultiContainer: PropTypes.bool\n .description('Allows instantiating multiple Toast containers')\n .defaultValue(false),\n /** unique id for multi container */\n containerId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('unique id for multi container'),\n ...getPropsPerSlotPropTypes(DSToastName, DSToastSlots),\n closeButtonRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description('Close button ref'),\n} as WeakValidationMap<unknown>;\n\nexport const DSToastActionLinkPropTypes = {\n /** link text */\n children: PropTypes.node.isRequired.description('link text'),\n} as React.WeakValidationMap<unknown>;\n\nexport const DSToastActionPropsTypes = {\n /** DSToastActionLink component or text string */\n children: PropTypes.node.description('DSToastActionLink component or text string'),\n /** click handler */\n onClick: PropTypes.func.description('click handler'),\n /** key down handler */\n onKeyDown: PropTypes.func.description('key down handler'),\n} as React.WeakValidationMap<unknown>;\n\nexport const DSToastContentPropTypes = {\n /** Type of toast */\n type: PropTypes.oneOf(toastTypes as unknown as string[])\n .description('Type of toast')\n .defaultValue('default'),\n /** Toast message title */\n messageTitle: PropTypes.string.description('Toast message title').defaultValue(''),\n /** Toast message text */\n messageText: PropTypes.string.description('Toast message text').defaultValue(''),\n /** Toast message component */\n messageComponent: PropTypes.node.description('Toast message component'),\n} as React.WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,gCAAgC;AAEpD,SAAS,iBAAiB,kBAAkB;AAC5C,SAAS,aAAa,oBAAoB;AA+DnC,MAAM,eAAsC;AAAA,EACjD,gBAAgB,CAAC;AAAA,EACjB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,sBAAsB;AACxB;AAEO,MAAM,qBAAkD,CAAC;AAKzD,MAAM,mBAAmB;AAAA;AAAA,EAE9B,gBAAgB,UAAU,OAAO,YAAY,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAAA;AAAA,EAEvF,UAAU,UAAU,MAAM,eAAsC,EAC7D,Y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 export declare const ToastType: {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const toastTypes: readonly ["info", "success", "warning", "error", "default"];
|
|
18
18
|
export declare const TYPE_TO_ICON: {
|
|
19
|
-
readonly success: (props: import("@elliemae/ds-icons").SvgIconT.Props) =>
|
|
20
|
-
readonly warning: (props: import("@elliemae/ds-icons").SvgIconT.Props) =>
|
|
21
|
-
readonly info: (rest: import("@elliemae/ds-icons").SvgIconT.Props) => import("react
|
|
22
|
-
readonly error: (props: import("@elliemae/ds-icons").SvgIconT.Props) =>
|
|
19
|
+
readonly success: (props: import("@elliemae/ds-icons").SvgIconT.Props) => React.JSX.Element;
|
|
20
|
+
readonly warning: (props: import("@elliemae/ds-icons").SvgIconT.Props) => React.JSX.Element;
|
|
21
|
+
readonly info: (rest: import("@elliemae/ds-icons").SvgIconT.Props) => import("react").JSX.Element;
|
|
22
|
+
readonly error: (props: import("@elliemae/ds-icons").SvgIconT.Props) => React.JSX.Element;
|
|
23
23
|
readonly default: () => null;
|
|
24
24
|
};
|
|
25
25
|
export declare const TYPE_TO_ICON_COLOR: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DSToastT } from '../react-desc-prop-types.js';
|
|
2
3
|
interface CloseButtonProps {
|
|
3
4
|
closeToast: () => void;
|
|
4
5
|
}
|
|
5
6
|
export declare const CloseButton: ({ closeButtonRef }: {
|
|
6
7
|
closeButtonRef: DSToastT.Props["closeButtonRef"];
|
|
7
|
-
}) => ({ closeToast }: CloseButtonProps) =>
|
|
8
|
+
}) => ({ closeToast }: CloseButtonProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SvgIconT } from '@elliemae/ds-icons';
|
|
3
3
|
import { type DSToastT } from '../react-desc-prop-types.js';
|
|
4
|
-
export declare const getIconByToastType: (type: DSToastT.ToastTypes) => ((props: SvgIconT.Props) =>
|
|
4
|
+
export declare const getIconByToastType: (type: DSToastT.ToastTypes) => ((props: SvgIconT.Props) => React.JSX.Element) | ((props: SvgIconT.Props) => React.JSX.Element) | ((rest: import("@elliemae/ds-icons").SvgIconT.Props) => import("react").JSX.Element) | ((props: SvgIconT.Props) => React.JSX.Element) | (() => null);
|
|
5
5
|
export declare const getIconColorByToastType: (type: DSToastT.ToastTypes) => SvgIconT.ColorType;
|
|
6
6
|
export interface DSToastContentProps {
|
|
7
7
|
type?: DSToastT.ToastTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-toast",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Toast",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"pnpm": ">=9",
|
|
@@ -36,25 +36,24 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xstyled/system": "~3.8.1",
|
|
40
39
|
"react-toastify": "~6.2.0",
|
|
41
|
-
"@elliemae/ds-button-v2": "3.70.0-next.
|
|
42
|
-
"@elliemae/ds-icons": "3.70.0-next.
|
|
43
|
-
"@elliemae/ds-
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
40
|
+
"@elliemae/ds-button-v2": "3.70.0-next.71",
|
|
41
|
+
"@elliemae/ds-icons": "3.70.0-next.71",
|
|
42
|
+
"@elliemae/ds-typescript-helpers": "3.70.0-next.71",
|
|
43
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.71",
|
|
44
|
+
"@elliemae/ds-system": "3.70.0-next.71"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"jest": "^30.0.0",
|
|
49
|
-
"styled-components": "~5.3.
|
|
50
|
-
"@elliemae/ds-
|
|
51
|
-
"@elliemae/ds-
|
|
48
|
+
"styled-components": "~5.3.11",
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.71",
|
|
50
|
+
"@elliemae/ds-test-utils": "3.70.0-next.71"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
|
-
"lodash-es": "^4.
|
|
53
|
+
"lodash-es": "^4.18.1",
|
|
55
54
|
"react": "^18.3.1",
|
|
56
55
|
"react-dom": "^18.3.1",
|
|
57
|
-
"styled-components": "~5.3.
|
|
56
|
+
"styled-components": "~5.3.11"
|
|
58
57
|
},
|
|
59
58
|
"publishConfig": {
|
|
60
59
|
"access": "public",
|
|
@@ -69,4 +68,4 @@
|
|
|
69
68
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
70
69
|
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
71
70
|
}
|
|
72
|
-
}
|
|
71
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|