@nika-js/onlymap 0.5.12 → 0.6.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.
@@ -1,5 +1,5 @@
1
- import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-aBiHCzy-.js";
2
- import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-aBiHCzy-.js";
1
+ import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-Bz-rbmhj.js";
2
+ import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-Bz-rbmhj.js";
3
3
  import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
4
4
  async function J(t, e, n = {}, r = {}) {
5
5
  const a = E(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
@@ -1,4 +1,4 @@
1
- import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-aBiHCzy-.js";
1
+ import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-Bz-rbmhj.js";
2
2
  import { y as ve, a as he, z as G, R as J, A as ue, C as Fe, F as je, n as xe, S as Ie, E as Ne } from "./recordbatch-Bpc0uxFn.js";
3
3
  import { g as V, a as fe, b as Le, c as Ue, d as Me, e as qe, m as Ve } from "./table-accessors-CYWTzpQI.js";
4
4
  import { c as $e } from "./convert-arrow-schema-DrAihRf9.js";
@@ -1,4 +1,4 @@
1
- import { ak as Bt, ax as Xt, ay as Yt, az as Us } from "./index-aBiHCzy-.js";
1
+ import { ak as Bt, ax as Xt, ay as Yt, az as Us } from "./index-Bz-rbmhj.js";
2
2
  import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
3
3
  import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
4
4
  import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
@@ -1,4 +1,4 @@
1
- import { ae as _t, af as Ct } from "./index-aBiHCzy-.js";
1
+ import { ae as _t, af as Ct } from "./index-Bz-rbmhj.js";
2
2
  function Yt(e, r, t = 2, i, o = "xy") {
3
3
  const s = r && r.length, l = s ? r[0] * t : e.length;
4
4
  let c = Ut(e, 0, l, t, !0, i && i[0], o);
@@ -1,4 +1,4 @@
1
- import { C as a, D as s } from "./raster-VyHCbPXy.js";
1
+ import { C as a, D as s } from "./raster-dysYIQ_k.js";
2
2
  const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null
4
4
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8,7 +8,7 @@ var t;
8
8
  })(t || (t = {}));
9
9
  let l = !1;
10
10
  async function d() {
11
- const e = await import("./LercDecode.es-C97NsRLr.js");
11
+ const e = await import("./LercDecode.es-fbo6h5rt.js");
12
12
  return l || (await e.load(), l = !0), e;
13
13
  }
14
14
  async function i(e, r) {
package/dist/license.d.ts CHANGED
@@ -15,11 +15,20 @@
15
15
  * basemap-key precedent) — they MAY appear in markup, unlike data
16
16
  * credentials.
17
17
  *
18
- * Decisions (spec, RESOLVED 2026-07-14): free tier = 5 layers / 25k rows
19
- * per layer / 20 MB fetch; any paid plan hides the badge; NO localhost
20
- * exemption (gates apply identically everywhere no dev-vs-prod
21
- * mismatches); violations are per-layer hard drops with loud structured
22
- * errors; no feature is gated at launch.
18
+ * Decisions (spec, RESOLVED 2026-07-14; REVISED 2026-08-05): free tier =
19
+ * 5 layers / 25k rows per layer / 20 MB fetch; any paid plan hides the
20
+ * badge; violations are per-layer hard drops with loud structured errors;
21
+ * no feature is gated at launch. REVISED: caps lift entirely in a DEV
22
+ * context loopback http(s), any non-http(s) scheme (file://, tauri://,
23
+ * …), or no `location` at all (tests/SSR) — and apply only on hosted
24
+ * http(s). Deliberately NO embedded-runtime sniffing: the commercial /
25
+ * non-commercial boundary is a fact about intent that code cannot observe,
26
+ * so packaged-app enforcement is LEGAL, not technical — LICENSE.md states
27
+ * that the dev exemption is a technical convenience, never a grant, and
28
+ * commercial distribution (hosted OR packaged) requires a key regardless
29
+ * of whether gates fired. The badge stays on in every context (it is the
30
+ * attribution obligation, not a cap). App-identity keys for packaged apps
31
+ * are the onlymap-native roadmap's `apps` claim.
23
32
  *
24
33
  * Failure semantics: invalid/expired/mismatched keys → free tier + one
25
34
  * console warning — never a broken map. While a key verifies (WebCrypto
@@ -37,6 +46,21 @@ export interface Entitlements {
37
46
  keyId: string | null;
38
47
  }
39
48
  export declare const FREE_TIER: Entitlements;
49
+ /** The dev context's entitlements: every cap lifted, badge KEPT (attribution is an obligation, not a cap — and it carries the license pointer into shipped artifacts). */
50
+ export declare const DEV_TIER: Entitlements;
51
+ /**
52
+ * Dev context = not a hosted http(s) page: loopback hosts, any non-http(s)
53
+ * scheme (file://, a desktop webview's custom scheme), or no `location` at
54
+ * all (headless tests, SSR). Computed per call (cheap string checks) so the
55
+ * test seam works; `location` itself never changes within a page.
56
+ */
57
+ export declare function isDevContext(): boolean;
58
+ /**
59
+ * @internal Test seam: the unit suite runs under happy-dom on localhost, so
60
+ * every cap test would silently become vacuous without forcing "hosted".
61
+ * `null` restores real detection.
62
+ */
63
+ export declare function setHostedContextForTests(hosted: boolean | null): void;
40
64
  export declare function getEntitlements(): Readonly<Entitlements>;
41
65
  /** True while a key is being verified — gates fail open so a paid page never flashes violations. */
42
66
  export declare function licenseSettled(): boolean;