@startinblox/core 2.0.0-beta.12 → 2.0.0-beta.14

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.
@@ -296,6 +296,13 @@ const asyncQuerySelector = (selector, parent = document) => new Promise((resolve
296
296
  attributes: true
297
297
  });
298
298
  });
299
+ function isUrlOrRelativePath(value) {
300
+ if (typeof value !== "string") return false;
301
+ if (value.startsWith("_:")) return false;
302
+ if (/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(value)) return true;
303
+ if (value.startsWith("/")) return true;
304
+ return false;
305
+ }
299
306
  const asyncQuerySelectorAll = (selector, parent = document) => {
300
307
  const delivered = /* @__PURE__ */ new WeakSet();
301
308
  const { next, iterable } = new AsyncIterableBuilder();
@@ -332,6 +339,7 @@ const helpers = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
332
339
  importCSS,
333
340
  importInlineCSS,
334
341
  importJS,
342
+ isUrlOrRelativePath,
335
343
  loadScript,
336
344
  parseFieldsString,
337
345
  setDeepProperty,
@@ -352,12 +360,13 @@ export {
352
360
  importInlineCSS as i,
353
361
  importCSS as j,
354
362
  helpers as k,
355
- stringToDom as l,
356
- importJS as m,
357
- loadScript as n,
358
- domIsReady as o,
363
+ isUrlOrRelativePath as l,
364
+ stringToDom as m,
365
+ importJS as n,
366
+ loadScript as o,
359
367
  parseFieldsString as p,
360
- asyncQuerySelectorAll as q,
368
+ domIsReady as q,
369
+ asyncQuerySelectorAll as r,
361
370
  setDeepProperty as s,
362
371
  transformArrayToContainer as t,
363
372
  uniqID as u
package/dist/helpers.js CHANGED
@@ -1,24 +1,25 @@
1
- import { A, h, q, c, A as A2, d, a, o, e, f, b, g, j, i, m, n, p, s, l, t, u } from "./helpers-DH22C8s9.js";
1
+ import { A, h, r, c, A as A2, d, a, q, e, f, b, g, j, i, n, l, o, p, s, m, t, u } from "./helpers-D3zLqB4z.js";
2
2
  export {
3
3
  A as AsyncIterableBuilder,
4
4
  h as asyncQuerySelector,
5
- q as asyncQuerySelectorAll,
5
+ r as asyncQuerySelectorAll,
6
6
  c as compare,
7
7
  A2 as default,
8
8
  d as defineComponent,
9
9
  a as doesResourceContainList,
10
- o as domIsReady,
10
+ q as domIsReady,
11
11
  e as evalTemplateString,
12
12
  f as findClosingBracketMatchIndex,
13
13
  b as fuzzyCompare,
14
14
  g as generalComparator,
15
15
  j as importCSS,
16
16
  i as importInlineCSS,
17
- m as importJS,
18
- n as loadScript,
17
+ n as importJS,
18
+ l as isUrlOrRelativePath,
19
+ o as loadScript,
19
20
  p as parseFieldsString,
20
21
  s as setDeepProperty,
21
- l as stringToDom,
22
+ m as stringToDom,
22
23
  t as transformArrayToContainer,
23
24
  u as uniqID
24
25
  };