@24i/bigscreen-sdk 1.0.39 → 1.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,6 +7,7 @@ export { latin } from './latin';
7
7
  export { pashto } from './pashto';
8
8
  export { persian } from './persian';
9
9
  export { russian } from './russian';
10
+ export { spanish } from './spanish';
10
11
  export { special } from './special';
11
12
  export { tibetan } from './tibetan';
12
13
  export { turkish } from './turkish';
@@ -0,0 +1,26 @@
1
+ /* eslint-disable no-magic-numbers */
2
+ import { KeyMatrixCell } from '../../types';
3
+
4
+ const keyboardLayout = [
5
+ ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
6
+ ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'],
7
+ ['k', 'l', 'm', 'n', 'ñ', 'o', 'p', 'q', 'r', 's'],
8
+ ['t', 'u', 'v', 'w', 'x', 'y', 'z', '.', '@', '-'],
9
+ ];
10
+
11
+ /* eslint-disable max-len */
12
+ const makeFocusStrings = (layout: KeyMatrixCell[][], hasLanguageLayout: boolean) => [
13
+ ['', '', ...layout[0], 'backspace', 'backspace'],
14
+ ['abc', 'abc', ...layout[1], 'clear', 'clear'],
15
+ ['special', 'special', ...layout[2], 'left', 'right'],
16
+ ['', '', ...layout[3], '', ''],
17
+ [
18
+ ...(hasLanguageLayout ? ['language', 'language'] : ['', '']),
19
+ 'shift', 'shift', 'space', 'space', 'space', 'space', 'space', 'space', 'domain', 'domain', 'continue', 'continue'],
20
+ ];
21
+
22
+ export const spanish = {
23
+ keyText: 'Abc',
24
+ layout: keyboardLayout,
25
+ makeFocusStrings,
26
+ };
@@ -1,6 +1,7 @@
1
1
  import { ok } from 'assert';
2
2
  import { execSync, ExecSyncOptions } from 'child_process';
3
3
 
4
+ const NO_VERIFY_PARAM = '--no-verify';
4
5
  const branchNames = {
5
6
  dev: 'development',
6
7
  main: 'master',
@@ -32,18 +33,19 @@ const checkout = (branchName: string) => cmdSyncPipeOut(`git checkout ${branchNa
32
33
  const addAll = () => cmdSyncPipeOut('git add --all');
33
34
 
34
35
  const commit = (commitMessage: string, noVerify = false) => {
35
- const maybeNoVerifyParam = noVerify ? '--no-verify' : '';
36
+ const maybeNoVerifyParam = noVerify ? NO_VERIFY_PARAM : '';
36
37
  return cmdSyncPipeOut(`git commit -m "${commitMessage}" ${maybeNoVerifyParam}`.trimEnd());
37
38
  };
38
39
 
39
40
  const push = (branchName: string, noVerify = false) => {
40
- const maybeNoVerifyParam = noVerify ? '--no-verify' : '';
41
+ const maybeNoVerifyParam = noVerify ? NO_VERIFY_PARAM : '';
41
42
  const cmd = `git push --set-upstream origin ${branchName} ${maybeNoVerifyParam}`.trimEnd();
42
43
  return cmdSyncPipeOut(cmd);
43
44
  };
44
45
 
45
- const pushTag = (version: string) => {
46
- const cmd = `git push origin v${version}`;
46
+ const pushTag = (version: string, noVerify = false) => {
47
+ const maybeNoVerifyParam = noVerify ? NO_VERIFY_PARAM : '';
48
+ const cmd = `git push origin v${version} ${maybeNoVerifyParam}`.trimEnd();
47
49
  return cmdSyncPipeOut(cmd);
48
50
  };
49
51
 
@@ -139,7 +141,7 @@ const release = (versionType: string | 'major' | 'minor' | 'patch') => {
139
141
  push(newReleaseBranchName, true);
140
142
 
141
143
  console.log(`Pushing ${version} tag ...`);
142
- pushTag(version);
144
+ pushTag(version, true);
143
145
 
144
146
  const prTitle = `Release: ${newReleaseBranchName.split('/')[1]}`;
145
147
  // eslint-disable-next-line max-len