@doenet/doenetml-iframe 0.7.0-alpha15 → 0.7.0-alpha16

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.
Files changed (3) hide show
  1. package/index.js +26 -16
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -46782,7 +46782,7 @@ const TEX_NAMES_LOWER = [
46782
46782
  "upsilon",
46783
46783
  "theta",
46784
46784
  "iota",
46785
- "omicron",
46785
+ null,
46786
46786
  "pi",
46787
46787
  "alpha",
46788
46788
  "sigma",
@@ -46850,7 +46850,12 @@ const KEYS = {
46850
46850
  greek_lower: [..."ϕ𝜍ερτυθιοπασδφγηξκλζχψωβνμ,'"].map((c2, i2) => ({
46851
46851
  displayName: c2,
46852
46852
  name: c2,
46853
- commands: [{ type: "write", command: `\\${TEX_NAMES_LOWER[i2]}` }]
46853
+ commands: [
46854
+ {
46855
+ type: "write",
46856
+ command: TEX_NAMES_LOWER[i2] ? `\\${TEX_NAMES_LOWER[i2]}` : c2
46857
+ }
46858
+ ]
46854
46859
  })),
46855
46860
  // upper-case greek letters in QWERTY order
46856
46861
  greek_upper: [..."ΦΣΕΡΤΥΘΙΟΠΑΣΔΦΓΗΞΚΛΖΧΨΩΒΝΜ,'"].map((c2, i2) => ({
@@ -46902,7 +46907,7 @@ const OPERATOR_KEYS = {
46902
46907
  times: {
46903
46908
  displayName: "×",
46904
46909
  name: "times",
46905
- commands: [{ type: "type", command: "\\times" }]
46910
+ commands: [{ type: "write", command: "\\times" }]
46906
46911
  },
46907
46912
  divide: {
46908
46913
  displayName: "÷",
@@ -47105,12 +47110,12 @@ const OTHER_SYMBOLS = {
47105
47110
  langle: {
47106
47111
  displayName: "⟨",
47107
47112
  name: "langle",
47108
- commands: [{ type: "write", command: "\\langle" }]
47113
+ commands: [{ type: "cmd", command: "\\langle" }]
47109
47114
  },
47110
47115
  rangle: {
47111
47116
  displayName: "⟩",
47112
47117
  name: "rangle",
47113
- commands: [{ type: "write", command: "\\rangle" }]
47118
+ commands: [{ type: "cmd", command: "\\rangle" }]
47114
47119
  },
47115
47120
  cdot: {
47116
47121
  displayName: "⋅",
@@ -47125,7 +47130,7 @@ const OTHER_SYMBOLS = {
47125
47130
  conj: {
47126
47131
  displayName: "ā",
47127
47132
  name: "conj",
47128
- commands: [{ type: "write", command: "overline{a}" }]
47133
+ commands: [{ type: "cmd", command: "\\overline" }]
47129
47134
  },
47130
47135
  perp: {
47131
47136
  displayName: "⊥",
@@ -47289,12 +47294,12 @@ const FUNCTION_KEYS = {
47289
47294
  nPr: {
47290
47295
  displayName: "nPr",
47291
47296
  name: "nPr",
47292
- commands: [{ type: "write", command: "nPr(" }]
47297
+ commands: [{ type: "type", command: "nPr(" }]
47293
47298
  },
47294
47299
  nCr: {
47295
47300
  displayName: "nCr",
47296
47301
  name: "nCr",
47297
- commands: [{ type: "write", command: "nCr(" }]
47302
+ commands: [{ type: "type", command: "nCr(" }]
47298
47303
  },
47299
47304
  factorial: {
47300
47305
  displayName: "n!",
@@ -50733,13 +50738,18 @@ function KeyboardTray({ onClick }) {
50733
50738
  document.body
50734
50739
  );
50735
50740
  }
50736
- const virtualKeyboardState = {
50737
- count: 0,
50738
- keyboardDomNode: null,
50739
- keyboardReactRoot: null,
50740
- callbacks: []
50741
- };
50742
- window.virtualKeyboardState = virtualKeyboardState;
50741
+ let virtualKeyboardState;
50742
+ if (window.virtualKeyboardState) {
50743
+ virtualKeyboardState = window.virtualKeyboardState;
50744
+ } else {
50745
+ virtualKeyboardState = {
50746
+ count: 0,
50747
+ keyboardDomNode: null,
50748
+ keyboardReactRoot: null,
50749
+ callbacks: []
50750
+ };
50751
+ window.virtualKeyboardState = virtualKeyboardState;
50752
+ }
50743
50753
  function UniqueKeyboardTray({ onClick }) {
50744
50754
  React__default__default.useEffect(() => {
50745
50755
  if (virtualKeyboardState.count === 0) {
@@ -50798,7 +50808,7 @@ function OutsideIframeKeyboard() {
50798
50808
  }
50799
50809
  );
50800
50810
  }
50801
- const version = "0.7.0-alpha15";
50811
+ const version = "0.7.0-alpha16";
50802
50812
  const latestDoenetmlVersion = version;
50803
50813
  function DoenetViewer({
50804
50814
  doenetML,