microboard-ui-temp 0.1.154 → 0.1.156
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.
|
@@ -275774,7 +275774,7 @@ class Deck extends BaseItem {
|
|
|
275774
275774
|
}
|
|
275775
275775
|
}
|
|
275776
275776
|
getCards(count) {
|
|
275777
|
-
const cards = this.index?.list().slice(0, count);
|
|
275777
|
+
const cards = this.index?.list().reverse().slice(0, count);
|
|
275778
275778
|
if (cards) {
|
|
275779
275779
|
this.removeChildItems(cards);
|
|
275780
275780
|
return cards;
|
|
@@ -375035,7 +375035,8 @@ function GetCard({ cardPosition, rounded = "none" }) {
|
|
|
375035
375035
|
hotkey: getHotkeyLabel(`getCard-${cardPosition}`)
|
|
375036
375036
|
}, /* @__PURE__ */ import_react284.default.createElement(Icon, {
|
|
375037
375037
|
iconName,
|
|
375038
|
-
width: cardPosition === "random" ? 20 : 24
|
|
375038
|
+
width: cardPosition === "random" ? 20 : 24,
|
|
375039
|
+
height: 24
|
|
375039
375040
|
}));
|
|
375040
375041
|
}
|
|
375041
375042
|
|
|
@@ -375392,7 +375393,8 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375392
375393
|
class: "Transformation",
|
|
375393
375394
|
method: "translateTo",
|
|
375394
375395
|
item: [id3],
|
|
375395
|
-
|
|
375396
|
+
x: right + 5 + width2 * index4,
|
|
375397
|
+
y: top
|
|
375396
375398
|
};
|
|
375397
375399
|
});
|
|
375398
375400
|
board.selection.transformMany(translation, Date.now());
|
|
@@ -375545,7 +375547,8 @@ function GetRandomItem({ rounded = "none" }) {
|
|
|
375545
375547
|
rounded
|
|
375546
375548
|
}, /* @__PURE__ */ import_react295.default.createElement(Icon, {
|
|
375547
375549
|
iconName: "GetRandomItem",
|
|
375548
|
-
width: 20
|
|
375550
|
+
width: 20,
|
|
375551
|
+
height: 24
|
|
375549
375552
|
})), /* @__PURE__ */ import_react295.default.createElement(UiSeparator, {
|
|
375550
375553
|
vertical: true
|
|
375551
375554
|
}));
|
package/dist/example.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
/>
|
|
33
33
|
|
|
34
34
|
<link rel="stylesheet" crossorigin href="/chunk-zvtc1yhk.css"><script src="/env.js"></script>
|
|
35
|
-
<script type="module" crossorigin src="/chunk-
|
|
35
|
+
<script type="module" crossorigin src="/chunk-ck0psfks.js"></script></head>
|
|
36
36
|
|
|
37
37
|
<body
|
|
38
38
|
style="
|
package/dist/index.js
CHANGED
|
@@ -275774,7 +275774,7 @@ class Deck extends BaseItem {
|
|
|
275774
275774
|
}
|
|
275775
275775
|
}
|
|
275776
275776
|
getCards(count) {
|
|
275777
|
-
const cards = this.index?.list().slice(0, count);
|
|
275777
|
+
const cards = this.index?.list().reverse().slice(0, count);
|
|
275778
275778
|
if (cards) {
|
|
275779
275779
|
this.removeChildItems(cards);
|
|
275780
275780
|
return cards;
|
|
@@ -375035,7 +375035,8 @@ function GetCard({ cardPosition, rounded = "none" }) {
|
|
|
375035
375035
|
hotkey: getHotkeyLabel(`getCard-${cardPosition}`)
|
|
375036
375036
|
}, /* @__PURE__ */ import_react284.default.createElement(Icon, {
|
|
375037
375037
|
iconName,
|
|
375038
|
-
width: cardPosition === "random" ? 20 : 24
|
|
375038
|
+
width: cardPosition === "random" ? 20 : 24,
|
|
375039
|
+
height: 24
|
|
375039
375040
|
}));
|
|
375040
375041
|
}
|
|
375041
375042
|
|
|
@@ -375392,7 +375393,8 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375392
375393
|
class: "Transformation",
|
|
375393
375394
|
method: "translateTo",
|
|
375394
375395
|
item: [id3],
|
|
375395
|
-
|
|
375396
|
+
x: right + 5 + width2 * index4,
|
|
375397
|
+
y: top
|
|
375396
375398
|
};
|
|
375397
375399
|
});
|
|
375398
375400
|
board.selection.transformMany(translation, Date.now());
|
|
@@ -375545,7 +375547,8 @@ function GetRandomItem({ rounded = "none" }) {
|
|
|
375545
375547
|
rounded
|
|
375546
375548
|
}, /* @__PURE__ */ import_react295.default.createElement(Icon, {
|
|
375547
375549
|
iconName: "GetRandomItem",
|
|
375548
|
-
width: 20
|
|
375550
|
+
width: 20,
|
|
375551
|
+
height: 24
|
|
375549
375552
|
})), /* @__PURE__ */ import_react295.default.createElement(UiSeparator, {
|
|
375550
375553
|
vertical: true
|
|
375551
375554
|
}));
|
package/dist/spa.js
CHANGED
|
@@ -275774,7 +275774,7 @@ class Deck extends BaseItem {
|
|
|
275774
275774
|
}
|
|
275775
275775
|
}
|
|
275776
275776
|
getCards(count) {
|
|
275777
|
-
const cards = this.index?.list().slice(0, count);
|
|
275777
|
+
const cards = this.index?.list().reverse().slice(0, count);
|
|
275778
275778
|
if (cards) {
|
|
275779
275779
|
this.removeChildItems(cards);
|
|
275780
275780
|
return cards;
|
|
@@ -375035,7 +375035,8 @@ function GetCard({ cardPosition, rounded = "none" }) {
|
|
|
375035
375035
|
hotkey: getHotkeyLabel(`getCard-${cardPosition}`)
|
|
375036
375036
|
}, /* @__PURE__ */ import_react284.default.createElement(Icon, {
|
|
375037
375037
|
iconName,
|
|
375038
|
-
width: cardPosition === "random" ? 20 : 24
|
|
375038
|
+
width: cardPosition === "random" ? 20 : 24,
|
|
375039
|
+
height: 24
|
|
375039
375040
|
}));
|
|
375040
375041
|
}
|
|
375041
375042
|
|
|
@@ -375392,7 +375393,8 @@ function SpreadCards({ rounded = "none" }) {
|
|
|
375392
375393
|
class: "Transformation",
|
|
375393
375394
|
method: "translateTo",
|
|
375394
375395
|
item: [id3],
|
|
375395
|
-
|
|
375396
|
+
x: right + 5 + width2 * index4,
|
|
375397
|
+
y: top
|
|
375396
375398
|
};
|
|
375397
375399
|
});
|
|
375398
375400
|
board.selection.transformMany(translation, Date.now());
|
|
@@ -375545,7 +375547,8 @@ function GetRandomItem({ rounded = "none" }) {
|
|
|
375545
375547
|
rounded
|
|
375546
375548
|
}, /* @__PURE__ */ import_react295.default.createElement(Icon, {
|
|
375547
375549
|
iconName: "GetRandomItem",
|
|
375548
|
-
width: 20
|
|
375550
|
+
width: 20,
|
|
375551
|
+
height: 24
|
|
375549
375552
|
})), /* @__PURE__ */ import_react295.default.createElement(UiSeparator, {
|
|
375550
375553
|
vertical: true
|
|
375551
375554
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-ui-temp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.156",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
67
67
|
"js-cookie": "^3.0.5",
|
|
68
68
|
"jwt-decode": "^4.0.0",
|
|
69
|
-
"microboard-temp": "^0.5.
|
|
69
|
+
"microboard-temp": "^0.5.65",
|
|
70
70
|
"nanoid": "^5.1.5",
|
|
71
71
|
"prop-types": "^15.8.1",
|
|
72
72
|
"react-hot-toast": "2.4.1",
|