microboard-temp 0.5.3 → 0.5.5

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.
@@ -47995,9 +47995,7 @@ registerHotkey({
47995
47995
  if (!cards) {
47996
47996
  return;
47997
47997
  }
47998
- cards.forEach((card) => {
47999
- card.toggleIsOpen();
48000
- });
47998
+ cards[0].toggleIsOpen(cards);
48001
47999
  }
48002
48000
  }
48003
48001
  });
@@ -49868,7 +49866,8 @@ function checkHotkeys(hotkeyMap, event, board) {
49868
49866
  }
49869
49867
  // src/Keyboard/getHotkeyLabel.ts
49870
49868
  function getHotkeyLabel(hotkey) {
49871
- const hotkeyLabel = hotkeys_default[hotkey].label;
49869
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
49870
+ const hotkeyLabel = hotkeys[hotkey].label;
49872
49871
  switch (conf.FORCE_HOTKEYS || "auto") {
49873
49872
  case "windows":
49874
49873
  return hotkeyLabel.windows;
package/dist/cjs/index.js CHANGED
@@ -47995,9 +47995,7 @@ registerHotkey({
47995
47995
  if (!cards) {
47996
47996
  return;
47997
47997
  }
47998
- cards.forEach((card) => {
47999
- card.toggleIsOpen();
48000
- });
47998
+ cards[0].toggleIsOpen(cards);
48001
47999
  }
48002
48000
  }
48003
48001
  });
@@ -49868,7 +49866,8 @@ function checkHotkeys(hotkeyMap, event, board) {
49868
49866
  }
49869
49867
  // src/Keyboard/getHotkeyLabel.ts
49870
49868
  function getHotkeyLabel(hotkey) {
49871
- const hotkeyLabel = hotkeys_default[hotkey].label;
49869
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
49870
+ const hotkeyLabel = hotkeys[hotkey].label;
49872
49871
  switch (conf.FORCE_HOTKEYS || "auto") {
49873
49872
  case "windows":
49874
49873
  return hotkeyLabel.windows;
package/dist/cjs/node.js CHANGED
@@ -50468,9 +50468,7 @@ registerHotkey({
50468
50468
  if (!cards) {
50469
50469
  return;
50470
50470
  }
50471
- cards.forEach((card) => {
50472
- card.toggleIsOpen();
50473
- });
50471
+ cards[0].toggleIsOpen(cards);
50474
50472
  }
50475
50473
  }
50476
50474
  });
@@ -52341,7 +52339,8 @@ function checkHotkeys(hotkeyMap, event, board) {
52341
52339
  }
52342
52340
  // src/Keyboard/getHotkeyLabel.ts
52343
52341
  function getHotkeyLabel(hotkey) {
52344
- const hotkeyLabel = hotkeys_default[hotkey].label;
52342
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
52343
+ const hotkeyLabel = hotkeys[hotkey].label;
52345
52344
  switch (conf.FORCE_HOTKEYS || "auto") {
52346
52345
  case "windows":
52347
52346
  return hotkeyLabel.windows;
@@ -47841,9 +47841,7 @@ registerHotkey({
47841
47841
  if (!cards) {
47842
47842
  return;
47843
47843
  }
47844
- cards.forEach((card) => {
47845
- card.toggleIsOpen();
47846
- });
47844
+ cards[0].toggleIsOpen(cards);
47847
47845
  }
47848
47846
  }
47849
47847
  });
@@ -49714,7 +49712,8 @@ function checkHotkeys(hotkeyMap, event, board) {
49714
49712
  }
49715
49713
  // src/Keyboard/getHotkeyLabel.ts
49716
49714
  function getHotkeyLabel(hotkey) {
49717
- const hotkeyLabel = hotkeys_default[hotkey].label;
49715
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
49716
+ const hotkeyLabel = hotkeys[hotkey].label;
49718
49717
  switch (conf.FORCE_HOTKEYS || "auto") {
49719
49718
  case "windows":
49720
49719
  return hotkeyLabel.windows;
package/dist/esm/index.js CHANGED
@@ -47834,9 +47834,7 @@ registerHotkey({
47834
47834
  if (!cards) {
47835
47835
  return;
47836
47836
  }
47837
- cards.forEach((card) => {
47838
- card.toggleIsOpen();
47839
- });
47837
+ cards[0].toggleIsOpen(cards);
47840
47838
  }
47841
47839
  }
47842
47840
  });
@@ -49707,7 +49705,8 @@ function checkHotkeys(hotkeyMap, event, board) {
49707
49705
  }
49708
49706
  // src/Keyboard/getHotkeyLabel.ts
49709
49707
  function getHotkeyLabel(hotkey) {
49710
- const hotkeyLabel = hotkeys_default[hotkey].label;
49708
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
49709
+ const hotkeyLabel = hotkeys[hotkey].label;
49711
49710
  switch (conf.FORCE_HOTKEYS || "auto") {
49712
49711
  case "windows":
49713
49712
  return hotkeyLabel.windows;
package/dist/esm/node.js CHANGED
@@ -50302,9 +50302,7 @@ registerHotkey({
50302
50302
  if (!cards) {
50303
50303
  return;
50304
50304
  }
50305
- cards.forEach((card) => {
50306
- card.toggleIsOpen();
50307
- });
50305
+ cards[0].toggleIsOpen(cards);
50308
50306
  }
50309
50307
  }
50310
50308
  });
@@ -52175,7 +52173,8 @@ function checkHotkeys(hotkeyMap, event, board) {
52175
52173
  }
52176
52174
  // src/Keyboard/getHotkeyLabel.ts
52177
52175
  function getHotkeyLabel(hotkey) {
52178
- const hotkeyLabel = hotkeys_default[hotkey].label;
52176
+ const hotkeys = { ...hotkeys_default, ...hotkeyNames };
52177
+ const hotkeyLabel = hotkeys[hotkey].label;
52179
52178
  switch (conf.FORCE_HOTKEYS || "auto") {
52180
52179
  case "windows":
52181
52180
  return hotkeyLabel.windows;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",