create-sammi-next 1.1.0 → 1.1.2
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/template-minimal-js/package.json +2 -2
- package/template-minimal-ts/package.json +2 -2
- package/template-sample-js/package.json +2 -2
- package/template-sample-js/src/script.js +4 -2
- package/template-sample-ts/package.json +2 -2
- package/template-sample-ts/src/script.ts +4 -2
- package/template-vanilla-js/package.json +2 -2
- package/template-vanilla-ts/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -832,7 +832,7 @@ ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length
|
|
|
832
832
|
warning: (t) => x.warn(t),
|
|
833
833
|
error: (t) => x.message(t, { symbol: import_picocolors.default.red(K) })
|
|
834
834
|
};
|
|
835
|
-
var version = "1.1.
|
|
835
|
+
var version = "1.1.2";
|
|
836
836
|
const { blue, gray, green, magenta, yellow } = import_picocolors.default;
|
|
837
837
|
const argv = (0, import_lib.default)(process.argv.slice(2), {
|
|
838
838
|
boolean: [
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"globals": "^17.0.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"dev": "sammi-next dev",
|
|
12
|
+
"dev": "sammi-next dev --watch",
|
|
13
13
|
"build": "sammi-next",
|
|
14
14
|
"lint": "eslint ."
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"sammi-next": "^1.
|
|
18
|
+
"sammi-next": "^1.7.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"typescript-eslint": "^8.53.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "sammi-next dev",
|
|
13
|
+
"dev": "sammi-next dev --watch",
|
|
14
14
|
"build": "sammi-next",
|
|
15
15
|
"lint": "eslint ."
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"sammi-next": "^1.
|
|
19
|
+
"sammi-next": "^1.7.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"globals": "^17.0.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"dev": "sammi-next dev",
|
|
12
|
+
"dev": "sammi-next dev --watch",
|
|
13
13
|
"build": "sammi-next",
|
|
14
14
|
"lint": "eslint ."
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"sammi-next": "^1.
|
|
18
|
+
"sammi-next": "^1.8.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* SAMMI Bridge provides premade helper functions for you to use, such as retrieving variables, setting variables, triggering buttons and more. You can find all the helper functions in the SAMMI Bridge documentation
|
|
12
12
|
*/
|
|
13
|
-
import { getExternalSection, initExtension, insertCommandSection } from "sammi-next";
|
|
13
|
+
import { CommandBoxes, getExternalSection, initExtension, insertCommandSection } from "sammi-next";
|
|
14
14
|
// <reference types="sammi-next" />
|
|
15
15
|
// sammi-next globals are automatically imported when importing anything from sammi-next library.
|
|
16
16
|
import { multiply } from "./utils/utils";
|
|
@@ -42,7 +42,9 @@ export default insertCommandSection(() => {
|
|
|
42
42
|
*/
|
|
43
43
|
welcome();
|
|
44
44
|
|
|
45
|
-
SAMMI.extCommand("Extension Sample Command", 3355443, 52
|
|
45
|
+
SAMMI.extCommand("Extension Sample Command", 3355443, 52, {
|
|
46
|
+
label: CommandBoxes.label("Example command box"),
|
|
47
|
+
}).catch(e => console.error(e));
|
|
46
48
|
sammiclient.on("Extension Sample Command", () => {
|
|
47
49
|
const handler = async () => {
|
|
48
50
|
await SAMMI.notification('Command Sample');
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"typescript-eslint": "^8.53.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "sammi-next dev",
|
|
13
|
+
"dev": "sammi-next dev --watch",
|
|
14
14
|
"build": "sammi-next",
|
|
15
15
|
"lint": "eslint ."
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"sammi-next": "^1.
|
|
19
|
+
"sammi-next": "^1.8.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* SAMMI Bridge provides premade helper functions for you to use, such as retrieving variables, setting variables, triggering buttons and more. You can find all the helper functions in the SAMMI Bridge documentation
|
|
12
12
|
*/
|
|
13
|
-
import { getExternalSection, initExtension, insertCommandSection } from "sammi-next";
|
|
13
|
+
import { CommandBoxes, getExternalSection, initExtension, insertCommandSection } from "sammi-next";
|
|
14
14
|
// <reference types="sammi-next" />
|
|
15
15
|
// sammi-next globals are automatically imported when importing anything from sammi-next library.
|
|
16
16
|
import { multiply } from "./utils/utils";
|
|
@@ -41,7 +41,9 @@ export default insertCommandSection(() => {
|
|
|
41
41
|
*/
|
|
42
42
|
welcome();
|
|
43
43
|
|
|
44
|
-
SAMMI.extCommand("Extension Sample Command", 3355443, 52
|
|
44
|
+
SAMMI.extCommand("Extension Sample Command", 3355443, 52, {
|
|
45
|
+
label: CommandBoxes.label("Example command box"),
|
|
46
|
+
}).catch(e => console.error(e));
|
|
45
47
|
sammiclient.on("Extension Sample Command", () => {
|
|
46
48
|
const handler = async () => {
|
|
47
49
|
await SAMMI.notification('Command Sample');
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"globals": "^17.0.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"dev": "sammi-next dev",
|
|
12
|
+
"dev": "sammi-next dev --watch",
|
|
13
13
|
"build": "sammi-next",
|
|
14
14
|
"lint": "eslint ."
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"sammi-next": "^1.
|
|
18
|
+
"sammi-next": "^1.7.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"typescript-eslint": "^8.53.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "sammi-next dev",
|
|
13
|
+
"dev": "sammi-next dev --watch",
|
|
14
14
|
"build": "sammi-next",
|
|
15
15
|
"lint": "eslint ."
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"sammi-next": "^1.
|
|
19
|
+
"sammi-next": "^1.7.0"
|
|
20
20
|
}
|
|
21
21
|
}
|