minimal-piral 1.8.3-beta.7909 → 1.8.3-beta.7916
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/app/{index.3bdd2e.js → index.71b3fd.js} +18 -12
- package/app/index.71b3fd.js.map +1 -0
- package/app/index.d.ts +7 -0
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +5 -5
- package/app/index.3bdd2e.js.map +0 -1
|
@@ -41970,12 +41970,12 @@ function installPiralDebug(options) {
|
|
|
41970
41970
|
debug: debugApiVersion,
|
|
41971
41971
|
instance: {
|
|
41972
41972
|
name: "minimal-piral",
|
|
41973
|
-
version: "1.8.3-beta.
|
|
41973
|
+
version: "1.8.3-beta.7916",
|
|
41974
41974
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
41975
41975
|
},
|
|
41976
41976
|
build: {
|
|
41977
|
-
date: "2025-03-
|
|
41978
|
-
cli: "1.8.3-beta.
|
|
41977
|
+
date: "2025-03-17T14:33:54.019Z",
|
|
41978
|
+
cli: "1.8.3-beta.7916",
|
|
41979
41979
|
compat: "1"
|
|
41980
41980
|
}
|
|
41981
41981
|
};
|
|
@@ -44690,13 +44690,24 @@ function loader5(entry, _config) {
|
|
|
44690
44690
|
}
|
|
44691
44691
|
|
|
44692
44692
|
// src/loaders/v3/index.ts
|
|
44693
|
-
function
|
|
44693
|
+
function attachStylesToDocument(pilet, url) {
|
|
44694
|
+
if (typeof document !== "undefined") {
|
|
44695
|
+
var link = document.createElement("link");
|
|
44696
|
+
link.setAttribute("data-origin", pilet.name);
|
|
44697
|
+
link.type = "text/css";
|
|
44698
|
+
link.rel = "stylesheet";
|
|
44699
|
+
link.href = url;
|
|
44700
|
+
document.head.appendChild(link);
|
|
44701
|
+
}
|
|
44702
|
+
}
|
|
44703
|
+
function loader6(entry, options) {
|
|
44694
44704
|
var _entry$dependencies5 = entry.dependencies,
|
|
44695
44705
|
dependencies = _entry$dependencies5 === void 0 ? {} : _entry$dependencies5,
|
|
44696
44706
|
_entry$config3 = entry.config,
|
|
44697
44707
|
config = _entry$config3 === void 0 ? {} : _entry$config3,
|
|
44698
44708
|
link = entry.link,
|
|
44699
44709
|
rest = _objectWithoutProperties(entry, _excluded5);
|
|
44710
|
+
var attachStyles = typeof options.attachStyles === "function" ? options.attachStyles : attachStylesToDocument;
|
|
44700
44711
|
var meta = _objectSpread({
|
|
44701
44712
|
dependencies: dependencies,
|
|
44702
44713
|
config: config,
|
|
@@ -44705,18 +44716,13 @@ function loader6(entry, _config) {
|
|
|
44705
44716
|
registerDependencyUrls(dependencies);
|
|
44706
44717
|
return loadSystemPilet(link).then(function (app) {
|
|
44707
44718
|
var pilet = createEvaluatedPilet(meta, app);
|
|
44708
|
-
if (Array.isArray(app.styles)
|
|
44719
|
+
if (Array.isArray(app.styles)) {
|
|
44709
44720
|
var _iterator3 = _createForOfIteratorHelper(app.styles),
|
|
44710
44721
|
_step3;
|
|
44711
44722
|
try {
|
|
44712
44723
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
44713
44724
|
var style = _step3.value;
|
|
44714
|
-
|
|
44715
|
-
link2.setAttribute("data-origin", pilet.name);
|
|
44716
|
-
link2.type = "text/css";
|
|
44717
|
-
link2.rel = "stylesheet";
|
|
44718
|
-
link2.href = "".concat(pilet.basePath, "/").concat(style);
|
|
44719
|
-
document.head.appendChild(link2);
|
|
44725
|
+
attachStyles(pilet, "".concat(pilet.basePath, "/").concat(style));
|
|
44720
44726
|
}
|
|
44721
44727
|
} catch (err) {
|
|
44722
44728
|
_iterator3.e(err);
|
|
@@ -45259,4 +45265,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45259
45265
|
|
|
45260
45266
|
/******/ })()
|
|
45261
45267
|
;
|
|
45262
|
-
//# sourceMappingURL=index.
|
|
45268
|
+
//# sourceMappingURL=index.71b3fd.js.map
|