@elliemae/ds-read-more 3.52.1 → 3.53.0-alpha.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/dist/cjs/DSReadMore.js +19 -12
- package/dist/cjs/DSReadMore.js.map +2 -2
- package/dist/cjs/MoreLessButton.js +26 -28
- package/dist/cjs/MoreLessButton.js.map +2 -2
- package/dist/cjs/{DSReadMoreDefinitions.js → constants/index.js} +13 -8
- package/dist/cjs/constants/index.js.map +7 -0
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +3 -2
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styled.js +16 -34
- package/dist/cjs/styled.js.map +2 -2
- package/dist/cjs/useReadMoreTruncate.js +36 -38
- package/dist/cjs/useReadMoreTruncate.js.map +2 -2
- package/dist/esm/DSReadMore.js +17 -10
- package/dist/esm/DSReadMore.js.map +2 -2
- package/dist/esm/MoreLessButton.js +26 -28
- package/dist/esm/MoreLessButton.js.map +2 -2
- package/dist/esm/{DSReadMoreDefinitions.js → constants/index.js} +10 -5
- package/dist/esm/constants/index.js.map +7 -0
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +3 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styled.js +15 -33
- package/dist/esm/styled.js.map +2 -2
- package/dist/esm/useReadMoreTruncate.js +36 -38
- package/dist/esm/useReadMoreTruncate.js.map +2 -2
- package/dist/types/MoreLessButton.d.ts +0 -1
- package/dist/types/constants/index.d.ts +33 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/react-desc-prop-types.d.ts +5 -4
- package/dist/types/styled.d.ts +6 -8
- package/dist/types/tests/DSReadMore.PUI-14965.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.a11y.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.data-testid.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.default-props.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.events.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.exports.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.get-owner-props.test.d.ts +1 -0
- package/dist/types/tests/DSReadMore.keyboard.test.d.ts +1 -0
- package/dist/types/tests/playwright/DSReadMore.ControlledTestRenderer.d.ts +1 -0
- package/dist/types/tests/playwright/DSReadMore.test.playwright.d.ts +1 -0
- package/dist/types/useOnElementResize.d.ts +1 -1
- package/dist/types/useReadMoreTruncate.d.ts +1 -1
- package/package.json +10 -8
- package/dist/cjs/DSReadMoreDefinitions.js.map +0 -7
- package/dist/esm/DSReadMoreDefinitions.js.map +0 -7
- package/dist/types/DSReadMoreDefinitions.d.ts +0 -12
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
3
|
+
import { DSReadMoreName, READ_MORE_SLOTS } from './constants/index.js';
|
|
3
4
|
export declare namespace DSReadMoreT {
|
|
4
5
|
type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
|
|
5
6
|
type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
|
|
@@ -12,7 +13,7 @@ export declare namespace DSReadMoreT {
|
|
|
12
13
|
ellipsis: string;
|
|
13
14
|
withTooltip: boolean;
|
|
14
15
|
}
|
|
15
|
-
export interface OptionalProps {
|
|
16
|
+
export interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSReadMoreName, typeof READ_MORE_SLOTS> {
|
|
16
17
|
}
|
|
17
18
|
export interface RequiredProps {
|
|
18
19
|
content: string;
|
|
@@ -23,4 +24,4 @@ export declare namespace DSReadMoreT {
|
|
|
23
24
|
}
|
|
24
25
|
export declare const defaultProps: DSReadMoreT.DefaultProps;
|
|
25
26
|
export declare const DSReadMorePropTypes: DSPropTypesSchema<DSReadMoreT.Props>;
|
|
26
|
-
export declare const DSReadMorePropTypesSchema:
|
|
27
|
+
export declare const DSReadMorePropTypesSchema: ValidationMap<DSReadMoreT.Props>;
|
package/dist/types/styled.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledTextWrapper: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, {
|
|
3
2
|
lines: number;
|
|
4
3
|
expanded: boolean;
|
|
5
4
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
6
|
-
export declare const StyledTextContent: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme,
|
|
7
|
-
|
|
5
|
+
export declare const StyledTextContent: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
6
|
+
export declare const StyledTooltipWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
7
|
+
export declare const StyledButtonWrapper: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, {
|
|
8
8
|
expanded: boolean;
|
|
9
9
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
withTooltip?: boolean | undefined;
|
|
14
|
-
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>>, never>;
|
|
10
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV3T.Props>, import("@elliemae/ds-system").Theme, {
|
|
11
|
+
withTooltip?: boolean;
|
|
12
|
+
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV3T.Props>>, never>;
|
|
15
13
|
export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ControlledTestRenderer: import("react").FunctionComponent<import("react").JSX.IntrinsicAttributes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export declare const useOnElementResize: <T extends HTMLElement>(targetRef: React.RefObject<T>) => Record<
|
|
2
|
+
export declare const useOnElementResize: <T extends HTMLElement>(targetRef: React.RefObject<T>) => Record<"width" | "height", number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DSReadMoreT } from './react-desc-prop-types.js';
|
|
3
|
-
export declare const useReadMoreTruncate: ({ lines, content }: Pick<DSReadMoreT.InternalProps,
|
|
3
|
+
export declare const useReadMoreTruncate: ({ lines, content }: Pick<DSReadMoreT.InternalProps, "lines" | "content">) => {
|
|
4
4
|
textWrapperRef: React.RefObject<HTMLSpanElement>;
|
|
5
5
|
textRef: React.RefObject<HTMLSpanElement>;
|
|
6
6
|
showButton: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-read-more",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.53.0-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Read More",
|
|
6
6
|
"files": [
|
|
@@ -36,16 +36,18 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-props-helpers": "3.
|
|
42
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-accessibility": "3.53.0-alpha.2",
|
|
40
|
+
"@elliemae/ds-button-v2": "3.53.0-alpha.2",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.53.0-alpha.2",
|
|
42
|
+
"@elliemae/ds-system": "3.53.0-alpha.2",
|
|
43
|
+
"@elliemae/ds-tooltip-v3": "3.53.0-alpha.2"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@elliemae/pui-cli": "9.0.0-next.
|
|
46
|
+
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
46
47
|
"jest": "~29.7.0",
|
|
47
48
|
"styled-components": "~5.3.9",
|
|
48
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.53.0-alpha.2",
|
|
50
|
+
"@elliemae/ds-test-utils": "3.53.0-alpha.2"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|
|
51
53
|
"lodash-es": "^4.17.21",
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
},
|
|
60
62
|
"scripts": {
|
|
61
63
|
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
62
|
-
"test": "pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
64
|
+
"test": "playwright test -c ./playwright.config.mjs && pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
63
65
|
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
64
66
|
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
65
67
|
"dts": "node ../../../scripts/dts.mjs",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/DSReadMoreDefinitions.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { omit } from 'lodash-es';\nimport { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSReadMoreName = 'DSReadmore';\n\nexport const DSReadMoreSlots = {\n ROOT: 'root',\n TEXT_CONTENT: 'text-content',\n TOOLTIP_WRAPPER: 'tooltip-wrapper',\n BUTTON_WRAPPER: 'button-wrapper',\n BUTTON: 'button',\n};\n\nexport const DSReadMoreDataTestIds = {\n ...omit(slotObjectToDataTestIds(DSReadMoreName, DSReadMoreSlots), 'BUTTON'),\n READ_MORE_BUTTON: 'ds-read_more-button',\n READ_MORE_TOOLTIP_BUTTON: 'ds-read_more-tooltip-button',\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAqB;AACrB,uBAAwC;AAEjC,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,QAAQ;AACV;AAEO,MAAM,wBAAwB;AAAA,EACnC,OAAG,2BAAK,0CAAwB,gBAAgB,eAAe,GAAG,QAAQ;AAAA,EAC1E,kBAAkB;AAAA,EAClB,0BAA0B;AAC5B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSReadMoreDefinitions.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { omit } from 'lodash-es';\nimport { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSReadMoreName = 'DSReadmore';\n\nexport const DSReadMoreSlots = {\n ROOT: 'root',\n TEXT_CONTENT: 'text-content',\n TOOLTIP_WRAPPER: 'tooltip-wrapper',\n BUTTON_WRAPPER: 'button-wrapper',\n BUTTON: 'button',\n};\n\nexport const DSReadMoreDataTestIds = {\n ...omit(slotObjectToDataTestIds(DSReadMoreName, DSReadMoreSlots), 'BUTTON'),\n READ_MORE_BUTTON: 'ds-read_more-button',\n READ_MORE_TOOLTIP_BUTTON: 'ds-read_more-tooltip-button',\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,YAAY;AACrB,SAAS,+BAA+B;AAEjC,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,QAAQ;AACV;AAEO,MAAM,wBAAwB;AAAA,EACnC,GAAG,KAAK,wBAAwB,gBAAgB,eAAe,GAAG,QAAQ;AAAA,EAC1E,kBAAkB;AAAA,EAClB,0BAA0B;AAC5B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const DSReadMoreName = "DSReadmore";
|
|
2
|
-
export declare const DSReadMoreSlots: {
|
|
3
|
-
ROOT: string;
|
|
4
|
-
TEXT_CONTENT: string;
|
|
5
|
-
TOOLTIP_WRAPPER: string;
|
|
6
|
-
BUTTON_WRAPPER: string;
|
|
7
|
-
BUTTON: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const DSReadMoreDataTestIds: {
|
|
10
|
-
READ_MORE_BUTTON: string;
|
|
11
|
-
READ_MORE_TOOLTIP_BUTTON: string;
|
|
12
|
-
};
|