@doenet/doenetml-iframe 0.7.21-dev.353 → 0.7.21-dev.354

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/README.md CHANGED
@@ -112,7 +112,7 @@ prop changes:
112
112
  A reader can also switch the whole document to one of the built-in style
113
113
  palettes by name (case-insensitive) — for example `grayscale`, four grays
114
114
  laddered for maximum luminance separation, for readers who distinguish
115
- styles by lightness alone, or `okabeito` for common color vision
115
+ styles by lightness alone, or `okabeIto` for common color vision
116
116
  deficiencies:
117
117
 
118
118
  ```tsx
package/index.js CHANGED
@@ -1004,7 +1004,7 @@ const defaultPalette$1 = {
1004
1004
  }
1005
1005
  };
1006
1006
  const okabeItoPalette$1 = {
1007
- name: "okabeito",
1007
+ name: "okabeIto",
1008
1008
  description: "Colorblind-friendly blues, oranges, greens, and purples adapted from the Okabe-Ito palette, with varied marker shapes and line styles.",
1009
1009
  styles: {
1010
1010
  1: {
@@ -1175,7 +1175,7 @@ const okabeItoPalette$1 = {
1175
1175
  }
1176
1176
  };
1177
1177
  const tolBrightPalette$1 = {
1178
- name: "tolbright",
1178
+ name: "tolBright",
1179
1179
  description: "Colorblind-friendly bright blues, reds, greens, and purples from Paul Tol's bright palette, with varied marker shapes and line styles.",
1180
1180
  styles: {
1181
1181
  1: {
@@ -1309,7 +1309,7 @@ const tolBrightPalette$1 = {
1309
1309
  }
1310
1310
  };
1311
1311
  const tolMutedPalette$1 = {
1312
- name: "tolmuted",
1312
+ name: "tolMuted",
1313
1313
  description: "Nine colorblind-friendly muted styles from Paul Tol's muted palette, with varied marker shapes and line styles.",
1314
1314
  styles: {
1315
1315
  1: {
@@ -1508,7 +1508,7 @@ const tolMutedPalette$1 = {
1508
1508
  }
1509
1509
  };
1510
1510
  const tolHighContrastPalette$1 = {
1511
- name: "tolhighcontrast",
1511
+ name: "tolHighContrast",
1512
1512
  description: "Four maximum-distinction styles from Paul Tol's high-contrast palette, distinguishable even in grayscale.",
1513
1513
  styles: {
1514
1514
  1: {
@@ -2018,7 +2018,7 @@ const categoricalPalette$1 = {
2018
2018
  }
2019
2019
  };
2020
2020
  const grumpyNarwhalPalette$1 = {
2021
- name: "grumpynarwhal",
2021
+ name: "grumpyNarwhal",
2022
2022
  description: "Six saturated hues — burnt orange, forest green, deep pink, arctic teal, gold, and purple — going neon in dark mode.",
2023
2023
  styles: {
2024
2024
  1: {
@@ -2174,24 +2174,27 @@ function deepFreezePalette$1(palette) {
2174
2174
  Object.freeze(palette.styles);
2175
2175
  return Object.freeze(palette);
2176
2176
  }
2177
+ function registerByKey$1(palette) {
2178
+ return [palette.name.toLowerCase(), deepFreezePalette$1(palette)];
2179
+ }
2177
2180
  const STYLE_PALETTES$1 = Object.assign(
2178
2181
  /* @__PURE__ */ Object.create(null),
2179
- {
2180
- [defaultPalette$1.name]: deepFreezePalette$1(defaultPalette$1),
2181
- [okabeItoPalette$1.name]: deepFreezePalette$1(okabeItoPalette$1),
2182
- [tolBrightPalette$1.name]: deepFreezePalette$1(tolBrightPalette$1),
2183
- [tolMutedPalette$1.name]: deepFreezePalette$1(tolMutedPalette$1),
2184
- [tolHighContrastPalette$1.name]: deepFreezePalette$1(
2185
- tolHighContrastPalette$1
2186
- ),
2187
- [ibmPalette$1.name]: deepFreezePalette$1(ibmPalette$1),
2188
- [grayscalePalette$1.name]: deepFreezePalette$1(grayscalePalette$1),
2189
- [categoricalPalette$1.name]: deepFreezePalette$1(categoricalPalette$1),
2190
- [grumpyNarwhalPalette$1.name]: deepFreezePalette$1(grumpyNarwhalPalette$1)
2191
- }
2182
+ Object.fromEntries(
2183
+ [
2184
+ defaultPalette$1,
2185
+ okabeItoPalette$1,
2186
+ tolBrightPalette$1,
2187
+ tolMutedPalette$1,
2188
+ tolHighContrastPalette$1,
2189
+ ibmPalette$1,
2190
+ grayscalePalette$1,
2191
+ categoricalPalette$1,
2192
+ grumpyNarwhalPalette$1
2193
+ ].map(registerByKey$1)
2194
+ )
2192
2195
  );
2193
2196
  Object.freeze(STYLE_PALETTES$1);
2194
- defaultPalette$1.name;
2197
+ defaultPalette$1.name.toLowerCase();
2195
2198
  Object.freeze(
2196
2199
  Object.keys(STYLE_PALETTES$1)
2197
2200
  );
@@ -40063,7 +40066,7 @@ const defaultPalette = {
40063
40066
  }
40064
40067
  };
40065
40068
  const okabeItoPalette = {
40066
- name: "okabeito",
40069
+ name: "okabeIto",
40067
40070
  description: "Colorblind-friendly blues, oranges, greens, and purples adapted from the Okabe-Ito palette, with varied marker shapes and line styles.",
40068
40071
  styles: {
40069
40072
  1: {
@@ -40234,7 +40237,7 @@ const okabeItoPalette = {
40234
40237
  }
40235
40238
  };
40236
40239
  const tolBrightPalette = {
40237
- name: "tolbright",
40240
+ name: "tolBright",
40238
40241
  description: "Colorblind-friendly bright blues, reds, greens, and purples from Paul Tol's bright palette, with varied marker shapes and line styles.",
40239
40242
  styles: {
40240
40243
  1: {
@@ -40368,7 +40371,7 @@ const tolBrightPalette = {
40368
40371
  }
40369
40372
  };
40370
40373
  const tolMutedPalette = {
40371
- name: "tolmuted",
40374
+ name: "tolMuted",
40372
40375
  description: "Nine colorblind-friendly muted styles from Paul Tol's muted palette, with varied marker shapes and line styles.",
40373
40376
  styles: {
40374
40377
  1: {
@@ -40567,7 +40570,7 @@ const tolMutedPalette = {
40567
40570
  }
40568
40571
  };
40569
40572
  const tolHighContrastPalette = {
40570
- name: "tolhighcontrast",
40573
+ name: "tolHighContrast",
40571
40574
  description: "Four maximum-distinction styles from Paul Tol's high-contrast palette, distinguishable even in grayscale.",
40572
40575
  styles: {
40573
40576
  1: {
@@ -41077,7 +41080,7 @@ const categoricalPalette = {
41077
41080
  }
41078
41081
  };
41079
41082
  const grumpyNarwhalPalette = {
41080
- name: "grumpynarwhal",
41083
+ name: "grumpyNarwhal",
41081
41084
  description: "Six saturated hues — burnt orange, forest green, deep pink, arctic teal, gold, and purple — going neon in dark mode.",
41082
41085
  styles: {
41083
41086
  1: {
@@ -41233,24 +41236,27 @@ function deepFreezePalette(palette) {
41233
41236
  Object.freeze(palette.styles);
41234
41237
  return Object.freeze(palette);
41235
41238
  }
41239
+ function registerByKey(palette) {
41240
+ return [palette.name.toLowerCase(), deepFreezePalette(palette)];
41241
+ }
41236
41242
  const STYLE_PALETTES = Object.assign(
41237
41243
  /* @__PURE__ */ Object.create(null),
41238
- {
41239
- [defaultPalette.name]: deepFreezePalette(defaultPalette),
41240
- [okabeItoPalette.name]: deepFreezePalette(okabeItoPalette),
41241
- [tolBrightPalette.name]: deepFreezePalette(tolBrightPalette),
41242
- [tolMutedPalette.name]: deepFreezePalette(tolMutedPalette),
41243
- [tolHighContrastPalette.name]: deepFreezePalette(
41244
- tolHighContrastPalette
41245
- ),
41246
- [ibmPalette.name]: deepFreezePalette(ibmPalette),
41247
- [grayscalePalette.name]: deepFreezePalette(grayscalePalette),
41248
- [categoricalPalette.name]: deepFreezePalette(categoricalPalette),
41249
- [grumpyNarwhalPalette.name]: deepFreezePalette(grumpyNarwhalPalette)
41250
- }
41244
+ Object.fromEntries(
41245
+ [
41246
+ defaultPalette,
41247
+ okabeItoPalette,
41248
+ tolBrightPalette,
41249
+ tolMutedPalette,
41250
+ tolHighContrastPalette,
41251
+ ibmPalette,
41252
+ grayscalePalette,
41253
+ categoricalPalette,
41254
+ grumpyNarwhalPalette
41255
+ ].map(registerByKey)
41256
+ )
41251
41257
  );
41252
41258
  Object.freeze(STYLE_PALETTES);
41253
- defaultPalette.name;
41259
+ defaultPalette.name.toLowerCase();
41254
41260
  Object.freeze(
41255
41261
  Object.keys(STYLE_PALETTES)
41256
41262
  );
@@ -66103,7 +66109,7 @@ function ExternalVirtualKeyboard({
66103
66109
  }
66104
66110
  );
66105
66111
  }
66106
- const version = "0.7.21-dev.353";
66112
+ const version = "0.7.21-dev.354";
66107
66113
  const latestDoenetmlVersion = version;
66108
66114
  function subscribeToPinnedTheme() {
66109
66115
  return () => {