brumate 0.7.0 → 0.7.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.
Files changed (59) hide show
  1. package/dist/{boot-Cs_P8cDu.d.ts → boot-CMy0f_iC.d.ts} +2 -2
  2. package/dist/cli.js +2 -2
  3. package/dist/{client-DYIZ7BYK.js → client-Bm0XbjHr.js} +7 -5
  4. package/dist/{client-DYIZ7BYK.js.map → client-Bm0XbjHr.js.map} +1 -1
  5. package/dist/{client-BDPsTd4q.d.ts → client-DnFF9_lv.d.ts} +2 -2
  6. package/dist/{defer-7JDhFxQq.js → defer-BWwxv7Qf.js} +2 -2
  7. package/dist/{defer-7JDhFxQq.js.map → defer-BWwxv7Qf.js.map} +1 -1
  8. package/dist/{devtools-CzSp1GGq.js → devtools-Cl6AhENB.js} +4 -4
  9. package/dist/{devtools-CzSp1GGq.js.map → devtools-Cl6AhENB.js.map} +1 -1
  10. package/dist/{devtools-panel-DugGrz7L.js → devtools-panel-DLIeWcAj.js} +2 -2
  11. package/dist/{devtools-panel-DugGrz7L.js.map → devtools-panel-DLIeWcAj.js.map} +1 -1
  12. package/dist/events-LgLdp1R7.js.map +1 -1
  13. package/dist/{files-XX5yW3KL.js → files-BuQvpBwF.js} +2 -2
  14. package/dist/{files-XX5yW3KL.js.map → files-BuQvpBwF.js.map} +1 -1
  15. package/dist/{html-t1JpkODI.js → html-Cf5uKhLs.js} +3 -3
  16. package/dist/html-Cf5uKhLs.js.map +1 -0
  17. package/dist/index.js +1 -1
  18. package/dist/{inspect-B9cRF6AM.js → inspect-BSHv1_25.js} +70 -7
  19. package/dist/inspect-BSHv1_25.js.map +1 -0
  20. package/dist/{loader-BGSXt_Eb.js → loader-BPNSRA2A.js} +2 -2
  21. package/dist/{loader-BGSXt_Eb.js.map → loader-BPNSRA2A.js.map} +1 -1
  22. package/dist/{rpc-B9EkaPdU.js → rpc-DqfCaYgF.js} +3 -3
  23. package/dist/{rpc-B9EkaPdU.js.map → rpc-DqfCaYgF.js.map} +1 -1
  24. package/dist/runtime/bundles.d.ts +1 -1
  25. package/dist/runtime/client.d.ts +2 -2
  26. package/dist/runtime/client.js +3 -3
  27. package/dist/runtime/devtools.d.ts +2 -2
  28. package/dist/runtime/devtools.js +1 -1
  29. package/dist/runtime/events.d.ts +1 -1
  30. package/dist/runtime/hot.d.ts +1 -1
  31. package/dist/runtime/html.d.ts +1 -1
  32. package/dist/runtime/html.js +1 -1
  33. package/dist/runtime/loader.d.ts +2 -2
  34. package/dist/runtime/loader.js +2 -2
  35. package/dist/runtime/server.d.ts +2 -2
  36. package/dist/runtime/server.js +3 -3
  37. package/dist/runtime/static-loader.d.ts +2 -2
  38. package/dist/runtime/static-loader.js +1 -1
  39. package/dist/runtime/testing.d.ts +2 -2
  40. package/dist/runtime/testing.js +2 -2
  41. package/dist/{search-params-Cy3uRphR.js → search-params-C64liRBj.js} +2 -2
  42. package/dist/{search-params-Cy3uRphR.js.map → search-params-C64liRBj.js.map} +1 -1
  43. package/dist/{server-CavhuoFI.d.ts → server-0rS5vUW1.d.ts} +7 -4
  44. package/dist/{server-C1OTFH4r.js → server-BVObWh-w.js} +8 -5
  45. package/dist/server-BVObWh-w.js.map +1 -0
  46. package/dist/{shared-CRduzyi3.d.ts → shared-CuJdWifz.d.ts} +2 -2
  47. package/dist/{static-loader-D5hvLQK7.d.ts → static-loader-BYbXVJDY.d.ts} +2 -2
  48. package/dist/{static-loader-XGXMzfJR.js → static-loader-V4V1Oy6G.js} +12 -4
  49. package/dist/static-loader-V4V1Oy6G.js.map +1 -0
  50. package/dist/{stream-BBnArf_5.js → stream-RXLadXx1.js} +3 -3
  51. package/dist/{stream-BBnArf_5.js.map → stream-RXLadXx1.js.map} +1 -1
  52. package/dist/vite.d.ts +1 -1
  53. package/dist/vite.js +2 -2
  54. package/elements.d.ts +83 -60
  55. package/package.json +1 -1
  56. package/dist/html-t1JpkODI.js.map +0 -1
  57. package/dist/inspect-B9cRF6AM.js.map +0 -1
  58. package/dist/server-C1OTFH4r.js.map +0 -1
  59. package/dist/static-loader-XGXMzfJR.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as SerialEntry } from "./values-B8C7CLvG.js";
