rip-lang 3.13.67 → 3.13.69
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/README.md +1 -1
- package/docs/dist/rip.js +18 -8
- package/docs/dist/rip.min.js +42 -42
- package/docs/dist/rip.min.js.br +0 -0
- package/package.json +1 -1
- package/src/browser.js +4 -4
- package/src/components.js +10 -0
- /package/src/{app.rip → ui.rip} +0 -0
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.
|
|
12
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.69-blue.svg" alt="Version"></a>
|
|
13
13
|
<a href="#zero-dependencies"><img src="https://img.shields.io/badge/dependencies-ZERO-brightgreen.svg" alt="Dependencies"></a>
|
|
14
14
|
<a href="#"><img src="https://img.shields.io/badge/tests-1%2C436%2F1%2C436-brightgreen.svg" alt="Tests"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
|
package/docs/dist/rip.js
CHANGED
|
@@ -4876,6 +4876,16 @@ ${blockFactoriesCode}return ${lines.join(`
|
|
|
4876
4876
|
props.push(`children: ${childrenVar}`);
|
|
4877
4877
|
}
|
|
4878
4878
|
}
|
|
4879
|
+
} else if (arg && !childrenVar) {
|
|
4880
|
+
const textVar = this.newTextVar();
|
|
4881
|
+
const val = typeof arg === "string" ? arg.valueOf() : null;
|
|
4882
|
+
if (val && (val.startsWith('"') || val.startsWith("'") || val.startsWith("`"))) {
|
|
4883
|
+
this._createLines.push(`${textVar} = document.createTextNode(${val});`);
|
|
4884
|
+
} else {
|
|
4885
|
+
this._createLines.push(`${textVar} = document.createTextNode(${this.generateInComponent(arg, "value")});`);
|
|
4886
|
+
}
|
|
4887
|
+
childrenVar = textVar;
|
|
4888
|
+
props.push(`children: ${childrenVar}`);
|
|
4879
4889
|
}
|
|
4880
4890
|
}
|
|
4881
4891
|
const propsCode = props.length > 0 ? `{ ${props.join(", ")} }` : "{}";
|
|
@@ -8739,8 +8749,8 @@ globalThis.zip ??= (...a) => a[0].map((_, i) => a.map(b => b[i]));
|
|
|
8739
8749
|
return new CodeGenerator({}).getComponentRuntime();
|
|
8740
8750
|
}
|
|
8741
8751
|
// src/browser.js
|
|
8742
|
-
var VERSION = "3.13.
|
|
8743
|
-
var BUILD_DATE = "2026-03-02@
|
|
8752
|
+
var VERSION = "3.13.68";
|
|
8753
|
+
var BUILD_DATE = "2026-03-02@06:03:38GMT";
|
|
8744
8754
|
if (typeof globalThis !== "undefined") {
|
|
8745
8755
|
if (!globalThis.__rip)
|
|
8746
8756
|
new Function(getReactiveRuntime())();
|
|
@@ -8831,7 +8841,7 @@ ${c.js}
|
|
|
8831
8841
|
}
|
|
8832
8842
|
const cfg = document.querySelector("script[data-launch]");
|
|
8833
8843
|
if (cfg && !globalThis.__ripLaunched) {
|
|
8834
|
-
const ui = importRip.modules?.["
|
|
8844
|
+
const ui = importRip.modules?.["ui.rip"];
|
|
8835
8845
|
if (ui?.launch) {
|
|
8836
8846
|
const url = cfg.getAttribute("data-launch") || "";
|
|
8837
8847
|
const hash = cfg.getAttribute("data-hash");
|
|
@@ -8902,9 +8912,9 @@ ${indented}`);
|
|
|
8902
8912
|
}
|
|
8903
8913
|
});
|
|
8904
8914
|
}
|
|
8905
|
-
// docs/dist/
|
|
8906
|
-
var
|
|
8907
|
-
__export(
|
|
8915
|
+
// docs/dist/_ui.js
|
|
8916
|
+
var exports__ui = {};
|
|
8917
|
+
__export(exports__ui, {
|
|
8908
8918
|
throttle: () => throttle,
|
|
8909
8919
|
stash: () => stash,
|
|
8910
8920
|
setContext: () => setContext,
|
|
@@ -10028,8 +10038,8 @@ ${indented}`);
|
|
|
10028
10038
|
};
|
|
10029
10039
|
|
|
10030
10040
|
// docs/dist/_entry.js
|
|
10031
|
-
importRip.modules["
|
|
10032
|
-
for (const [k, v] of Object.entries(
|
|
10041
|
+
importRip.modules["ui.rip"] = exports__ui;
|
|
10042
|
+
for (const [k, v] of Object.entries(exports__ui))
|
|
10033
10043
|
if (typeof v === "function")
|
|
10034
10044
|
globalThis[k] = v;
|
|
10035
10045
|
})();
|