@quenty/undostack 7.21.2 → 7.21.3-canary.607f741.0
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/CHANGELOG.md +8 -0
- package/package.json +10 -10
- package/src/Shared/UndoStack.lua +14 -12
- package/src/Shared/UndoStackEntry.lua +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.21.3-canary.607f741.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@7.21.2...@quenty/undostack@7.21.3-canary.607f741.0) (2025-12-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/undostack
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [7.21.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/undostack@7.21.1...@quenty/undostack@7.21.2) (2025-11-22)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/undostack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/undostack",
|
|
3
|
-
"version": "7.21.
|
|
3
|
+
"version": "7.21.3-canary.607f741.0",
|
|
4
4
|
"description": "Generalized undo stack for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/ducktype": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/promise": "
|
|
34
|
-
"@quenty/signal": "
|
|
35
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "10.9.0",
|
|
29
|
+
"@quenty/ducktype": "5.9.0",
|
|
30
|
+
"@quenty/instanceutils": "13.20.2",
|
|
31
|
+
"@quenty/loader": "10.9.0",
|
|
32
|
+
"@quenty/maid": "3.5.0",
|
|
33
|
+
"@quenty/promise": "10.12.0",
|
|
34
|
+
"@quenty/signal": "7.11.1",
|
|
35
|
+
"@quenty/valueobject": "13.21.3-canary.607f741.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "607f7418f46b85cd5843f1c5665911eb2dd7e3fb"
|
|
41
41
|
}
|
package/src/Shared/UndoStack.lua
CHANGED
|
@@ -18,18 +18,20 @@ local UndoStack = setmetatable({}, BaseObject)
|
|
|
18
18
|
UndoStack.ClassName = "UndoStack"
|
|
19
19
|
UndoStack.__index = UndoStack
|
|
20
20
|
|
|
21
|
-
export type UndoStack =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
export type UndoStack =
|
|
22
|
+
typeof(setmetatable(
|
|
23
|
+
{} :: {
|
|
24
|
+
_undoStack: { UndoStackEntry.UndoStackEntry },
|
|
25
|
+
_redoStack: { UndoStackEntry.UndoStackEntry },
|
|
26
|
+
_hasUndoEntries: ValueObject.ValueObject<boolean>,
|
|
27
|
+
_hasRedoEntries: ValueObject.ValueObject<boolean>,
|
|
28
|
+
_isActionExecuting: ValueObject.ValueObject<boolean>,
|
|
29
|
+
_maxSize: number,
|
|
30
|
+
_latestPromiseChain: Promise.Promise<()>?,
|
|
31
|
+
},
|
|
32
|
+
{} :: typeof({ __index = UndoStack })
|
|
33
|
+
))
|
|
34
|
+
& BaseObject.BaseObject
|
|
33
35
|
|
|
34
36
|
function UndoStack.new(maxSize: number?): UndoStack
|
|
35
37
|
local self: UndoStack = setmetatable(BaseObject.new() :: any, UndoStack)
|
|
@@ -19,14 +19,16 @@ UndoStackEntry.__index = UndoStackEntry
|
|
|
19
19
|
export type ExecuteUndo = (Maid.Maid) -> Promise.Promise<()> | any
|
|
20
20
|
export type ExecuteRedo = (Maid.Maid) -> Promise.Promise<()> | any
|
|
21
21
|
|
|
22
|
-
export type UndoStackEntry =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
export type UndoStackEntry =
|
|
23
|
+
typeof(setmetatable(
|
|
24
|
+
{} :: {
|
|
25
|
+
Destroying: Signal.Signal<()>,
|
|
26
|
+
_promiseUndo: ExecuteUndo?,
|
|
27
|
+
_promiseRedo: ExecuteRedo?,
|
|
28
|
+
},
|
|
29
|
+
{} :: typeof({ __index = UndoStackEntry })
|
|
30
|
+
))
|
|
31
|
+
& BaseObject.BaseObject
|
|
30
32
|
|
|
31
33
|
--[=[
|
|
32
34
|
Constructs a new undo restack entry. See [UndoStack] for usage.
|