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,10 +1,10 @@
1
1
  import { n as closesParagraph, r as firstTag } from "./nesting-DA5vJw9X.js";
2
2
  import { n as MODIFIERS } from "./events-LgLdp1R7.js";
3
- import { C as spread$1, S as rawHTML, a as attribute$1, b as ownValue, d as escapeAttribute, f as handlerEntry, g as isRaw, n as VOID_ELEMENTS, p as insertValue, r as actionAttributes, s as bindEntry, u as escape, v as onAttribute, w as styleElement } from "./html-t1JpkODI.js";
3
+ import { C as spread$1, S as rawHTML, a as attribute$1, b as ownValue, d as escapeAttribute, f as handlerEntry, g as isRaw, n as VOID_ELEMENTS, p as insertValue, r as actionAttributes, s as bindEntry, u as escape, v as onAttribute, w as styleElement } from "./html-Cf5uKhLs.js";
4
4
  import { n as deleteCookie, o as setCookie, r as getCookies } from "./cookies-Cnbf4w-S.js";
5
- import { a as callPlugins, c as syncPlugins, i as BridgeDataError, l as functionReferences, o as plugins, r as toChunkStream, s as serialOptions, t as STREAM_TYPE } from "./stream-BBnArf_5.js";
5
+ import { a as callPlugins, c as syncPlugins, i as BridgeDataError, l as functionReferences, o as plugins, r as toChunkStream, s as serialOptions, t as STREAM_TYPE } from "./stream-RXLadXx1.js";
6
6
  import { a as findStored, l as isForeignStore, m as sentForeignStore, n as Store, u as isStore } from "./store-BIBAYZo-.js";
7
- import { T as parseId, _ as isAsyncIterable, a as Binding, b as isSlotReference, c as ElementReference, d as PARTS, f as PropPromise, h as addEntryHandlers, l as FunctionReference, m as SlotReference, o as CHILDREN_REF, s as ChildrenReference, u as MemoError, v as isBinding } from "./search-params-Cy3uRphR.js";
7
+ import { T as parseId, _ as isAsyncIterable, a as Binding, b as isSlotReference, c as ElementReference, d as PARTS, f as PropPromise, h as addEntryHandlers, l as FunctionReference, m as SlotReference, o as CHILDREN_REF, s as ChildrenReference, u as MemoError, v as isBinding } from "./search-params-C64liRBj.js";
8
8
  import { n as serverSecrets } from "./secrets-BxagsJxJ.js";
9
9
  import { i as missingContext } from "./context-CU4Fpn5a.js";
10
10
  import { a as applyIntent, d as formatPath, f as getAt, m as groupIssues, r as INTENT, u as formValues, v as parseIntent, y as parsePath } from "./forms-nXK7-Lv_.js";
@@ -1388,6 +1388,8 @@ var Context = class Context {
1388
1388
  rpcPrefix = "/_brumate";
1389
1389
  /** The ID of the build, for forms that post to server functions. See `RenderOptions`. */
1390
1390
  build;
1391
+ /** The Content Security Policy nonce of the render, for the `<style>` elements. */
1392
+ nonce;
1391
1393
  /** True in development, where a memo that failed or a `#catch` sends its error to the browser. */
1392
1394
  development = false;
1393
1395
  /** Results of server functions that a form posted to this page, for `$action`. */
@@ -1970,7 +1972,7 @@ var Context = class Context {
1970
1972
  if (styles.has(id)) return "";
1971
1973
  styles.add(id);
1972
1974
  this.undo.push(() => styles.delete(id));
1973
- return styleElement(id, css);
1975
+ return styleElement(id, css, this.root.nonce);
1974
1976
  }
1975
1977
  /** Adds the markup of a `#head` block. */
1976
1978
  head(html) {
@@ -2932,6 +2934,7 @@ async function render(Root, props, options = {}) {
2932
2934
  if (options.actions) ctx.actions = options.actions;
2933
2935
  if (options.params) ctx.params = options.params;
2934
2936
  ctx.build = options.build;
2937
+ ctx.nonce = options.nonce;
2935
2938
  ctx.development = options.dev === true;
2936
2939
  if (options.defer) ctx.target = { ...options.defer };
2937
2940
  ctx.inOrder = !options.defer && rendersInOrder(options.inOrder ?? "bots", options.request ?? options.event?.request);
@@ -4155,4 +4158,4 @@ function spread(attributes, on, names) {
4155
4158
  //#endregion
4156
4159
  export { dedupe as $, streamParts as A, ValidationError as B, setClientBundles as C, start as D, spread as E, RateLimitError as F, matchRoute as G, parse as H, clientAddress as I, revalidate as J, cached as K, configureRateLimit as L, wait as M, waitAll as N, stateScript as O, idempotent as P, ServerError as Q, rateLimit as R, renderToStream as S, spacerTag as T, parseForm as U, fieldErrors as V, safeParse as W, storageStore as X, setCacheStore as Y, RequestEvent as Z, memo as _, attribute as a, ready as b, children as c, handleRequest as d, defineMiddleware as et, handleRoute as f, lazy as g, isCrossSite as h, actionResult as i, withEvent as it, streamState as j, stateValue as k, component as l, insert as m, NotReady as n, isRedirect as nt, binding as o, inlineBodies as p, memoryStore as q, action as r, redirect as rt, caught as s, Context as t, getEvent as tt, dynamic as u, packState as v, settled as w, render as x, read as y, parseSubmission as z };
4157
4160
 
4158
- //# sourceMappingURL=server-C1OTFH4r.js.map
4161
+ //# sourceMappingURL=server-BVObWh-w.js.map