@instructure/ui-truncate-text 11.7.4-snapshot-14 → 11.7.4-snapshot-50
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/CHANGELOG.md +1 -1
- package/LICENSE.md +1 -0
- package/es/TruncateText/v1/index.js +5 -5
- package/es/TruncateText/v1/utils/truncate.js +3 -3
- package/es/TruncateText/v2/index.js +4 -4
- package/es/TruncateText/v2/utils/truncate.js +3 -3
- package/es/exports/a.js +1 -1
- package/es/exports/b.js +1 -1
- package/lib/TruncateText/v1/index.js +5 -5
- package/lib/TruncateText/v1/utils/truncate.js +3 -3
- package/lib/TruncateText/v2/index.js +4 -4
- package/lib/TruncateText/v2/utils/truncate.js +3 -3
- package/lib/exports/a.js +2 -2
- package/lib/exports/b.js +2 -2
- package/package.json +13 -13
- package/src/TruncateText/v1/index.tsx +5 -4
- package/src/TruncateText/v1/utils/truncate.ts +4 -4
- package/src/TruncateText/v2/index.tsx +4 -3
- package/src/TruncateText/v2/utils/truncate.ts +4 -4
- package/src/exports/a.ts +1 -1
- package/src/exports/b.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TruncateText/v1/index.d.ts +3 -2
- package/types/TruncateText/v1/index.d.ts.map +1 -1
- package/types/TruncateText/v1/utils/truncate.d.ts +1 -1
- package/types/TruncateText/v1/utils/truncate.d.ts.map +1 -1
- package/types/TruncateText/v2/index.d.ts +3 -2
- package/types/TruncateText/v2/index.d.ts.map +1 -1
- package/types/TruncateText/v2/utils/truncate.d.ts +1 -1
- package/types/TruncateText/v2/utils/truncate.d.ts.map +1 -1
- package/types/exports/a.d.ts +1 -1
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +1 -1
- package/types/exports/b.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-50](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-50) (2026-06-18)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
package/LICENSE.md
CHANGED
|
@@ -29,10 +29,10 @@ import { canUseDOM, getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
|
29
29
|
import { safeCloneElement, ensureSingleChild } from '@instructure/ui-react-utils';
|
|
30
30
|
import { logError as error } from '@instructure/console';
|
|
31
31
|
import { withStyle } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import generateComponentTheme from
|
|
34
|
-
import truncate from
|
|
35
|
-
import { allowedProps } from
|
|
32
|
+
import generateStyle from './styles.js';
|
|
33
|
+
import generateComponentTheme from './theme.js';
|
|
34
|
+
import truncate from './utils/truncate.js';
|
|
35
|
+
import { allowedProps } from './props.js';
|
|
36
36
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
37
37
|
/**
|
|
38
38
|
---
|
|
@@ -40,7 +40,7 @@ category: components
|
|
|
40
40
|
---
|
|
41
41
|
**/
|
|
42
42
|
let TruncateText = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class TruncateText extends Component {
|
|
43
|
-
static displayName =
|
|
43
|
+
static displayName = 'TruncateText';
|
|
44
44
|
static componentId = 'TruncateText';
|
|
45
45
|
static allowedProps = allowedProps;
|
|
46
46
|
static defaultProps = {
|
|
@@ -26,9 +26,9 @@ import escapeHtml from 'escape-html';
|
|
|
26
26
|
import { cloneArray } from '@instructure/ui-utils';
|
|
27
27
|
import { logError as error } from '@instructure/console';
|
|
28
28
|
import { getCSSStyleDeclaration, getBoundingClientRect, isVisible } from '@instructure/ui-dom-utils';
|
|
29
|
-
import measureText from
|
|
30
|
-
import cleanString from
|
|
31
|
-
import cleanData from
|
|
29
|
+
import measureText from './measureText.js';
|
|
30
|
+
import cleanString from './cleanString.js';
|
|
31
|
+
import cleanData from './cleanData.js';
|
|
32
32
|
/**
|
|
33
33
|
* ---
|
|
34
34
|
* parent: TruncateText
|
|
@@ -29,9 +29,9 @@ import { canUseDOM, getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
|
29
29
|
import { safeCloneElement, ensureSingleChild } from '@instructure/ui-react-utils';
|
|
30
30
|
import { logError as error } from '@instructure/console';
|
|
31
31
|
import { withStyleNew } from '@instructure/emotion';
|
|
32
|
-
import generateStyle from
|
|
33
|
-
import truncate from
|
|
34
|
-
import { allowedProps } from
|
|
32
|
+
import generateStyle from './styles.js';
|
|
33
|
+
import truncate from './utils/truncate.js';
|
|
34
|
+
import { allowedProps } from './props.js';
|
|
35
35
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
@@ -39,7 +39,7 @@ category: components
|
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
41
|
let TruncateText = (_dec = withStyleNew(generateStyle), _dec(_class = class TruncateText extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'TruncateText';
|
|
43
43
|
static componentId = 'TruncateText';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
|
@@ -26,9 +26,9 @@ import escapeHtml from 'escape-html';
|
|
|
26
26
|
import { cloneArray } from '@instructure/ui-utils';
|
|
27
27
|
import { logError as error } from '@instructure/console';
|
|
28
28
|
import { getCSSStyleDeclaration, getBoundingClientRect, isVisible } from '@instructure/ui-dom-utils';
|
|
29
|
-
import measureText from
|
|
30
|
-
import cleanString from
|
|
31
|
-
import cleanData from
|
|
29
|
+
import measureText from './measureText.js';
|
|
30
|
+
import cleanString from './cleanString.js';
|
|
31
|
+
import cleanData from './cleanData.js';
|
|
32
32
|
/**
|
|
33
33
|
* ---
|
|
34
34
|
* parent: TruncateText
|
package/es/exports/a.js
CHANGED
package/es/exports/b.js
CHANGED
|
@@ -13,10 +13,10 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
13
13
|
var _ensureSingleChild = require("@instructure/ui-react-utils/lib/ensureSingleChild.js");
|
|
14
14
|
var _console = require("@instructure/console");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
17
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
18
|
-
var _truncate = _interopRequireDefault(require("./utils/truncate"));
|
|
19
|
-
var _props = require("./props");
|
|
16
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
17
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
18
|
+
var _truncate = _interopRequireDefault(require("./utils/truncate.js"));
|
|
19
|
+
var _props = require("./props.js");
|
|
20
20
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
21
21
|
var _dec, _class;
|
|
22
22
|
/*
|
|
@@ -48,7 +48,7 @@ category: components
|
|
|
48
48
|
---
|
|
49
49
|
**/
|
|
50
50
|
let TruncateText = exports.TruncateText = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class TruncateText extends _react.Component {
|
|
51
|
-
static displayName =
|
|
51
|
+
static displayName = 'TruncateText';
|
|
52
52
|
static componentId = 'TruncateText';
|
|
53
53
|
static allowedProps = _props.allowedProps;
|
|
54
54
|
static defaultProps = {
|
|
@@ -11,9 +11,9 @@ var _console = require("@instructure/console");
|
|
|
11
11
|
var _getCSSStyleDeclaration = require("@instructure/ui-dom-utils/lib/getCSSStyleDeclaration.js");
|
|
12
12
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
13
13
|
var _isVisible = require("@instructure/ui-dom-utils/lib/isVisible.js");
|
|
14
|
-
var _measureText = _interopRequireDefault(require("./measureText"));
|
|
15
|
-
var _cleanString = _interopRequireDefault(require("./cleanString"));
|
|
16
|
-
var _cleanData = _interopRequireDefault(require("./cleanData"));
|
|
14
|
+
var _measureText = _interopRequireDefault(require("./measureText.js"));
|
|
15
|
+
var _cleanString = _interopRequireDefault(require("./cleanString.js"));
|
|
16
|
+
var _cleanData = _interopRequireDefault(require("./cleanData.js"));
|
|
17
17
|
/*
|
|
18
18
|
* The MIT License (MIT)
|
|
19
19
|
*
|
|
@@ -13,9 +13,9 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
13
13
|
var _ensureSingleChild = require("@instructure/ui-react-utils/lib/ensureSingleChild.js");
|
|
14
14
|
var _console = require("@instructure/console");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
17
|
-
var _truncate = _interopRequireDefault(require("./utils/truncate"));
|
|
18
|
-
var _props = require("./props");
|
|
16
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
17
|
+
var _truncate = _interopRequireDefault(require("./utils/truncate.js"));
|
|
18
|
+
var _props = require("./props.js");
|
|
19
19
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
20
20
|
var _dec, _class;
|
|
21
21
|
/*
|
|
@@ -47,7 +47,7 @@ category: components
|
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
49
|
let TruncateText = exports.TruncateText = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class TruncateText extends _react.Component {
|
|
50
|
-
static displayName =
|
|
50
|
+
static displayName = 'TruncateText';
|
|
51
51
|
static componentId = 'TruncateText';
|
|
52
52
|
static allowedProps = _props.allowedProps;
|
|
53
53
|
static defaultProps = {
|
|
@@ -11,9 +11,9 @@ var _console = require("@instructure/console");
|
|
|
11
11
|
var _getCSSStyleDeclaration = require("@instructure/ui-dom-utils/lib/getCSSStyleDeclaration.js");
|
|
12
12
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
13
13
|
var _isVisible = require("@instructure/ui-dom-utils/lib/isVisible.js");
|
|
14
|
-
var _measureText = _interopRequireDefault(require("./measureText"));
|
|
15
|
-
var _cleanString = _interopRequireDefault(require("./cleanString"));
|
|
16
|
-
var _cleanData = _interopRequireDefault(require("./cleanData"));
|
|
14
|
+
var _measureText = _interopRequireDefault(require("./measureText.js"));
|
|
15
|
+
var _cleanString = _interopRequireDefault(require("./cleanString.js"));
|
|
16
|
+
var _cleanData = _interopRequireDefault(require("./cleanData.js"));
|
|
17
17
|
/*
|
|
18
18
|
* The MIT License (MIT)
|
|
19
19
|
*
|
package/lib/exports/a.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "TruncateText", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.TruncateText;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _index = require("../TruncateText/v1/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "TruncateText", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.TruncateText;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _index = require("../TruncateText/v2/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-truncate-text",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-50",
|
|
4
4
|
"description": "A TruncateText component made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
18
|
"escape-html": "^1.0.3",
|
|
19
|
-
"@instructure/console": "11.7.4-snapshot-
|
|
20
|
-
"@instructure/debounce": "11.7.4-snapshot-
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-react-utils": "11.7.4-snapshot-
|
|
25
|
-
"@instructure/ui-themes": "11.7.4-snapshot-
|
|
26
|
-
"@instructure/ui-utils": "11.7.4-snapshot-
|
|
19
|
+
"@instructure/console": "11.7.4-snapshot-50",
|
|
20
|
+
"@instructure/debounce": "11.7.4-snapshot-50",
|
|
21
|
+
"@instructure/ui-dom-utils": "11.7.4-snapshot-50",
|
|
22
|
+
"@instructure/shared-types": "11.7.4-snapshot-50",
|
|
23
|
+
"@instructure/emotion": "11.7.4-snapshot-50",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-50",
|
|
25
|
+
"@instructure/ui-themes": "11.7.4-snapshot-50",
|
|
26
|
+
"@instructure/ui-utils": "11.7.4-snapshot-50"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
|
30
30
|
"@testing-library/react": "15.0.7",
|
|
31
31
|
"@types/escape-html": "^1.0.4",
|
|
32
32
|
"vitest": "^3.2.2",
|
|
33
|
-
"@instructure/ui-
|
|
34
|
-
"@instructure/ui-
|
|
35
|
-
"@instructure/ui-color-utils": "11.7.4-snapshot-
|
|
36
|
-
"@instructure/ui-text": "11.7.4-snapshot-
|
|
33
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-50",
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-50",
|
|
35
|
+
"@instructure/ui-color-utils": "11.7.4-snapshot-50",
|
|
36
|
+
"@instructure/ui-text": "11.7.4-snapshot-50"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18 <=19"
|
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
import { logError as error } from '@instructure/console'
|
|
35
35
|
import { withStyle } from '@instructure/emotion'
|
|
36
36
|
|
|
37
|
-
import generateStyle from './styles'
|
|
38
|
-
import generateComponentTheme from './theme'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
|
+
import generateComponentTheme from './theme.js'
|
|
39
39
|
|
|
40
|
-
import truncate from './utils/truncate'
|
|
41
|
-
import { allowedProps, TruncateTextState } from './props'
|
|
40
|
+
import truncate from './utils/truncate.js'
|
|
41
|
+
import { allowedProps, TruncateTextState } from './props.js'
|
|
42
42
|
import type { TruncateTextProps } from './props'
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -48,6 +48,7 @@ category: components
|
|
|
48
48
|
**/
|
|
49
49
|
@withStyle(generateStyle, generateComponentTheme)
|
|
50
50
|
class TruncateText extends Component<TruncateTextProps, TruncateTextState> {
|
|
51
|
+
static displayName = 'TruncateText'
|
|
51
52
|
static readonly componentId = 'TruncateText'
|
|
52
53
|
|
|
53
54
|
static allowedProps = allowedProps
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
isVisible
|
|
33
33
|
} from '@instructure/ui-dom-utils'
|
|
34
34
|
|
|
35
|
-
import measureText from './measureText'
|
|
36
|
-
import cleanString from './cleanString'
|
|
37
|
-
import cleanData from './cleanData'
|
|
38
|
-
import { TruncateTextCommonProps } from '../props'
|
|
35
|
+
import measureText from './measureText.js'
|
|
36
|
+
import cleanString from './cleanString.js'
|
|
37
|
+
import cleanData from './cleanData.js'
|
|
38
|
+
import { TruncateTextCommonProps } from '../props.js'
|
|
39
39
|
|
|
40
40
|
export type TruncatorOptions = {
|
|
41
41
|
parent?: Node
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
import { logError as error } from '@instructure/console'
|
|
35
35
|
import { withStyleNew } from '@instructure/emotion'
|
|
36
36
|
|
|
37
|
-
import generateStyle from './styles'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
38
|
|
|
39
|
-
import truncate from './utils/truncate'
|
|
40
|
-
import { allowedProps, TruncateTextState } from './props'
|
|
39
|
+
import truncate from './utils/truncate.js'
|
|
40
|
+
import { allowedProps, TruncateTextState } from './props.js'
|
|
41
41
|
import type { TruncateTextProps } from './props'
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -47,6 +47,7 @@ category: components
|
|
|
47
47
|
**/
|
|
48
48
|
@withStyleNew(generateStyle)
|
|
49
49
|
class TruncateText extends Component<TruncateTextProps, TruncateTextState> {
|
|
50
|
+
static displayName = 'TruncateText'
|
|
50
51
|
static readonly componentId = 'TruncateText'
|
|
51
52
|
|
|
52
53
|
static allowedProps = allowedProps
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
isVisible
|
|
33
33
|
} from '@instructure/ui-dom-utils'
|
|
34
34
|
|
|
35
|
-
import measureText from './measureText'
|
|
36
|
-
import cleanString from './cleanString'
|
|
37
|
-
import cleanData from './cleanData'
|
|
38
|
-
import { TruncateTextCommonProps } from '../props'
|
|
35
|
+
import measureText from './measureText.js'
|
|
36
|
+
import cleanString from './cleanString.js'
|
|
37
|
+
import cleanData from './cleanData.js'
|
|
38
|
+
import { TruncateTextCommonProps } from '../props.js'
|
|
39
39
|
|
|
40
40
|
export type TruncatorOptions = {
|
|
41
41
|
parent?: Node
|
package/src/exports/a.ts
CHANGED
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
export { TruncateText } from '../TruncateText/v1'
|
|
24
|
+
export { TruncateText } from '../TruncateText/v1/index.js'
|
|
25
25
|
export type { TruncateTextProps } from '../TruncateText/v1/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
export { TruncateText } from '../TruncateText/v2'
|
|
24
|
+
export { TruncateText } from '../TruncateText/v2/index.js'
|
|
25
25
|
export type { TruncateTextProps } from '../TruncateText/v2/props'
|