@stacksjs/stx 0.2.120 → 0.2.122
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 +546 -567
- package/dist/client-script-bundler.d.ts +13 -0
- package/dist/client-script-bundler.js +19 -2
- package/dist/component-library.js +30 -12
- package/dist/craft.js +12302 -120
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/native-build.d.ts +6 -0
- package/dist/native-build.js +77 -60
- package/dist/process.js +5 -1
- package/dist/pwa.js +376 -375
- package/dist/render.js +6 -1
- package/dist/signals.js +2 -1
- package/dist/ssg.js +373 -372
- package/package.json +5 -5
package/dist/render.js
CHANGED
|
@@ -120,7 +120,12 @@ ${clientScripts.join(`
|
|
|
120
120
|
const contentMatch = fullScript.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);
|
|
121
121
|
if (!contentMatch)
|
|
122
122
|
return fullScript;
|
|
123
|
-
return await processClientScript(contentMatch[1], {
|
|
123
|
+
return await processClientScript(contentMatch[1], {
|
|
124
|
+
eventBindings,
|
|
125
|
+
templateContent: output,
|
|
126
|
+
serverData,
|
|
127
|
+
filePath
|
|
128
|
+
});
|
|
124
129
|
}))).join(`
|
|
125
130
|
`);
|
|
126
131
|
if (output.match(/(<\/body>)/i))
|
package/dist/signals.js
CHANGED
|
@@ -2414,7 +2414,8 @@ else if (name === 'ref' || name === ':ref' || name === 'x-ref' || name === 'data
|
|
|
2414
2414
|
// handler like \`pick(option.value)\` receives the whole item.
|
|
2415
2415
|
// It is not an error, so it lands silently: the wrong value is
|
|
2416
2416
|
// stored and only surfaces much later.
|
|
2417
|
-
if (v && typeof v === 'function' && v._isSignal && !v._isStxLoopItem
|
|
2417
|
+
if (v && typeof v === 'function' && v._isSignal && !v._isStxLoopItem
|
|
2418
|
+
&& (expressionCallsSignal(value, k) || expressionUsesSignalApi(value, k))) {
|
|
2418
2419
|
return 'var ' + k + ' = __s["' + k + '"]';
|
|
2419
2420
|
}
|
|
2420
2421
|
return 'var ' + k + ' = __s["' + k + '"] && typeof __s["' + k + '"] === "function" && __s["' + k + '"]._isSignal ? __s["' + k + '"]() : __s["' + k + '"]';
|