superdoc-macros 0.1.0 → 0.2.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/README.md +3 -0
- package/dist/manager.d.ts +6 -0
- package/dist/manager.js +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,6 +149,9 @@ npm test # vitest — 43 בדיקות
|
|
|
149
149
|
npm run build # tsc ⟵ dist/
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
**שחרור גרסה:** מעלים את `version` ב-package.json ודוחפים ל-main — ה-workflow
|
|
153
|
+
(.github/workflows/release.yml) מפרסם ל-npm ויוצר GitHub Release אוטומטית.
|
|
154
|
+
|
|
152
155
|
## רישיון
|
|
153
156
|
|
|
154
157
|
MIT
|
package/dist/manager.d.ts
CHANGED
|
@@ -61,6 +61,12 @@ export declare class MacroKit {
|
|
|
61
61
|
cancelRecording(): void;
|
|
62
62
|
listRecordings(): readonly RecordedMacro[];
|
|
63
63
|
removeRecording(id: string): void;
|
|
64
|
+
/** עדכון שם או קיצור של הקלטה קיימת. `null` כשההקלטה לא נמצאה. */
|
|
65
|
+
updateRecording(input: {
|
|
66
|
+
id: string;
|
|
67
|
+
name?: string;
|
|
68
|
+
shortcut?: string;
|
|
69
|
+
}): RecordedMacro | null;
|
|
64
70
|
replayRecording(id: string, options?: ReplayOptions): Promise<ReplayResult>;
|
|
65
71
|
listSnippets(): readonly Snippet[];
|
|
66
72
|
saveSnippet(input: {
|
package/dist/manager.js
CHANGED
|
@@ -125,6 +125,22 @@ export class MacroKit {
|
|
|
125
125
|
this.state.recordings = this.state.recordings.filter((recording) => recording.id !== id);
|
|
126
126
|
this.persist();
|
|
127
127
|
}
|
|
128
|
+
/** עדכון שם או קיצור של הקלטה קיימת. `null` כשההקלטה לא נמצאה. */
|
|
129
|
+
updateRecording(input) {
|
|
130
|
+
const recording = this.state.recordings.find((entry) => entry.id === input.id);
|
|
131
|
+
if (!recording)
|
|
132
|
+
return null;
|
|
133
|
+
if (input.name !== undefined)
|
|
134
|
+
recording.name = input.name;
|
|
135
|
+
if (input.shortcut !== undefined) {
|
|
136
|
+
if (input.shortcut)
|
|
137
|
+
recording.shortcut = input.shortcut;
|
|
138
|
+
else
|
|
139
|
+
delete recording.shortcut;
|
|
140
|
+
}
|
|
141
|
+
this.persist();
|
|
142
|
+
return recording;
|
|
143
|
+
}
|
|
128
144
|
async replayRecording(id, options) {
|
|
129
145
|
const recording = this.state.recordings.find((entry) => entry.id === id);
|
|
130
146
|
if (!recording)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superdoc-macros",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Macro toolkit for SuperDoc-based editors: sandboxed scripted macros, a Word-style macro recorder, and snippets with auto-text expansion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|