react-middle-ellipsis
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -179,2 +179,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL3JlYWN0LW1pZGRsZS1lbGxpcHNpcy9leHRlcm5hbCB7XCJjb21tb25qc1wiOlwicmVhY3RcIixcImNvbW1vbmpzMlwiOlwicmVhY3RcIixcImFtZFwiOlwiUmVhY3RcIixcInJvb3RcIjpcIlJlYWN0XCJ9Iiwid2VicGFjazovL3JlYWN0LW1pZGRsZS1lbGxpcHNpcy93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvd2VicGFjay9ydW50aW1lL2NvbXBhdCBnZXQgZGVmYXVsdCBleHBvcnQiLCJ3ZWJwYWNrOi8vcmVhY3QtbWlkZGxlLWVsbGlwc2lzL3dlYnBhY2svcnVudGltZS9kZWZpbmUgcHJvcGVydHkgZ2V0dGVycyIsIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvd2VicGFjay9ydW50aW1lL2hhc093blByb3BlcnR5IHNob3J0aGFuZCIsIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvd2VicGFjay9ydW50aW1lL21ha2UgbmFtZXNwYWNlIG9iamVjdCIsIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvLi9zcmMvaW5kZXguanMiXSwibmFtZXMiOlsiQ29tcG9uZW50IiwicHJvcHMiLCJwcmVwRWxsaXBzZSIsIm5vZGUiLCJwYXJlbnQiLCJwYXJlbnROb2RlIiwiY2hpbGQiLCJxdWVyeVNlbGVjdG9yIiwiY2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hhcnMgLyAyIC0gZGVsRWFjaFNpZGUpO1xuICAgIGNvbnN0IHN0YXJ0UmlnaHQgPSBNYXRoLmNlaWwodHh0Q2hhcnMgLyAyICsgZGVsRWFjaFNpZGUpO1xuXG4gICAgdHh0Tm9kZS5zZXRBdHRyaWJ1dGUoXCJkYXRhLW9yaWdpbmFsXCIsIHR4dE5vZGUudGV4dENvbnRlbnQpO1xuICAgIHR4dE5vZGUudGV4dENvbnRlbnQgPVxuICAgICAgc3RyLnN1YnN0cigwLCBlbmRMZWZ0KSArIFwiLi4uXCIgKyBzdHIuc3Vic3RyKHN0YXJ0UmlnaHQpO1xuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBDb21wb25lbnQ7XG4iXSwic291cmNlUm9vdCI6IiJ9 |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports["react-middle-ellipsis"]=t(require("react")):e["react-middle-ellipsis"]=t(e.React)}(this,(function(e){return(()=>{"use strict";var t={798:t=>{t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{default:()=>l});var e=o(798),t=o.n(e);function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){a(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=function(r){var o=function(e){var t=e.parentNode,r=t.querySelector(".constrainedChild")||e.childNodes[0],o=t.querySelector(".ellipseMe")||t.querySelector(".constrainedEllipse")||r;null!==r&&null!==o&&(o.hasAttribute("data-original")&&(o.textContent=o.getAttribute("data-original")),function(e,t,r){var o=t.offsetWidth,n=e.offsetWidth,i=r.offsetWidth,a=o>i?o:i;if(a>n){var l=r.textContent,c=l.length,u=(c-(n-(a-i))/(i/c)+5)/2,f=Math.floor(c/2-u),s=Math.ceil(c/2+u);r.setAttribute("data-original",r.textContent),r.textContent=l.substr(0,f)+"..."+l.substr(s)}}(e.offsetWidth>t.offsetWidth?t:e,r,o))},n=(0,e.useCallback)((function(e){null!==e&&(window.addEventListener("resize",(function(){o(e)})),o(e))}));return t().createElement("div",{ref:n,style:i({wordBreak:"keep-all",overflowWrap:"normal"},r.width&&{width:r.width})},r.children)}})(),n})()})); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9yZWFjdC1taWRkbGUtZWxsaXBzaXMvd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIiwid2VicGFjazovL3JlYWN0LW1pZGRsZS1lbGxpcHNpcy9leHRlcm5hbCB7XCJjb21tb25qc1wiOlwicmVhY3RcIixcImNvbW1vbmpzMlwiOlwicmVhY3RcIixcImFtZFwiOlwiUmVhY3RcIixcInJvb3RcIjpcIlJlYWN0XCJ9Iiwid2VicGFjazovL3JlYWN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dodCA9IE1hdGguY2VpbCh0eHRDaGFycyAvIDIgKyBkZWxFYWNoU2lkZSk7XG5cbiAgICB0eHROb2RlLnNldEF0dHJpYnV0ZShcImRhdGEtb3JpZ2luYWxcIiwgdHh0Tm9kZS50ZXh0Q29udGVudCk7XG4gICAgdHh0Tm9kZS50ZXh0Q29udGVudCA9XG4gICAgICBzdHIuc3Vic3RyKDAsIGVuZExlZnQpICsgXCIuLi5cIiArIHN0ci5zdWJzdHIoc3RhcnRSaWdodCk7XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IENvbXBvbmVudDtcbiJdLCJzb3VyY2VSb290IjoiIn0= |
{ | ||
"name": "react-middle-ellipsis", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Put the dots in the middle of a long string, versus the end.", | ||
@@ -26,4 +26,4 @@ "author": "bluepeter", | ||
"peerDependencies": { | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0" | ||
"react": "^16.8 || ^17 || ^18", | ||
"react-dom": "^16.8 || ^17 || ^18" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -5,5 +5,4 @@ # React Middle Ellipsis | ||
Adding ellipses to the end of long text is cool. But not always! | ||
Sometimes the end of the text contains vital information, | ||
particularly for URLs or filenames. | ||
Adding ellipses to the end of long text is cool. But not always! Sometimes the | ||
end of the text contains vital information, particularly for URLs or filenames. | ||
@@ -20,8 +19,7 @@ This React component is designed with that use case in mind. | ||
Once `import`ed, you can then wrap any node with `<MiddleEllipsis>`. | ||
This will compute the width of the surrounding parent node. Then, it | ||
will look for the child node (so make sure to add a `span` at | ||
minimum internally): it will use this element to compute the width | ||
of the child, and then shorten the text element whose class is | ||
`ellipseMe` (optional) to fit within the parent. | ||
Once `import`ed, you can then wrap any node with `<MiddleEllipsis>`. This will | ||
compute the width of the surrounding parent node. Then, it will look for the | ||
child node (so make sure to add a `span` at minimum internally): it will use | ||
this element to compute the width of the child, and then shorten the text | ||
element whose class is `ellipseMe` (optional) to fit within the parent. | ||
@@ -67,6 +65,8 @@ The component re-computes things if the browser window is resized, too! | ||
`yarn && yarn run start` in this directory and separately also in `/example`. This will | ||
live reload any changes made in `/src`. | ||
`yarn && yarn run start` in this directory and separately also in `/example`. | ||
This will live reload any changes made in `/src`. | ||
Change the version number in `package.json` and `npm publish` once complete. | ||
Change the version number in `package.json` and `npm publish` once | ||
complete.Then, go to Github Releases and follow the instructions to publish a | ||
new version there too. | ||
@@ -73,0 +73,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36528