reacthub-pixitweenjs 0.2.107-alpha.80 → 0.2.107-alpha.82

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.
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from "@storybook/react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<import("./PixiTextSprite").PixiTextSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiTextSprite").PixiTextSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
6
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {
@@ -127,3 +127,4 @@ type Story = StoryObj<typeof meta>;
127
127
  export declare const Normal: Story;
128
128
  export declare const FadeIn: Story;
129
129
  export declare const Filters: Story;
130
+ export declare const Draggable: Story;
package/dist/index.es.js CHANGED
@@ -78,7 +78,7 @@ function Cs(t, e) {
78
78
  const r = $0(), n = new CustomEvent(t, { detail: e });
79
79
  r.dispatchEvent(n);
80
80
  }
81
- function FU() {
81
+ function NU() {
82
82
  let t;
83
83
  function e(r) {
84
84
  t = r;
@@ -109,7 +109,7 @@ const ni = ee.createContext({}), Qe = {
109
109
  TRANSFORMER_DRAG_END: "TRANSFORMER_DRAG_END",
110
110
  REVERSE_MODE_START: "REVERSE_MODE_START",
111
111
  REVERSE_MODE_END: "REVERSE_MODE_END"
112
- }, NU = ({
112
+ }, LU = ({
113
113
  children: t
114
114
  }) => {
115
115
  const [e, r] = Kn(0), n = pe(), i = pe(), a = pe(1e-3), u = pe(!1), l = pe(!1), [h, p] = Kn(!1);
@@ -15143,7 +15143,7 @@ ut.prototype.unshort = function() {
15143
15143
  }), this;
15144
15144
  };
15145
15145
  var Wk = ut, jk = Wk;
15146
- const qk = /* @__PURE__ */ ri(jk), e4 = ee.forwardRef((t, e) => {
15146
+ const qk = /* @__PURE__ */ ri(jk), t4 = ee.forwardRef((t, e) => {
15147
15147
  const [r, n] = ee.useState(null), i = pe(null), a = pe(null), u = pe(null), {
15148
15148
  path: l,
15149
15149
  visible: h,
@@ -16412,7 +16412,7 @@ var U_ = {};
16412
16412
  };
16413
16413
  })();
16414
16414
  })(U_);
16415
- const t4 = (t) => {
16415
+ const r4 = (t) => {
16416
16416
  const e = {
16417
16417
  isPlaying: !1,
16418
16418
  progress: 0,
@@ -21070,7 +21070,8 @@ tU.whyDidYouRender = {
21070
21070
  logOnDifferentValues: !0,
21071
21071
  customName: "PixiGifSprite"
21072
21072
  };
21073
- const r4 = ee.forwardRef((t, e) => {
21073
+ const rU = ee.forwardRef((t, e) => {
21074
+ console.log("allprops", t);
21074
21075
  const n = pe(null), i = pe(0), a = pe(null), u = pe(null), l = pe(16), h = pe(null), {
21075
21076
  visible: p,
21076
21077
  text: m,
@@ -21223,23 +21224,27 @@ const r4 = ee.forwardRef((t, e) => {
21223
21224
  }
21224
21225
  );
21225
21226
  });
21226
- var rU = Hr, nU = function() {
21227
- return rU.Date.now();
21228
- }, iU = nU, sU = /\s/;
21229
- function aU(t) {
21230
- for (var e = t.length; e-- && sU.test(t.charAt(e)); )
21227
+ rU.whyDidYouRender = {
21228
+ logOnDifferentValues: !0,
21229
+ customName: "PixiTextSprite"
21230
+ };
21231
+ var nU = Hr, iU = function() {
21232
+ return nU.Date.now();
21233
+ }, sU = iU, aU = /\s/;
21234
+ function oU(t) {
21235
+ for (var e = t.length; e-- && aU.test(t.charAt(e)); )
21231
21236
  ;
21232
21237
  return e;
21233
21238
  }
21234
- var oU = aU, uU = oU, lU = /^\s+/;
21235
- function cU(t) {
21236
- return t && t.slice(0, uU(t) + 1).replace(lU, "");
21239
+ var uU = oU, lU = uU, cU = /^\s+/;
21240
+ function hU(t) {
21241
+ return t && t.slice(0, lU(t) + 1).replace(cU, "");
21237
21242
  }
21238
- var hU = cU, fU = hU, F0 = Ys, dU = uu, N0 = 0 / 0, pU = /^[-+]0x[0-9a-f]+$/i, gU = /^0b[01]+$/i, mU = /^0o[0-7]+$/i, _U = parseInt;
21239
- function vU(t) {
21243
+ var fU = hU, dU = fU, F0 = Ys, pU = uu, N0 = 0 / 0, gU = /^[-+]0x[0-9a-f]+$/i, mU = /^0b[01]+$/i, _U = /^0o[0-7]+$/i, vU = parseInt;
21244
+ function yU(t) {
21240
21245
  if (typeof t == "number")
21241
21246
  return t;
21242
- if (dU(t))
21247
+ if (pU(t))
21243
21248
  return N0;
21244
21249
  if (F0(t)) {
21245
21250
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -21247,16 +21252,16 @@ function vU(t) {
21247
21252
  }
21248
21253
  if (typeof t != "string")
21249
21254
  return t === 0 ? t : +t;
21250
- t = fU(t);
21251
- var r = gU.test(t);
21252
- return r || mU.test(t) ? _U(t.slice(2), r ? 2 : 8) : pU.test(t) ? N0 : +t;
21255
+ t = dU(t);
21256
+ var r = mU.test(t);
21257
+ return r || _U.test(t) ? vU(t.slice(2), r ? 2 : 8) : gU.test(t) ? N0 : +t;
21253
21258
  }
21254
- var yU = vU, xU = Ys, _c = iU, L0 = yU, bU = "Expected a function", TU = Math.max, wU = Math.min;
21255
- function AU(t, e, r) {
21259
+ var xU = yU, bU = Ys, _c = sU, L0 = xU, TU = "Expected a function", wU = Math.max, AU = Math.min;
21260
+ function SU(t, e, r) {
21256
21261
  var n, i, a, u, l, h, p = 0, m = !1, c = !1, d = !0;
21257
21262
  if (typeof t != "function")
21258
- throw new TypeError(bU);
21259
- e = L0(e) || 0, xU(r) && (m = !!r.leading, c = "maxWait" in r, a = c ? TU(L0(r.maxWait) || 0, e) : a, d = "trailing" in r ? !!r.trailing : d);
21263
+ throw new TypeError(TU);
21264
+ e = L0(e) || 0, bU(r) && (m = !!r.leading, c = "maxWait" in r, a = c ? wU(L0(r.maxWait) || 0, e) : a, d = "trailing" in r ? !!r.trailing : d);
21260
21265
  function g(F) {
21261
21266
  var N = n, L = i;
21262
21267
  return n = i = void 0, p = F, u = t.apply(L, N), u;
@@ -21266,7 +21271,7 @@ function AU(t, e, r) {
21266
21271
  }
21267
21272
  function y(F) {
21268
21273
  var N = F - h, L = F - p, D = e - N;
21269
- return c ? wU(D, a - L) : D;
21274
+ return c ? AU(D, a - L) : D;
21270
21275
  }
21271
21276
  function b(F) {
21272
21277
  var N = F - h, L = F - p;
@@ -21299,8 +21304,8 @@ function AU(t, e, r) {
21299
21304
  }
21300
21305
  return O.cancel = w, O.flush = I, O;
21301
21306
  }
21302
- var SU = AU;
21303
- const wo = /* @__PURE__ */ ri(SU), Bh = (t, e, r, n) => {
21307
+ var EU = SU;
21308
+ const wo = /* @__PURE__ */ ri(EU), Bh = (t, e, r, n) => {
21304
21309
  const i = Dt(wo(t, n), [
21305
21310
  t,
21306
21311
  n
@@ -21322,7 +21327,7 @@ const wo = /* @__PURE__ */ ri(SU), Bh = (t, e, r, n) => {
21322
21327
  onPointerDown: h,
21323
21328
  onPointerOut: p
21324
21329
  };
21325
- }, EU = {
21330
+ }, CU = {
21326
21331
  isPlaying: !1,
21327
21332
  progress: 0,
21328
21333
  speed: 1,
@@ -21333,8 +21338,8 @@ const wo = /* @__PURE__ */ ri(SU), Bh = (t, e, r, n) => {
21333
21338
  size: { width: 50, height: 50 },
21334
21339
  isDragging: !1,
21335
21340
  timeDiff: 0
21336
- }, CU = ee.forwardRef((t, e) => {
21337
- const [r, n] = ee.useState(0), [i, a] = ee.useState(), u = pe(null), l = pe(null), h = pe(null), p = pe(EU), m = pe(), {
21341
+ }, IU = ee.forwardRef((t, e) => {
21342
+ const [r, n] = ee.useState(0), [i, a] = ee.useState(), u = pe(null), l = pe(null), h = pe(null), p = pe(CU), m = pe(), {
21338
21343
  uniqueId: c,
21339
21344
  mute: d = !1,
21340
21345
  src: g,
@@ -21543,7 +21548,7 @@ const wo = /* @__PURE__ */ ri(SU), Bh = (t, e, r, n) => {
21543
21548
  }
21544
21549
  );
21545
21550
  });
21546
- CU.whyDidYouRender = {
21551
+ IU.whyDidYouRender = {
21547
21552
  logOnDifferentValues: !0,
21548
21553
  customName: "PixiVideoSprite"
21549
21554
  };
@@ -21743,26 +21748,26 @@ const n4 = ee.forwardRef((t, e) => {
21743
21748
  }
21744
21749
  );
21745
21750
  });
21746
- var IU = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ADD = 1] = "ADD", t[t.MULTIPLY = 2] = "MULTIPLY", t[t.SCREEN = 3] = "SCREEN", t[t.OVERLAY = 4] = "OVERLAY", t[t.DARKEN = 5] = "DARKEN", t[t.LIGHTEN = 6] = "LIGHTEN", t[t.COLOR_DODGE = 7] = "COLOR_DODGE", t[t.COLOR_BURN = 8] = "COLOR_BURN", t[t.HARD_LIGHT = 9] = "HARD_LIGHT", t[t.SOFT_LIGHT = 10] = "SOFT_LIGHT", t[t.DIFFERENCE = 11] = "DIFFERENCE", t[t.EXCLUSION = 12] = "EXCLUSION", t[t.HUE = 13] = "HUE", t[t.SATURATION = 14] = "SATURATION", t[t.COLOR = 15] = "COLOR", t[t.LUMINOSITY = 16] = "LUMINOSITY", t))(IU || {});
21751
+ var RU = /* @__PURE__ */ ((t) => (t[t.NORMAL = 0] = "NORMAL", t[t.ADD = 1] = "ADD", t[t.MULTIPLY = 2] = "MULTIPLY", t[t.SCREEN = 3] = "SCREEN", t[t.OVERLAY = 4] = "OVERLAY", t[t.DARKEN = 5] = "DARKEN", t[t.LIGHTEN = 6] = "LIGHTEN", t[t.COLOR_DODGE = 7] = "COLOR_DODGE", t[t.COLOR_BURN = 8] = "COLOR_BURN", t[t.HARD_LIGHT = 9] = "HARD_LIGHT", t[t.SOFT_LIGHT = 10] = "SOFT_LIGHT", t[t.DIFFERENCE = 11] = "DIFFERENCE", t[t.EXCLUSION = 12] = "EXCLUSION", t[t.HUE = 13] = "HUE", t[t.SATURATION = 14] = "SATURATION", t[t.COLOR = 15] = "COLOR", t[t.LUMINOSITY = 16] = "LUMINOSITY", t))(RU || {});
21747
21752
  export {
21748
21753
  um as Animations,
21749
- IU as BlendModes,
21754
+ RU as BlendModes,
21750
21755
  Qe as Events,
21751
21756
  ni as GsapPixieContext,
21752
- NU as GsapPixieContextProvider,
21757
+ LU as GsapPixieContextProvider,
21753
21758
  JB as PixiAnimatedSprite,
21754
- t4 as PixiAudioSprite,
21759
+ r4 as PixiAudioSprite,
21755
21760
  tU as PixiGifSprite,
21756
21761
  DL as PixiImageSprite,
21757
21762
  a4 as PixiRemotionSprite,
21758
21763
  i4 as PixiSequence,
21759
21764
  s4 as PixiSequenceWrapper,
21760
- e4 as PixiSvgPathSprite,
21761
- r4 as PixiTextSprite,
21765
+ t4 as PixiSvgPathSprite,
21766
+ rU as PixiTextSprite,
21762
21767
  n4 as PixiVideoCanvasSyncSprite,
21763
- CU as PixiVideoSprite,
21768
+ IU as PixiVideoSprite,
21764
21769
  Cs as emitCustomEvent,
21765
- FU as newCustomEventEmitter,
21770
+ NU as newCustomEventEmitter,
21766
21771
  pt as useCustomEventListener,
21767
21772
  JP as useGsapEffect
21768
21773
  };