@jasonshimmy/custom-elements-runtime 0.0.1 → 0.0.2-beta.0

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.
@@ -308,15 +308,9 @@ function st(e, ...t) {
308
308
  return n;
309
309
  }
310
310
  function it(e) {
311
- return e;
312
- }
313
- function ot(e, t) {
314
- return { [e]: t };
315
- }
316
- function at(e) {
317
311
  return Object.keys(e).filter((t) => e[t]).join(" ");
318
312
  }
319
- function ct(e) {
313
+ function ot(e) {
320
314
  return Object.entries(e).map(([t, n]) => `${t}: ${n}`).join("; ");
321
315
  }
322
316
  function U(e, t, n) {
@@ -366,7 +360,7 @@ const R = (() => {
366
360
  }
367
361
  return typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" : !1;
368
362
  })();
369
- function lt(e, t = {}) {
363
+ function at(e, t = {}) {
370
364
  const { development: n = R, cache: r = !0, optimize: i = !0 } = t, s = N(e);
371
365
  if (r && T.has(s)) {
372
366
  if (n) {
@@ -883,7 +877,7 @@ function M(e, t) {
883
877
  return s = l(i), s;
884
878
  }
885
879
  const v = [];
886
- function dt(e) {
880
+ function ct(e) {
887
881
  v.push(e);
888
882
  }
889
883
  function _(e, t = /* @__PURE__ */ new WeakSet()) {
@@ -1420,7 +1414,7 @@ typeof HTMLElement < "u" && (P = class extends HTMLElement {
1420
1414
  `;
1421
1415
  }
1422
1416
  });
1423
- function ft(e, t) {
1417
+ function lt(e, t) {
1424
1418
  if (t = _(t), t.debug && console.log(`[runtime] Debugging component: ${e}`, t), !e || !t.template || !t.state) {
1425
1419
  t && typeof t.onError == "function" && t.onError(new Error("Component requires tag, template, and state"), t.state, {
1426
1420
  state: t.state,
@@ -1478,10 +1472,10 @@ function ft(e, t) {
1478
1472
  }
1479
1473
  export {
1480
1474
  Q as Store,
1481
- at as classes,
1475
+ it as classes,
1482
1476
  rt as compile,
1483
- lt as compileTemplate,
1484
- ft as component,
1477
+ at as compileTemplate,
1478
+ lt as component,
1485
1479
  k as createVNodeFromElement,
1486
1480
  st as css,
1487
1481
  _ as deepSanitizeObject,
@@ -1491,18 +1485,16 @@ export {
1491
1485
  nt as html,
1492
1486
  S as isPromise,
1493
1487
  g as mountVNode,
1494
- ot as on,
1495
1488
  J as parseVNodeFromHTML,
1496
1489
  L as patchVNode,
1497
- it as ref,
1498
1490
  j as renderCompiledTemplate,
1499
1491
  tt as renderComponentsToString,
1500
1492
  F as renderToString,
1501
1493
  v as runtimePlugins,
1502
1494
  D as safeReplaceChild,
1503
- ct as styles,
1495
+ ot as styles,
1504
1496
  V as updateCompiledTemplate,
1505
1497
  U as useDataModel,
1506
- dt as useRuntimePlugin
1498
+ ct as useRuntimePlugin
1507
1499
  };
1508
1500
  //# sourceMappingURL=custom-elements-runtime.es.js.map