Skip to contentSkip to navigationSkip to topbar
Paste DSys

Truncate

Version 15.0.1GithubDesign assets pendingPeer review pending

Truncate is a wrapper that shortens a string of text that overflows a defined area.

Change Log

15.0.1

Patch Changes

  • 262c1b715 #4281 Thanks @PixeledCode! - [all packages]: add use client directive to the components and icons. This will make paste library compatible with server components

15.0.0

Major Changes

  • f48211e56 #4258 Thanks @PixeledCode! - [all packages]: Upgrade to React 19 and drop support for React 16. Paste only supports the three latest versions of React. If you're using Paste in a React 17, 18, or 19 app, you should be able to upgrade with full backwards compatibility. If you experience any issues, please let us know on Github.

Patch Changes

14.1.1

Patch Changes

14.1.0

Minor Changes

  • b8d79200b #3442 Thanks @TheSisb! - Removed all run-time prop-type checkingfrom Paste components. Paste now ships with only TypeScript types.

    ACTION NEEDED: None. This should be 100% backwards compatible.

14.0.0

Major Changes

  • 733709127 #3395 Thanks @SiTaggart! - Modified the compile target of our JavaScript bundles from node to browser to minimize the risk of clashing with RequireJS. This is marked as a major out of an abundance of caution. You shouldn't need to do anything but we wanted you to be aware of the change on the off chance it has unintended consequences

Patch Changes

13.0.1

Patch Changes

  • 4d1f7c65e #3360 Thanks @SiTaggart! - Improved types where Paste extends the base HTML element that a component is based on, so that the existing blocked styling properties are not exposed as valid properties for the component via Typescript. This leads to less confusion around what is supported by a Paste component.

    Existing blocked component properties include:

    • className
    • style
    • color

13.0.0

Major Changes

  • 3ab2bb6f4 #3114 Thanks @SiTaggart! - ### Breaking change

    We have moved @types/react and @types/react-dom to peer dependencies of the library. This should allow for greater control and backwards compatibility with older versions of React as Paste is no longer bundling the type libraries.

    Your application likely has both of these as dependencies anyway, but it is now up to you to manage that version number.

    Action needed

    Ensure @types/react and @types/react-dom are installed as dependencies of your application.

Patch Changes

12.0.0

Major Changes

  • d97098846 #3020 Thanks @SiTaggart! - This major version included listing all the missing peer dependencies for each Paste package.

    If you are using a package from Paste in isolation from Core, when upgrading to this latest version, be sure to correctly install all the missing peer dependencies.

Patch Changes

11.0.2

Patch Changes

11.0.1

Patch Changes

11.0.0

Patch Changes

10.0.2

Patch Changes

10.0.1

Patch Changes

  • ae9dd50f #2466 Thanks @TheSisb! - [All packages] Update our ESBuild version and remove minification of identifiers in our production builds.

10.0.0

Patch Changes

9.0.0

Patch Changes

8.0.2

Patch Changes

  • 73c596919 #2269 Thanks @SiTaggart! - Fixed a regression with the compilation script that caused incompatible ESM module importing of JSON files.

8.0.1

Patch Changes

  • c867e3f48 #2237 Thanks @SiTaggart! - Updated a build dependency (esbuild) which changes the output of our builds slightly, without materially changing anything about the code.

8.0.0

Patch Changes

7.0.1

Patch Changes

  • b7675915 #1985 Thanks @TheSisb! - For debugging purposes we now ship a filename.debug.js unminified version of each component or library in Paste.

7.0.0

Major Changes

  • fa2ffc5c #1603 Thanks @andipants12! - [Truncate] Added the title prop to show full non-truncated text BREAKING CHANGE: title prop is now required for the Truncate component.

6.0.2

Patch Changes

6.0.1

Patch Changes

6.0.0

Patch Changes

5.0.1

Patch Changes

5.0.0

Patch Changes

4.0.3

