microboard-temp 0.14.42 → 0.14.44

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.
@@ -43627,7 +43627,7 @@ var addTextToolOverlay = {
43627
43627
  kind: "create",
43628
43628
  createsItemType: "RichText",
43629
43629
  family: "text",
43630
- icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
43630
+ icon: symbolIcon("AddText"),
43631
43631
  description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
43632
43632
  launch: { kind: "activate-tool" },
43633
43633
  surface: {
@@ -50309,7 +50309,7 @@ var connectorOverlay = {
50309
50309
  {
50310
50310
  id: "connector.switchPointers",
50311
50311
  label: "Switch arrows",
50312
- icon: connectorAssetIcon("SwitchPointers"),
50312
+ icon: symbolIcon("Switch"),
50313
50313
  target: "selection",
50314
50314
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
50315
50315
  },
@@ -73916,7 +73916,7 @@ function everyItemHasRichText(items) {
73916
73916
  registerSelectionAction({
73917
73917
  id: "selection.delete",
73918
73918
  label: "Delete",
73919
- icon: overlayAssetIcon("src/Overlay/icons/Delete.icon.svg"),
73919
+ icon: symbolIcon("Delete"),
73920
73920
  description: "Removes the selected items from the board.",
73921
73921
  invoke: { kind: "selectionMethod", methodName: "removeFromBoard" },
73922
73922
  isAvailable: (items) => items.length > 0
@@ -73924,7 +73924,7 @@ registerSelectionAction({
73924
73924
  registerSelectionAction({
73925
73925
  id: "selection.duplicate",
73926
73926
  label: "Duplicate",
73927
- icon: overlayAssetIcon("src/Overlay/icons/Duplicate.icon.svg"),
73927
+ icon: symbolIcon("Duplicate"),
73928
73928
  description: "Duplicates the selected items.",
73929
73929
  invoke: { kind: "selectionMethod", methodName: "duplicate" },
73930
73930
  isAvailable: (items) => items.length > 0
@@ -73932,7 +73932,7 @@ registerSelectionAction({
73932
73932
  registerSelectionAction({
73933
73933
  id: "selection.lock",
73934
73934
  label: "Lock",
73935
- icon: overlayAssetIcon("src/Overlay/icons/Lock.icon.svg"),
73935
+ icon: symbolIcon("unlock"),
73936
73936
  description: "Locks the selected items.",
73937
73937
  invoke: { kind: "selectionMethod", methodName: "lock" },
73938
73938
  isAvailable: (items) => items.length > 0 && !items.some((item) => item.transformation.isLocked)
@@ -73940,7 +73940,7 @@ registerSelectionAction({
73940
73940
  registerSelectionAction({
73941
73941
  id: "selection.unlock",
73942
73942
  label: "Unlock",
73943
- icon: overlayAssetIcon("src/Overlay/icons/Unlock.icon.svg"),
73943
+ icon: symbolIcon("lock"),
73944
73944
  description: "Unlocks the selected items.",
73945
73945
  invoke: { kind: "selectionMethod", methodName: "unlock" },
73946
73946
  isAvailable: (items) => items.some((item) => item.transformation.isLocked)
@@ -73948,7 +73948,7 @@ registerSelectionAction({
73948
73948
  registerSelectionAction({
73949
73949
  id: "selection.bringToFront",
73950
73950
  label: "Bring to front",
73951
- icon: overlayAssetIcon("src/Overlay/icons/BringToFront.icon.svg"),
73951
+ icon: symbolIcon("BringToFront"),
73952
73952
  description: "Moves the selection above overlapping items.",
73953
73953
  invoke: { kind: "selectionMethod", methodName: "bringToFront" },
73954
73954
  isAvailable: (items) => items.length > 0
@@ -73956,7 +73956,7 @@ registerSelectionAction({
73956
73956
  registerSelectionAction({
73957
73957
  id: "selection.sendToBack",
73958
73958
  label: "Send to back",
73959
- icon: overlayAssetIcon("src/Overlay/icons/SendToBack.icon.svg"),
73959
+ icon: symbolIcon("SendToBack"),
73960
73960
  description: "Moves the selection behind overlapping items.",
73961
73961
  invoke: { kind: "selectionMethod", methodName: "sendToBack" },
73962
73962
  isAvailable: (items) => items.length > 0
@@ -73987,7 +73987,7 @@ registerSelectionAction({
73987
73987
  registerSelectionAction({
73988
73988
  id: "selection.text.color",
73989
73989
  label: "Text color",
73990
- icon: styleColorIcon({
73990
+ icon: symbolIcon("TextColor", {
73991
73991
  swatch: { kind: "selectionProperty", property: "getFontColor" }
73992
73992
  }),
73993
73993
  invoke: { kind: "selectionMethod", methodName: "setFontColor" },
@@ -74008,10 +74008,9 @@ registerSelectionAction({
74008
74008
  registerSelectionAction({
74009
74009
  id: "selection.text.highlight",
74010
74010
  label: "Highlight",
74011
- icon: {
74012
- ...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
74013
- state: { swatch: { kind: "selectionProperty", property: "getFontHighlight" } }
74014
- },
74011
+ icon: symbolIcon("TextHighlight", {
74012
+ swatch: { kind: "selectionProperty", property: "getFontHighlight" }
74013
+ }),
74015
74014
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" },
74016
74015
  controls: [
74017
74016
  {
@@ -79609,10 +79608,12 @@ class AddSticker extends BoardTool {
79609
79608
  }
79610
79609
  setBackgroundColor(color2) {
79611
79610
  this.sticker.apply({
79612
- class: "Sticker",
79613
- method: "setBackgroundColor",
79611
+ class: "Item",
79612
+ method: "setProperty",
79614
79613
  item: [this.sticker.getId()],
79615
- backgroundColor: coerceColorValue(color2)
79614
+ property: "backgroundColor",
79615
+ value: coerceColorValue(color2),
79616
+ prevValues: [this.sticker.getBackgroundColor()]
79616
79617
  });
79617
79618
  this.setCursor(color2);
79618
79619
  this.board.tools.publish();
package/dist/cjs/index.js CHANGED
@@ -43627,7 +43627,7 @@ var addTextToolOverlay = {
43627
43627
  kind: "create",
43628
43628
  createsItemType: "RichText",
43629
43629
  family: "text",
43630
- icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
43630
+ icon: symbolIcon("AddText"),
43631
43631
  description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
43632
43632
  launch: { kind: "activate-tool" },
43633
43633
  surface: {
@@ -50309,7 +50309,7 @@ var connectorOverlay = {
50309
50309
  {
50310
50310
  id: "connector.switchPointers",
50311
50311
  label: "Switch arrows",
50312
- icon: connectorAssetIcon("SwitchPointers"),
50312
+ icon: symbolIcon("Switch"),
50313
50313
  target: "selection",
50314
50314
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
50315
50315
  },
@@ -73916,7 +73916,7 @@ function everyItemHasRichText(items) {
73916
73916
  registerSelectionAction({
73917
73917
  id: "selection.delete",
73918
73918
  label: "Delete",
73919
- icon: overlayAssetIcon("src/Overlay/icons/Delete.icon.svg"),
73919
+ icon: symbolIcon("Delete"),
73920
73920
  description: "Removes the selected items from the board.",
73921
73921
  invoke: { kind: "selectionMethod", methodName: "removeFromBoard" },
73922
73922
  isAvailable: (items) => items.length > 0
@@ -73924,7 +73924,7 @@ registerSelectionAction({
73924
73924
  registerSelectionAction({
73925
73925
  id: "selection.duplicate",
73926
73926
  label: "Duplicate",
73927
- icon: overlayAssetIcon("src/Overlay/icons/Duplicate.icon.svg"),
73927
+ icon: symbolIcon("Duplicate"),
73928
73928
  description: "Duplicates the selected items.",
73929
73929
  invoke: { kind: "selectionMethod", methodName: "duplicate" },
73930
73930
  isAvailable: (items) => items.length > 0
@@ -73932,7 +73932,7 @@ registerSelectionAction({
73932
73932
  registerSelectionAction({
73933
73933
  id: "selection.lock",
73934
73934
  label: "Lock",
73935
- icon: overlayAssetIcon("src/Overlay/icons/Lock.icon.svg"),
73935
+ icon: symbolIcon("unlock"),
73936
73936
  description: "Locks the selected items.",
73937
73937
  invoke: { kind: "selectionMethod", methodName: "lock" },
73938
73938
  isAvailable: (items) => items.length > 0 && !items.some((item) => item.transformation.isLocked)
@@ -73940,7 +73940,7 @@ registerSelectionAction({
73940
73940
  registerSelectionAction({
73941
73941
  id: "selection.unlock",
73942
73942
  label: "Unlock",
73943
- icon: overlayAssetIcon("src/Overlay/icons/Unlock.icon.svg"),
73943
+ icon: symbolIcon("lock"),
73944
73944
  description: "Unlocks the selected items.",
73945
73945
  invoke: { kind: "selectionMethod", methodName: "unlock" },
73946
73946
  isAvailable: (items) => items.some((item) => item.transformation.isLocked)
@@ -73948,7 +73948,7 @@ registerSelectionAction({
73948
73948
  registerSelectionAction({
73949
73949
  id: "selection.bringToFront",
73950
73950
  label: "Bring to front",
73951
- icon: overlayAssetIcon("src/Overlay/icons/BringToFront.icon.svg"),
73951
+ icon: symbolIcon("BringToFront"),
73952
73952
  description: "Moves the selection above overlapping items.",
73953
73953
  invoke: { kind: "selectionMethod", methodName: "bringToFront" },
73954
73954
  isAvailable: (items) => items.length > 0
@@ -73956,7 +73956,7 @@ registerSelectionAction({
73956
73956
  registerSelectionAction({
73957
73957
  id: "selection.sendToBack",
73958
73958
  label: "Send to back",
73959
- icon: overlayAssetIcon("src/Overlay/icons/SendToBack.icon.svg"),
73959
+ icon: symbolIcon("SendToBack"),
73960
73960
  description: "Moves the selection behind overlapping items.",
73961
73961
  invoke: { kind: "selectionMethod", methodName: "sendToBack" },
73962
73962
  isAvailable: (items) => items.length > 0
@@ -73987,7 +73987,7 @@ registerSelectionAction({
73987
73987
  registerSelectionAction({
73988
73988
  id: "selection.text.color",
73989
73989
  label: "Text color",
73990
- icon: styleColorIcon({
73990
+ icon: symbolIcon("TextColor", {
73991
73991
  swatch: { kind: "selectionProperty", property: "getFontColor" }
73992
73992
  }),
73993
73993
  invoke: { kind: "selectionMethod", methodName: "setFontColor" },
@@ -74008,10 +74008,9 @@ registerSelectionAction({
74008
74008
  registerSelectionAction({
74009
74009
  id: "selection.text.highlight",
74010
74010
  label: "Highlight",
74011
- icon: {
74012
- ...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
74013
- state: { swatch: { kind: "selectionProperty", property: "getFontHighlight" } }
74014
- },
74011
+ icon: symbolIcon("TextHighlight", {
74012
+ swatch: { kind: "selectionProperty", property: "getFontHighlight" }
74013
+ }),
74015
74014
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" },
74016
74015
  controls: [
74017
74016
  {
@@ -79609,10 +79608,12 @@ class AddSticker extends BoardTool {
79609
79608
  }
79610
79609
  setBackgroundColor(color2) {
79611
79610
  this.sticker.apply({
79612
- class: "Sticker",
79613
- method: "setBackgroundColor",
79611
+ class: "Item",
79612
+ method: "setProperty",
79614
79613
  item: [this.sticker.getId()],
79615
- backgroundColor: coerceColorValue(color2)
79614
+ property: "backgroundColor",
79615
+ value: coerceColorValue(color2),
79616
+ prevValues: [this.sticker.getBackgroundColor()]
79616
79617
  });
79617
79618
  this.setCursor(color2);
79618
79619
  this.board.tools.publish();
package/dist/cjs/node.js CHANGED
@@ -46166,7 +46166,7 @@ var addTextToolOverlay = {
46166
46166
  kind: "create",
46167
46167
  createsItemType: "RichText",
46168
46168
  family: "text",
46169
- icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
46169
+ icon: symbolIcon("AddText"),
46170
46170
  description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
46171
46171
  launch: { kind: "activate-tool" },
46172
46172
  surface: {
@@ -52781,7 +52781,7 @@ var connectorOverlay = {
52781
52781
  {
52782
52782
  id: "connector.switchPointers",
52783
52783
  label: "Switch arrows",
52784
- icon: connectorAssetIcon("SwitchPointers"),
52784
+ icon: symbolIcon("Switch"),
52785
52785
  target: "selection",
52786
52786
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
52787
52787
  },
@@ -76389,7 +76389,7 @@ function everyItemHasRichText(items) {
76389
76389
  registerSelectionAction({
76390
76390
  id: "selection.delete",
76391
76391
  label: "Delete",
76392
- icon: overlayAssetIcon("src/Overlay/icons/Delete.icon.svg"),
76392
+ icon: symbolIcon("Delete"),
76393
76393
  description: "Removes the selected items from the board.",
76394
76394
  invoke: { kind: "selectionMethod", methodName: "removeFromBoard" },
76395
76395
  isAvailable: (items) => items.length > 0
@@ -76397,7 +76397,7 @@ registerSelectionAction({
76397
76397
  registerSelectionAction({
76398
76398
  id: "selection.duplicate",
76399
76399
  label: "Duplicate",
76400
- icon: overlayAssetIcon("src/Overlay/icons/Duplicate.icon.svg"),
76400
+ icon: symbolIcon("Duplicate"),
76401
76401
  description: "Duplicates the selected items.",
76402
76402
  invoke: { kind: "selectionMethod", methodName: "duplicate" },
76403
76403
  isAvailable: (items) => items.length > 0
@@ -76405,7 +76405,7 @@ registerSelectionAction({
76405
76405
  registerSelectionAction({
76406
76406
  id: "selection.lock",
76407
76407
  label: "Lock",
76408
- icon: overlayAssetIcon("src/Overlay/icons/Lock.icon.svg"),
76408
+ icon: symbolIcon("unlock"),
76409
76409
  description: "Locks the selected items.",
76410
76410
  invoke: { kind: "selectionMethod", methodName: "lock" },
76411
76411
  isAvailable: (items) => items.length > 0 && !items.some((item) => item.transformation.isLocked)
@@ -76413,7 +76413,7 @@ registerSelectionAction({
76413
76413
  registerSelectionAction({
76414
76414
  id: "selection.unlock",
76415
76415
  label: "Unlock",
76416
- icon: overlayAssetIcon("src/Overlay/icons/Unlock.icon.svg"),
76416
+ icon: symbolIcon("lock"),
76417
76417
  description: "Unlocks the selected items.",
76418
76418
  invoke: { kind: "selectionMethod", methodName: "unlock" },
76419
76419
  isAvailable: (items) => items.some((item) => item.transformation.isLocked)
@@ -76421,7 +76421,7 @@ registerSelectionAction({
76421
76421
  registerSelectionAction({
76422
76422
  id: "selection.bringToFront",
76423
76423
  label: "Bring to front",
76424
- icon: overlayAssetIcon("src/Overlay/icons/BringToFront.icon.svg"),
76424
+ icon: symbolIcon("BringToFront"),
76425
76425
  description: "Moves the selection above overlapping items.",
76426
76426
  invoke: { kind: "selectionMethod", methodName: "bringToFront" },
76427
76427
  isAvailable: (items) => items.length > 0
@@ -76429,7 +76429,7 @@ registerSelectionAction({
76429
76429
  registerSelectionAction({
76430
76430
  id: "selection.sendToBack",
76431
76431
  label: "Send to back",
76432
- icon: overlayAssetIcon("src/Overlay/icons/SendToBack.icon.svg"),
76432
+ icon: symbolIcon("SendToBack"),
76433
76433
  description: "Moves the selection behind overlapping items.",
76434
76434
  invoke: { kind: "selectionMethod", methodName: "sendToBack" },
76435
76435
  isAvailable: (items) => items.length > 0
@@ -76460,7 +76460,7 @@ registerSelectionAction({
76460
76460
  registerSelectionAction({
76461
76461
  id: "selection.text.color",
76462
76462
  label: "Text color",
76463
- icon: styleColorIcon({
76463
+ icon: symbolIcon("TextColor", {
76464
76464
  swatch: { kind: "selectionProperty", property: "getFontColor" }
76465
76465
  }),
76466
76466
  invoke: { kind: "selectionMethod", methodName: "setFontColor" },
@@ -76481,10 +76481,9 @@ registerSelectionAction({
76481
76481
  registerSelectionAction({
76482
76482
  id: "selection.text.highlight",
76483
76483
  label: "Highlight",
76484
- icon: {
76485
- ...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
76486
- state: { swatch: { kind: "selectionProperty", property: "getFontHighlight" } }
76487
- },
76484
+ icon: symbolIcon("TextHighlight", {
76485
+ swatch: { kind: "selectionProperty", property: "getFontHighlight" }
76486
+ }),
76488
76487
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" },
76489
76488
  controls: [
76490
76489
  {
@@ -82082,10 +82081,12 @@ class AddSticker extends BoardTool {
82082
82081
  }
82083
82082
  setBackgroundColor(color2) {
82084
82083
  this.sticker.apply({
82085
- class: "Sticker",
82086
- method: "setBackgroundColor",
82084
+ class: "Item",
82085
+ method: "setProperty",
82087
82086
  item: [this.sticker.getId()],
82088
- backgroundColor: coerceColorValue(color2)
82087
+ property: "backgroundColor",
82088
+ value: coerceColorValue(color2),
82089
+ prevValues: [this.sticker.getBackgroundColor()]
82089
82090
  });
82090
82091
  this.setCursor(color2);
82091
82092
  this.board.tools.publish();