@stacksjs/stx 0.2.121 → 0.2.123
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.
- package/dist/appearance-bootstrap.d.ts +20 -0
- package/dist/appearance-bootstrap.js +92 -0
- package/dist/cli.js +524 -524
- package/dist/component-renderer.js +18 -5
- package/dist/craft.js +275 -275
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/process.js +5 -1
- package/dist/pwa.js +292 -292
- package/dist/ssg.js +365 -365
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./a11y.js";
|
|
|
13
13
|
export * from "./analytics.js";
|
|
14
14
|
export * from "./analyzer.js";
|
|
15
15
|
export * from "./animation.js";
|
|
16
|
+
export * from "./appearance-bootstrap.js";
|
|
16
17
|
export * from "./assets.js";
|
|
17
18
|
export * from "./app-shell.js";
|
|
18
19
|
export * from "./async-components.js";
|
package/dist/process.js
CHANGED
|
@@ -12,9 +12,10 @@ import { extractBridgeData, processClientScript } from "./client-script.js";
|
|
|
12
12
|
import { processReactiveDirectives } from "./reactive.js";
|
|
13
13
|
import { processMarkdownFileDirectives } from "./assets.js";
|
|
14
14
|
import { processAuthDirectives, processConditionals, processEnvDirective, processIssetEmptyDirectives } from "./conditionals.js";
|
|
15
|
-
import { injectCspMetaTag, processCspDirectives } from "./csp.js";
|
|
15
|
+
import { addNonceToInlineContent, injectCspMetaTag, processCspDirectives } from "./csp.js";
|
|
16
16
|
import { processCsrfDirectives } from "./csrf.js";
|
|
17
17
|
import { processCustomDirectives } from "./custom-directives.js";
|
|
18
|
+
import { processAppearanceBootstrapDirective } from "./appearance-bootstrap.js";
|
|
18
19
|
import { devHelpers, errorLogger, errorRecovery, safeExecuteAsync, StxRuntimeError, StxValidationError } from "./error-handling.js";
|
|
19
20
|
import { getHead as getHeadStatic } from "./head.js";
|
|
20
21
|
import { processExpressions, usesSignalsInScript } from "./expressions.js";
|
|
@@ -669,6 +670,7 @@ async function processOtherDirectives(template, context, filePath, options, depe
|
|
|
669
670
|
output = processXElementDirectives(output);
|
|
670
671
|
const pageFilePath = context.__originalFilePath || filePath, serverData = extractBridgeData(context);
|
|
671
672
|
output = await processSignals(output, opts, pageFilePath, serverData);
|
|
673
|
+
output = processAppearanceBootstrapDirective(output, context);
|
|
672
674
|
output = await runPostProcessingMiddleware(output, context, filePath, opts);
|
|
673
675
|
if (opts.media?.image?.autoSiblings) {
|
|
674
676
|
const publicDir = opts.publicDir || "public", { rewriteImagesWithSiblings } = await import("./image-optimization/auto-sibling.js");
|
|
@@ -775,5 +777,7 @@ ${runtimeScript}`);
|
|
|
775
777
|
}
|
|
776
778
|
if (clientScriptsTransformed)
|
|
777
779
|
context.__stx_event_bindings = [];
|
|
780
|
+
if (opts.csp?.enabled && opts.csp.useNonce && typeof context.cspNonce === "string")
|
|
781
|
+
output = addNonceToInlineContent(output, context.cspNonce);
|
|
778
782
|
return output;
|
|
779
783
|
}
|