@datapos/datapos-shared 0.3.207 → 0.3.213

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,122 +1,17 @@
1
- const V = ["createObject", "dropObject", "removeRecords", "upsertRecords"], X = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
- function G() {
3
- function e(a, r, t) {
4
- t.textContent = "Cytoscape.js diagram goes here...";
1
+ const E = ["createObject", "dropObject", "removeRecords", "upsertRecords"], I = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
+ function x() {
3
+ function e(t, a, r) {
4
+ r.textContent = "Cytoscape.js diagram goes here...";
5
5
  }
6
6
  return { render: e };
7
7
  }
8
- function z() {
9
- function e(a, r, t) {
10
- t.textContent = "values table goes here...";
8
+ function T() {
9
+ function e(t, a, r) {
10
+ r.textContent = "values table goes here...";
11
11
  }
12
12
  return { render: e };
13
13
  }
14
- const _ = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", x = "highcharts";
15
- let b, w = !1;
16
- function K() {
17
- async function e(n, s, m, h) {
18
- await t();
19
- const l = [];
20
- for (const c of s.data.measures)
21
- l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
22
- const p = {
23
- chart: { type: n.options.highchartsType },
24
- plotOptions: { series: { borderColor: "#333" } },
25
- series: l,
26
- title: { text: s.title.text },
27
- xAxis: { categories: s.data.categoryLabels },
28
- yAxis: { title: { text: s.data.name } }
29
- }, u = b.chart(m, p, h);
30
- return { chart: u, resize: () => u.reflow(), vendorId: x };
31
- }
32
- async function a(n, s, m, h) {
33
- await Promise.all([t(), o()]);
34
- const l = [];
35
- for (const c of s.data.measures)
36
- l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
37
- const p = {
38
- chart: { polar: !0 },
39
- plotOptions: { series: { borderColor: "#333" } },
40
- series: l,
41
- title: { text: s.title.text },
42
- xAxis: { categories: s.data.categoryLabels },
43
- yAxis: { title: { text: s.data.name } }
44
- }, u = b.chart(m, p, h);
45
- return { chart: u, resize: () => u.reflow(), vendorId: x };
46
- }
47
- async function r(n, s, m, h) {
48
- await Promise.all([t(), o()]);
49
- const l = [], p = [];
50
- for (let f = 0; f < s.data.measures[0].data.length; f++)
51
- p.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
52
- l.push({ type: n.options.highchartsType, name: "Unknown", data: p });
53
- const u = {
54
- chart: { type: n.options.highchartsType, inverted: n.options.inverted },
55
- plotOptions: { series: { borderColor: "#333" } },
56
- series: l,
57
- title: { text: s.title.text },
58
- xAxis: { categories: s.data.categoryLabels },
59
- yAxis: { title: { text: s.data.name } }
60
- }, c = b.chart(m, u, h);
61
- return { chart: c, resize: () => c.reflow(), vendorId: x };
62
- }
63
- async function t() {
64
- if (b) return;
65
- const n = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${n}highcharts.src.js`, m = `${n}modules/accessibility.src.js`;
66
- b = (await import(
67
- /* @vite-ignore */
68
- s
69
- )).default, await import(
70
- /* @vite-ignore */
71
- m
72
- );
73
- }
74
- async function o() {
75
- if (w) return;
76
- await import(`${_}highcharts-more.src.js`), w = !0;
77
- }
78
- return { renderCartesianChart: e, renderPolarChart: a, renderRangeChart: r };
79
- }
80
- const A = 4, C = `https://cdn.jsdelivr.net/npm/micromark@${A}/+esm`, L = 3, $ = `https://cdn.jsdelivr.net/npm/micromark-extension-gfm@${L}/+esm`, F = 3, M = `https://cdn.jsdelivr.net/npm/micromark-extension-math@${F}/+esm`, k = 1, j = `https://cdn.jsdelivr.net/npm/prismjs@${k}/+esm`;
81
- let I, T, D, O, v;
82
- function J() {
83
- async function e() {
84
- return await r(), {
85
- gfmExtension: T,
86
- gfmHtmlExtension: D,
87
- mathExtension: O,
88
- mathHtmlExtension: v,
89
- micromark: I
90
- };
91
- }
92
- async function a() {
93
- await r();
94
- }
95
- async function r() {
96
- if (I && T) return;
97
- const t = await Promise.all([
98
- import(
99
- /* @vite-ignore */
100
- C
101
- ),
102
- import(
103
- /* @vite-ignore */
104
- $
105
- ),
106
- import(
107
- /* @vite-ignore */
108
- M
109
- ),
110
- import(
111
- /* @vite-ignore */
112
- j
113
- )
114
- ]);
115
- I = t[0].micromark, T = t[1].gfm, D = t[1].gfmHtml, O = t[2].math, v = t[2].mathHtml;
116
- }
117
- return { getTools: e, render: a };
118
- }
119
- const q = 0, Q = (e) => e, Y = () => Date.now(), Z = {
14
+ const S = 0, N = (e) => e, w = () => Date.now(), D = {
120
15
  cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
121
16
  cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
122
17
  cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
@@ -135,92 +30,92 @@ const q = 0, Q = (e) => e, Y = () => Date.now(), Z = {
135
30
  streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
136
31
  values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
137
32
  };
138
- class N extends Error {
33
+ class g extends Error {
139
34
  locator;
140
- constructor(a, r, t) {
141
- super(a, t), this.name = "DataPosError", this.locator = r, Error.captureStackTrace?.(this, new.target);
35
+ constructor(t, a, r) {
36
+ super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
142
37
  }
143
38
  }
144
- class g extends N {
145
- constructor(a, r, t) {
146
- super(a, r, t), this.name = "ApplicationError";
39
+ class l extends g {
40
+ constructor(t, a, r) {
41
+ super(t, a, r), this.name = "ApplicationError";
147
42
  }
148
43
  }
149
- class ee extends g {
150
- constructor(a, r, t) {
151
- super(a, r, t), this.name = "APIError";
44
+ class v extends l {
45
+ constructor(t, a, r) {
46
+ super(t, a, r), this.name = "APIError";
152
47
  }
153
48
  }
154
- class te extends g {
155
- constructor(a, r, t) {
156
- super(a, r, t), this.name = "EngineError";
49
+ class C extends l {
50
+ constructor(t, a, r) {
51
+ super(t, a, r), this.name = "EngineError";
157
52
  }
158
53
  }
159
- class R extends g {
54
+ class u extends l {
160
55
  body;
161
- constructor(a, r, t, o) {
162
- super(a, r, o), this.name = "FetchError", this.body = t;
56
+ constructor(t, a, r, n) {
57
+ super(t, a, n), this.name = "FetchError", this.body = r;
163
58
  }
164
59
  }
165
- class U extends g {
60
+ class p extends l {
166
61
  componentName;
167
62
  info;
168
- constructor(a, r, t, o, n) {
169
- super(a, r, n), this.name = "VueHandledError", this.info = t, this.componentName = o;
63
+ constructor(t, a, r, n, s) {
64
+ super(t, a, s), this.name = "VueHandledError", this.info = r, this.componentName = n;
170
65
  }
171
66
  }
172
- class re extends g {
173
- constructor(a, r, t) {
174
- super(a, r, t), this.name = "WindowHandledRuntimeError";
67
+ class O extends l {
68
+ constructor(t, a, r) {
69
+ super(t, a, r), this.name = "WindowHandledRuntimeError";
175
70
  }
176
71
  }
177
- class ae extends g {
178
- constructor(a, r, t) {
179
- super(a, r, t), this.name = "WindowHandledPromiseRejectionError";
72
+ class R extends l {
73
+ constructor(t, a, r) {
74
+ super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
180
75
  }
181
76
  }
182
- class ne extends N {
183
- constructor(a, r, t) {
184
- super(a, r, t), this.name = "OperationalError";
77
+ class $ extends g {
78
+ constructor(t, a, r) {
79
+ super(t, a, r), this.name = "OperationalError";
185
80
  }
186
81
  }
187
- async function oe(e, a, r) {
188
- const t = `${a} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
189
- return new R(t, r, o);
82
+ async function A(e, t, a) {
83
+ const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, n = await e.text();
84
+ return new u(r, a, n);
190
85
  }
191
- function se(e) {
192
- return e.map((a) => a.message).join(" ");
86
+ function _(e) {
87
+ return e.map((t) => t.message).join(" ");
193
88
  }
194
- function ie(e, a = "Unknown error.") {
89
+ function F(e, t = "Unknown error.") {
195
90
  if (e instanceof Error) return e;
196
91
  if (typeof e == "string") return new Error(e);
197
92
  try {
198
- return new Error(JSON.stringify(e ?? a));
93
+ return new Error(JSON.stringify(e ?? t));
199
94
  } catch {
200
- return new Error(a);
95
+ return new Error(t);
201
96
  }
202
97
  }
203
- function le(e) {
204
- const a = /* @__PURE__ */ new Set(), r = [];
205
- let t = e;
206
- for (; t && !a.has(t); ) {
207
- a.add(t);
208
- let o;
209
- if (t instanceof R)
210
- o = { body: t.body, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
211
- else if (t instanceof U)
212
- o = { componentName: t.componentName, info: t.info, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
213
- else if (t instanceof N)
214
- o = { locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
215
- else if (t instanceof Error) {
216
- const n = t;
217
- o = { locator: "", message: n.message, name: n.name, stack: n.stack }, t = n.cause;
218
- } else t ? (o = { locator: "", message: String(t), name: "Error" }, t = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, t = void 0);
219
- /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), r.push(o);
98
+ function k(e) {
99
+ const t = /* @__PURE__ */ new Set(), a = [];
100
+ let r = e;
101
+ for (; r && !t.has(r); ) {
102
+ t.add(r);
103
+ let n;
104
+ if (r instanceof u)
105
+ n = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
106
+ else if (r instanceof p)
107
+ n = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
108
+ else if (r instanceof g)
109
+ n = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
110
+ else if (r instanceof Error) {
111
+ const s = r;
112
+ n = { locator: "", message: s.message, name: s.name, stack: s.stack }, r = s.cause;
113
+ } else r ? (n = { locator: "", message: String(r), name: "Error" }, r = void 0) : (n = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
114
+ /(?:\.{3}|[.!?])$/.test(n.message) || (n.message += "."), a.push(n);
220
115
  }
221
- return r;
116
+ return a;
222
117
  }
223
- const S = "en-US", y = {}, ce = (e) => {
118
+ const m = "en-US", c = {}, B = (e) => {
224
119
  switch (e) {
225
120
  case "Edm.Binary":
226
121
  return "unknown";
@@ -259,41 +154,41 @@ const S = "en-US", y = {}, ce = (e) => {
259
154
  default:
260
155
  return "unknown";
261
156
  }
262
- }, de = (e) => {
157
+ }, L = (e) => {
263
158
  if (e) {
264
- const a = e.lastIndexOf("/"), r = e.lastIndexOf(".", a > -1 ? a : e.length);
265
- return r > -1 ? e.substring(0, r) : e;
159
+ const t = e.lastIndexOf("/"), a = e.lastIndexOf(".", t > -1 ? t : e.length);
160
+ return a > -1 ? e.substring(0, a) : e;
266
161
  }
267
- }, me = (e) => {
162
+ }, M = (e) => {
268
163
  if (e) {
269
- const a = e.lastIndexOf(".");
270
- if (a > -1) return e.substring(a + 1);
164
+ const t = e.lastIndexOf(".");
165
+ if (t > -1) return e.substring(t + 1);
271
166
  }
272
- }, i = (e, a = 2, r = a, t = S) => {
167
+ }, o = (e, t = 2, a = t, r = m) => {
273
168
  if (e == null) return "";
274
- const o = `${t}decimal${a}.${r}`;
275
- let n = y[o];
276
- return n || (n = new Intl.NumberFormat(t, {
169
+ const n = `${r}decimal${t}.${a}`;
170
+ let s = c[n];
171
+ return s || (s = new Intl.NumberFormat(r, {
277
172
  localeMatcher: "best fit",
278
- maximumFractionDigits: a,
279
- minimumFractionDigits: r,
173
+ maximumFractionDigits: t,
174
+ minimumFractionDigits: a,
280
175
  minimumIntegerDigits: 1,
281
176
  style: "decimal",
282
177
  useGrouping: !0
283
- }), y[o] = n), n.format(e);
284
- }, ue = (e) => e == null ? "" : e < 1e3 ? E(e) : e < 1e6 ? `${i(e / 1e3, 2, 0)}K` : e < 1e9 ? `${i(e / 1e6, 2, 0)}M` : e < 1e12 ? `${i(e / 1e9, 2, 0)}B` : `${i(e / 1e12, 2, 0)}T`, pe = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${E(e)} bytes` : e < 1048576 ? `${i(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${i(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${i(e / 1073741824, 2, 0)} GB` : `${i(e / 1099511627776, 2, 0)} TB`, ge = (e) => e == null ? "" : e < 1e3 ? `${E(e)} ms` : e === 1e3 ? `${E(e)} sec` : e < 6e4 ? `${i(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${i(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${i(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${i(e / 864e5, 2, 0)} days`, E = (e, a = S) => {
178
+ }), c[n] = s), s.format(e);
179
+ }, j = (e) => e == null ? "" : e < 1e3 ? d(e) : e < 1e6 ? `${o(e / 1e3, 2, 0)}K` : e < 1e9 ? `${o(e / 1e6, 2, 0)}M` : e < 1e12 ? `${o(e / 1e9, 2, 0)}B` : `${o(e / 1e12, 2, 0)}T`, U = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${d(e)} bytes` : e < 1048576 ? `${o(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${o(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${o(e / 1073741824, 2, 0)} GB` : `${o(e / 1099511627776, 2, 0)} TB`, V = (e) => e == null ? "" : e < 1e3 ? `${d(e)} ms` : e === 1e3 ? `${d(e)} sec` : e < 6e4 ? `${o(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${o(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${o(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${o(e / 864e5, 2, 0)} days`, d = (e, t = m) => {
285
180
  if (e == null) return "";
286
- const r = `${a}decimal0.0`;
287
- let t = y[r];
288
- return t || (t = new Intl.NumberFormat(a, {
181
+ const a = `${t}decimal0.0`;
182
+ let r = c[a];
183
+ return r || (r = new Intl.NumberFormat(t, {
289
184
  localeMatcher: "best fit",
290
185
  maximumFractionDigits: 0,
291
186
  minimumFractionDigits: 0,
292
187
  minimumIntegerDigits: 1,
293
188
  style: "decimal",
294
189
  useGrouping: !0
295
- }), y[r] = t), t.format(e);
296
- }, he = (e) => {
190
+ }), c[a] = r), r.format(e);
191
+ }, W = (e) => {
297
192
  switch (e) {
298
193
  case "csv":
299
194
  return "text/csv";
@@ -307,7 +202,7 @@ const S = "en-US", y = {}, ce = (e) => {
307
202
  default:
308
203
  return "application/octet-stream";
309
204
  }
310
- }, H = [
205
+ }, b = [
311
206
  { id: "dtv", label: { "en-gb": "Delimited Text" } },
312
207
  { id: "e/e", label: { "en-gb": "Entity/Event" } },
313
208
  { id: "jsonArray", label: { "en-gb": "JSON Array" } },
@@ -315,22 +210,22 @@ const S = "en-US", y = {}, ce = (e) => {
315
210
  { id: "xls", label: { "en-gb": "XLS" } },
316
211
  { id: "xlsx", label: { "en-gb": "XLSX" } },
317
212
  { id: "xml", label: { "en-gb": "XML" } }
318
- ], be = (e = d) => {
319
- const a = [];
320
- for (const r of H) a.push({ ...r, label: r.label[e] || r.label[d] || r.id });
321
- return a;
322
- }, B = [
213
+ ], G = (e = i) => {
214
+ const t = [];
215
+ for (const a of b) t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
216
+ return t;
217
+ }, h = [
323
218
  { id: `
324
219
  `, label: { "en-gb": "Newline" } },
325
220
  { id: "\r", label: { "en-gb": "Carriage Return" } },
326
221
  { id: `\r
327
222
  `, label: { "en-gb": "Carriage Return/Newline" } }
328
- ], fe = (e = d) => {
329
- const a = [];
330
- for (const r of B)
331
- a.push({ ...r, label: r.label[e] || r.label[d] || r.id });
332
- return a;
333
- }, P = [
223
+ ], X = (e = i) => {
224
+ const t = [];
225
+ for (const a of h)
226
+ t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
227
+ return t;
228
+ }, f = [
334
229
  { id: ":", label: { "en-gb": "Colon" } },
335
230
  { id: ",", label: { "en-gb": "Comma" } },
336
231
  { id: "!", label: { "en-gb": "Exclamation Mark" } },
@@ -342,12 +237,12 @@ const S = "en-US", y = {}, ce = (e) => {
342
237
  { id: "_", label: { "en-gb": "Underscore" } },
343
238
  { id: "0x1F", label: { "en-gb": "Unit Separator" } },
344
239
  { id: "|", label: { "en-gb": "Vertical Bar" } }
345
- ], ye = (e = d) => {
346
- const a = [];
347
- for (const r of P)
348
- a.push({ ...r, label: r.label[e] || r.label[d] || r.id });
349
- return a;
350
- }, W = [
240
+ ], z = (e = i) => {
241
+ const t = [];
242
+ for (const a of f)
243
+ t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
244
+ return t;
245
+ }, y = [
351
246
  { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
352
247
  { id: "beta", color: "amber", label: { "en-gb": "beta" } },
353
248
  { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
@@ -357,45 +252,43 @@ const S = "en-US", y = {}, ce = (e) => {
357
252
  { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
358
253
  { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
359
254
  { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
360
- ], Ee = (e, a = d) => {
361
- const r = W.find((t) => t.id === e);
362
- return r ? { ...r, label: r.label[a] || r.label[d] || e } : { id: e, color: "other", label: e };
363
- }, d = "en-gb";
255
+ ], H = (e, t = i) => {
256
+ const a = y.find((r) => r.id === e);
257
+ return a ? { ...a, label: a.label[t] || a.label[i] || e } : { id: e, color: "other", label: e };
258
+ }, i = "en-gb";
364
259
  export {
365
- ee as APIError,
366
- g as ApplicationError,
367
- V as CONNECTOR_DESTINATION_OPERATIONS,
368
- X as CONNECTOR_SOURCE_OPERATIONS,
369
- d as DEFAULT_LOCALE_CODE,
370
- q as DefaultTimestamp,
371
- te as EngineError,
372
- R as FetchError,
373
- ne as OperationalError,
374
- U as VueError,
375
- ae as WindowPromiseRejectionError,
376
- re as WindowRuntimeError,
377
- oe as buildFetchError,
378
- se as concatenateSerialisedErrorMessages,
379
- Q as convertMillisecondsToTimestamp,
380
- ce as convertODataTypeIdToUsageTypeId,
381
- me as extractExtensionFromPath,
382
- de as extractNameFromPath,
383
- i as formatNumberAsDecimalNumber,
384
- ge as formatNumberAsDuration,
385
- ue as formatNumberAsSize,
386
- pe as formatNumberAsStorageSize,
387
- E as formatNumberAsWholeNumber,
388
- Ee as getComponentStatus,
389
- Y as getCurrentTimestamp,
390
- be as getDataFormats,
391
- fe as getRecordDelimiters,
392
- ye as getValueDelimiters,
393
- he as lookupMimeTypeForExtension,
394
- ie as normalizeToError,
395
- Z as presentationViewTypeMap,
396
- le as serialiseError,
397
- G as useCytoscapeJS,
398
- z as useDataTable,
399
- K as useHighcharts,
400
- J as useMicromark
260
+ v as APIError,
261
+ l as ApplicationError,
262
+ E as CONNECTOR_DESTINATION_OPERATIONS,
263
+ I as CONNECTOR_SOURCE_OPERATIONS,
264
+ i as DEFAULT_LOCALE_CODE,
265
+ S as DefaultTimestamp,
266
+ C as EngineError,
267
+ u as FetchError,
268
+ $ as OperationalError,
269
+ p as VueError,
270
+ R as WindowPromiseRejectionError,
271
+ O as WindowRuntimeError,
272
+ A as buildFetchError,
273
+ _ as concatenateSerialisedErrorMessages,
274
+ N as convertMillisecondsToTimestamp,
275
+ B as convertODataTypeIdToUsageTypeId,
276
+ M as extractExtensionFromPath,
277
+ L as extractNameFromPath,
278
+ o as formatNumberAsDecimalNumber,
279
+ V as formatNumberAsDuration,
280
+ j as formatNumberAsSize,
281
+ U as formatNumberAsStorageSize,
282
+ d as formatNumberAsWholeNumber,
283
+ H as getComponentStatus,
284
+ w as getCurrentTimestamp,
285
+ G as getDataFormats,
286
+ X as getRecordDelimiters,
287
+ z as getValueDelimiters,
288
+ W as lookupMimeTypeForExtension,
289
+ F as normalizeToError,
290
+ D as presentationViewTypeMap,
291
+ k as serialiseError,
292
+ x as useCytoscapeJS,
293
+ T as useDataTable
401
294
  };
@@ -1,11 +1,7 @@
1
- import { micromark } from 'micromark';
2
- import { gfm, gfmHtml } from 'micromark-extension-gfm';
3
- import { math, mathHtml } from 'micromark-extension-math';
4
1
  import { Module } from '../../module';
5
2
  import { Component, ComponentConfig, ComponentRef } from '..';
6
3
  export interface Presenter extends Module, Component {
7
4
  readonly config: PresenterConfig;
8
- readonly tools: PresenterTools;
9
5
  list(): ComponentRef[];
10
6
  render(presentationPath: string, renderTo: HTMLElement, data?: unknown): Promise<void>;
11
7
  }
@@ -17,10 +13,3 @@ export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'descript
17
13
  label: string;
18
14
  description: string;
19
15
  };
20
- export type PresenterTools = {
21
- gfmExtension: typeof gfm;
22
- gfmHtmlExtension: typeof gfmHtml;
23
- mathExtension: typeof math;
24
- mathHtmlExtension: typeof mathHtml;
25
- micromark: typeof micromark;
26
- };
@@ -42,7 +42,7 @@ export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWo
42
42
  export type { SerialisedError } from './errors';
43
43
  export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
44
44
  export type { Informer, InformerConfig, InformerLocalisedConfig, InformerTools } from './component/informer';
45
- export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterTools } from './component/presenter';
45
+ export type { Presenter, PresenterConfig, PresenterLocalisedConfig } from './component/presenter';
46
46
  export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
47
47
  export type { PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPolarViewConfig, PresentationVisualRangeViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamgraphViewConfig, PresentationVisualValuesViewConfig } from './component/presenter/presentation';
48
48
  export type { PresentationVisualViewType, PresentationVisualCartesianViewType, PresentationVisualChordViewType, PresentationVisualPolarViewType, PresentationVisualRangeViewType, PresentationVisualSankeyDiagramViewType, PresentationVisualStreamgraphViewType, PresentationVisualValuesViewType } from './component/presenter/presentation';
@@ -54,8 +54,6 @@ export interface ContextOperationSettings {
54
54
  export type { Timestamp } from './timestamp';
55
55
  export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
56
56
  export { useDataTable } from './composables/useDataTable';
57
- export { type HighchartsView, useHighcharts } from './composables/useHighcharts';
58
- export { useMicromark } from './composables/useMicromark';
59
57
  export declare const DEFAULT_LOCALE_CODE: LocaleCode;
60
58
  export { DefaultTimestamp } from './timestamp';
61
59
  export { presentationViewTypeMap } from './component/presenter/presentation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.207",
3
+ "version": "0.3.213",
4
4
  "description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -27,19 +27,19 @@
27
27
  "peerDependencies": {
28
28
  "csv-parse": "^6.1.0",
29
29
  "date-fns": "^4.1.0",
30
- "highcharts": "^12.4.0",
31
- "micromark": "^4.0.2",
32
- "micromark-extension-gfm": "^3.0.0",
33
- "micromark-extension-math": "^3.1.0",
34
30
  "nanoid": "^5.1.6",
35
31
  "zod": "^4.1.12"
36
32
  },
37
33
  "devDependencies": {
38
- "@datapos/datapos-development": "^0.3.66",
39
- "@types/node": "^24.10.0",
34
+ "highcharts": "^12.4.0",
35
+ "micromark": "^4.0.2",
36
+ "micromark-extension-gfm": "^3.0.0",
37
+ "micromark-extension-math": "^3.1.0",
38
+ "@datapos/datapos-development": "^0.3.84",
39
+ "@types/node": "^24.10.1",
40
40
  "@types/prismjs": "^1.26.5",
41
- "@typescript-eslint/eslint-plugin": "^8.46.3",
42
- "@typescript-eslint/parser": "^8.46.3",
41
+ "@typescript-eslint/eslint-plugin": "^8.46.4",
42
+ "@typescript-eslint/parser": "^8.46.4",
43
43
  "eslint": "^9.39.1",
44
44
  "eslint-plugin-import": "^2.32.0",
45
45
  "jiti": "^2.6.1",