@repere/core 0.1.0 → 0.1.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.
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  var c = /* @__PURE__ */ ((e) => (e.TopLeft = "top-left", e.TopCenter = "top-center", e.TopRight = "top-right", e.RightCenter = "right-center", e.BottomRight = "bottom-right", e.BottomCenter = "bottom-center", e.BottomLeft = "bottom-left", e.LeftCenter = "left-center", e))(c || {});
2
- const g = c.TopRight;
3
- class m {
2
+ const m = c.TopRight;
3
+ class y {
4
4
  state = /* @__PURE__ */ new Map();
5
- isDismissed(i) {
6
- return this.state.get(i)?.isDismissed ?? !1;
5
+ isDismissed(t) {
6
+ return this.state.get(t)?.isDismissed ?? !1;
7
7
  }
8
- dismiss(i) {
9
- this.state.set(i, {
10
- id: i,
8
+ dismiss(t) {
9
+ this.state.set(t, {
10
+ id: t,
11
11
  isDismissed: !0
12
12
  });
13
13
  }
14
- reset(i) {
15
- this.state.delete(i);
14
+ reset(t) {
15
+ this.state.delete(t);
16
16
  }
17
17
  resetAll() {
18
18
  this.state.clear();
@@ -22,7 +22,7 @@ class m {
22
22
  }
23
23
  }
24
24
  var d = /* @__PURE__ */ ((e) => (e.Fade = "fade", e.Scale = "scale", e.Grow = "grow", e.Shrink = "shrink", e.SlideUp = "slide-up", e.SlideDown = "slide-down", e.SlideLeft = "slide-left", e.SlideRight = "slide-right", e.None = "none", e))(d || {});
25
- const f = {
25
+ const h = {
26
26
  [d.SlideDown]: {
27
27
  initial: { y: -20, opacity: 0 },
28
28
  animate: { y: 0, opacity: 1 },
@@ -72,142 +72,142 @@ const f = {
72
72
  function u(e) {
73
73
  return e ? typeof e == "string" ? { variant: e } : e : null;
74
74
  }
75
- function y(e, i) {
76
- const t = u(e), n = u(i);
77
- return !t && !n ? null : t ? n ? {
78
- variant: n.variant ?? t.variant,
79
- duration: n.duration ?? t.duration,
80
- delay: n.delay ?? t.delay,
81
- ease: n.ease ?? t.ease
82
- } : t : n;
75
+ function w(e, t) {
76
+ const i = u(e), s = u(t);
77
+ return !i && !s ? null : i ? s ? {
78
+ variant: s.variant ?? i.variant,
79
+ duration: s.duration ?? i.duration,
80
+ delay: s.delay ?? i.delay,
81
+ ease: s.ease ?? i.ease
82
+ } : i : s;
83
83
  }
84
84
  function b(e) {
85
- const i = u(e);
86
- if (!i) return null;
87
- const t = f[i.variant];
88
- return t ? {
89
- variants: t,
85
+ const t = u(e);
86
+ if (!t) return null;
87
+ const i = h[t.variant];
88
+ return i ? {
89
+ variants: i,
90
90
  transition: {
91
- duration: (i.duration || 300) / 1e3,
91
+ duration: (t.duration || 300) / 1e3,
92
92
  // Convert ms to seconds
93
- delay: (i.delay || 0) / 1e3,
94
- ease: i.ease || [0.4, 0, 0.2, 1]
93
+ delay: (t.delay || 0) / 1e3,
94
+ ease: t.ease || [0.4, 0, 0.2, 1]
95
95
  // cubic-bezier
96
96
  }
97
- } : (console.warn(`[Repere] Unknown animation variant: ${i.variant}`), null);
97
+ } : (console.warn(`[Repere] Unknown animation variant: ${t.variant}`), null);
98
98
  }
99
- function w(e, i) {
100
- const t = (a) => {
101
- const s = a.match(/(-?\d+)%/);
102
- return s ? parseFloat(s[1]) : 0;
103
- }, n = t(e.x), r = t(e.y), o = (a = 0) => r === 0 && a === 0 ? `translate(${n}%, 0)` : a === 0 ? `translate(${n}%, ${r}%)` : `translate(${n}%, calc(${r}% + ${a}px))`;
99
+ function x(e, t) {
100
+ const i = (o) => {
101
+ const n = o.match(/(-?\d+)%/);
102
+ return n ? parseFloat(n[1]) : 0;
103
+ }, s = i(e.x), r = i(e.y), a = (o = 0) => r === 0 && o === 0 ? `translate(${s}%, 0)` : o === 0 ? `translate(${s}%, ${r}%)` : `translate(${s}%, calc(${r}% + ${o}px))`;
104
104
  return {
105
105
  initial: {
106
- ...i.initial,
107
- transform: o(i.initial.y || 0)
106
+ ...t.initial,
107
+ transform: a(t.initial.y || 0)
108
108
  },
109
109
  animate: {
110
- ...i.animate,
111
- transform: o(i.animate.y || 0)
110
+ ...t.animate,
111
+ transform: a(t.animate.y || 0)
112
112
  },
113
113
  exit: {
114
- ...i.exit,
115
- transform: o(i.exit.y || 0)
114
+ ...t.exit,
115
+ transform: a(t.exit.y || 0)
116
116
  }
117
117
  };
118
118
  }
119
- function x(e, i) {
120
- if (!e && !i) return {};
121
- const t = e?.variants, n = e?.transition, r = i?.variants, o = i?.transition, a = o?.ease ?? n?.ease ?? [0.4, 0, 0.2, 1], s = Array.isArray(a) ? `cubic-bezier(${a.join(", ")})` : a;
119
+ function k(e, t) {
120
+ if (!e && !t) return {};
121
+ const i = e?.variants, s = e?.transition, r = t?.variants, a = t?.transition, o = a?.ease ?? s?.ease ?? [0.4, 0, 0.2, 1], n = Array.isArray(o) ? `cubic-bezier(${o.join(", ")})` : o;
122
122
  return {
123
123
  // Initial state (when opening starts) - from onOpen animation
124
- "--repere-initial-opacity": t?.initial.opacity ?? 0,
125
- "--repere-initial-x": `${t?.initial.x ?? 0}px`,
126
- "--repere-initial-y": `${t?.initial.y ?? 0}px`,
127
- "--repere-initial-scale": t?.initial.scale ?? 1,
124
+ "--repere-initial-opacity": i?.initial.opacity ?? 0,
125
+ "--repere-initial-x": `${i?.initial.x ?? 0}px`,
126
+ "--repere-initial-y": `${i?.initial.y ?? 0}px`,
127
+ "--repere-initial-scale": i?.initial.scale ?? 1,
128
128
  // Animate state (fully open) - from onOpen animation
129
- "--repere-animate-opacity": t?.animate.opacity ?? 1,
130
- "--repere-animate-x": `${t?.animate.x ?? 0}px`,
131
- "--repere-animate-y": `${t?.animate.y ?? 0}px`,
132
- "--repere-animate-scale": t?.animate.scale ?? 1,
129
+ "--repere-animate-opacity": i?.animate.opacity ?? 1,
130
+ "--repere-animate-x": `${i?.animate.x ?? 0}px`,
131
+ "--repere-animate-y": `${i?.animate.y ?? 0}px`,
132
+ "--repere-animate-scale": i?.animate.scale ?? 1,
133
133
  // Exit state (when closing) - from onClose animation
134
134
  "--repere-exit-opacity": r?.exit.opacity ?? 0,
135
135
  "--repere-exit-x": `${r?.exit.x ?? 0}px`,
136
136
  "--repere-exit-y": `${r?.exit.y ?? 0}px`,
137
137
  "--repere-exit-scale": r?.exit.scale ?? 1,
138
138
  // Transition timing
139
- "--repere-transition-duration": `${o?.duration ?? n?.duration ?? 0.3}s`,
140
- "--repere-transition-timing": s
139
+ "--repere-transition-duration": `${a?.duration ?? s?.duration ?? 0.3}s`,
140
+ "--repere-transition-timing": n
141
141
  };
142
142
  }
143
- function v(e, i) {
144
- const t = e?.transition.duration ?? 0, n = i?.transition.duration ?? 0;
145
- return Math.max(t, n) * 1e3;
143
+ function v(e, t) {
144
+ const i = e?.transition.duration ?? 0, s = t?.transition.duration ?? 0;
145
+ return Math.max(i, s) * 1e3;
146
146
  }
147
- function k(e) {
148
- return new Promise((i) => setTimeout(i, e));
147
+ function T(e) {
148
+ return new Promise((t) => setTimeout(t, e));
149
149
  }
150
- function h(e, i) {
151
- if (i instanceof RegExp)
152
- return i.test(e);
153
- if (i === e)
150
+ function g(e, t) {
151
+ if (t instanceof RegExp)
152
+ return t.test(e);
153
+ if (t === e)
154
154
  return !0;
155
- if (i.includes("*")) {
156
- const t = i.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
157
- return new RegExp(`^${t}$`).test(e);
155
+ if (t.includes("*")) {
156
+ const i = t.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
157
+ return new RegExp(`^${i}$`).test(e);
158
158
  }
159
159
  return !1;
160
160
  }
161
- class T {
161
+ class I {
162
162
  store;
163
163
  debug;
164
- constructor(i, t = {}) {
165
- this.store = i, this.debug = t.debug ?? !1;
164
+ constructor(t, i = {}) {
165
+ this.store = t, this.debug = i.debug ?? !1;
166
166
  }
167
167
  /**
168
168
  * Find all pages that match the current path
169
169
  * This supports wildcards - e.g., path="*" will match all pages
170
170
  */
171
- findMatchingPages(i, t) {
172
- const n = i.filter((r) => typeof r.path == "function" ? r.path(t) : h(t, r.path));
171
+ findMatchingPages(t, i) {
172
+ const s = t.filter((r) => typeof r.path == "function" ? r.path(i) : g(i, r.path));
173
173
  return this.debug && console.log(
174
174
  "[BeaconManager] Path:",
175
- t,
175
+ i,
176
176
  "Matched pages:",
177
- n.map((r) => r.id).join(", ") || "none"
178
- ), n;
177
+ s.map((r) => r.id).join(", ") || "none"
178
+ ), s;
179
179
  }
180
180
  /**
181
181
  * Get all active (non-dismissed) beacons for the current path
182
182
  * Includes beacons from all matching pages (supports wildcards)
183
183
  */
184
- async getActiveBeacons(i, t) {
185
- const n = this.findMatchingPages(i, t);
186
- if (n.length === 0)
184
+ async getActiveBeacons(t, i) {
185
+ const s = this.findMatchingPages(t, i);
186
+ if (s.length === 0)
187
187
  return this.debug && console.log("[BeaconManager] No matching pages found"), [];
188
188
  this.debug && console.log(
189
189
  "[BeaconManager] Found",
190
- n.length,
190
+ s.length,
191
191
  "matching page(s):",
192
- n.map((s) => s.id).join(", ")
192
+ s.map((n) => n.id).join(", ")
193
193
  );
194
- const r = [], o = /* @__PURE__ */ new Set();
195
- for (const s of n)
196
- for (const l of s.beacons) {
197
- if (o.has(l.id)) {
194
+ const r = [], a = /* @__PURE__ */ new Set();
195
+ for (const n of s)
196
+ for (const l of n.beacons) {
197
+ if (a.has(l.id)) {
198
198
  this.debug && console.warn(
199
- `[BeaconManager] Duplicate beacon ID "${l.id}" in page "${s.id}", skipping`
199
+ `[BeaconManager] Duplicate beacon ID "${l.id}" in page "${n.id}", skipping`
200
200
  );
201
201
  continue;
202
202
  }
203
- o.add(l.id), r.push(l);
203
+ a.add(l.id), r.push(l);
204
204
  }
205
- const a = [];
206
- for (const s of r)
205
+ const o = [];
206
+ for (const n of r)
207
207
  await Promise.resolve(
208
- this.store.isDismissed(s.id)
209
- ) ? this.debug && console.log("[BeaconManager] Beacon", s.id, "is dismissed") : a.push(s);
210
- return this.debug && console.log("[BeaconManager] Active beacons:", a.length), a;
208
+ this.store.isDismissed(n.id)
209
+ ) ? this.debug && console.log("[BeaconManager] Beacon", n.id, "is dismissed") : o.push(n);
210
+ return this.debug && console.log("[BeaconManager] Active beacons:", o.length), o;
211
211
  }
212
212
  /**
213
213
  * Get the store instance
@@ -216,43 +216,43 @@ class T {
216
216
  return this.store;
217
217
  }
218
218
  }
219
- function p(e, i = c.TopRight, t = { x: 0, y: 0 }) {
220
- const { x: n = 0, y: r = 0 } = t;
221
- let o = 0, a = 0, s = "0", l = "0";
222
- switch (i) {
219
+ function f(e, t = c.TopRight, i = { x: 0, y: 0 }) {
220
+ const { x: s = 0, y: r = 0 } = i;
221
+ let a = 0, o = 0, n = "0", l = "0";
222
+ switch (t) {
223
223
  // Top positions
224
224
  case c.TopLeft:
225
- o = e.top + window.scrollY, a = e.left + window.scrollX, s = "-50%", l = "-100%";
225
+ a = e.top + window.scrollY, o = e.left + window.scrollX, n = "-50%", l = "-100%";
226
226
  break;
227
227
  case c.TopCenter:
228
- o = e.top + window.scrollY, a = e.left + window.scrollX + e.width / 2, s = "-50%", l = "-100%";
228
+ a = e.top + window.scrollY, o = e.left + window.scrollX + e.width / 2, n = "-50%", l = "-100%";
229
229
  break;
230
230
  case c.TopRight:
231
- o = e.top + window.scrollY, a = e.right + window.scrollX, s = "-50%", l = "-100%";
231
+ a = e.top + window.scrollY, o = e.right + window.scrollX, n = "-50%", l = "-100%";
232
232
  break;
233
233
  // Right positions
234
234
  case c.RightCenter:
235
- o = e.top + window.scrollY + e.height / 2, a = e.right + window.scrollX, s = "0", l = "-50%";
235
+ a = e.top + window.scrollY + e.height / 2, o = e.right + window.scrollX, n = "0", l = "-50%";
236
236
  break;
237
237
  // Bottom positions
238
238
  case c.BottomLeft:
239
- o = e.bottom + window.scrollY, a = e.left + window.scrollX, s = "-50%", l = "0";
239
+ a = e.bottom + window.scrollY, o = e.left + window.scrollX, n = "-50%", l = "0";
240
240
  break;
241
241
  case c.BottomCenter:
242
- o = e.bottom + window.scrollY, a = e.left + window.scrollX + e.width / 2, s = "-50%", l = "0";
242
+ a = e.bottom + window.scrollY, o = e.left + window.scrollX + e.width / 2, n = "-50%", l = "0";
243
243
  break;
244
244
  case c.BottomRight:
245
- o = e.bottom + window.scrollY, a = e.right + window.scrollX, s = "-50%", l = "0";
245
+ a = e.bottom + window.scrollY, o = e.right + window.scrollX, n = "-50%", l = "0";
246
246
  break;
247
247
  // Left positions
248
248
  case c.LeftCenter:
249
- o = e.top + window.scrollY + e.height / 2, a = e.left + window.scrollX, s = "-100%", l = "-50%";
249
+ a = e.top + window.scrollY + e.height / 2, o = e.left + window.scrollX, n = "-100%", l = "-50%";
250
250
  break;
251
251
  }
252
- return o += r, a += n, {
253
- top: o,
254
- left: a,
255
- translate: { x: s, y: l }
252
+ return a += r, o += s, {
253
+ top: a,
254
+ left: o,
255
+ translate: { x: n, y: l }
256
256
  };
257
257
  }
258
258
  class L {
@@ -262,68 +262,114 @@ class L {
262
262
  resizeObserver = null;
263
263
  mutationObserver = null;
264
264
  debug = !1;
265
- constructor(i = !1) {
266
- this.debug = i;
265
+ constructor(t = !1) {
266
+ this.debug = t;
267
267
  }
268
268
  /**
269
269
  * Subscribe to position updates for an element
270
270
  */
271
- subscribe(i, t, n, r = {}) {
272
- const o = i;
273
- return this.tracked.has(o) || this.tracked.set(o, {
274
- selector: i,
275
- position: t,
271
+ subscribe(t, i, s, r = {}) {
272
+ const a = t;
273
+ this.tracked.has(a) || this.tracked.set(a, {
274
+ selector: t,
275
+ position: i,
276
276
  offset: r.offset,
277
277
  zIndex: r.zIndex ?? 9999,
278
278
  delay: r.delay,
279
- callbacks: /* @__PURE__ */ new Set(),
279
+ callbacks: /* @__PURE__ */ new Map(),
280
280
  element: null,
281
- hasInitialUpdate: !1
282
- }), this.tracked.get(o)?.callbacks.add(n), this.tracked.size === 1 && this.startListening(), this.scheduleInitialUpdate(o), () => {
283
- const s = this.tracked.get(o);
284
- s && (s.callbacks.delete(n), s.callbacks.size === 0 && (s.delayTimeoutId !== void 0 && (clearTimeout(s.delayTimeoutId), s.delayTimeoutId = void 0), this.tracked.delete(o), this.tracked.size === 0 && this.stopListening()));
281
+ delayTimeoutIds: /* @__PURE__ */ new Map()
282
+ });
283
+ const o = this.tracked.get(a);
284
+ return o ? (o.callbacks.set(s, {
285
+ callback: s,
286
+ needsInitialDelay: (r.delay ?? 0) > 0
287
+ }), this.tracked.size === 1 && this.startListening(), this.scheduleInitialUpdate(a, s), () => {
288
+ const n = this.tracked.get(a);
289
+ if (n) {
290
+ const l = n.delayTimeoutIds.get(s);
291
+ if (l !== void 0 && (clearTimeout(l), n.delayTimeoutIds.delete(s)), n.callbacks.delete(s), n.callbacks.size === 0) {
292
+ for (const [, p] of n.delayTimeoutIds)
293
+ clearTimeout(p);
294
+ n.delayTimeoutIds.clear(), this.tracked.delete(a), this.tracked.size === 0 && this.stopListening();
295
+ }
296
+ }
297
+ }) : () => {
285
298
  };
286
299
  }
287
- scheduleInitialUpdate(i) {
288
- const t = this.tracked.get(i);
289
- t && (!t.hasInitialUpdate && t.delay && t.delay > 0 ? (t.hasInitialUpdate = !0, this.debug && console.log(
290
- `[PositionTracker] Delaying initial position calculation for ${i} by ${t.delay}ms`
291
- ), t.delayTimeoutId = setTimeout(() => {
292
- this.debug && console.log(
293
- `[PositionTracker] Calculating position for ${i} after delay`
294
- ), t.delayTimeoutId !== void 0 && (t.delayTimeoutId = void 0), this.updatePosition(i);
295
- }, t.delay)) : (t.hasInitialUpdate || (t.hasInitialUpdate = !0), this.updatePosition(i)));
300
+ scheduleInitialUpdate(t, i) {
301
+ const s = this.tracked.get(t);
302
+ if (!s) return;
303
+ const r = s.callbacks.get(i);
304
+ if (r)
305
+ if (r.needsInitialDelay && s.delay && s.delay > 0) {
306
+ this.debug && console.log(
307
+ `[PositionTracker] Delaying initial position calculation for ${t} by ${s.delay}ms`
308
+ );
309
+ const a = setTimeout(() => {
310
+ this.debug && console.log(
311
+ `[PositionTracker] Calculating position for ${t} after delay`
312
+ );
313
+ const o = s.callbacks.get(i);
314
+ o && (o.needsInitialDelay = !1), s.delayTimeoutIds.delete(i), this.updatePositionForCallback(t, i);
315
+ }, s.delay);
316
+ s.delayTimeoutIds.set(i, a);
317
+ } else
318
+ this.updatePositionForCallback(t, i);
319
+ }
320
+ updatePositionForCallback(t, i) {
321
+ const s = this.tracked.get(t);
322
+ if (!s) return;
323
+ const r = document.querySelector(s.selector);
324
+ if (!r) {
325
+ this.debug && console.log(`[PositionTracker] Element not found: ${s.selector}`), s.element = null, i(null);
326
+ return;
327
+ }
328
+ s.element = r;
329
+ const a = r.getBoundingClientRect(), n = {
330
+ ...f(
331
+ a,
332
+ s.position,
333
+ s.offset
334
+ ),
335
+ position: "fixed",
336
+ zIndex: s.zIndex
337
+ };
338
+ this.debug && console.log(
339
+ `[PositionTracker] Updated position for ${s.selector}:`,
340
+ n
341
+ ), i(n);
296
342
  }
297
- updatePosition(i) {
298
- const t = this.tracked.get(i);
299
- if (!t) return;
300
- const n = document.querySelector(t.selector);
301
- if (!n) {
302
- this.debug && console.log(`[PositionTracker] Element not found: ${t.selector}`), t.element = null;
303
- for (const s of t.callbacks)
304
- s(null);
343
+ updatePosition(t) {
344
+ const i = this.tracked.get(t);
345
+ if (!i) return;
346
+ const s = document.querySelector(i.selector);
347
+ if (!s) {
348
+ this.debug && console.log(`[PositionTracker] Element not found: ${i.selector}`), i.element = null;
349
+ for (const [n] of i.callbacks)
350
+ n(null);
305
351
  return;
306
352
  }
307
- t.element = n;
308
- const r = n.getBoundingClientRect(), a = {
309
- ...p(
353
+ i.element = s;
354
+ const r = s.getBoundingClientRect(), o = {
355
+ ...f(
310
356
  r,
311
- t.position,
312
- t.offset
357
+ i.position,
358
+ i.offset
313
359
  ),
314
360
  position: "fixed",
315
- zIndex: t.zIndex
361
+ zIndex: i.zIndex
316
362
  };
317
363
  this.debug && console.log(
318
- `[PositionTracker] Updated position for ${t.selector}:`,
319
- a
364
+ `[PositionTracker] Updated position for ${i.selector}:`,
365
+ o
320
366
  );
321
- for (const s of t.callbacks)
322
- s(a);
367
+ for (const [n] of i.callbacks)
368
+ n(o);
323
369
  }
324
370
  updateAllPositions = () => {
325
- for (const [i] of this.tracked)
326
- this.updatePosition(i);
371
+ for (const [t] of this.tracked)
372
+ this.updatePosition(t);
327
373
  };
328
374
  startListening() {
329
375
  this.scrollListener = this.updateAllPositions, window.addEventListener("scroll", this.scrollListener, !0), this.resizeListener = this.updateAllPositions, window.addEventListener("resize", this.resizeListener), "ResizeObserver" in window && (this.resizeObserver = new ResizeObserver(this.updateAllPositions)), this.mutationObserver = new MutationObserver(() => {
@@ -340,22 +386,25 @@ class L {
340
386
  * Clean up all listeners and subscriptions
341
387
  */
342
388
  destroy() {
343
- for (const [, i] of this.tracked)
344
- i.delayTimeoutId !== void 0 && (clearTimeout(i.delayTimeoutId), i.delayTimeoutId = void 0);
389
+ for (const [, t] of this.tracked) {
390
+ for (const [, i] of t.delayTimeoutIds)
391
+ clearTimeout(i);
392
+ t.delayTimeoutIds.clear();
393
+ }
345
394
  this.stopListening(), this.tracked.clear();
346
395
  }
347
396
  }
348
397
  export {
349
398
  d as Animation,
350
- T as BeaconManager,
351
- g as DEFAULT_POSITION,
352
- m as MemoryStore,
399
+ I as BeaconManager,
400
+ m as DEFAULT_POSITION,
401
+ y as MemoryStore,
353
402
  c as Position,
354
403
  L as PositionTracker,
355
404
  v as calculateDismissDuration,
356
- w as combineTranslateWithAnimation,
405
+ x as combineTranslateWithAnimation,
357
406
  b as getAnimationConfig,
358
- x as getPopoverAnimationStyles,
359
- y as mergeAnimationConfigs,
360
- k as waitForAnimations
407
+ k as getPopoverAnimationStyles,
408
+ w as mergeAnimationConfigs,
409
+ T as waitForAnimations
361
410
  };
@@ -22,6 +22,7 @@ export declare class PositionTracker {
22
22
  delay?: number;
23
23
  }): () => void;
24
24
  private scheduleInitialUpdate;
25
+ private updatePositionForCallback;
25
26
  private updatePosition;
26
27
  private updateAllPositions;
27
28
  private startListening;
@@ -1 +1 @@
1
- {"version":3,"file":"PositionTracker.d.ts","sourceRoot":"","sources":["../../src/utils/PositionTracker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,MAAM,gBAAgB,GAAG,CAC7B,QAAQ,EAAE,wBAAwB,GAAG,IAAI,KACtC,IAAI,CAAC;AAcV;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,gBAAgB,CAAiC;IACzD,OAAO,CAAC,KAAK,CAAS;gBAEV,KAAK,UAAQ;IAIzB;;OAEG;IACH,SAAS,CACP,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,GAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KACX,GACL,MAAM,IAAI;IAoDb,OAAO,CAAC,qBAAqB;IAoC7B,OAAO,CAAC,cAAc;IA2CtB,OAAO,CAAC,kBAAkB,CAIxB;IAEF,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,aAAa;IAkBrB;;OAEG;IACH,OAAO;CAYR"}
1
+ {"version":3,"file":"PositionTracker.d.ts","sourceRoot":"","sources":["../../src/utils/PositionTracker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,MAAM,gBAAgB,GAAG,CAC7B,QAAQ,EAAE,wBAAwB,GAAG,IAAI,KACtC,IAAI,CAAC;AAkBV;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,gBAAgB,CAAiC;IACzD,OAAO,CAAC,KAAK,CAAS;gBAEV,KAAK,UAAQ;IAIzB;;OAEG;IACH,SAAS,CACP,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,GAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KACX,GACL,MAAM,IAAI;IAiEb,OAAO,CAAC,qBAAqB;IA0C7B,OAAO,CAAC,yBAAyB;IAuCjC,OAAO,CAAC,cAAc;IA2CtB,OAAO,CAAC,kBAAkB,CAIxB;IAEF,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,aAAa;IAkBrB;;OAEG;IACH,OAAO;CAYR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repere/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {