@pinia/colada-devtools 0.2.0 → 0.3.0

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.
Files changed (42) hide show
  1. package/dist/index.d.ts +2 -4
  2. package/dist/index.js +19 -20
  3. package/dist/index.js.map +1 -1
  4. package/dist-panel/{(unselected)-B-_Xdo2t.js → (unselected)-BvYXA0-7.js} +3 -3
  5. package/dist-panel/{(unselected)-B-_Xdo2t.js.map → (unselected)-BvYXA0-7.js.map} +1 -1
  6. package/dist-panel/{(unselected)-BFwQCIEo.js → (unselected)-De_qnqOP.js} +3 -3
  7. package/dist-panel/{(unselected)-BFwQCIEo.js.map → (unselected)-De_qnqOP.js.map} +1 -1
  8. package/dist-panel/_mutationId_-DJZUO9uK.js +307 -0
  9. package/dist-panel/_mutationId_-DJZUO9uK.js.map +1 -0
  10. package/dist-panel/_queryId_-OYxjQ3wF.js +439 -0
  11. package/dist-panel/_queryId_-OYxjQ3wF.js.map +1 -0
  12. package/dist-panel/circle-x-CKUVRuJV.js +678 -0
  13. package/dist-panel/circle-x-CKUVRuJV.js.map +1 -0
  14. package/dist-panel/{index-CTwvPt67.js → index-BDRe8hqi.js} +497 -469
  15. package/dist-panel/{index-CTwvPt67.js.map → index-BDRe8hqi.js.map} +1 -1
  16. package/dist-panel/{index-kHk614RY.js → index-CbhK8baV.js} +2 -2
  17. package/dist-panel/{index-kHk614RY.js.map → index-CbhK8baV.js.map} +1 -1
  18. package/dist-panel/index.js +2 -2
  19. package/dist-panel/{loader-nEPBwFfz.js → loader-DUh7Y4gr.js} +2 -2
  20. package/dist-panel/loader-DUh7Y4gr.js.map +1 -0
  21. package/dist-panel/{mouse-pointer-click-DQLuAnaZ.js → mouse-pointer-click-tLOKuf9h.js} +2 -2
  22. package/dist-panel/mouse-pointer-click-tLOKuf9h.js.map +1 -0
  23. package/dist-panel/{mutations-BZWQwG2S.js → mutations-DbP2-xaA.js} +4 -4
  24. package/dist-panel/{mutations-BZWQwG2S.js.map → mutations-DbP2-xaA.js.map} +1 -1
  25. package/dist-panel/{queries-D3ybdTKc.js → queries-CfTVwyNe.js} +4 -4
  26. package/dist-panel/{queries-D3ybdTKc.js.map → queries-CfTVwyNe.js.map} +1 -1
  27. package/dist-panel/{settings-DddAyvXJ.js → settings--jMqFgqF.js} +2 -2
  28. package/dist-panel/{settings-DddAyvXJ.js.map → settings--jMqFgqF.js.map} +1 -1
  29. package/dist-panel/{use-container-media-query-BWmwm2oB.js → use-container-media-query-B1rNyopG.js} +2 -2
  30. package/dist-panel/{use-container-media-query-BWmwm2oB.js.map → use-container-media-query-B1rNyopG.js.map} +1 -1
  31. package/dist-shared/index.d.ts +95 -0
  32. package/dist-shared/index.js +2 -1
  33. package/dist-shared/index.js.map +1 -1
  34. package/package.json +6 -6
  35. package/dist-panel/_mutationId_-BG1E7StK.js +0 -306
  36. package/dist-panel/_mutationId_-BG1E7StK.js.map +0 -1
  37. package/dist-panel/_queryId_-BHPtMxoe.js +0 -423
  38. package/dist-panel/_queryId_-BHPtMxoe.js.map +0 -1
  39. package/dist-panel/braces-B9tH-Qp5.js +0 -294
  40. package/dist-panel/braces-B9tH-Qp5.js.map +0 -1
  41. package/dist-panel/loader-nEPBwFfz.js.map +0 -1
  42. package/dist-panel/mouse-pointer-click-DQLuAnaZ.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -3,10 +3,8 @@ import { ComponentProvideOptions } from 'vue';
3
3
  import { DefineComponent } from 'vue';
4
4
  import { PublicProps } from 'vue';
5
5
 
6
- declare type __VLS_Props = {
7
- disabled?: boolean;
8
- };
6
+ export declare const PiniaColadaDevtools: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
7
 
10
- export declare const PiniaColadaDevtools: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ export declare const PiniaColadaProdDevtools: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
11
9
 
12
10
  export { }
