@pie-players/pie-tool-annotation-toolbar 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.10"), s(this, "initialized", !1), s(this, "apiKey", void 0), s(this, "proxyEndpoint", void 0), s(this, "isDevelopment", !1), s(this, "onTelemetry", void 0);
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.10/calculator.js?apiKey=${this.apiKey}` : "https://www.desmos.com/api/v1.10/calculator.js", t.async = !0, t.onload = () => {
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"));
@@ -3394,7 +3394,7 @@ function di(e, t, n) {
3394
3394
  }
3395
3395
  var Hc = class {
3396
3396
  constructor() {
3397
- m(this, "providerId", "desmos-calculator"), m(this, "providerName", "Desmos Calculator"), m(this, "category", "calculator"), m(this, "version", "1.10"), m(this, "requiresAuth", !0), m(this, "desmosProvider", null), m(this, "config", null);
3397
+ m(this, "providerId", "desmos-calculator"), m(this, "providerName", "Desmos Calculator"), m(this, "category", "calculator"), m(this, "version", "1.12"), m(this, "requiresAuth", !0), m(this, "desmosProvider", null), m(this, "config", null);
3398
3398
  }
3399
3399
  async emitTelemetry(e, t) {
3400
3400
  try {
@@ -3417,7 +3417,7 @@ var Hc = class {
3417
3417
  });
3418
3418
  const n = await (async () => {
3419
3419
  try {
3420
- const r = await import("./dist-Dns3leWh.js");
3420
+ const r = await import("./dist-DF-5k7aB.js");
3421
3421
  return await this.emitTelemetry("pie-tool-library-load-success", {
3422
3422
  toolId: "calculator",
3423
3423
  operation: "desmos-provider-module-import",
@@ -4196,7 +4196,8 @@ var Qc = {
4196
4196
  controlsRow: {
4197
4197
  reserveSpace: !0,
4198
4198
  expandWhenToolActive: !1
4199
- }
4199
+ },
4200
+ headerOverlay: { expandWhenToolActive: !1 }
4200
4201
  };
4201
4202
  case "expanding-row":
4202
4203
  return {
@@ -4204,7 +4205,17 @@ var Qc = {
4204
4205
  controlsRow: {
4205
4206
  reserveSpace: !1,
4206
4207
  expandWhenToolActive: !0
4207
- }
4208
+ },
4209
+ headerOverlay: { expandWhenToolActive: !1 }
4210
+ };
4211
+ case "floating-overlay":
4212
+ return {
4213
+ mount: "before-buttons",
4214
+ controlsRow: {
4215
+ reserveSpace: !1,
4216
+ expandWhenToolActive: !1
4217
+ },
4218
+ headerOverlay: { expandWhenToolActive: !1 }
4208
4219
  };
4209
4220
  default:
4210
4221
  return {
@@ -4212,7 +4223,8 @@ var Qc = {
4212
4223
  controlsRow: {
4213
4224
  reserveSpace: !1,
4214
4225
  expandWhenToolActive: !1
4215
- }
4226
+ },
4227
+ headerOverlay: { expandWhenToolActive: !0 }
4216
4228
  };
4217
4229
  }
4218
4230
  }, jt = /* @__PURE__ */ new Map(), du = "__pieToolElementUnmount", oo = "pie-tool-active-change", fu = {
@@ -4270,10 +4282,13 @@ var Qc = {
4270
4282
  elements: [{
4271
4283
  element: l(),
4272
4284
  mount: c.mount,
4273
- layoutHints: { controlsRow: {
4274
- reserveSpace: c.controlsRow.reserveSpace,
4275
- showWhenToolActive: c.controlsRow.expandWhenToolActive
4276
- } }
4285
+ layoutHints: {
4286
+ controlsRow: {
4287
+ reserveSpace: c.controlsRow.reserveSpace,
4288
+ showWhenToolActive: c.controlsRow.expandWhenToolActive
4289
+ },
4290
+ headerOverlay: { showWhenToolActive: c.headerOverlay.expandWhenToolActive }
4291
+ }
4277
4292
  }],
4278
4293
  subscribeActive: (u) => {
4279
4294
  const h = l(), d = (p) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-tool-annotation-toolbar",
3
- "version": "0.3.55",
3
+ "version": "0.3.57",
4
4
  "type": "module",
5
5
  "description": "Text annotation toolbar with highlighting and underlining for PIE assessment player",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "unpkg": "./dist/tool-annotation-toolbar.js",
37
37
  "jsdelivr": "./dist/tool-annotation-toolbar.js",
38
38
  "dependencies": {
39
- "@pie-players/pie-assessment-toolkit": "0.3.55",
40
- "@pie-players/pie-players-shared": "0.3.55"
39
+ "@pie-players/pie-assessment-toolkit": "0.3.57",
40
+ "@pie-players/pie-players-shared": "0.3.57"
41
41
  },
42
42
  "types": "./dist/index.d.ts",
43
43
  "scripts": {