@pie-players/pie-assessment-toolkit 0.3.46 → 0.3.47
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.
|
@@ -8610,6 +8610,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
8610
8610
|
const FA_PRO_HREFS = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"];
|
|
8611
8611
|
const FA_FREE_HREF = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css";
|
|
8612
8612
|
const ROBOTO_HREF = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";
|
|
8613
|
+
const FA_HREF_PATTERN = /font.?awesome|fa-?pro/i;
|
|
8613
8614
|
let ndsAssetsInstalled = false;
|
|
8614
8615
|
const ensureNdsAssets = () => {
|
|
8615
8616
|
if (!isBrowser || ndsAssetsInstalled)
|
|
@@ -8621,6 +8622,9 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
8621
8622
|
link2.href = ROBOTO_HREF;
|
|
8622
8623
|
document.head.appendChild(link2);
|
|
8623
8624
|
}
|
|
8625
|
+
const hostHasFa = Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).some((link2) => FA_HREF_PATTERN.test(link2.href));
|
|
8626
|
+
if (hostHasFa)
|
|
8627
|
+
return;
|
|
8624
8628
|
if (!document.querySelector(`link[href="${FA_FREE_HREF}"]`)) {
|
|
8625
8629
|
const link2 = document.createElement("link");
|
|
8626
8630
|
link2.rel = "stylesheet";
|
|
@@ -8637,7 +8641,6 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
8637
8641
|
}
|
|
8638
8642
|
};
|
|
8639
8643
|
const FA_TOOLBAR_SHADOW_INSTALLED = "__pieFaToolbarShadowInstalled";
|
|
8640
|
-
const FA_HREF_PATTERN = /font.?awesome|fa-?pro/i;
|
|
8641
8644
|
const installFaInToolbarShadow = (root) => {
|
|
8642
8645
|
const shadow = root.getRootNode();
|
|
8643
8646
|
if (!(shadow instanceof ShadowRoot))
|
|
@@ -8659,9 +8662,6 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
8659
8662
|
const documentFaLinks = Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).filter((link2) => FA_HREF_PATTERN.test(link2.href));
|
|
8660
8663
|
for (const link2 of documentFaLinks)
|
|
8661
8664
|
appendLink(link2.href);
|
|
8662
|
-
const shim = document.createElement("style");
|
|
8663
|
-
shim.textContent = '.fa-light{font-family:"Font Awesome 6 Free";font-weight:900;}';
|
|
8664
|
-
shadow.appendChild(shim);
|
|
8665
8665
|
};
|
|
8666
8666
|
const ndsIconButtonAction = (node) => {
|
|
8667
8667
|
ensureNdsAssets();
|
|
@@ -39,7 +39,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
39
39
|
|
|
40
40
|
// ../../node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib/sre.js
|
|
41
41
|
var require_sre = __commonJS((exports, module) => {
|
|
42
|
-
var __dirname = "/
|
|
42
|
+
var __dirname = "/home/runner/work/pie-players/pie-players/node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib";
|
|
43
43
|
(function(t, e) {
|
|
44
44
|
typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports.SRE = e() : t.SRE = e();
|
|
45
45
|
})(exports, () => (() => {
|
|
@@ -12774,6 +12774,7 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
12774
12774
|
const FA_PRO_HREFS = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"];
|
|
12775
12775
|
const FA_FREE_HREF = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css";
|
|
12776
12776
|
const ROBOTO_HREF = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";
|
|
12777
|
+
const FA_HREF_PATTERN = /font.?awesome|fa-?pro/i;
|
|
12777
12778
|
let ndsAssetsInstalled = false;
|
|
12778
12779
|
const ensureNdsAssets = () => {
|
|
12779
12780
|
if (!isBrowser || ndsAssetsInstalled)
|
|
@@ -12785,6 +12786,9 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
12785
12786
|
link2.href = ROBOTO_HREF;
|
|
12786
12787
|
document.head.appendChild(link2);
|
|
12787
12788
|
}
|
|
12789
|
+
const hostHasFa = Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).some((link2) => FA_HREF_PATTERN.test(link2.href));
|
|
12790
|
+
if (hostHasFa)
|
|
12791
|
+
return;
|
|
12788
12792
|
if (!document.querySelector(`link[href="${FA_FREE_HREF}"]`)) {
|
|
12789
12793
|
const link2 = document.createElement("link");
|
|
12790
12794
|
link2.rel = "stylesheet";
|
|
@@ -12801,7 +12805,6 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
12801
12805
|
}
|
|
12802
12806
|
};
|
|
12803
12807
|
const FA_TOOLBAR_SHADOW_INSTALLED = "__pieFaToolbarShadowInstalled";
|
|
12804
|
-
const FA_HREF_PATTERN = /font.?awesome|fa-?pro/i;
|
|
12805
12808
|
const installFaInToolbarShadow = (root) => {
|
|
12806
12809
|
const shadow = root.getRootNode();
|
|
12807
12810
|
if (!(shadow instanceof ShadowRoot))
|
|
@@ -12823,9 +12826,6 @@ function ItemToolBar($$anchor, $$props) {
|
|
|
12823
12826
|
const documentFaLinks = Array.from(document.querySelectorAll('link[rel="stylesheet"][href]')).filter((link2) => FA_HREF_PATTERN.test(link2.href));
|
|
12824
12827
|
for (const link2 of documentFaLinks)
|
|
12825
12828
|
appendLink(link2.href);
|
|
12826
|
-
const shim = document.createElement("style");
|
|
12827
|
-
shim.textContent = '.fa-light{font-family:"Font Awesome 6 Free";font-weight:900;}';
|
|
12828
|
-
shadow.appendChild(shim);
|
|
12829
12829
|
};
|
|
12830
12830
|
const ndsIconButtonAction = (node) => {
|
|
12831
12831
|
ensureNdsAssets();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-assessment-toolkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "PIE assessment toolkit: composable services + reference implementation for assessment players and tool coordination",
|
|
6
6
|
"license": "MIT",
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"test": "bun test"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@pie-players/pie-calculator": "0.3.
|
|
79
|
-
"@pie-players/pie-context": "0.3.
|
|
80
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
81
|
-
"@pie-players/pie-tts": "0.3.
|
|
78
|
+
"@pie-players/pie-calculator": "0.3.47",
|
|
79
|
+
"@pie-players/pie-context": "0.3.47",
|
|
80
|
+
"@pie-players/pie-players-shared": "0.3.47",
|
|
81
|
+
"@pie-players/pie-tts": "0.3.47",
|
|
82
82
|
"speech-rule-engine": "^5.0.0-rc.1"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@pie-players/pie-calculator-desmos": "0.3.
|
|
86
|
-
"@pie-players/tts-client-server": "0.3.
|
|
85
|
+
"@pie-players/pie-calculator-desmos": "0.3.47",
|
|
86
|
+
"@pie-players/tts-client-server": "0.3.47"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
|
89
89
|
"@pie-players/pie-calculator-desmos": {
|