@tarsis/toolkit 0.3.1 → 0.3.2

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,4 +1,4 @@
1
- import { W as WebGLRenderer, P as PerspectiveCamera, S as Scene, T as THREE$1, C as Clock, a as TextureLoader, R as RawShaderMaterial, D as DoubleSide, b as WebGLRenderTarget, c as Color, M as Mesh, d as TorusKnotGeometry, e as ShaderMaterial } from './index-DHV_gGtW.js';
1
+ import { W as WebGLRenderer, P as PerspectiveCamera, S as Scene, T as THREE$1, C as Clock, a as TextureLoader, R as RawShaderMaterial, D as DoubleSide, b as WebGLRenderTarget, c as Color, M as Mesh, d as TorusKnotGeometry, e as ShaderMaterial } from './index-rpRDiyNC.js';
2
2
 
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const index = require('./index-DKo54p8r.cjs');
5
+ const index = require('./index-i2jVzgE-.cjs');
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -52321,11 +52321,11 @@ const BubblyParticlesButton = () => {
52321
52321
  );
52322
52322
  };
52323
52323
 
52324
- const root$4g = "_root_zvoec_1";
52325
- const button$n = "_button_zvoec_13";
52326
- const p = "_p_zvoec_26";
52327
- const text$z = "_text_zvoec_26";
52328
- const effects = "_effects_zvoec_240";
52324
+ const root$4g = "_root_1gr9h_1";
52325
+ const button$n = "_button_1gr9h_13";
52326
+ const p = "_p_1gr9h_26";
52327
+ const text$z = "_text_1gr9h_26";
52328
+ const effects = "_effects_1gr9h_240";
52329
52329
  const styles$4E = {
52330
52330
  root: root$4g,
52331
52331
  button: button$n,
@@ -55811,9 +55811,9 @@ const NeonButton = ({ className = "", ...props }) => {
55811
55811
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: cn(styles$46.root, className), ...props, children: "Neon" });
55812
55812
  };
55813
55813
 
55814
- const root$3N = "_root_11wt6_2";
55815
- const i$1 = "_i_11wt6_22";
55816
- const text$s = "_text_11wt6_482";
55814
+ const root$3N = "_root_16zw6_2";
55815
+ const i$1 = "_i_16zw6_22";
55816
+ const text$s = "_text_16zw6_482";
55817
55817
  const styles$45 = {
55818
55818
  root: root$3N,
55819
55819
  i: i$1,
@@ -63897,7 +63897,7 @@ const EndlessLoader = () => {
63897
63897
  if (typeof window === "undefined") return;
63898
63898
  const loadGl = async () => {
63899
63899
  window.THREE = require("three");
63900
- const GLModule = await Promise.resolve().then(() => require('./gl-Ck8RJfgo.cjs'));
63900
+ const GLModule = await Promise.resolve().then(() => require('./gl-XUihVa4v.cjs'));
63901
63901
  const glInstance = new GLModule.GL();
63902
63902
  glInstance.init();
63903
63903
  };
@@ -69787,11 +69787,11 @@ const ScrambledText = ({
69787
69787
  );
69788
69788
  };
69789
69789
 
69790
- const root$Y = "_root_m12f5_1";
69791
- const line = "_line_m12f5_9";
69792
- const word$1 = "_word_m12f5_14";
69793
- const link = "_link_m12f5_18";
69794
- const letter = "_letter_m12f5_22";
69790
+ const root$Y = "_root_1e4wq_1";
69791
+ const line = "_line_1e4wq_9";
69792
+ const word$1 = "_word_1e4wq_14";
69793
+ const link = "_link_1e4wq_18";
69794
+ const letter = "_letter_1e4wq_22";
69795
69795
  const styles$12 = {
69796
69796
  root: root$Y,
69797
69797
  line: line,
@@ -73184,6 +73184,18 @@ function elementOuterSize(el, size, includeMargins) {
73184
73184
  return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));
73185
73185
  }
73186
73186
  }
73187
+ function setInnerHTML(el, html) {
73188
+ if (html === void 0) {
73189
+ html = '';
73190
+ }
73191
+ if (typeof trustedTypes !== 'undefined') {
73192
+ el.innerHTML = trustedTypes.createPolicy('html', {
73193
+ createHTML: s => s
73194
+ }).createHTML(html);
73195
+ } else {
73196
+ el.innerHTML = html;
73197
+ }
73198
+ }
73187
73199
 
73188
73200
  let support;
