@24i/bigscreen-sdk 1.0.33-alpha.2549 → 1.0.34-alpha.2562
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 +8 -8
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/arabic.ts +27 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/burmese.ts +27 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/dari.ts +28 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/index.ts +6 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/pashto.ts +27 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/persian.ts +27 -0
- package/packages/keyboard/src/WhitelabelKeyboard/layouts/ukrainian.ts +27 -0
- package/packages/router/src/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/bigscreen-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34-alpha.2562",
|
|
4
4
|
"description": "SmartApps BIGscreen SDK monorepo",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@24i/smartapps-datalayer": "3.0.11",
|
|
45
45
|
"@sentry/browser": "7.35.0",
|
|
46
46
|
"@sentry/types": "7.35.0",
|
|
47
|
-
"csstype": "^3.1.
|
|
47
|
+
"csstype": "^3.1.3",
|
|
48
48
|
"date-fns": "2.29.3",
|
|
49
49
|
"lottie-web": "5.12.2",
|
|
50
50
|
"prop-types": "^15.8.1"
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"@24i/bigscreen-sdk": "file:.",
|
|
54
54
|
"@24i/eslint-config-smartapps-bigscreen-linters": "file:./libs/linters",
|
|
55
55
|
"@24i/smartapps-bigscreen-changelog-generator": "0.17.0",
|
|
56
|
-
"@babel/core": "^7.23.
|
|
57
|
-
"@babel/preset-env": "^7.23.
|
|
56
|
+
"@babel/core": "^7.23.7",
|
|
57
|
+
"@babel/preset-env": "^7.23.7",
|
|
58
58
|
"@types/fs-extra": "^11.0.4",
|
|
59
59
|
"@types/gtag.js": "^0.0.18",
|
|
60
60
|
"@types/inquirer": "^9.0.7",
|
|
61
|
-
"@types/jest": "^29.5.
|
|
61
|
+
"@types/jest": "^29.5.11",
|
|
62
62
|
"@types/minimist": "^1.2.5",
|
|
63
|
-
"@types/node": "^20.10.
|
|
63
|
+
"@types/node": "^20.10.6",
|
|
64
64
|
"@types/prop-types": "^15.7.11",
|
|
65
65
|
"@types/react": "18.0.33",
|
|
66
66
|
"@types/scheduler": "^0.16.8",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"jest-sonar": "^0.2.15",
|
|
79
79
|
"minimist": "^1.2.8",
|
|
80
80
|
"patch-package": "^8.0.0",
|
|
81
|
-
"sass": "^1.69.
|
|
81
|
+
"sass": "^1.69.6",
|
|
82
82
|
"sass-true": "^6.1.0",
|
|
83
83
|
"ts-jest": "^29.1.1",
|
|
84
|
-
"ts-node": "^10.9.
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
85
|
"tsconfig-paths-jest": "0.0.1",
|
|
86
86
|
"typescript": "^5.1.6"
|
|
87
87
|
},
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
['ا', 'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'س'],
|
|
7
|
+
['ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ك', 'ل', 'م'],
|
|
8
|
+
['ن', 'ه', 'و', 'ي', 'ء', 'آ', 'إ', 'ة', 'ؤ', 'ئ', 'ى', 'أ'],
|
|
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', 'space', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const arabic = {
|
|
23
|
+
className: 'wide',
|
|
24
|
+
keyText: 'ابت',
|
|
25
|
+
layout: keyboardLayout,
|
|
26
|
+
makeFocusStrings,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
['က', 'ခ', 'ဂ', 'ဃ', 'င', 'စ', 'ဆ', 'ဇ', 'စ်', 'ည', 'ဋ'],
|
|
7
|
+
['႒', 'ဍ', 'ဏ', 'တ', 'ထ', 'ဒ', 'ဓ', 'န', 'ပ', 'ဖ', 'ဗ'],
|
|
8
|
+
['ဘ', 'မ', 'ယ', 'ရ', 'လ', 'ဝ', 'သ', 'ဟ', 'ဠ', 'အ', '-'],
|
|
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', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const burmese = {
|
|
23
|
+
className: 'wide',
|
|
24
|
+
keyText: 'ကခဂ',
|
|
25
|
+
layout: keyboardLayout,
|
|
26
|
+
makeFocusStrings,
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
['ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ'],
|
|
7
|
+
['ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ'],
|
|
8
|
+
['ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', '-'],
|
|
9
|
+
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
/* eslint-disable max-len */
|
|
13
|
+
const makeFocusStrings = (layout: KeyMatrixCell[][], hasLanguageLayout: boolean) => [
|
|
14
|
+
['', '', ...layout[0], 'backspace', 'backspace'],
|
|
15
|
+
['abc', 'abc', ...layout[1], 'clear', 'clear'],
|
|
16
|
+
['special', 'special', ...layout[2], 'left', 'right'],
|
|
17
|
+
['', '', ...layout[3], '', ''],
|
|
18
|
+
[
|
|
19
|
+
...(hasLanguageLayout ? ['language', 'language'] : ['', '']),
|
|
20
|
+
'shift', 'shift', 'space', 'space', 'space', 'space', 'space', 'space', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
export const dari = {
|
|
24
|
+
className: 'wide',
|
|
25
|
+
keyText: 'ابپ',
|
|
26
|
+
layout: keyboardLayout,
|
|
27
|
+
makeFocusStrings,
|
|
28
|
+
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
export { arabic } from './arabic';
|
|
2
|
+
export { burmese } from './burmese';
|
|
3
|
+
export { dari } from './dari';
|
|
1
4
|
export { hebrew } from './hebrew';
|
|
2
5
|
export { korean } from './korean';
|
|
3
6
|
export { latin } from './latin';
|
|
7
|
+
export { pashto } from './pashto';
|
|
8
|
+
export { persian } from './persian';
|
|
4
9
|
export { russian } from './russian';
|
|
5
10
|
export { special } from './special';
|
|
6
11
|
export { tibetan } from './tibetan';
|
|
7
12
|
export { turkish } from './turkish';
|
|
13
|
+
export { ukrainian } from './ukrainian';
|
|
8
14
|
export { urdu } from './urdu';
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
['ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ'],
|
|
7
|
+
['ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ'],
|
|
8
|
+
['ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', '-'],
|
|
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', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const pashto = {
|
|
23
|
+
className: 'wide',
|
|
24
|
+
keyText: 'ابپ',
|
|
25
|
+
layout: keyboardLayout,
|
|
26
|
+
makeFocusStrings,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
['ا', 'ب', 'ت', 'ث', 'ج', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'س'],
|
|
7
|
+
['ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ك', 'ل', 'م'],
|
|
8
|
+
['ن', 'ه', 'و', 'ي', 'ء', 'آ', 'إ', 'ة', 'ؤ', 'ئ', 'ى', 'أ'],
|
|
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', 'space', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const persian = {
|
|
23
|
+
className: 'wide',
|
|
24
|
+
keyText: 'ابپ',
|
|
25
|
+
layout: keyboardLayout,
|
|
26
|
+
makeFocusStrings,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
['а', 'б', 'в', 'г', 'ґ', 'д', 'е', 'є', 'ж', 'з', 'и'],
|
|
7
|
+
['і', 'ї', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с'],
|
|
8
|
+
['т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ь', 'ю', 'я'],
|
|
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', 'space', 'domain', 'domain', 'continue', 'continue'],
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const ukrainian = {
|
|
23
|
+
className: 'wide',
|
|
24
|
+
keyText: 'абв',
|
|
25
|
+
layout: keyboardLayout,
|
|
26
|
+
makeFocusStrings,
|
|
27
|
+
};
|
|
@@ -6,7 +6,7 @@ export const isPathVisible = (hash: string, regexpPath?: RegExp) => (
|
|
|
6
6
|
|
|
7
7
|
export const getCurrentHash = () => window.location.href.split('#')[1] || '';
|
|
8
8
|
|
|
9
|
-
const PARAM = '([a-zA-Z0-9
|
|
9
|
+
const PARAM = '([a-zA-Z0-9+-=.:%_()\\[\\]{}]+)';
|
|
10
10
|
|
|
11
11
|
export const pathToRegExp = (path: string) => {
|
|
12
12
|
const regexpParts: string[] = [];
|