minimal-piral 1.8.3-beta.7883 → 1.8.3-beta.7915
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.1b7270.js → index.536cd7.js} +24 -12
- package/app/index.536cd7.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.1b7270.js.map +0 -1
|
@@ -40546,11 +40546,17 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
40546
40546
|
key: "name",
|
|
40547
40547
|
get: function get() {
|
|
40548
40548
|
return this.getAttribute('name');
|
|
40549
|
+
},
|
|
40550
|
+
set: function set(value) {
|
|
40551
|
+
this.setAttribute('name', value);
|
|
40549
40552
|
}
|
|
40550
40553
|
}, {
|
|
40551
40554
|
key: "origin",
|
|
40552
40555
|
get: function get() {
|
|
40553
40556
|
return this.getAttribute('origin');
|
|
40557
|
+
},
|
|
40558
|
+
set: function set(value) {
|
|
40559
|
+
this.setAttribute('origin', value);
|
|
40554
40560
|
}
|
|
40555
40561
|
}, {
|
|
40556
40562
|
key: "connectedCallback",
|
|
@@ -41964,12 +41970,12 @@ function installPiralDebug(options) {
|
|
|
41964
41970
|
debug: debugApiVersion,
|
|
41965
41971
|
instance: {
|
|
41966
41972
|
name: "minimal-piral",
|
|
41967
|
-
version: "1.8.3-beta.
|
|
41973
|
+
version: "1.8.3-beta.7915",
|
|
41968
41974
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
41969
41975
|
},
|
|
41970
41976
|
build: {
|
|
41971
|
-
date: "2025-
|
|
41972
|
-
cli: "1.8.3-beta.
|
|
41977
|
+
date: "2025-03-17T11:21:03.052Z",
|
|
41978
|
+
cli: "1.8.3-beta.7915",
|
|
41973
41979
|
compat: "1"
|
|
41974
41980
|
}
|
|
41975
41981
|
};
|
|
@@ -44684,13 +44690,24 @@ function loader5(entry, _config) {
|
|
|
44684
44690
|
}
|
|
44685
44691
|
|
|
44686
44692
|
// src/loaders/v3/index.ts
|
|
44687
|
-
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) {
|
|
44688
44704
|
var _entry$dependencies5 = entry.dependencies,
|
|
44689
44705
|
dependencies = _entry$dependencies5 === void 0 ? {} : _entry$dependencies5,
|
|
44690
44706
|
_entry$config3 = entry.config,
|
|
44691
44707
|
config = _entry$config3 === void 0 ? {} : _entry$config3,
|
|
44692
44708
|
link = entry.link,
|
|
44693
44709
|
rest = _objectWithoutProperties(entry, _excluded5);
|
|
44710
|
+
var attachStyles = typeof options.attachStyles === "function" ? options.attachStyles : attachStylesToDocument;
|
|
44694
44711
|
var meta = _objectSpread({
|
|
44695
44712
|
dependencies: dependencies,
|
|
44696
44713
|
config: config,
|
|
@@ -44699,18 +44716,13 @@ function loader6(entry, _config) {
|
|
|
44699
44716
|
registerDependencyUrls(dependencies);
|
|
44700
44717
|
return loadSystemPilet(link).then(function (app) {
|
|
44701
44718
|
var pilet = createEvaluatedPilet(meta, app);
|
|
44702
|
-
if (Array.isArray(app.styles)
|
|
44719
|
+
if (Array.isArray(app.styles)) {
|
|
44703
44720
|
var _iterator3 = _createForOfIteratorHelper(app.styles),
|
|
44704
44721
|
_step3;
|
|
44705
44722
|
try {
|
|
44706
44723
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
44707
44724
|
var style = _step3.value;
|
|
44708
|
-
|
|
44709
|
-
link2.setAttribute("data-origin", pilet.name);
|
|
44710
|
-
link2.type = "text/css";
|
|
44711
|
-
link2.rel = "stylesheet";
|
|
44712
|
-
link2.href = "".concat(pilet.basePath, "/").concat(style);
|
|
44713
|
-
document.head.appendChild(link2);
|
|
44725
|
+
attachStyles(pilet, "".concat(pilet.basePath, "/").concat(style));
|
|
44714
44726
|
}
|
|
44715
44727
|
} catch (err) {
|
|
44716
44728
|
_iterator3.e(err);
|
|
@@ -45253,4 +45265,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45253
45265
|
|
|
45254
45266
|
/******/ })()
|
|
45255
45267
|
;
|
|
45256
|
-
//# sourceMappingURL=index.
|
|
45268
|
+
//# sourceMappingURL=index.536cd7.js.map
|