@nika-js/onlymap 0.3.5 → 0.4.1

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 (34) hide show
  1. package/README.md +5 -4
  2. package/dist/{LercDecode.es-C1xVetIa.js → LercDecode.es-B35eeLUh.js} +1 -1
  3. package/dist/{basemap-BkoYlZXu.js → basemap--znNIrJq.js} +8 -2
  4. package/dist/basemap.d.ts +8 -1
  5. package/dist/ctx.d.ts +4 -0
  6. package/dist/elements/om-map.d.ts +33 -3
  7. package/dist/elements/om-widget.d.ts +15 -0
  8. package/dist/external-store.d.ts +95 -0
  9. package/dist/{index-i_KAvtQZ.js → index-BKiyX-jQ.js} +10349 -10051
  10. package/dist/{index-CY7o8j7i.js → index-C8twrrDP.js} +2 -2
  11. package/dist/{index-Ck0N90Ri.js → index-CHmCCmPV.js} +1 -1
  12. package/dist/{index-BJvRiLIi.js → index-ClqgDar6.js} +1 -1
  13. package/dist/{index-DAx8ax6u.js → index-_K3U-Ww1.js} +1 -1
  14. package/dist/index.d.ts +5 -0
  15. package/dist/{lerc-DWGhMWvo.js → lerc-filCwJiM.js} +2 -2
  16. package/dist/onlymap.standalone.js +14343 -14039
  17. package/dist/onlymapjs.js +57 -48
  18. package/dist/programmatic.d.ts +42 -5
  19. package/dist/{raster-Da1auFQH.js → raster-xUPg8Z-C.js} +2 -2
  20. package/dist/react/context.d.ts +5 -3
  21. package/dist/react/om-map.d.ts +2 -0
  22. package/dist/react/om-widget.d.ts +4 -1
  23. package/dist/react.js +216 -186
  24. package/dist/runtime-core.d.ts +9 -2
  25. package/dist/version.d.ts +1 -1
  26. package/dist/widget-layout.d.ts +62 -0
  27. package/docs/external-stores.md +135 -0
  28. package/docs/react.md +3 -1
  29. package/llms.txt +3 -3
  30. package/onlymapjs.html-data.json +36 -1
  31. package/package.json +11 -6
  32. package/skills/onlymapjs/SKILL.md +2 -2
  33. package/skills/onlymapjs/references/react.md +4 -3
  34. package/skills/onlymapjs/references/syntax.md +1 -1
@@ -1,5 +1,5 @@
1
- import { i as E, j as S, k as R, n as N, o as h, p as w, q as O, s as W, r as x, t as I, v as B, w as _, x as P, y as k, A as $, B as z, E as v, F, H as C, I as U, J as p, K as M } from "./index-i_KAvtQZ.js";
2
- import { N as $e, R as ze, _ as ve, O as Ce, P as Ue, Q as Me, S as je, T as De, U as Je, X as qe, Y as He, Z as Ve, $ as Ge, a0 as Ke, a1 as Qe, a2 as Xe, a3 as Ye, a4 as Ze, a5 as et, a6 as tt, a7 as nt, a8 as rt, a9 as at, aa as st, ab as ot } from "./index-i_KAvtQZ.js";
1
+ import { i as E, j as S, k as R, n as N, o as h, p as w, q as O, s as W, r as x, t as I, v as B, w as _, x as P, y as k, A as $, B as z, E as v, F, H as C, I as U, J as p, K as M } from "./index-BKiyX-jQ.js";
2
+ import { N as $e, R as ze, _ as ve, O as Ce, P as Ue, Q as Me, S as je, T as De, U as Je, X as qe, Y as He, Z as Ve, $ as Ge, a0 as Ke, a1 as Qe, a2 as Xe, a3 as Ye, a4 as Ze, a5 as et, a6 as tt, a7 as nt, a8 as rt, a9 as at, aa as st, ab as ot } from "./index-BKiyX-jQ.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 { ai as Bt, ak as Xt, al as Yt, am as Us } from "./index-i_KAvtQZ.js";
1
+ import { ai as Bt, ak as Xt, al as Yt, am as Us } from "./index-BKiyX-jQ.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 { ac as _t, ad as Ct } from "./index-i_KAvtQZ.js";
1
+ import { ac as _t, ad as Ct } from "./index-BKiyX-jQ.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 { ae as Be, af as le, ag as ce, ah as De, ai as Oe, aj as ke } from "./index-i_KAvtQZ.js";
1
+ import { ae as Be, af as le, ag as ce, ah as De, ai as Oe, aj as ke } from "./index-BKiyX-jQ.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";
package/dist/index.d.ts CHANGED
@@ -58,6 +58,11 @@ export type { Entitlements } from "./license";
58
58
  export type { RuntimeContext } from "./ctx";
59
59
  export { MapController, descriptorToIR } from "./programmatic";
60
60
  export type { LayerDescriptor, MapControllerOptions, CameraState, OverlayPositioner, PickListener } from "./programmatic";
61
+ export { MANAGED_SLOTS, LEGACY_POSITION_ALIASES, ALL_POSITION_VALUES, resolveSlot, slotLayout, slotContainerStyle, parseWidgetStyle, WIDGET_STYLE_KEY_NAMES } from "./widget-layout";
62
+ export type { ManagedSlot, WidgetSlot, SlotLayout, WidgetStyleParse } from "./widget-layout";
63
+ export { isStoreToken } from "./external-store";
64
+ export type { TokenStore, ViewOrigin, ViewportSnapshot, DataVersionSnapshot } from "./external-store";
65
+ export type { LayerMetaSnapshot } from "./ctx";
61
66
  export type { Selection } from "./selection";
62
67
  export type { CameraOptions } from "./runtime-core";
63
68
  export type { MapViewport } from "./basemap";
@@ -1,4 +1,4 @@
1
- import { C as a, D as s } from "./raster-Da1auFQH.js";
1
+ import { C as a, D as s } from "./raster-xUPg8Z-C.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-C1xVetIa.js");
11
+ const e = await import("./LercDecode.es-B35eeLUh.js");
12
12
  return l || (await e.load(), l = !0), e;
13
13
  }
14
14
  async function i(e, r) {