zudoku 0.4.2-dev.2 → 0.4.2-dev.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.
@@ -5,7 +5,7 @@ import { j as E } from "./jsx-runtime-B6kdoens.js";
5
5
  import { c as Ce, a as Ie } from "./_commonjsHelpers-BVfed4GL.js";
6
6
  import { A as je } from "./AuthenticationPlugin-DYnkydqa.js";
7
7
  import { useState as Je, useRef as Oe, useEffect as Ne } from "react";
8
- import { D as ze } from "./DeveloperHint-BQSFXH01.js";
8
+ import { D as ze } from "./DeveloperHint-BkVaBhYp.js";
9
9
  import { E as De } from "./ErrorPage-uwQIn-3A.js";
10
10
  import { S as Ke } from "./Spinner-D4ifRVWf.js";
11
11
  import { S as We } from "./Markdown-h11bKkQ9.js";
@@ -15,7 +15,7 @@ var Ce = (e, t, n, r) => ({
15
15
  });
16
16
  import { H as jt, a as qe, M as lr, u as dr, A as hr, b as fr } from "./utils-BPHLKjns.js";
17
17
  import { d as pr, a as mr, R as gr, N as je, L as Ge, u as vr, O as Rt, b as xr, c as He } from "./index-ChhUJhLT.js";
18
- import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-WwEUzQQ3.js";
18
+ import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-B1N8zYvn.js";
19
19
  import { j as a } from "./jsx-runtime-B6kdoens.js";
20
20
  import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-Ce1nWgn5.js";
21
21
  import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-h11bKkQ9.js";
@@ -1,10 +1,10 @@
1
1
  import { j as e } from "./jsx-runtime-B6kdoens.js";
2
- import { S as p, R as g } from "./SlotletProvider-WwEUzQQ3.js";
2
+ import { S as p, R as g } from "./SlotletProvider-B1N8zYvn.js";
3
3
  import { u as j, a as u, I as k, S as v, b as w, c as b, d as K, e as N, f as y } from "./Input-CBiLCRuK.js";
4
4
  import { e as E, L as x, O as A } from "./index-ChhUJhLT.js";
5
5
  import { u as m, t as C, j as S } from "./ZudokuContext-BHNQL3XO.js";
6
6
  import { B as l, p as I } from "./Combination-Ce1nWgn5.js";
7
- import { D as P } from "./DeveloperHint-BQSFXH01.js";
7
+ import { D as P } from "./DeveloperHint-BkVaBhYp.js";
8
8
  import { useState as h } from "react";
9
9
  import { c as d, a as D, C as R, g as q } from "./Markdown-h11bKkQ9.js";
10
10
  /**
@@ -1,5 +1,5 @@
1
1
  import "./jsx-runtime-B6kdoens.js";
2
- import { o as s } from "./index-XW9taAve.js";
2
+ import { o as s } from "./index-Sapny0Di.js";
3
3
  import "./urql-YhcsXYy8.js";
4
4
  import "./ZudokuContext-BHNQL3XO.js";
5
5
  import "zudoku/openapi-worker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.4.2-dev.2",
3
+ "version": "0.4.2-dev.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -8,9 +8,7 @@ export const DeveloperHint = ({
8
8
  children: ReactNode;
9
9
  className?: string;
10
10
  }) => {
11
- // TODO: figure out a way to do that in consumer dev mode not "internal"
12
- // so this doesn't get stripped out in the build
13
- if (!import.meta.env.DEV) return;
11
+ if (process.env.NODE_ENV !== "development") return;
14
12
 
15
13
  return (
16
14
  <Callout type="caution" title="Developer hint" className={className}>
@@ -1,10 +0,0 @@
1
- import "./jsx-runtime-B6kdoens.js";
2
- const n = ({
3
- children: e,
4
- className: r
5
- }) => {
6
- };
7
- export {
8
- n as D
9
- };
10
- //# sourceMappingURL=DeveloperHint-BQSFXH01.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeveloperHint-BQSFXH01.js","sources":["../src/lib/components/DeveloperHint.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Callout } from \"../ui/Callout.js\";\n\nexport const DeveloperHint = ({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) => {\n // TODO: figure out a way to do that in consumer dev mode not \"internal\"\n // so this doesn't get stripped out in the build\n if (!import.meta.env.DEV) return;\n\n return (\n <Callout type=\"caution\" title=\"Developer hint\" className={className}>\n <div className=\"flex flex-col gap-2\">\n <div>{children}</div>\n <small className=\"italic\">\n Note: This hint is only shown in development mode.\n </small>\n </div>\n </Callout>\n );\n};\n"],"names":["DeveloperHint","children","className"],"mappings":";AAGO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,UAAAC;AAAA,EACA,WAAAC;AACF,MAGM;AAeN;"}