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