@stacksjs/stx 0.2.150 → 0.2.152
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/browser-composables.d.ts +16 -9
- package/dist/cli.js +503 -503
- package/dist/component-processing.d.ts +16 -0
- package/dist/component-processing.js +4 -1
- package/dist/component-renderer.js +2 -2
- package/dist/composables/use-device-orientation.d.ts +8 -1
- package/dist/composables/use-event-source.d.ts +14 -1
- package/dist/composables/use-eye-dropper.d.ts +10 -1
- package/dist/composables/use-idle.d.ts +21 -3
- package/dist/composables/use-storage.d.ts +8 -2
- package/dist/composables/use-text-selection.d.ts +27 -3
- package/dist/composables/use-wake-lock.d.ts +2 -2
- package/dist/craft.js +265 -265
- package/dist/edge-runtime.d.ts +1 -1
- package/dist/includes.js +2 -0
- package/dist/pwa.js +255 -255
- package/dist/render.d.ts +1 -1
- package/dist/render.js +2 -2
- package/dist/ssg.js +273 -273
- package/dist/ssr.d.ts +17 -1
- package/dist/utils.js +1 -8
- package/dist/variable-extractor.d.ts +8 -0
- package/dist/variable-extractor.js +24 -9
- package/dist/visual-testing.d.ts +26 -3
- package/package.json +5 -5
package/dist/edge-runtime.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function createEdgeCache(): EdgeCache | undefined;
|
|
|
25
25
|
/**
|
|
26
26
|
* Create an edge handler.
|
|
27
27
|
*/
|
|
28
|
-
export declare function createEdgeHandler(config: EdgeHandlerConfig):
|
|
28
|
+
export declare function createEdgeHandler(config: EdgeHandlerConfig): (_request: Request, _platformContext?: Record<string, unknown>) => Promise<Response>;
|
|
29
29
|
/**
|
|
30
30
|
* Create a streaming response for edge platforms.
|
|
31
31
|
*/
|
package/dist/includes.js
CHANGED
|
@@ -531,6 +531,8 @@ export async function processIncludes(template, context, filePath, options, depe
|
|
|
531
531
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
532
532
|
return createDetailedErrorMessage("Include", `Error loading include file ${includePath}: ${errorMessage}`, filePath, templateStr, offsetPos);
|
|
533
533
|
}
|
|
534
|
+
if (partialContent)
|
|
535
|
+
partialContent = partialContent.replace(/\{\{--[\s\S]*?--\}\}/g, "");
|
|
534
536
|
if (partialContent && partialContent.includes("@stream")) {
|
|
535
537
|
const { processStreamDirectives } = await import("./streaming.js");
|
|
536
538
|
partialContent = processStreamDirectives(partialContent, context);
|