package/dist/index.js CHANGED
@@ -373,7 +373,7 @@ const E2 = [".isPip", ".port"], z2 = /* @__PURE__ */ F({
373
373
  const w = Array.from(i.shadowRoot.styleSheets).flatMap((c) => Array.from(c.cssRules)).filter((c) => c instanceof CSSPropertyRule).map((c) => c.cssText).join("");
374
374
  p.textContent = w, t.head.appendChild(p);
375
375
  }
376
- function T() {
376
+ function _() {
377
377
  m.value ? b() : O();
378
378
  }
379
379
  let z = 0;
@@ -395,7 +395,7 @@ const E2 = [".isPip", ".port"], z2 = /* @__PURE__ */ F({
395
395
  ref: "devtools",
396
396
  ".isPip": !!m.value,
397
397
  ".port": d.value.port2,
398
- onTogglePip: t[0] || (t[0] = (p) => T()),
398
+ onTogglePip: t[0] || (t[0] = (p) => _()),
399
399
  onReady: t[1] || (t[1] = (p) => C()),
400
400
  onClose: t[2] || (t[2] = (p) => r("close"))
401
401
  }, null, 40, E2)
@@ -403,14 +403,14 @@ const E2 = [".isPip", ".port"], z2 = /* @__PURE__ */ F({
403
403
  }
404
404
  }), C2 = typeof window < "u" && typeof document < "u";
405
405
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
406
- const A2 = Object.prototype.toString, O2 = (e) => A2.call(e) === "[object Object]", T2 = () => {
406
+ const A2 = Object.prototype.toString, O2 = (e) => A2.call(e) === "[object Object]", _2 = () => {
407
407
  };
408
- function _2(...e) {
408
+ function T2(...e) {
409
409
  if (e.length !== 1) return m2(...e);
410
410
  const o = e[0];
411
411
  return typeof o == "function" ? K(v2(() => ({
412
412
  get: o,
413
- set: T2
413
+ set: _2
414
414
  }))) : R(o);
415
415
  }
416
416
  function P2(e, o) {
@@ -427,7 +427,7 @@ function P2(e, o) {
427
427
  }
428
428
  const t2 = (e) => e();
429
429
  function G2(e = t2, o = {}) {
430
- const { initialState: r = "active" } = o, n = _2(r === "active");
430
+ const { initialState: r = "active" } = o, n = T2(r === "active");
431
431
  function l() {
432
432
  n.value = !1;
433
433
  }
@@ -497,7 +497,7 @@ function V(...e) {
497
497
  ];
498
498
  }, ([n, l, s, d], a, m) => {
499
499
  if (!n?.length || !l?.length || !s?.length) return;
500
- const b = O2(d) ? { ...d } : d, O = n.flatMap((g) => l.flatMap((T) => s.map((z) => o(g, T, z, b))));
500
+ const b = O2(d) ? { ...d } : d, O = n.flatMap((g) => l.flatMap((_) => s.map((z) => o(g, _, z, b))));
501
501
  m(() => {
502
502
  O.forEach((g) => g());
503
503
  });
@@ -549,7 +549,7 @@ const I2 = {
549
549
  }, Q = "vueuse-storage";
550
550
  function L2(e, o, r, n = {}) {
551
551
  var l;
552
- const { flush: s = "pre", deep: d = !0, listenToStorageChanges: a = !0, writeDefaults: m = !0, mergeDefaults: b = !1, shallow: O, window: g = A, eventFilter: T, onError: z = (f) => {
552
+ const { flush: s = "pre", deep: d = !0, listenToStorageChanges: a = !0, writeDefaults: m = !0, mergeDefaults: b = !1, shallow: O, window: g = A, eventFilter: _, onError: z = (f) => {
553
553
  console.error(f);
554
554
  }, initOnMounted: C } = n, i = (O ? j : R)(o), t = X(() => S(e));
555
555
  if (!r) try {
@@ -561,18 +561,18 @@ function L2(e, o, r, n = {}) {
561
561
  const p = S(o), w = B2(p), c = (l = n.serializer) !== null && l !== void 0 ? l : I2[w], { pause: k, resume: I } = $2(i, (f) => i2(f), {
562
562
  flush: s,
563
563
  deep: d,
564
- eventFilter: T
564
+ eventFilter: _
565
565
  });
566
- G(t, () => _(), { flush: s });
566
+ G(t, () => T(), { flush: s });
567
567
  let N = !1;
568
568
  const o2 = (f) => {
569
- C && !N || _(f);
569
+ C && !N || T(f);
570
570
  }, n2 = (f) => {
571
571
  C && !N || r2(f);
572
572
  };
573
573
  g && a && (r instanceof Storage ? V(g, "storage", o2, { passive: !0 }) : V(g, Q, n2)), C ? M2(() => {
574
- N = !0, _();
575
- }) : _();
574
+ N = !0, T();
575
+ }) : T();
576
576
  function L(f, v) {
577
577
  if (g) {
578
578
  const x = {
@@ -609,7 +609,7 @@ function L2(e, o, r, n = {}) {
609
609
  } : x;
610
610
  } else return typeof v != "string" ? v : c.read(v);
611
611
  }
612
- function _(f) {
612
+ function T(f) {
613
613
  if (!(f && f.storageArea !== r)) {
614
614
  if (f && f.key == null) {
615
615
  i.value = p;
@@ -629,7 +629,7 @@ function L2(e, o, r, n = {}) {
629
629
  }
630
630
  }
631
631
  function r2(f) {
632
- _(f.detail);
632
+ T(f.detail);
633
633
  }
634
634
  return i;
635
635
  }
@@ -681,14 +681,13 @@ const V2 = "data:image/svg+xml,%3csvg%20fill='none'%20height='898'%20viewBox='0%
681
681
  }
682
682
  }), ee = /* @__PURE__ */ F({
683
683
  __name: "ProductionWrapper",
684
- props: {
685
- disabled: { type: Boolean, default: () => process.env.NODE_ENV === "production" }
686
- },
687
684
  setup(e) {
688
- return (o, r) => e.disabled ? $("", !0) : (P(), M(Y2, { key: 0 }));
685
+ const o = process.env.NODE_ENV === "development";
686
+ return (r, n) => o ? (P(), M(Y2, { key: 0 })) : $("", !0);
689
687
  }
690
688
  });
691
689
  export {
692
- ee as PiniaColadaDevtools
690
+ ee as PiniaColadaDevtools,
691
+ Y2 as PiniaColadaProdDevtools
693
692
  };
694
693
  //# sourceMappingURL=index.js.map