@arwes/react
Advanced tools
Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21
@@ -6,3 +6,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("@arwes/react-tools"), exports); | ||
tslib_1.__exportStar(require("@arwes/react-styles"), exports); | ||
tslib_1.__exportStar(require("@arwes/react-animator"), exports); | ||
@@ -9,0 +8,0 @@ tslib_1.__exportStar(require("@arwes/react-animated"), exports); |
@@ -6,3 +6,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("@arwes/react-tools"), exports); | ||
tslib_1.__exportStar(require("@arwes/react-styles"), exports); | ||
tslib_1.__exportStar(require("@arwes/react-animator"), exports); | ||
@@ -9,0 +8,0 @@ tslib_1.__exportStar(require("@arwes/react-animated"), exports); |
export * from 'arwes'; | ||
export * from '@arwes/react-tools'; | ||
export * from '@arwes/react-styles'; | ||
export * from '@arwes/react-animator'; | ||
@@ -5,0 +4,0 @@ export * from '@arwes/react-animated'; |
export * from 'arwes'; | ||
export * from '@arwes/react-tools'; | ||
export * from '@arwes/react-styles'; | ||
export * from '@arwes/react-animator'; | ||
@@ -5,0 +4,0 @@ export * from '@arwes/react-animated'; |
declare module '@arwes/react/index' { | ||
export * from 'arwes'; | ||
export * from '@arwes/react-tools'; | ||
export * from '@arwes/react-styles'; | ||
export * from '@arwes/react-animator'; | ||
@@ -6,0 +5,0 @@ export * from '@arwes/react-animated'; |
@@ -26,3 +26,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
tslib_1.__exportStar(__webpack_require__(/*! @arwes/react-tools */ "../../scripts/pkg-build-umd-mocks/arwes/react-tools.js"), exports); | ||
tslib_1.__exportStar(__webpack_require__(/*! @arwes/react-styles */ "../../scripts/pkg-build-umd-mocks/arwes/react-styles.js"), exports); | ||
tslib_1.__exportStar(__webpack_require__(/*! @arwes/react-animator */ "../../scripts/pkg-build-umd-mocks/arwes/react-animator.js"), exports); | ||
@@ -507,13 +506,2 @@ tslib_1.__exportStar(__webpack_require__(/*! @arwes/react-animated */ "../../scripts/pkg-build-umd-mocks/arwes/react-animated.js"), exports); | ||
/***/ "../../scripts/pkg-build-umd-mocks/arwes/react-styles.js": | ||
/*!***************************************************************!*\ | ||
!*** ../../scripts/pkg-build-umd-mocks/arwes/react-styles.js ***! | ||
\***************************************************************/ | ||
/***/ ((module) => { | ||
module.exports = window.arwes['react-styles']; | ||
/***/ }), | ||
/***/ "../../scripts/pkg-build-umd-mocks/arwes/react-tools.js": | ||
@@ -520,0 +508,0 @@ /*!**************************************************************!*\ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.arwes=t():(e.arwes=e.arwes||{},e.arwes.umd=t())}(self,(()=>(()=>{var e={368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(163);n.__exportStar(r(218),t),n.__exportStar(r(614),t),n.__exportStar(r(585),t),n.__exportStar(r(599),t),n.__exportStar(r(418),t),n.__exportStar(r(106),t),n.__exportStar(r(626),t),n.__exportStar(r(224),t),n.__exportStar(r(382),t),n.__exportStar(r(607),t)},163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>O,__asyncValues:()=>T,__await:()=>S,__awaiter:()=>y,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>M,__createBinding:()=>w,__decorate:()=>c,__esDecorate:()=>u,__exportStar:()=>v,__extends:()=>o,__generator:()=>_,__importDefault:()=>R,__importStar:()=>A,__makeTemplateObject:()=>P,__metadata:()=>d,__param:()=>s,__propKey:()=>f,__read:()=>h,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>x,__spreadArray:()=>g,__spreadArrays:()=>m,__values:()=>b});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,u="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var w=(0,r[d])("accessor"===s?{get:f.get,set:f.set}:f[u],y);if("accessor"===s){if(void 0===w)continue;if(null===w||"object"!=typeof w)throw new TypeError("Object expected");(c=i(w.get))&&(f.get=c),(c=i(w.set))&&(f.set=c),(c=i(w.init))&&o.push(c)}else(c=i(w))&&("field"===s?o.push(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var w=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||w(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function O(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof S?Promise.resolve(r.value.v).then(s,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:S(e[n](t)),done:!1}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&w(t,e,r);return E(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},29:e=>{e.exports=window.arwes.animated},970:e=>{e.exports=window.arwes.animator},448:e=>{e.exports=window.arwes.bgs},589:e=>{e.exports=window.arwes.bleeps},639:e=>{e.exports=window.arwes.core},78:e=>{e.exports=window.arwes.frames},418:e=>{e.exports=window.arwes["react-animated"]},599:e=>{e.exports=window.arwes["react-animator"]},382:e=>{e.exports=window.arwes["react-bgs"]},106:e=>{e.exports=window.arwes["react-bleeps"]},607:e=>{e.exports=window.arwes["react-core"]},224:e=>{e.exports=window.arwes["react-frames"]},585:e=>{e.exports=window.arwes["react-styles"]},614:e=>{e.exports=window.arwes["react-tools"]},34:e=>{e.exports=window.arwes.text},746:e=>{e.exports=window.arwes.theme},954:e=>{e.exports=window.arwes.tools},361:e=>{e.exports=window.emotionReact},570:e=>{e.exports=window.React},632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TEXT_CLASS=void 0;const n=r(570),o=r(361),a=r(954),i=r(614),c=r(970),s=r(599),u=r(34),l="arwes-react-text-text";t.TEXT_CLASS=l,t.Text=e=>{const{as:t="p",className:r,contentClassName:f,children:p,manager:d,easing:y,fixed:_,hideOnExited:w=!0,hideOnEntered:v,elementRef:b,...h}=e,x=(0,n.useMemo)((()=>t),[]),[m,g]=(0,n.useState)(""),S=(0,n.useRef)(null),O=(0,n.useRef)(null),j=(0,n.useRef)(null),T=(0,s.useAnimator)(),[P,E]=(0,n.useState)((()=>(null==T?void 0:T.node.state)===c.ANIMATOR_STATES.exited)),[A,R]=(0,n.useState)((()=>(null==T?void 0:T.node.state)===c.ANIMATOR_STATES.entered));return(0,n.useEffect)((()=>{var e,t;g(null!==(t=null===(e=O.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"")}),[p]),(0,n.useEffect)((()=>{if(!T)return void(O.current&&(O.current.style.visibility="visible"));if(!m.length)return;if(!_){const e=T.node.control.getSettings(),t=(0,u.getTransitionTextDuration)({length:m.length,maxDuration:e.duration.enter}),r=(0,u.getTransitionTextDuration)({length:m.length,maxDuration:e.duration.exit});T.node.control.setDynamicSettings({duration:{enter:t,exit:r}})}const e="decipher"===d?u.transitionTextDecipher:u.transitionTextSequence,t=(t,r)=>{var n;null===(n=j.current)||void 0===n||n.cancel(),j.current=e({rootElement:S.current,contentElement:O.current,duration:t,isEntering:r,easing:y,hideOnExited:w,hideOnEntered:v})},r=T.node.subscribe((e=>{switch(R(e.state===c.ANIMATOR_STATES.entered),E(e.state===c.ANIMATOR_STATES.exited),e.state){case"entered":j.current||t(e.duration.enter,!0);break;case"entering":t(e.duration.enter,!0);break;case"exiting":t(e.duration.exit,!1)}}));return()=>{var e;r(),null===(e=j.current)||void 0===e||e.cancel(),j.current=null}}),[T,m]),(0,o.jsx)(x,{...h,className:(0,a.cx)(l,r),css:{position:"relative"},ref:(0,i.mergeRefs)(b,S)},(0,o.jsx)("span",{ref:O,className:(0,a.cx)(`${l}__content`,f),css:{position:"relative",zIndex:1,display:"inline-block",visibility:T&&(v&&A||w&&P)?"hidden":"visible"}},p))}},167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;const n=r(163),o=r(614),a=r(632),i=(0,o.memo)(a.Text);t.Text=i,n.__exportStar(r(632),t)},626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(163).__exportStar(r(167),t)},218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(163);n.__exportStar(r(954),t),n.__exportStar(r(746),t),n.__exportStar(r(970),t),n.__exportStar(r(29),t),n.__exportStar(r(589),t),n.__exportStar(r(34),t),n.__exportStar(r(78),t),n.__exportStar(r(448),t),n.__exportStar(r(639),t)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(368)})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.arwes=t():(e.arwes=e.arwes||{},e.arwes.umd=t())}(self,(()=>(()=>{var e={368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(163);n.__exportStar(r(218),t),n.__exportStar(r(614),t),n.__exportStar(r(599),t),n.__exportStar(r(418),t),n.__exportStar(r(106),t),n.__exportStar(r(626),t),n.__exportStar(r(224),t),n.__exportStar(r(382),t),n.__exportStar(r(607),t)},163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>O,__asyncValues:()=>T,__await:()=>S,__awaiter:()=>y,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>M,__createBinding:()=>w,__decorate:()=>c,__esDecorate:()=>u,__exportStar:()=>v,__extends:()=>o,__generator:()=>_,__importDefault:()=>R,__importStar:()=>A,__makeTemplateObject:()=>P,__metadata:()=>d,__param:()=>s,__propKey:()=>f,__read:()=>h,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>x,__spreadArray:()=>g,__spreadArrays:()=>m,__values:()=>b});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,u="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var w=(0,r[d])("accessor"===s?{get:f.get,set:f.set}:f[u],y);if("accessor"===s){if(void 0===w)continue;if(null===w||"object"!=typeof w)throw new TypeError("Object expected");(c=i(w.get))&&(f.get=c),(c=i(w.set))&&(f.set=c),(c=i(w.init))&&o.push(c)}else(c=i(w))&&("field"===s?o.push(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var w=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||w(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function O(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof S?Promise.resolve(r.value.v).then(s,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:S(e[n](t)),done:!1}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&w(t,e,r);return E(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},29:e=>{e.exports=window.arwes.animated},970:e=>{e.exports=window.arwes.animator},448:e=>{e.exports=window.arwes.bgs},589:e=>{e.exports=window.arwes.bleeps},639:e=>{e.exports=window.arwes.core},78:e=>{e.exports=window.arwes.frames},418:e=>{e.exports=window.arwes["react-animated"]},599:e=>{e.exports=window.arwes["react-animator"]},382:e=>{e.exports=window.arwes["react-bgs"]},106:e=>{e.exports=window.arwes["react-bleeps"]},607:e=>{e.exports=window.arwes["react-core"]},224:e=>{e.exports=window.arwes["react-frames"]},614:e=>{e.exports=window.arwes["react-tools"]},34:e=>{e.exports=window.arwes.text},746:e=>{e.exports=window.arwes.theme},954:e=>{e.exports=window.arwes.tools},361:e=>{e.exports=window.emotionReact},570:e=>{e.exports=window.React},632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TEXT_CLASS=void 0;const n=r(570),o=r(361),a=r(954),i=r(614),c=r(970),s=r(599),u=r(34),l="arwes-react-text-text";t.TEXT_CLASS=l,t.Text=e=>{const{as:t="p",className:r,contentClassName:f,children:p,manager:d,easing:y,fixed:_,hideOnExited:w=!0,hideOnEntered:v,elementRef:b,...h}=e,x=(0,n.useMemo)((()=>t),[]),[m,g]=(0,n.useState)(""),S=(0,n.useRef)(null),O=(0,n.useRef)(null),j=(0,n.useRef)(null),T=(0,s.useAnimator)(),[P,E]=(0,n.useState)((()=>(null==T?void 0:T.node.state)===c.ANIMATOR_STATES.exited)),[A,R]=(0,n.useState)((()=>(null==T?void 0:T.node.state)===c.ANIMATOR_STATES.entered));return(0,n.useEffect)((()=>{var e,t;g(null!==(t=null===(e=O.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"")}),[p]),(0,n.useEffect)((()=>{if(!T)return void(O.current&&(O.current.style.visibility="visible"));if(!m.length)return;if(!_){const e=T.node.control.getSettings(),t=(0,u.getTransitionTextDuration)({length:m.length,maxDuration:e.duration.enter}),r=(0,u.getTransitionTextDuration)({length:m.length,maxDuration:e.duration.exit});T.node.control.setDynamicSettings({duration:{enter:t,exit:r}})}const e="decipher"===d?u.transitionTextDecipher:u.transitionTextSequence,t=(t,r)=>{var n;null===(n=j.current)||void 0===n||n.cancel(),j.current=e({rootElement:S.current,contentElement:O.current,duration:t,isEntering:r,easing:y,hideOnExited:w,hideOnEntered:v})},r=T.node.subscribe((e=>{switch(R(e.state===c.ANIMATOR_STATES.entered),E(e.state===c.ANIMATOR_STATES.exited),e.state){case"entered":j.current||t(e.duration.enter,!0);break;case"entering":t(e.duration.enter,!0);break;case"exiting":t(e.duration.exit,!1)}}));return()=>{var e;r(),null===(e=j.current)||void 0===e||e.cancel(),j.current=null}}),[T,m]),(0,o.jsx)(x,{...h,className:(0,a.cx)(l,r),css:{position:"relative"},ref:(0,i.mergeRefs)(b,S)},(0,o.jsx)("span",{ref:O,className:(0,a.cx)(`${l}__content`,f),css:{position:"relative",zIndex:1,display:"inline-block",visibility:T&&(v&&A||w&&P)?"hidden":"visible"}},p))}},167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;const n=r(163),o=r(614),a=r(632),i=(0,o.memo)(a.Text);t.Text=i,n.__exportStar(r(632),t)},626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(163).__exportStar(r(167),t)},218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(163);n.__exportStar(r(954),t),n.__exportStar(r(746),t),n.__exportStar(r(970),t),n.__exportStar(r(29),t),n.__exportStar(r(589),t),n.__exportStar(r(34),t),n.__exportStar(r(78),t),n.__exportStar(r(448),t),n.__exportStar(r(639),t)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(368)})())); |
{ | ||
"name": "@arwes/react", | ||
"version": "1.0.0-alpha.20", | ||
"version": "1.0.0-alpha.21", | ||
"publishConfig": { | ||
@@ -47,12 +47,11 @@ "access": "public" | ||
"dependencies": { | ||
"@arwes/react-animated": "^1.0.0-next.9", | ||
"@arwes/react-animator": "^1.0.0-next.10", | ||
"@arwes/react-bgs": "^1.0.0-next.10", | ||
"@arwes/react-bleeps": "^1.0.0-next.10", | ||
"@arwes/react-core": "^1.0.0-next.7", | ||
"@arwes/react-frames": "^1.0.0-next.9", | ||
"@arwes/react-styles": "^1.0.0-next.7", | ||
"@arwes/react-text": "^1.0.0-next.8", | ||
"@arwes/react-tools": "^1.0.0-next.10", | ||
"arwes": "^1.0.0-next.10", | ||
"@arwes/react-animated": "^1.0.0-alpha.21", | ||
"@arwes/react-animator": "^1.0.0-alpha.21", | ||
"@arwes/react-bgs": "^1.0.0-alpha.21", | ||
"@arwes/react-bleeps": "^1.0.0-alpha.21", | ||
"@arwes/react-core": "^1.0.0-alpha.21", | ||
"@arwes/react-frames": "^1.0.0-alpha.21", | ||
"@arwes/react-text": "^1.0.0-alpha.21", | ||
"@arwes/react-tools": "^1.0.0-alpha.21", | ||
"arwes": "^1.0.0-alpha.21", | ||
"tslib": "^2.3.1" | ||
@@ -68,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "f91b7d0abedd83a0c412e1b21c420064cebce841" | ||
"gitHead": "75130c3abe86fffca35b2ae562e0f8f35510a9d6" | ||
} |
11
55035
739
- Removed@arwes/react-styles@^1.0.0-next.7
- Removed@arwes/react-styles@1.0.0-next.7(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/generator@7.26.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.9(transitive)
- Removed@babel/runtime@7.26.9(transitive)
- Removed@babel/template@7.26.9(transitive)
- Removed@babel/traverse@7.26.9(transitive)
- Removed@babel/types@7.26.9(transitive)
- Removed@emotion/babel-plugin@11.13.5(transitive)
- Removed@emotion/cache@11.14.0(transitive)
- Removed@emotion/hash@0.9.2(transitive)
- Removed@emotion/memoize@0.9.0(transitive)
- Removed@emotion/react@11.14.0(transitive)
- Removed@emotion/serialize@1.3.3(transitive)
- Removed@emotion/sheet@1.4.0(transitive)
- Removed@emotion/unitless@0.10.0(transitive)
- Removed@emotion/use-insertion-effect-with-fallbacks@1.2.0(transitive)
- Removed@emotion/utils@1.4.2(transitive)
- Removed@emotion/weak-memoize@0.4.0(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedbabel-plugin-macros@3.1.0(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedfind-root@1.1.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedimport-fresh@3.3.1(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedms@2.1.3(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedresolve@1.22.10(transitive)
- Removedresolve-from@4.0.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstylis@4.2.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedyaml@1.10.2(transitive)
Updatedarwes@^1.0.0-alpha.21