@24i/bigscreen-sdk 1.0.16-alpha.2315 → 1.0.17-alpha.2323
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.
|
|
3
|
+
"version": "1.0.17-alpha.2323",
|
|
4
4
|
"description": "SmartApps BIGscreen SDK monorepo",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"jest-sonar": "^0.2.15",
|
|
78
78
|
"minimist": "^1.2.8",
|
|
79
79
|
"patch-package": "^6.5.0",
|
|
80
|
-
"sass": "^1.
|
|
80
|
+
"sass": "^1.62.1",
|
|
81
81
|
"sass-true": "^6.1.0",
|
|
82
82
|
"ts-jest": "^29.0.3",
|
|
83
83
|
"ts-node": "^10.9.1",
|
|
84
84
|
"tsconfig-paths-jest": "0.0.1",
|
|
85
|
-
"typescript": "^
|
|
85
|
+
"typescript": "^5.0.4"
|
|
86
86
|
},
|
|
87
87
|
"exports": {
|
|
88
88
|
"./adobe-heartbeat": "./packages/adobe-heartbeat/src/index.ts",
|
package/packages/input/README.md
CHANGED
|
@@ -16,9 +16,9 @@ It is connected through ime package to either system or virtual keyboard.
|
|
|
16
16
|
- `passwordChar` - optional string which replaces password characters (default: `'●'`)
|
|
17
17
|
- `shouldHandleOverflow` - optional flag which enables overflow handling by moving text to the left when caret should get out of its container (default: `false`)
|
|
18
18
|
- `maxLength` - optional number to limit value length (default: `Infinity`)
|
|
19
|
-
- `onChange` - optional callback with new value `(newValue: string) => void`
|
|
20
19
|
- `onFocus` - optional callback which is called when input gets focus
|
|
21
20
|
- `onBlur` - optional callback which is called when input loses focus
|
|
21
|
+
- `onChange` - optional callback with new value `(newValue: string) => void`
|
|
22
22
|
- `onFinish` - optional callback which is called when input is finished, its only argument is a boolean to determine if input was cancelled or not `(wasCancelled: boolean) => void`
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
@@ -19,13 +19,11 @@ type Props = {
|
|
|
19
19
|
passwordChar?: string,
|
|
20
20
|
/** Moves text to the left (with negative margin-left) when caret overflows */
|
|
21
21
|
shouldHandleOverflow?: boolean,
|
|
22
|
-
onChange?: (newValue: string) => void,
|
|
23
|
-
onFocus?: () => void,
|
|
24
|
-
onBlur?: () => void,
|
|
25
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
26
22
|
maxLength?: number,
|
|
27
|
-
|
|
23
|
+
onFocus?: (event: FocusEvent) => void,
|
|
24
|
+
onBlur?: (event: FocusEvent) => void,
|
|
28
25
|
onFinish?: (wasCancelled?: boolean) => void,
|
|
26
|
+
onChange?: (newValue: string) => void,
|
|
29
27
|
};
|
|
30
28
|
|
|
31
29
|
const ACTIVE = 'active';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# BIGscreen JSX Types
|
|
2
2
|
BIGscreen JSX is a set of tools that allow you to write JSX and converts it to JS Dom API.
|
|
3
|
-
This package contains types originally from @types/react, modified for
|
|
3
|
+
This package contains types originally from @types/react, modified for bigscreen-jsx needs.
|
|
4
4
|
|
|
5
5
|
# Contributing
|
|
6
|
-
Navigate to `<root>/
|
|
7
|
-
All react types are inside files `index.d.ts` and `global.d.ts`. Modify them to suit your needs and afterwards run this
|
|
6
|
+
Navigate to `<root>/node_modules/@types/react/`.
|
|
7
|
+
All react types are inside files `index.d.ts` and `global.d.ts`. Modify them to suit your needs and afterwards run this commands in the `<root>` directory:
|
|
8
8
|
|
|
9
9
|
`npx patch-package @types/react`
|
|
10
|
+
`npm install`
|
|
10
11
|
|
|
11
|
-
You can confirm everything worked by looking into
|
|
12
|
+
You can confirm everything worked by looking into `<root>/patches/`. You should see a file named `@types+react+<version-etc>.patch` that includes diff of your changes.
|
|
@@ -1406,10 +1406,10 @@ declare namespace React {
|
|
|
1406
1406
|
onCompositionUpdateCapture?: CompositionEventHandler<T> | undefined;
|
|
1407
1407
|
|
|
1408
1408
|
// Focus Events
|
|
1409
|
-
onFocus?:
|
|
1410
|
-
onFocusCapture?:
|
|
1411
|
-
onBlur?:
|
|
1412
|
-
onBlurCapture?:
|
|
1409
|
+
onFocus?: (event: any) => void;
|
|
1410
|
+
onFocusCapture?: (event: globalThis.FocusEvent) => void;
|
|
1411
|
+
onBlur?: (event: globalThis.FocusEvent) => void;
|
|
1412
|
+
onBlurCapture?: (event: globalThis.FocusEvent) => void;
|
|
1413
1413
|
|
|
1414
1414
|
// Form Events
|
|
1415
1415
|
onChange?: (event: globalThis.Event) => void;
|