create-gramstax 0.5.8 → 0.5.10

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.
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "logging-pretty": "^3.0.0",
39
- "gramstax": "^0.5.7"
39
+ "gramstax": "^0.5.9"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "typescript": "5.9.3"
@@ -1,29 +1,10 @@
1
- import {BlockKeyboard} from "gramstax"
2
- import {KeyboardLabel} from "~/labels/keyboard"
1
+ import {BlockKeyboard, LabelKeyboard} from "gramstax"
3
2
 
4
3
  export class KeyboardBlock extends BlockKeyboard {
5
- static label = KeyboardLabel
6
- static home(lang?: string, type?: string) {
7
- return this._build(`home`, lang, type)
8
- }
9
-
10
- static back(lang?: string, type?: string) {
11
- return this._build(`back`, lang, type)
12
- }
13
-
14
- static cancel(lang?: string, type?: string) {
15
- return this._build(`cancel`, lang, type)
16
- }
17
-
18
- static refresh(lang?: string, type?: string) {
19
- return this._build(`refresh`, lang, type)
20
- }
21
-
22
- static refreshBack(lang?: string, type?: string) {
23
- return this._build(`refreshBack`, lang, type)
24
- }
25
-
26
- static backRefresh(lang?: string, type?: string) {
27
- return this._build(`backRefresh`, lang, type)
4
+ static label = class extends LabelKeyboard {
5
+ static home = {default: `Home`, it: `Casa`, id: `Beranda`}
6
+ static back = {default: `.. Back`, it: `.. Ritorno`, id: `.. Kembali`}
28
7
  }
8
+ static home = (lang?: string, type?: string) => this._build(`home`, lang, type)
9
+ static back = (lang?: string, type?: string) => this._build(`back`, lang, type)
29
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gramstax",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,19 +0,0 @@
1
- import {LabelKeyboard} from "gramstax"
2
-
3
- export class KeyboardLabel extends LabelKeyboard {
4
- static home(lang?: string) {
5
- return this._build(lang, false, {
6
- default: `Home`,
7
- it: `Casa`,
8
- id: `Beranda`
9
- })
10
- }
11
-
12
- static back(lang?: string) {
13
- return this._build(lang, false, {
14
- default: `.. Back`,
15
- it: `.. Ritorno`,
16
- id: `.. Kembali`
17
- })
18
- }
19
- }