@pie-players/pie-tool-graph 0.3.55 → 0.3.57
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.
|
@@ -5,7 +5,7 @@ var n = class {
|
|
|
5
5
|
"basic",
|
|
6
6
|
"scientific",
|
|
7
7
|
"graphing"
|
|
8
|
-
]), s(this, "version", "1.
|
|
8
|
+
]), s(this, "version", "1.12"), s(this, "initialized", !1), s(this, "apiKey", void 0), s(this, "proxyEndpoint", void 0), s(this, "isDevelopment", !1), s(this, "onTelemetry", void 0);
|
|
9
9
|
}
|
|
10
10
|
async emitTelemetry(e, o) {
|
|
11
11
|
try {
|
|
@@ -20,7 +20,7 @@ var n = class {
|
|
|
20
20
|
async loadDesmosScript() {
|
|
21
21
|
return new Promise((e, o) => {
|
|
22
22
|
const t = document.createElement("script");
|
|
23
|
-
t.src = this.apiKey ? `https://www.desmos.com/api/v1.
|
|
23
|
+
t.src = this.apiKey ? `https://www.desmos.com/api/v1.12/calculator.js?apiKey=${this.apiKey}` : "https://www.desmos.com/api/v1.12/calculator.js", t.async = !0, t.onload = () => {
|
|
24
24
|
window.Desmos ? (console.log("[DesmosProvider] Desmos API loaded successfully"), e()) : o(/* @__PURE__ */ new Error("Desmos API loaded but window.Desmos is undefined"));
|
|
25
25
|
}, t.onerror = () => {
|
|
26
26
|
o(/* @__PURE__ */ new Error("Failed to load Desmos API from CDN"));
|
package/dist/tool-graph.js
CHANGED
|
@@ -3535,7 +3535,7 @@ function Mi(e, t, r) {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
var du = class {
|
|
3537
3537
|
constructor() {
|
|
3538
|
-
y(this, "providerId", "desmos-calculator"), y(this, "providerName", "Desmos Calculator"), y(this, "category", "calculator"), y(this, "version", "1.
|
|
3538
|
+
y(this, "providerId", "desmos-calculator"), y(this, "providerName", "Desmos Calculator"), y(this, "category", "calculator"), y(this, "version", "1.12"), y(this, "requiresAuth", !0), y(this, "desmosProvider", null), y(this, "config", null);
|
|
3539
3539
|
}
|
|
3540
3540
|
async emitTelemetry(e, t) {
|
|
3541
3541
|
try {
|
|
@@ -3558,7 +3558,7 @@ var du = class {
|
|
|
3558
3558
|
});
|
|
3559
3559
|
const r = await (async () => {
|
|
3560
3560
|
try {
|
|
3561
|
-
const n = await import("./dist-
|
|
3561
|
+
const n = await import("./dist-DF-5k7aB.js");
|
|
3562
3562
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
3563
3563
|
toolId: "calculator",
|
|
3564
3564
|
operation: "desmos-provider-module-import",
|
|
@@ -4337,7 +4337,8 @@ var Eu = {
|
|
|
4337
4337
|
controlsRow: {
|
|
4338
4338
|
reserveSpace: !0,
|
|
4339
4339
|
expandWhenToolActive: !1
|
|
4340
|
-
}
|
|
4340
|
+
},
|
|
4341
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4341
4342
|
};
|
|
4342
4343
|
case "expanding-row":
|
|
4343
4344
|
return {
|
|
@@ -4345,7 +4346,17 @@ var Eu = {
|
|
|
4345
4346
|
controlsRow: {
|
|
4346
4347
|
reserveSpace: !1,
|
|
4347
4348
|
expandWhenToolActive: !0
|
|
4348
|
-
}
|
|
4349
|
+
},
|
|
4350
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4351
|
+
};
|
|
4352
|
+
case "floating-overlay":
|
|
4353
|
+
return {
|
|
4354
|
+
mount: "before-buttons",
|
|
4355
|
+
controlsRow: {
|
|
4356
|
+
reserveSpace: !1,
|
|
4357
|
+
expandWhenToolActive: !1
|
|
4358
|
+
},
|
|
4359
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4349
4360
|
};
|
|
4350
4361
|
default:
|
|
4351
4362
|
return {
|
|
@@ -4353,7 +4364,8 @@ var Eu = {
|
|
|
4353
4364
|
controlsRow: {
|
|
4354
4365
|
reserveSpace: !1,
|
|
4355
4366
|
expandWhenToolActive: !1
|
|
4356
|
-
}
|
|
4367
|
+
},
|
|
4368
|
+
headerOverlay: { expandWhenToolActive: !0 }
|
|
4357
4369
|
};
|
|
4358
4370
|
}
|
|
4359
4371
|
}, ir = /* @__PURE__ */ new Map(), Bu = "__pieToolElementUnmount", wo = "pie-tool-active-change", Du = {
|
|
@@ -4411,10 +4423,13 @@ var Eu = {
|
|
|
4411
4423
|
elements: [{
|
|
4412
4424
|
element: l(),
|
|
4413
4425
|
mount: c.mount,
|
|
4414
|
-
layoutHints: {
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4426
|
+
layoutHints: {
|
|
4427
|
+
controlsRow: {
|
|
4428
|
+
reserveSpace: c.controlsRow.reserveSpace,
|
|
4429
|
+
showWhenToolActive: c.controlsRow.expandWhenToolActive
|
|
4430
|
+
},
|
|
4431
|
+
headerOverlay: { showWhenToolActive: c.headerOverlay.expandWhenToolActive }
|
|
4432
|
+
}
|
|
4418
4433
|
}],
|
|
4419
4434
|
subscribeActive: (u) => {
|
|
4420
4435
|
const h = l(), d = (p) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-graph",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive coordinate grid graphing tool for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"unpkg": "./dist/tool-graph.js",
|
|
36
36
|
"jsdelivr": "./dist/tool-graph.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
39
|
-
"@pie-players/pie-context": "0.3.
|
|
40
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
38
|
+
"@pie-players/pie-assessment-toolkit": "0.3.57",
|
|
39
|
+
"@pie-players/pie-context": "0.3.57",
|
|
40
|
+
"@pie-players/pie-players-shared": "0.3.57"
|
|
41
41
|
},
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
43
|
"scripts": {
|