@datapos/datapos-shared 0.3.169 → 0.3.171

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,97 +1,106 @@
1
- const M = ["createObject", "dropObject", "removeRecords", "upsertRecords"], k = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
- function F() {
3
- function e(t, a, r) {
4
- r.textContent = "Cytoscape.js diagram goes here...";
1
+ const U = ["createObject", "dropObject", "removeRecords", "upsertRecords"], P = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
+ function B() {
3
+ function e(r, a, t) {
4
+ t.textContent = "Cytoscape.js diagram goes here...";
5
5
  }
6
6
  return { render: e };
7
7
  }
8
- function U() {
9
- function e(t, a, r) {
10
- r.textContent = "values table goes here...";
8
+ function W() {
9
+ function e(r, a, t) {
10
+ t.textContent = "values table goes here...";
11
11
  }
12
12
  return { render: e };
13
13
  }
14
- const N = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", x = "highcharts";
15
- let b, T = !1;
16
- function j() {
17
- async function e(n, s, u, h) {
18
- await r();
14
+ const A = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", w = "highcharts";
15
+ let b, R = !1;
16
+ function H() {
17
+ async function e(n, s, m, h) {
18
+ await t();
19
19
  const l = [];
20
20
  for (const c of s.data.measures)
21
21
  l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
22
- const g = {
22
+ const p = {
23
23
  chart: { type: n.options.highchartsType },
24
24
  plotOptions: { series: { borderColor: "#333" } },
25
25
  series: l,
26
26
  title: { text: s.title.text },
27
27
  xAxis: { categories: s.data.categoryLabels },
28
28
  yAxis: { title: { text: s.data.name } }
29
- }, m = b.chart(u, g, h);
30
- return { chart: m, resize: () => m.reflow(), vendorId: x };
29
+ }, u = b.chart(m, p, h);
30
+ return { chart: u, resize: () => u.reflow(), vendorId: w };
31
31
  }
32
- async function t(n, s, u, h) {
33
- await Promise.all([r(), o()]);
32
+ async function r(n, s, m, h) {
33
+ await Promise.all([t(), o()]);
34
34
  const l = [];
35
35
  for (const c of s.data.measures)
36
36
  l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
37
- const g = {
37
+ const p = {
38
38
  chart: { polar: !0 },
39
39
  plotOptions: { series: { borderColor: "#333" } },
40
40
  series: l,
41
41
  title: { text: s.title.text },
42
42
  xAxis: { categories: s.data.categoryLabels },
43
43
  yAxis: { title: { text: s.data.name } }
44
- }, m = b.chart(u, g, h);
45
- return { chart: m, resize: () => m.reflow(), vendorId: x };
44
+ }, u = b.chart(m, p, h);
45
+ return { chart: u, resize: () => u.reflow(), vendorId: w };
46
46
  }
47
- async function a(n, s, u, h) {
48
- await Promise.all([r(), o()]);
49
- const l = [], g = [];
47
+ async function a(n, s, m, h) {
48
+ await Promise.all([t(), o()]);
49
+ const l = [], p = [];
50
50
  for (let f = 0; f < s.data.measures[0].data.length; f++)
51
- g.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: g });
53
- const m = {
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
54
  chart: { type: n.options.highchartsType, inverted: n.options.inverted },
55
55
  plotOptions: { series: { borderColor: "#333" } },
56
56
  series: l,
57
57
  title: { text: s.title.text },
58
58
  xAxis: { categories: s.data.categoryLabels },
59
59
  yAxis: { title: { text: s.data.name } }
60
- }, c = b.chart(u, m, h);
61
- return { chart: c, resize: () => c.reflow(), vendorId: x };
60
+ }, c = b.chart(m, u, h);
61
+ return { chart: c, resize: () => c.reflow(), vendorId: w };
62
62
  }
63
- async function r() {
63
+ async function t() {
64
64
  if (b) return;
65
- const n = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${n}highcharts.src.js`, u = `${n}modules/accessibility.src.js`;
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
66
  b = (await import(
67
67
  /* @vite-ignore */
68
68
  s
69
69
  )).default, await import(
70
70
  /* @vite-ignore */
71
- u
71
+ m
72
72
  );
73
73
  }
74
74
  async function o() {
75
- if (T) return;
76
- await import(`${N}highcharts-more.src.js`), T = !0;
75
+ if (R) return;
76
+ await import(`${A}highcharts-more.src.js`), R = !0;
77
77
  }
78
- return { renderCartesianChart: e, renderPolarChart: t, renderRangeChart: a };
78
+ return { renderCartesianChart: e, renderPolarChart: r, renderRangeChart: a };
79
79
  }
80
- const S = 4, A = `https://cdn.jsdelivr.net/npm/micromark@${S}/+esm`;
81
- let I, D;
82
- function B() {
83
- async function e(a, r, o) {
84
- await t(), o.textContent = "Micromark & Prism content goes here...";
80
+ const O = 4, N = `https://cdn.jsdelivr.net/npm/micromark@${O}/+esm`, T = 1, _ = `https://cdn.jsdelivr.net/npm/prismjs@${T}/+esm`, C = `https://cdn.jsdelivr.net/npm/prismjs@${T}/components/prism-javascript.min.js`, L = `https://cdn.jsdelivr.net/npm/prismjs@${T}/components/prism-javascript.min.js`;
81
+ let y, E;
82
+ function V() {
83
+ async function e(a, t, o) {
84
+ await r(), o.textContent = "Micromark & Prism content goes here...";
85
85
  }
86
- async function t() {
87
- I && D || (I = await import(
86
+ async function r() {
87
+ y && E || (y = await import(
88
88
  /* @vite-ignore */
89
- A
90
- ), console.log("micromarkModule", I), console.log("prismModule", D));
89
+ N
90
+ ), E = await import(
91
+ /* @vite-ignore */
92
+ _
93
+ ), await import(
94
+ /* @vite-ignore */
95
+ C
96
+ ), await import(
97
+ /* @vite-ignore */
98
+ L
99
+ ), console.log("micromarkModule", y), console.log("prismModule", E));
91
100
  }
92
- return { render: e };
101
+ return { micromarkModule: y, prismModule: E, render: e };
93
102
  }
94
- const H = 0, P = (e) => e, W = () => Date.now(), z = {
103
+ const z = 0, X = (e) => e, G = () => Date.now(), J = {
95
104
  cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
96
105
  cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
97
106
  cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
@@ -110,92 +119,92 @@ const H = 0, P = (e) => e, W = () => Date.now(), z = {
110
119
  streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
111
120
  values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
112
121
  };
113
- class w extends Error {
122
+ class D extends Error {
114
123
  locator;
115
- constructor(t, a, r) {
116
- super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
124
+ constructor(r, a, t) {
125
+ super(r, t), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
117
126
  }
118
127
  }
119
- class p extends w {
120
- constructor(t, a, r) {
121
- super(t, a, r), this.name = "ApplicationError";
128
+ class g extends D {
129
+ constructor(r, a, t) {
130
+ super(r, a, t), this.name = "ApplicationError";
122
131
  }
123
132
  }
124
- class V extends p {
125
- constructor(t, a, r) {
126
- super(t, a, r), this.name = "APIError";
133
+ class K extends g {
134
+ constructor(r, a, t) {
135
+ super(r, a, t), this.name = "APIError";
127
136
  }
128
137
  }
129
- class X extends p {
130
- constructor(t, a, r) {
131
- super(t, a, r), this.name = "EngineError";
138
+ class q extends g {
139
+ constructor(r, a, t) {
140
+ super(r, a, t), this.name = "EngineError";
132
141
  }
133
142
  }
134
- class v extends p {
143
+ class v extends g {
135
144
  body;
136
- constructor(t, a, r, o) {
137
- super(t, a, o), this.name = "FetchError", this.body = r;
145
+ constructor(r, a, t, o) {
146
+ super(r, a, o), this.name = "FetchError", this.body = t;
138
147
  }
139
148
  }
140
- class O extends p {
149
+ class $ extends g {
141
150
  componentName;
142
151
  info;
143
- constructor(t, a, r, o, n) {
144
- super(t, a, n), this.name = "VueHandledError", this.info = r, this.componentName = o;
152
+ constructor(r, a, t, o, n) {
153
+ super(r, a, n), this.name = "VueHandledError", this.info = t, this.componentName = o;
145
154
  }
146
155
  }
147
- class G extends p {
148
- constructor(t, a, r) {
149
- super(t, a, r), this.name = "WindowHandledRuntimeError";
156
+ class Q extends g {
157
+ constructor(r, a, t) {
158
+ super(r, a, t), this.name = "WindowHandledRuntimeError";
150
159
  }
151
160
  }
152
- class K extends p {
153
- constructor(t, a, r) {
154
- super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
161
+ class Y extends g {
162
+ constructor(r, a, t) {
163
+ super(r, a, t), this.name = "WindowHandledPromiseRejectionError";
155
164
  }
156
165
  }
157
- class J extends w {
158
- constructor(t, a, r) {
159
- super(t, a, r), this.name = "OperationalError";
166
+ class Z extends D {
167
+ constructor(r, a, t) {
168
+ super(r, a, t), this.name = "OperationalError";
160
169
  }
161
170
  }
162
- async function q(e, t, a) {
163
- const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
164
- return new v(r, a, o);
171
+ async function ee(e, r, a) {
172
+ const t = `${r} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
173
+ return new v(t, a, o);
165
174
  }
166
- function Q(e) {
167
- return e.map((t) => t.message).join(" ");
175
+ function te(e) {
176
+ return e.map((r) => r.message).join(" ");
168
177
  }
169
- function Y(e, t = "Unknown error.") {
178
+ function re(e, r = "Unknown error.") {
170
179
  if (e instanceof Error) return e;
171
180
  if (typeof e == "string") return new Error(e);
172
181
  try {
173
- return new Error(JSON.stringify(e ?? t));
182
+ return new Error(JSON.stringify(e ?? r));
174
183
  } catch {
175
- return new Error(t);
184
+ return new Error(r);
176
185
  }
177
186
  }
178
- function Z(e) {
179
- const t = /* @__PURE__ */ new Set(), a = [];
180
- let r = e;
181
- for (; r && !t.has(r); ) {
182
- t.add(r);
187
+ function ae(e) {
188
+ const r = /* @__PURE__ */ new Set(), a = [];
189
+ let t = e;
190
+ for (; t && !r.has(t); ) {
191
+ r.add(t);
183
192
  let o;
184
- if (r instanceof v)
185
- o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
186
- else if (r instanceof O)
187
- o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
188
- else if (r instanceof w)
189
- o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
190
- else if (r instanceof Error) {
191
- const n = r;
192
- o = { locator: "", message: n.message, name: n.name, stack: n.stack }, r = n.cause;
193
- } else r ? (o = { locator: "", message: String(r), name: "Error" }, r = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
193
+ if (t instanceof v)
194
+ o = { body: t.body, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
195
+ else if (t instanceof $)
196
+ o = { componentName: t.componentName, info: t.info, locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
197
+ else if (t instanceof D)
198
+ o = { locator: t.locator, message: t.message, name: t.name, stack: t.stack }, t = t.cause;
199
+ else if (t instanceof Error) {
200
+ const n = t;
201
+ o = { locator: "", message: n.message, name: n.name, stack: n.stack }, t = n.cause;
202
+ } else t ? (o = { locator: "", message: String(t), name: "Error" }, t = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, t = void 0);
194
203
  /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), a.push(o);
195
204
  }
196
205
  return a;
197
206
  }
198
- const R = "en-US", y = {}, ee = (e) => {
207
+ const S = "en-US", I = {}, ne = (e) => {
199
208
  switch (e) {
200
209
  case "Edm.Binary":
201
210
  return "unknown";
@@ -234,41 +243,41 @@ const R = "en-US", y = {}, ee = (e) => {
234
243
  default:
235
244
  return "unknown";
236
245
  }
237
- }, re = (e) => {
246
+ }, oe = (e) => {
238
247
  if (e) {
239
- const t = e.lastIndexOf("/"), a = e.lastIndexOf(".", t > -1 ? t : e.length);
248
+ const r = e.lastIndexOf("/"), a = e.lastIndexOf(".", r > -1 ? r : e.length);
240
249
  return a > -1 ? e.substring(0, a) : e;
241
250
  }
242
- }, te = (e) => {
251
+ }, se = (e) => {
243
252
  if (e) {
244
- const t = e.lastIndexOf(".");
245
- if (t > -1) return e.substring(t + 1);
253
+ const r = e.lastIndexOf(".");
254
+ if (r > -1) return e.substring(r + 1);
246
255
  }
247
- }, i = (e, t = 2, a = t, r = R) => {
256
+ }, i = (e, r = 2, a = r, t = S) => {
248
257
  if (e == null) return "";
249
- const o = `${r}decimal${t}.${a}`;
250
- let n = y[o];
251
- return n || (n = new Intl.NumberFormat(r, {
258
+ const o = `${t}decimal${r}.${a}`;
259
+ let n = I[o];
260
+ return n || (n = new Intl.NumberFormat(t, {
252
261
  localeMatcher: "best fit",
253
- maximumFractionDigits: t,
262
+ maximumFractionDigits: r,
254
263
  minimumFractionDigits: a,
255
264
  minimumIntegerDigits: 1,
256
265
  style: "decimal",
257
266
  useGrouping: !0
258
- }), y[o] = n), n.format(e);
259
- }, ae = (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`, ne = (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`, oe = (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, t = R) => {
267
+ }), I[o] = n), n.format(e);
268
+ }, ie = (e) => e == null ? "" : e < 1e3 ? x(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`, le = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${x(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`, ce = (e) => e == null ? "" : e < 1e3 ? `${x(e)} ms` : e === 1e3 ? `${x(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`, x = (e, r = S) => {
260
269
  if (e == null) return "";
261
- const a = `${t}decimal0.0`;
262
- let r = y[a];
263
- return r || (r = new Intl.NumberFormat(t, {
270
+ const a = `${r}decimal0.0`;
271
+ let t = I[a];
272
+ return t || (t = new Intl.NumberFormat(r, {
264
273
  localeMatcher: "best fit",
265
274
  maximumFractionDigits: 0,
266
275
  minimumFractionDigits: 0,
267
276
  minimumIntegerDigits: 1,
268
277
  style: "decimal",
269
278
  useGrouping: !0
270
- }), y[a] = r), r.format(e);
271
- }, se = (e) => {
279
+ }), I[a] = t), t.format(e);
280
+ }, de = (e) => {
272
281
  switch (e) {
273
282
  case "csv":
274
283
  return "text/csv";
@@ -282,7 +291,7 @@ const R = "en-US", y = {}, ee = (e) => {
282
291
  default:
283
292
  return "application/octet-stream";
284
293
  }
285
- }, C = [
294
+ }, M = [
286
295
  { id: "dtv", label: { "en-gb": "Delimited Text" } },
287
296
  { id: "e/e", label: { "en-gb": "Entity/Event" } },
288
297
  { id: "jsonArray", label: { "en-gb": "JSON Array" } },
@@ -290,22 +299,22 @@ const R = "en-US", y = {}, ee = (e) => {
290
299
  { id: "xls", label: { "en-gb": "XLS" } },
291
300
  { id: "xlsx", label: { "en-gb": "XLSX" } },
292
301
  { id: "xml", label: { "en-gb": "XML" } }
293
- ], ie = (e = d) => {
294
- const t = [];
295
- for (const a of C) t.push({ ...a, label: a.label[e] || a.label[d] || a.id });
296
- return t;
297
- }, _ = [
302
+ ], me = (e = d) => {
303
+ const r = [];
304
+ for (const a of M) r.push({ ...a, label: a.label[e] || a.label[d] || a.id });
305
+ return r;
306
+ }, j = [
298
307
  { id: `
299
308
  `, label: { "en-gb": "Newline" } },
300
309
  { id: "\r", label: { "en-gb": "Carriage Return" } },
301
310
  { id: `\r
302
311
  `, label: { "en-gb": "Carriage Return/Newline" } }
303
- ], le = (e = d) => {
304
- const t = [];
305
- for (const a of _)
306
- t.push({ ...a, label: a.label[e] || a.label[d] || a.id });
307
- return t;
308
- }, L = [
312
+ ], ue = (e = d) => {
313
+ const r = [];
314
+ for (const a of j)
315
+ r.push({ ...a, label: a.label[e] || a.label[d] || a.id });
316
+ return r;
317
+ }, k = [
309
318
  { id: ":", label: { "en-gb": "Colon" } },
310
319
  { id: ",", label: { "en-gb": "Comma" } },
311
320
  { id: "!", label: { "en-gb": "Exclamation Mark" } },
@@ -317,12 +326,12 @@ const R = "en-US", y = {}, ee = (e) => {
317
326
  { id: "_", label: { "en-gb": "Underscore" } },
318
327
  { id: "0x1F", label: { "en-gb": "Unit Separator" } },
319
328
  { id: "|", label: { "en-gb": "Vertical Bar" } }
320
- ], ce = (e = d) => {
321
- const t = [];
322
- for (const a of L)
323
- t.push({ ...a, label: a.label[e] || a.label[d] || a.id });
324
- return t;
325
- }, $ = [
329
+ ], pe = (e = d) => {
330
+ const r = [];
331
+ for (const a of k)
332
+ r.push({ ...a, label: a.label[e] || a.label[d] || a.id });
333
+ return r;
334
+ }, F = [
326
335
  { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
327
336
  { id: "beta", color: "amber", label: { "en-gb": "beta" } },
328
337
  { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
@@ -332,45 +341,45 @@ const R = "en-US", y = {}, ee = (e) => {
332
341
  { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
333
342
  { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
334
343
  { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
335
- ], de = (e, t = d) => {
336
- const a = $.find((r) => r.id === e);
337
- return a ? { ...a, label: a.label[t] || a.label[d] || e } : { id: e, color: "other", label: e };
344
+ ], ge = (e, r = d) => {
345
+ const a = F.find((t) => t.id === e);
346
+ return a ? { ...a, label: a.label[r] || a.label[d] || e } : { id: e, color: "other", label: e };
338
347
  }, d = "en-gb";
339
348
  export {
340
- V as APIError,
341
- p as ApplicationError,
342
- M as CONNECTOR_DESTINATION_OPERATIONS,
343
- k as CONNECTOR_SOURCE_OPERATIONS,
349
+ K as APIError,
350
+ g as ApplicationError,
351
+ U as CONNECTOR_DESTINATION_OPERATIONS,
352
+ P as CONNECTOR_SOURCE_OPERATIONS,
344
353
  d as DEFAULT_LOCALE_CODE,
345
- H as DefaultTimestamp,
346
- X as EngineError,
354
+ z as DefaultTimestamp,
355
+ q as EngineError,
347
356
  v as FetchError,
348
- J as OperationalError,
349
- O as VueError,
350
- K as WindowPromiseRejectionError,
351
- G as WindowRuntimeError,
352
- q as buildFetchError,
353
- Q as concatenateSerialisedErrorMessages,
354
- P as convertMillisecondsToTimestamp,
355
- ee as convertODataTypeIdToUsageTypeId,
356
- te as extractExtensionFromPath,
357
- re as extractNameFromPath,
357
+ Z as OperationalError,
358
+ $ as VueError,
359
+ Y as WindowPromiseRejectionError,
360
+ Q as WindowRuntimeError,
361
+ ee as buildFetchError,
362
+ te as concatenateSerialisedErrorMessages,
363
+ X as convertMillisecondsToTimestamp,
364
+ ne as convertODataTypeIdToUsageTypeId,
365
+ se as extractExtensionFromPath,
366
+ oe as extractNameFromPath,
358
367
  i as formatNumberAsDecimalNumber,
359
- oe as formatNumberAsDuration,
360
- ae as formatNumberAsSize,
361
- ne as formatNumberAsStorageSize,
362
- E as formatNumberAsWholeNumber,
363
- de as getComponentStatus,
364
- W as getCurrentTimestamp,
365
- ie as getDataFormats,
366
- le as getRecordDelimiters,
367
- ce as getValueDelimiters,
368
- se as lookupMimeTypeForExtension,
369
- Y as normalizeToError,
370
- z as presentationViewTypeMap,
371
- Z as serialiseError,
372
- F as useCytoscapeJS,
373
- U as useDataTable,
374
- j as useHighcharts,
375
- B as useMicromark
368
+ ce as formatNumberAsDuration,
369
+ ie as formatNumberAsSize,
370
+ le as formatNumberAsStorageSize,
371
+ x as formatNumberAsWholeNumber,
372
+ ge as getComponentStatus,
373
+ G as getCurrentTimestamp,
374
+ me as getDataFormats,
375
+ ue as getRecordDelimiters,
376
+ pe as getValueDelimiters,
377
+ de as lookupMimeTypeForExtension,
378
+ re as normalizeToError,
379
+ J as presentationViewTypeMap,
380
+ ae as serialiseError,
381
+ B as useCytoscapeJS,
382
+ W as useDataTable,
383
+ H as useHighcharts,
384
+ V as useMicromark
376
385
  };
@@ -1,7 +1,11 @@
1
+ import { micromark } from 'micromark';
2
+ import { default as prism } from 'prismjs';
1
3
  import { PresentationView, PresentationVisualContentConfig } from '../index';
2
4
  export interface CytoscapeJSView extends PresentationView {
3
5
  diagram: unknown;
4
6
  }
5
7
  export declare function useMicromark(): {
8
+ micromarkModule: typeof micromark | undefined;
9
+ prismModule: typeof prism | undefined;
6
10
  render: (viewType: unknown, contentConfig: PresentationVisualContentConfig, element: HTMLElement) => Promise<void>;
7
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.169",
3
+ "version": "0.3.171",
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,