73189
73201
  function calcSupport() {
@@ -74494,11 +74506,9 @@ function transitionEmit(_ref) {
74494
74506
  if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
74495
74507
  }
74496
74508
  swiper.emit(`transition${step}`);
74497
- if (runCallbacks && activeIndex !== previousIndex) {
74498
- if (dir === 'reset') {
74499
- swiper.emit(`slideResetTransition${step}`);
74500
- return;
74501
- }
74509
+ if (runCallbacks && dir === 'reset') {
74510
+ swiper.emit(`slideResetTransition${step}`);
74511
+ } else if (runCallbacks && activeIndex !== previousIndex) {
74502
74512
  swiper.emit(`slideChangeTransition${step}`);
74503
74513
  if (dir === 'next') {
74504
74514
  swiper.emit(`slideNextTransition${step}`);
@@ -77312,14 +77322,14 @@ function updateSwiper(_ref) {
77312
77322
  if (!nextEl || typeof nextEl === 'string') {
77313
77323
  nextEl = document.createElement('div');
77314
77324
  nextEl.classList.add('swiper-button-next');
77315
- nextEl.innerHTML = swiper.hostEl.constructor.nextButtonSvg;
77325
+ setInnerHTML(nextEl, swiper.hostEl.constructor.nextButtonSvg);
77316
77326
  nextEl.part.add('button-next');
77317
77327
  swiper.el.appendChild(nextEl);
77318
77328
  }
77319
77329
  if (!prevEl || typeof prevEl === 'string') {
77320
77330
  prevEl = document.createElement('div');
77321
77331
  prevEl.classList.add('swiper-button-prev');
77322
- prevEl.innerHTML = swiper.hostEl.constructor.prevButtonSvg;
77332
+ setInnerHTML(prevEl, swiper.hostEl.constructor.prevButtonSvg);
77323
77333
  prevEl.part.add('button-prev');
77324
77334
  swiper.el.appendChild(prevEl);
77325
77335
  }
@@ -77468,13 +77478,14 @@ const updateOnVirtualData = swiper => {
77468
77478
  swiper.updateSlides();
77469
77479
  swiper.updateProgress();
77470
77480
  swiper.updateSlidesClasses();
77481
+ swiper.emit('_virtualUpdated');
77471
77482
  if (swiper.parallax && swiper.params.parallax && swiper.params.parallax.enabled) {
77472
77483
  swiper.parallax.setTranslate();
77473
77484
  }
77474
77485
  };
77475
77486
 
77476
77487
  /**
77477
- * Swiper React 11.2.6
77488
+ * Swiper React 11.2.8
77478
77489
  * Most modern mobile touch slider and framework with hardware accelerated transitions
77479
77490
  * https://swiperjs.com
77480
77491
  *
@@ -77482,7 +77493,7 @@ const updateOnVirtualData = swiper => {
77482
77493
  *
77483
77494
  * Released under the MIT License
77484
77495
  *
77485
- * Released on: March 19, 2025
77496
+ * Released on: May 23, 2025
77486
77497
  */
77487
77498
 
77488
77499
 
@@ -52319,11 +52319,11 @@ const BubblyParticlesButton = () => {
52319
52319
  );
52320
52320
  };
52321
52321
 
52322
- const root$4g = "_root_zvoec_1";
52323
- const button$n = "_button_zvoec_13";
52324
- const p = "_p_zvoec_26";
52325
- const text$z = "_text_zvoec_26";
52326
- const effects = "_effects_zvoec_240";
52322
+ const root$4g = "_root_1gr9h_1";
52323
+ const button$n = "_button_1gr9h_13";
52324
+ const p = "_p_1gr9h_26";
52325
+ const text$z = "_text_1gr9h_26";
52326
+ const effects = "_effects_1gr9h_240";
52327
52327
  const styles$4E = {
52328
52328
  root: root$4g,
52329
52329
  button: button$n,
@@ -55809,9 +55809,9 @@ const NeonButton = ({ className = "", ...props }) => {
55809
55809
  return /* @__PURE__ */ jsx("button", { type: "button", className: cn(styles$46.root, className), ...props, children: "Neon" });
55810
55810
  };
55811
55811
 
55812
- const root$3N = "_root_11wt6_2";
55813
- const i$1 = "_i_11wt6_22";
55814
- const text$s = "_text_11wt6_482";
55812
+ const root$3N = "_root_16zw6_2";
55813
+ const i$1 = "_i_16zw6_22";
55814
+ const text$s = "_text_16zw6_482";
55815
55815
  const styles$45 = {
55816
55816
  root: root$3N,
55817
55817
  i: i$1,
@@ -63895,7 +63895,7 @@ const EndlessLoader = () => {
63895
63895
  if (typeof window === "undefined") return;
63896
63896
  const loadGl = async () => {
63897
63897
  window.THREE = require("three");
63898
- const GLModule = await import('./gl-aoSUckLs.js');
63898
+ const GLModule = await import('./gl-BcR7cLlG.js');
63899
63899
  const glInstance = new GLModule.GL();
63900
63900
  glInstance.init();
63901
63901
  };
@@ -69785,11 +69785,11 @@ const ScrambledText = ({
69785
69785
  );
69786
69786
  };
69787
69787
 
69788
- const root$Y = "_root_m12f5_1";
69789
- const line = "_line_m12f5_9";
69790
- const word$1 = "_word_m12f5_14";
69791
- const link = "_link_m12f5_18";
69792
- const letter = "_letter_m12f5_22";
69788
+ const root$Y = "_root_1e4wq_1";
69789
+ const line = "_line_1e4wq_9";
69790
+ const word$1 = "_word_1e4wq_14";
69791
+ const link = "_link_1e4wq_18";
69792
+ const letter = "_letter_1e4wq_22";
69793
69793
  const styles$12 = {
69794
69794
  root: root$Y,
69795
69795
  line: line,
@@ -73182,6 +73182,18 @@ function elementOuterSize(el, size, includeMargins) {
73182
73182
  return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));
73183
73183
  }
73184
73184
  }
73185
+ function setInnerHTML(el, html) {
73186
+ if (html === void 0) {
73187
+ html = '';
73188
+ }
73189
+ if (typeof trustedTypes !== 'undefined') {
73190
+ el.innerHTML = trustedTypes.createPolicy('html', {
73191
+ createHTML: s => s
73192
+ }).createHTML(html);
73193
+ } else {
73194
+ el.innerHTML = html;
73195
+ }
73196
+ }
73185
73197
 
73186
73198
  let support;
73187
73199
  function calcSupport() {
@@ -74492,11 +74504,9 @@ function transitionEmit(_ref) {
74492
74504
  if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
74493
74505
  }
74494
74506
  swiper.emit(`transition${step}`);
74495
- if (runCallbacks && activeIndex !== previousIndex) {
74496
- if (dir === 'reset') {
74497
- swiper.emit(`slideResetTransition${step}`);
74498
- return;
74499
- }
74507
+ if (runCallbacks && dir === 'reset') {
74508
+ swiper.emit(`slideResetTransition${step}`);
74509
+ } else if (runCallbacks && activeIndex !== previousIndex) {
74500
74510
  swiper.emit(`slideChangeTransition${step}`);
74501
74511
  if (dir === 'next') {
74502
74512
  swiper.emit(`slideNextTransition${step}`);
@@ -77310,14 +77320,14 @@ function updateSwiper(_ref) {
77310
77320
  if (!nextEl || typeof nextEl === 'string') {
77311
77321
  nextEl = document.createElement('div');
77312
77322
  nextEl.classList.add('swiper-button-next');
77313
- nextEl.innerHTML = swiper.hostEl.constructor.nextButtonSvg;
77323
+ setInnerHTML(nextEl, swiper.hostEl.constructor.nextButtonSvg);
77314
77324
  nextEl.part.add('button-next');
77315
77325
  swiper.el.appendChild(nextEl);
77316
77326
  }
77317
77327
  if (!prevEl || typeof prevEl === 'string') {
77318
77328
  prevEl = document.createElement('div');
77319
77329
  prevEl.classList.add('swiper-button-prev');
77320
- prevEl.innerHTML = swiper.hostEl.constructor.prevButtonSvg;
77330
+ setInnerHTML(prevEl, swiper.hostEl.constructor.prevButtonSvg);
77321
77331
  prevEl.part.add('button-prev');
77322
77332
  swiper.el.appendChild(prevEl);
77323
77333
  }
@@ -77466,13 +77476,14 @@ const updateOnVirtualData = swiper => {
77466
77476
  swiper.updateSlides();
77467
77477
  swiper.updateProgress();
77468
77478
  swiper.updateSlidesClasses();
77479
+ swiper.emit('_virtualUpdated');
77469
77480
  if (swiper.parallax && swiper.params.parallax && swiper.params.parallax.enabled) {
77470
77481
  swiper.parallax.setTranslate();
77471
77482
  }
77472
77483
  };
77473
77484
 
77474
77485
  /**
77475
- * Swiper React 11.2.6
77486
+ * Swiper React 11.2.8
77476
77487
  * Most modern mobile touch slider and framework with hardware accelerated transitions
77477
77488
  * https://swiperjs.com
77478
77489
  *
@@ -77480,7 +77491,7 @@ const updateOnVirtualData = swiper => {
77480
77491
  *
77481
77492
  * Released under the MIT License
77482
77493
  *
77483
- * Released on: March 19, 2025
77494
+ * Released on: May 23, 2025
77484
77495
  */
77485
77496
 
77486
77497
 
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const index = require('./index-DKo54p8r.cjs');
5
+ const index = require('./index-i2jVzgE-.cjs');
6
6
 
7
7
 
8
8