2
- import { qt as ClientModule } from "./client-BDPsTd4q.js";
2
+ import { qt as ClientModule } from "./client-DnFF9_lv.js";
3
3
  //#region src/runtime/boot.d.ts
4
4
  interface LoaderOptions {
5
5
  /**
@@ -51,4 +51,4 @@ interface NavigateOptions {
51
51
  }
52
52
  //#endregion
53
53
  export { NavigateOptions as n, LoaderOptions as t };
54
- //# sourceMappingURL=boot-Cs_P8cDu.d.ts.map
54
+ //# sourceMappingURL=boot-CMy0f_iC.d.ts.map
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { Q as getLocation, W as BRIDGE_EXPORT, Y as scriptBridges, Z as BrumateError, et as findError, j as analyzeProjectProps, o as CompileError, r as inspect, s as compile, w as resolveFromDisk } from "./inspect-B9cRF6AM.js";
3
- import { _ as findPackages, a as findScripts, b as resolveComponentPackage, c as findServerImport, n as defaultExclude, s as findPackageServerFile, t as collectSources } from "./files-XX5yW3KL.js";
2
+ import { Q as getLocation, W as BRIDGE_EXPORT, Y as scriptBridges, Z as BrumateError, et as findError, j as analyzeProjectProps, o as CompileError, r as inspect, s as compile, w as resolveFromDisk } from "./inspect-BSHv1_25.js";
3
+ import { _ as findPackages, a as findScripts, b as resolveComponentPackage, c as findServerImport, n as defaultExclude, s as findPackageServerFile, t as collectSources } from "./files-BuQvpBwF.js";
4
4
  import { createRequire } from "node:module";
5
5
  import { existsSync, readFileSync, statSync } from "node:fs";
6
6
  import { cp, readdir } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
- import { C as spread$1, T as textValue, b as ownValue, f as handlerEntry, g as isRaw, n as VOID_ELEMENTS, o as attributeText, p as insertValue, r as actionAttributes, s as bindEntry, v as onAttribute, y as onValue } from "./html-t1JpkODI.js";
1
+ import { C as spread$1, T as textValue, b as ownValue, f as handlerEntry, g as isRaw, n as VOID_ELEMENTS, o as attributeText, p as insertValue, r as actionAttributes, s as bindEntry, v as onAttribute, y as onValue } from "./html-Cf5uKhLs.js";
2
2
  import { _ as HAS_TITLES, a as HAS_CHILDREN, c as HAS_FIELDS, d as HAS_LOADING, f as HAS_ROOT_WAIT, g as HAS_TEMPLATES, h as HAS_STORES, i as HAS_BRIDGES, l as HAS_LATE_MARKUP, n as HAS_BINDINGS, o as HAS_CLIENT_HTML, p as HAS_ROUTES, s as HAS_DYNAMIC, v as HAS_TRIES, y as HAS_WINDOWS } from "./features-DwMYKBIC.js";
3
3
  import { a as findStored, f as sameData, h as setBridgeLoader, n as Store, o as isBridged, p as sendStore, u as isStore } from "./store-BIBAYZo-.js";
4
- import { E as stateValues, O as useSerialEntry, S as mergeHandlers, T as parseId, _ as isAsyncIterable, a as Binding, b as isSlotReference, c as ElementReference, d as PARTS, g as gateValue, h as addEntryHandlers, l as FunctionReference, m as SlotReference, r as writeParam, s as ChildrenReference, t as readParam, u as MemoError, v as isBinding, x as madeStores, y as isPropWrapper } from "./search-params-Cy3uRphR.js";
4
+ import { E as stateValues, O as useSerialEntry, S as mergeHandlers, T as parseId, _ as isAsyncIterable, a as Binding, b as isSlotReference, c as ElementReference, d as PARTS, g as gateValue, h as addEntryHandlers, l as FunctionReference, m as SlotReference, r as writeParam, s as ChildrenReference, t as readParam, u as MemoError, v as isBinding, x as madeStores, y as isPropWrapper } from "./search-params-C64liRBj.js";
5
5
  import { i as missingContext, n as ROUTE_KEY, t as NAVIGATION_KEY } from "./context-CU4Fpn5a.js";
6
6
  import { n as trustedHTML, t as loadOnce } from "./skew-FRmAy9iy.js";
7
7
  import { n as navigate } from "./routes-D21FQyGF.js";
@@ -2193,12 +2193,12 @@ function action(name, id, method, result) {
2193
2193
  * call loads, so the core holds only this.
2194
2194
  */
2195
2195
  function submitAction(form, submitter) {
2196
- import("./rpc-B9EkaPdU.js").then((module) => module.sendAction(form, submitter));
2196
+ import("./rpc-DqfCaYgF.js").then((module) => module.sendAction(form, submitter));
2197
2197
  }
2198
2198
  /** Calls a server function. */
2199
2199
  async function rpc(id, args) {
2200
2200
  const signal = memoSignal();
2201
- return track(import("./rpc-B9EkaPdU.js").then((module) => module.call(rpcPrefix, id, args, signal)));
2201
+ return track(import("./rpc-DqfCaYgF.js").then((module) => module.call(rpcPrefix, id, args, signal)));
2202
2202
  }
2203
2203
  /** A function prop rendered on the client calls the parent's exported handler. */
2204
2204
  function handlerProp(value, ref, scope, bound = [], modifiers) {
@@ -4461,6 +4461,8 @@ function addStyle(id, css) {
4461
4461
  if (!document.querySelector(`style[b-style="${id}"]`)) {
4462
4462
  const sheet = document.createElement("style");
4463
4463
  sheet.setAttribute("b-style", id);
4464
+ const nonce = document.querySelector("[nonce]")?.nonce;
4465
+ if (nonce) sheet.nonce = nonce;
4464
4466
  sheet.textContent = css;
4465
4467
  document.head.append(sheet);
4466
4468
  }
@@ -4621,4 +4623,4 @@ function noop() {}
4621
4623
  //#endregion
4622
4624
  export { branchNodes as $, fail as $t, started as A, consumeContext as At, spreadProps as B, cells as Bt, fillAttrs as C, handle as Ct, keepValue as D, submitAction as Dt, fillValue as E, spread as Et, portalTo as F, toStore as Ft, elementAt as G, memo as Gt, componentNodes as H, gate as Ht, restRef as I, updateRoute as It, readMemo as J, set as Jt, foreignNodes as K, pending as Kt, text as L, asyncMemo as Lt, attr as M, provideValue as Mt, attrs as N, setGlobal as Nt, loading as O, guess as Ot, content as P, storeUpdate as Pt, appendText as Q, updated as Qt, writeText as R, binding as Rt, countLoads as S, action as St, fillSpread as T, rpc as Tt, dynamic as U, get as Ut, component as V, effect as Vt, dynamicNodes as W, isBound as Wt, setItem as X, unreadMemo as Xt, renderMemo as Y, timed as Yt, setSlots as Z, update as Zt, rekey as _, rpcPrefix as _n, init as _t, addPortal as a, createScope as an, listNodes as at, after as b, remount as bt, setVar as c, makeId as cn, putText as ct, windowList as d, sink as dn, setContent as dt, children as en, clone as et, windowStart as f, nameComment as fn, setOn as ft, offscreen as g, hooks as gn, forget as gt, held as h, build as hn, dispose as ht, addHead as i, afterInsert as in, keepText as it, wait as j, consumeStore as jt, reveal as k, track as kt, list as l, removeScope as ln, setAttr as lt, fill as m, DEVTOOLS as mn, template as mt, paramEffect as n, templateCall as nn, fillList as nt, addStyle as o, descendants as on, markBlock as ot, branch as p, loadModule as pn, setSpread as pt, place as q, resolve as qt, searchParam as r, title as rn, keep as rt, deferInBrowser as s, getScope as sn, nodes as st, loader as t, insert as tn, fillBranch as tt, toList as u, setOwner as un, setAttrText as ut, reset as v, scopes as vn, leavePage as vt, fillSettled as w, handlerProp as wt, attempt as x, removeRoot as xt, retag as y, skew as yn, leaveRoutes as yt, prop as z, bindings as zt };
4623
4625
 
4624
- //# sourceMappingURL=client-DYIZ7BYK.js.map
4626
+ //# sourceMappingURL=client-Bm0XbjHr.js.map