Patch Changes

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Patch Changes

3.0.1

Patch Changes

3.0.0

Patch Changes

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.1.1 (2021-01-25)

Bug Fixes

  • truncate: correctly extend html span attribute typings (e2783d3)

2.1.0 (2021-01-21)

Features

2.0.5 (2021-01-15)

Note: Version bump only for package @twilio-paste/truncate

2.0.4 (2021-01-14)

Note: Version bump only for package @twilio-paste/truncate

2.0.3 (2021-01-13)

Note: Version bump only for package @twilio-paste/truncate

2.0.2 (2021-01-07)

Note: Version bump only for package @twilio-paste/truncate

2.0.1 (2020-12-17)

Note: Version bump only for package @twilio-paste/truncate

2.0.0 (2020-12-17)

Bug Fixes

  • truncate: add forwardRef, use box (b8f74d4)

BREAKING CHANGES

  • truncate: component is now using fowardRef

1.0.15 (2020-12-11)

Note: Version bump only for package @twilio-paste/truncate

1.0.14 (2020-10-23)

Note: Version bump only for package @twilio-paste/truncate

1.0.13 (2020-10-13)

Note: Version bump only for package @twilio-paste/truncate

1.0.12 (2020-09-21)

Note: Version bump only for package @twilio-paste/truncate

1.0.11 (2020-08-19)

Note: Version bump only for package @twilio-paste/truncate

1.0.10 (2020-07-01)

Note: Version bump only for package @twilio-paste/truncate

1.0.9 (2020-06-18)

Note: Version bump only for package @twilio-paste/truncate

1.0.8 (2020-05-01)

Note: Version bump only for package @twilio-paste/truncate

1.0.7 (2020-04-15)

Note: Version bump only for package @twilio-paste/truncate

1.0.6 (2020-03-20)

Note: Version bump only for package @twilio-paste/truncate

1.0.5 (2020-03-17)

Note: Version bump only for package @twilio-paste/truncate

1.0.4 (2020-03-17)

Note: Version bump only for package @twilio-paste/truncate

1.0.3 (2020-02-26)

Bug Fixes

  • package dependencies and deprecation warnings (#334) (0e88338)

1.0.2 (2020-02-14)

Bug Fixes

  • truncate: add missing peer deps (9b62eda)

1.0.1 (2020-02-11)

Note: Version bump only for package @twilio-paste/truncate

1.0.0 (2019-11-11)

Features

  • icons: delete old icons, add new streamline icons (#129) (571791d)

BREAKING CHANGES

  • icons: removed all the inherited icons since we're moving to a new system

  • chore(icons): update icon list for storybook

  • fix(spinner): use new icon

  • fix(storybook): use new icon for story

  • fix(story): button icons should be 24px

  • fix: adjust icon size tokens

  • feat: add iconSizes as separate key in theme-tokens

  • feat(icons): icons package to use tokens and update icons

  • fix(spinner): update to use tokens and new icons

  • fix(button): use correct spinner size

  • fix(icons): major icons package fixes

  • huge overhaul to build process
  • now uses rollup
  • builds into cjs and esm directories
  • made the package publishable to npm
  • moved svg folder out of src, now src only holds react stuff
  • updated scripts to use new paths and cleaned up the code
  • programmatically generates rollup config from the icon-list command
  • chore: add new icons dist folders to gitignore

  • fix: spinner and button icon usage

  • feat(icons): add rollup icon list cache file

  • fix(core-bundle): sort packages for consistent builds

  • chore: use esm instead of es in rollup for correctness

  • chore: yarn.lock

  • fix(spinner): lint error

  • chore(icons): move rollup icon list

  • chore(spinner): use types package in story

  • fix(spinner): swap out destructured props for explicit props

0.2.0 (2019-10-29)

Features

0.1.4 (2019-09-16)

Note: Version bump only for package @twilio-paste/truncate

0.1.3 (2019-08-15)

Bug Fixes