@ebay/ui-core-react 7.3.1 → 7.3.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react");function m({open:n,classPrefix:t,transitionElement:r,dialogRef:e,dialogWindowRef:c,enabled:a,onTransitionEnd:u}){const s=d.useRef(!0);d.useLayoutEffect(()=>{if(!a)return;let i=[c,e];r==="window"?i=[c]:r==="root"&&(i=[e]);let o;return n?o=l({dialog:e,waitFor:i,classPrefix:t,onTransitionEnd:u}):s.current||(o=A({dialog:e,waitFor:i,classPrefix:t,onTransitionEnd:u})),s.current=!1,()=>{o&&o()}},[n,a])}function l({dialog:n,waitFor:t,classPrefix:r,onTransitionEnd:e}){return w(n,t,`${r}--show`,e)}function A({dialog:n,waitFor:t,classPrefix:r,onTransitionEnd:e}){return w(n,t,`${r}--hide`,e)}function w(n,t,r,e){if(!n.current||!r)return;let c=0;const a=t?t.length:0,u=`${r}-init`;return n.current.classList.add(u),v(()=>{n.current&&(n.current.classList.add(r),n.current.classList.remove(u),t.forEach(s=>{const i=()=>{var o,f;++c===a&&((o=n.current)==null||o.classList.remove(r),e(),(f=s.current)==null||f.removeEventListener("transitionend",i))};s.current.addEventListener("transitionend",i,{once:!0})}))})}function v(n){let t,r;return window.requestAnimationFrame?(t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(n)}),r=window.cancelAnimationFrame):(t=window.setTimeout(n,26),r=window.clearTimeout),()=>{t&&(r(t),t=void 0)}}exports.useDialogAnimation=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react");function m({open:t,classPrefix:n,transitionElement:r,dialogRef:i,dialogWindowRef:c,enabled:a,onTransitionEnd:o}){const s=f.useRef(t);f.useLayoutEffect(()=>{if(!a)return;let e=[c,i];r==="window"?e=[c]:r==="root"&&(e=[i]);let u;return t?u=l({dialog:i,waitFor:e,classPrefix:n,onTransitionEnd:o}):s.current!==t&&(u=A({dialog:i,waitFor:e,classPrefix:n,onTransitionEnd:o})),s.current=t,()=>{u&&u()}},[t,a])}function l({dialog:t,waitFor:n,classPrefix:r,onTransitionEnd:i}){return w(t,n,`${r}--show`,i)}function A({dialog:t,waitFor:n,classPrefix:r,onTransitionEnd:i}){return w(t,n,`${r}--hide`,i)}function w(t,n,r,i){if(!t.current||!r)return;let c=0;const a=n?n.length:0,o=`${r}-init`;return t.current.classList.add(o),v(()=>{t.current&&(t.current.classList.add(r),t.current.classList.remove(o),n.forEach(s=>{const e=()=>{var u,d;++c===a&&((u=t.current)==null||u.classList.remove(r),i(),(d=s.current)==null||d.removeEventListener("transitionend",e))};s.current.addEventListener("transitionend",e,{once:!0})}))})}function v(t){let n,r;return window.requestAnimationFrame?(n=window.requestAnimationFrame(()=>{n=window.requestAnimationFrame(t)}),r=window.cancelAnimationFrame):(n=window.setTimeout(t,26),r=window.clearTimeout),()=>{n&&(r(n),n=void 0)}}exports.useDialogAnimation=m;
@@ -1 +1 @@
1
- {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/ebay-dialog-base/components/animation.ts"],"names":[],"mappings":"AAWA,UAAU,wBAAwB;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EAClB,EAAE,wBAAwB,GAAG,IAAI,CA0CjC"}
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/ebay-dialog-base/components/animation.ts"],"names":[],"mappings":"AAWA,UAAU,wBAAwB;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EAClB,EAAE,wBAAwB,GAAG,IAAI,CA4CjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "7.3.1",
3
+ "version": "7.3.3",
4
4
  "description": "Skin components build off React",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"