@khanacademy/math-input 1.0.1 → 3.0.0
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/CHANGELOG.md +25 -1
- package/dist/components/input/cursor-contexts.d.ts +10 -9
- package/dist/components/input/cursor-contexts.js.flow +11 -16
- package/dist/components/input/math-input.d.ts +1 -1
- package/dist/components/input/math-input.js.flow +1 -1
- package/dist/components/input/math-wrapper.d.ts +3 -2
- package/dist/components/input/math-wrapper.js.flow +3 -16
- package/dist/components/keypad/button.d.ts +1 -2
- package/dist/components/keypad/button.js.flow +1 -1
- package/dist/components/keypad/{pre-algebra-page.d.ts → geometry-page/index.d.ts} +1 -1
- package/dist/components/keypad/{pre-algebra-page.js.flow → geometry-page/index.js.flow} +1 -1
- package/dist/components/keypad/index.d.ts +5 -4
- package/dist/components/keypad/index.js.flow +9 -4
- package/dist/components/keypad/keypad-page-items.d.ts +8 -2
- package/dist/components/keypad/keypad-page-items.js.flow +8 -2
- package/dist/components/keypad/{numeric-input-page.d.ts → numbers-page/index.d.ts} +3 -2
- package/dist/components/keypad/numbers-page/index.js.flow +17 -0
- package/dist/components/keypad/numbers-page/types.d.ts +4 -0
- package/dist/components/keypad/numbers-page/types.js.flow +10 -0
- package/dist/components/keypad/operators-page/advanced-relations-buttons.d.ts +7 -0
- package/dist/components/keypad/{numeric-input-page.js.flow → operators-page/advanced-relations-buttons.js.flow} +3 -4
- package/dist/components/keypad/operators-page/basic-relations-buttons.d.ts +7 -0
- package/dist/components/keypad/{trigonometry-page.js.flow → operators-page/basic-relations-buttons.js.flow} +3 -6
- package/dist/components/keypad/operators-page/index.d.ts +9 -0
- package/dist/components/keypad/operators-page/index.js.flow +17 -0
- package/dist/components/keypad/operators-page/logarithms-buttons.d.ts +7 -0
- package/dist/components/keypad/operators-page/logarithms-buttons.js.flow +12 -0
- package/dist/components/keypad/operators-page/pre-algebra-buttons.d.ts +7 -0
- package/dist/components/keypad/operators-page/pre-algebra-buttons.js.flow +12 -0
- package/dist/components/keypad/operators-page/types.d.ts +6 -0
- package/dist/components/keypad/operators-page/types.js.flow +12 -0
- package/dist/components/{compute-layout-parameters.d.ts → keypad-legacy/compute-layout-parameters.d.ts} +2 -1
- package/dist/components/keypad-legacy/compute-layout-parameters.js.flow +30 -0
- package/dist/components/{echo-manager.d.ts → keypad-legacy/echo-manager.d.ts} +2 -11
- package/dist/components/{echo-manager.js.flow → keypad-legacy/echo-manager.js.flow} +2 -11
- package/dist/components/{expression-keypad.d.ts → keypad-legacy/expression-keypad.d.ts} +3 -4
- package/dist/components/{expression-keypad.js.flow → keypad-legacy/expression-keypad.js.flow} +3 -4
- package/dist/components/{fraction-keypad.d.ts → keypad-legacy/fraction-keypad.d.ts} +2 -2
- package/dist/components/{fraction-keypad.js.flow → keypad-legacy/fraction-keypad.js.flow} +2 -2
- package/dist/components/{gesture-manager.d.ts → keypad-legacy/gesture-manager.d.ts} +1 -1
- package/dist/components/{gesture-manager.js.flow → keypad-legacy/gesture-manager.js.flow} +1 -1
- package/dist/components/{gesture-state-machine.d.ts → keypad-legacy/gesture-state-machine.d.ts} +7 -7
- package/dist/components/{gesture-state-machine.js.flow → keypad-legacy/gesture-state-machine.js.flow} +8 -8
- package/dist/components/{icon.d.ts → keypad-legacy/icon.d.ts} +2 -2
- package/dist/components/{icon.js.flow → keypad-legacy/icon.js.flow} +2 -2
- package/dist/components/{keypad-button.d.ts → keypad-legacy/keypad-button.d.ts} +10 -10
- package/dist/components/{keypad-button.js.flow → keypad-legacy/keypad-button.js.flow} +12 -11
- package/dist/components/{keypad-container.d.ts → keypad-legacy/keypad-container.d.ts} +3 -4
- package/dist/components/{keypad-container.js.flow → keypad-legacy/keypad-container.js.flow} +4 -5
- package/dist/components/{keypad.d.ts → keypad-legacy/keypad.d.ts} +3 -3
- package/dist/components/{keypad.js.flow → keypad-legacy/keypad.js.flow} +3 -3
- package/dist/components/{multi-symbol-grid.d.ts → keypad-legacy/multi-symbol-grid.d.ts} +2 -2
- package/dist/components/{multi-symbol-grid.js.flow → keypad-legacy/multi-symbol-grid.js.flow} +2 -2
- package/dist/components/{multi-symbol-popover.d.ts → keypad-legacy/multi-symbol-popover.d.ts} +1 -1
- package/dist/components/{multi-symbol-popover.js.flow → keypad-legacy/multi-symbol-popover.js.flow} +1 -1
- package/dist/components/{node-manager.d.ts → keypad-legacy/node-manager.d.ts} +3 -4
- package/dist/components/{node-manager.js.flow → keypad-legacy/node-manager.js.flow} +3 -5
- package/dist/components/{popover-manager.d.ts → keypad-legacy/popover-manager.d.ts} +1 -1
- package/dist/components/{popover-manager.js.flow → keypad-legacy/popover-manager.js.flow} +1 -1
- package/dist/components/{popover-state-machine.d.ts → keypad-legacy/popover-state-machine.d.ts} +1 -1
- package/dist/components/{popover-state-machine.js.flow → keypad-legacy/popover-state-machine.js.flow} +1 -1
- package/dist/components/{provided-keypad.d.ts → keypad-legacy/provided-keypad.d.ts} +1 -1
- package/dist/components/{provided-keypad.js.flow → keypad-legacy/provided-keypad.js.flow} +1 -1
- package/dist/{store → components/keypad-legacy/store}/actions.d.ts +5 -6
- package/dist/{store → components/keypad-legacy/store}/actions.js.flow +7 -9
- package/dist/{store → components/keypad-legacy/store}/index.d.ts +0 -1
- package/dist/{store → components/keypad-legacy/store}/index.js.flow +0 -1
- package/dist/components/keypad-legacy/store/shared.d.ts +7 -0
- package/dist/components/keypad-legacy/store/shared.js.flow +14 -0
- package/dist/{store → components/keypad-legacy/store}/types.d.ts +6 -17
- package/dist/{store → components/keypad-legacy/store}/types.js.flow +6 -17
- package/dist/components/keypad-legacy/styles.d.ts +5 -0
- package/dist/components/{styles.js.flow → keypad-legacy/styles.js.flow} +1 -3
- package/dist/components/keypad-legacy/touchable-keypad-button.d.ts +37 -0
- package/dist/components/keypad-legacy/touchable-keypad-button.js.flow +64 -0
- package/dist/components/{two-page-keypad.d.ts → keypad-legacy/two-page-keypad.d.ts} +0 -1
- package/dist/components/{two-page-keypad.js.flow → keypad-legacy/two-page-keypad.js.flow} +0 -1
- package/dist/data/key-configs.d.ts +3 -1
- package/dist/data/key-configs.js.flow +3 -1
- package/dist/data/keys.d.ts +49 -52
- package/dist/data/keys.js.flow +48 -99
- package/dist/enums.d.ts +49 -0
- package/dist/enums.js.flow +63 -0
- package/dist/es/index.js +5033 -4370
- package/dist/es/index.js.map +1 -1
- package/dist/fake-react-native-web/view.d.ts +1 -2
- package/dist/fake-react-native-web/view.js.flow +1 -2
- package/dist/index.d.ts +5 -7
- package/dist/index.js +5398 -4714
- package/dist/index.js.flow +5 -7
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +26 -23
- package/dist/types.js.flow +37 -33
- package/package.json +1 -1
- package/src/components/input/__tests__/context-tracking.test.ts +20 -20
- package/src/components/input/cursor-contexts.ts +22 -29
- package/src/components/input/math-input.tsx +1 -1
- package/src/components/input/math-wrapper.ts +75 -67
- package/src/components/keypad/button-assets.tsx +65 -40
- package/src/components/keypad/button.stories.tsx +61 -13
- package/src/components/keypad/button.tsx +1 -1
- package/src/components/keypad/{trigonometry-page.tsx → geometry-page/index.tsx} +3 -4
- package/src/components/keypad/index.tsx +19 -14
- package/src/components/keypad/keypad-page-items.tsx +34 -21
- package/src/components/keypad/keypad-pages.stories.tsx +5 -5
- package/src/components/keypad/keypad.stories.tsx +75 -17
- package/src/components/keypad/{numeric-input-page.tsx → numbers-page/index.tsx} +47 -11
- package/src/components/keypad/numbers-page/types.ts +4 -0
- package/src/components/keypad/operators-page/advanced-relations-buttons.tsx +32 -0
- package/src/components/keypad/operators-page/basic-relations-buttons.tsx +32 -0
- package/src/components/keypad/{pre-algebra-page.tsx → operators-page/index.tsx} +25 -29
- package/src/components/keypad/operators-page/logarithms-buttons.tsx +32 -0
- package/src/components/keypad/operators-page/pre-algebra-buttons.tsx +36 -0
- package/src/components/keypad/operators-page/types.ts +6 -0
- package/src/components/{__tests__ → keypad-legacy/__tests__}/two-page-keypad.test.tsx +0 -2
- package/src/components/{compute-layout-parameters.ts → keypad-legacy/compute-layout-parameters.ts} +7 -8
- package/src/components/{corner-decal.tsx → keypad-legacy/corner-decal.tsx} +2 -3
- package/src/components/{echo-manager.tsx → keypad-legacy/echo-manager.tsx} +12 -25
- package/src/components/{empty-keypad-button.tsx → keypad-legacy/empty-keypad-button.tsx} +2 -2
- package/src/components/{expression-keypad.tsx → keypad-legacy/expression-keypad.tsx} +15 -25
- package/src/components/{fraction-keypad.tsx → keypad-legacy/fraction-keypad.tsx} +15 -16
- package/src/components/{gesture-manager.ts → keypad-legacy/gesture-manager.ts} +2 -2
- package/src/components/{gesture-state-machine.ts → keypad-legacy/gesture-state-machine.ts} +8 -8
- package/src/components/{icon.tsx → keypad-legacy/icon.tsx} +7 -7
- package/src/components/{keypad-button.tsx → keypad-legacy/keypad-button.tsx} +30 -28
- package/src/components/{keypad-container.tsx → keypad-legacy/keypad-container.tsx} +13 -14
- package/src/components/{keypad.tsx → keypad-legacy/keypad.tsx} +5 -5
- package/src/components/{many-keypad-button.tsx → keypad-legacy/many-keypad-button.tsx} +6 -6
- package/src/components/{math-icon.tsx → keypad-legacy/math-icon.tsx} +2 -2
- package/src/components/{multi-symbol-grid.tsx → keypad-legacy/multi-symbol-grid.tsx} +6 -7
- package/src/components/{multi-symbol-popover.tsx → keypad-legacy/multi-symbol-popover.tsx} +3 -4
- package/src/components/{navigation-pad.tsx → keypad-legacy/navigation-pad.tsx} +5 -5
- package/src/components/{node-manager.ts → keypad-legacy/node-manager.ts} +2 -10
- package/src/components/{popover-manager.tsx → keypad-legacy/popover-manager.tsx} +2 -2
- package/src/components/{popover-state-machine.ts → keypad-legacy/popover-state-machine.ts} +1 -1
- package/src/components/{provided-keypad.tsx → keypad-legacy/provided-keypad.tsx} +4 -5
- package/src/{store → components/keypad-legacy/store}/actions.ts +8 -10
- package/src/{store → components/keypad-legacy/store}/echo-reducer.ts +6 -7
- package/src/{store → components/keypad-legacy/store}/index.ts +5 -13
- package/src/{store → components/keypad-legacy/store}/input-reducer.ts +6 -6
- package/src/{store → components/keypad-legacy/store}/keypad-reducer.ts +2 -2
- package/src/{store → components/keypad-legacy/store}/layout-reducer.ts +11 -11
- package/src/components/keypad-legacy/store/shared.ts +12 -0
- package/src/{store → components/keypad-legacy/store}/types.ts +16 -21
- package/src/components/{styles.ts → keypad-legacy/styles.ts} +1 -1
- package/src/components/{text-icon.tsx → keypad-legacy/text-icon.tsx} +2 -2
- package/src/components/{touchable-keypad-button.tsx → keypad-legacy/touchable-keypad-button.tsx} +40 -21
- package/src/components/{two-page-keypad.tsx → keypad-legacy/two-page-keypad.tsx} +5 -6
- package/src/data/key-configs.ts +67 -72
- package/src/data/keys.ts +50 -107
- package/src/enums.ts +74 -0
- package/src/index.ts +5 -9
- package/src/math-input.stories.tsx +9 -9
- package/src/types.ts +33 -26
- package/src/utils.ts +3 -3
- package/tsconfig-build.tsbuildinfo +1 -0
- package/dist/components/compute-layout-parameters.js.flow +0 -49
- package/dist/components/keypad/trigonometry-page.d.ts +0 -8
- package/dist/components/styles.d.ts +0 -6
- package/dist/components/touchable-keypad-button.d.ts +0 -30
- package/dist/components/touchable-keypad-button.js.flow +0 -35
- package/dist/components/velocity-tracker.d.ts +0 -48
- package/dist/components/velocity-tracker.js.flow +0 -54
- package/dist/consts.d.ts +0 -51
- package/dist/consts.js.flow +0 -66
- package/dist/store/pager-reducer.d.ts +0 -4
- package/dist/store/pager-reducer.js.flow +0 -13
- package/dist/store/shared.d.ts +0 -6
- package/dist/store/shared.js.flow +0 -13
- package/src/components/velocity-tracker.ts +0 -86
- package/src/consts.ts +0 -91
- package/src/store/pager-reducer.ts +0 -125
- package/src/store/shared.ts +0 -12
- package/tsconfig.tsbuildinfo +0 -1
- /package/dist/components/{corner-decal.d.ts → keypad-legacy/corner-decal.d.ts} +0 -0
- /package/dist/components/{corner-decal.js.flow → keypad-legacy/corner-decal.js.flow} +0 -0
- /package/dist/components/{empty-keypad-button.d.ts → keypad-legacy/empty-keypad-button.d.ts} +0 -0
- /package/dist/components/{empty-keypad-button.js.flow → keypad-legacy/empty-keypad-button.js.flow} +0 -0
- /package/dist/components/{many-keypad-button.d.ts → keypad-legacy/many-keypad-button.d.ts} +0 -0
- /package/dist/components/{many-keypad-button.js.flow → keypad-legacy/many-keypad-button.js.flow} +0 -0
- /package/dist/components/{math-icon.d.ts → keypad-legacy/math-icon.d.ts} +0 -0
- /package/dist/components/{math-icon.js.flow → keypad-legacy/math-icon.js.flow} +0 -0
- /package/dist/components/{navigation-pad.d.ts → keypad-legacy/navigation-pad.d.ts} +0 -0
- /package/dist/components/{navigation-pad.js.flow → keypad-legacy/navigation-pad.js.flow} +0 -0
- /package/dist/{store → components/keypad-legacy/store}/echo-reducer.d.ts +0 -0
- /package/dist/{store → components/keypad-legacy/store}/echo-reducer.js.flow +0 -0
- /package/dist/{store → components/keypad-legacy/store}/input-reducer.d.ts +0 -0
- /package/dist/{store → components/keypad-legacy/store}/input-reducer.js.flow +0 -0
- /package/dist/{store → components/keypad-legacy/store}/keypad-reducer.d.ts +0 -0
- /package/dist/{store → components/keypad-legacy/store}/keypad-reducer.js.flow +0 -0
- /package/dist/{store → components/keypad-legacy/store}/layout-reducer.d.ts +0 -0
- /package/dist/{store → components/keypad-legacy/store}/layout-reducer.js.flow +0 -0
- /package/dist/components/{svg-icon.d.ts → keypad-legacy/svg-icon.d.ts} +0 -0
- /package/dist/components/{svg-icon.js.flow → keypad-legacy/svg-icon.js.flow} +0 -0
- /package/dist/components/{text-icon.d.ts → keypad-legacy/text-icon.d.ts} +0 -0
- /package/dist/components/{text-icon.js.flow → keypad-legacy/text-icon.js.flow} +0 -0
- /package/dist/components/{z-indexes.d.ts → keypad-legacy/z-indexes.d.ts} +0 -0
- /package/dist/components/{z-indexes.js.flow → keypad-legacy/z-indexes.js.flow} +0 -0
- /package/src/components/{__tests__ → keypad-legacy/__tests__}/gesture-state-machine.test.ts +0 -0
- /package/src/components/{__tests__ → keypad-legacy/__tests__}/node-manager.test.ts +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/arrow.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/backspace.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/cdot.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/cos.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/cube-root.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/dismiss.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/divide.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/down.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/equal.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/exp-2.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/exp-3.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/exp.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/frac.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/geq.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/gt.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/index.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-into-numerator.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-out-base.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-out-denominator.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-out-exponent.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-out-numerator.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/jump-out-parentheses.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/left-paren.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/left.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/leq.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/ln.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/log-n.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/log.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/lt.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/minus.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/neq.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/parens.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/percent.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/period.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/plus.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/radical.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/right-paren.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/right.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/sin.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/sqrt.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/tan.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/times.js +0 -0
- /package/src/components/{iconography → keypad-legacy/iconography}/up.js +0 -0
- /package/src/components/{svg-icon.tsx → keypad-legacy/svg-icon.tsx} +0 -0
- /package/src/components/{z-indexes.ts → keypad-legacy/z-indexes.ts} +0 -0
- /package/{tsconfig.json → tsconfig-build.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
# @khanacademy/math-input
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- ec37eb3d: Export v2 keypad, rename v1 keypad to ProvidedKeypad
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 46417c53: add division key boolean
|
|
12
|
+
- 97438065: Add prop to Keypad to switch between · and × for multiplication
|
|
13
|
+
- 85d9132a: Added Basic Relations buttons
|
|
14
|
+
- 42297993: Add advanced relations buttons
|
|
15
|
+
- e86cc72f: Keypad API: Button sets on keypad switched to optional booleans. Added all designed button sets as props, but not all are yet implemented.
|
|
16
|
+
- c0a15907: adds logarithm buttons
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 1ffbe3ef:
|
|
21
|
+
- d9759ea6: Fix dom errors from SVG markup and adjust stories to remove warnings
|
|
22
|
+
|
|
23
|
+
## 2.0.0
|
|
24
|
+
|
|
25
|
+
### Major Changes
|
|
26
|
+
|
|
27
|
+
- b585fe29: Switch most @khanacademy/math-input psuedo-enums to enums
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
6
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Enum that defines the various contexts in which a cursor can exist. The
|
|
3
3
|
* active context is determined first by looking at the cursor's siblings (e.g.,
|
|
4
4
|
* for the `BEFORE_FRACTION` context), and then at its direct parent. Though a
|
|
5
5
|
* cursor could in theory be nested in multiple contexts, we only care about the
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* now, we show the dismiss button rather than allowing the user to jump out of
|
|
10
10
|
* the radical.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
export declare enum CursorContext {
|
|
13
|
+
NONE = "NONE",
|
|
14
|
+
IN_PARENS = "IN_PARENS",
|
|
15
|
+
IN_SUPER_SCRIPT = "IN_SUPER_SCRIPT",
|
|
16
|
+
IN_SUB_SCRIPT = "IN_SUB_SCRIPT",
|
|
17
|
+
IN_NUMERATOR = "IN_NUMERATOR",
|
|
18
|
+
IN_DENOMINATOR = "IN_DENOMINATOR",
|
|
19
|
+
BEFORE_FRACTION = "BEFORE_FRACTION"
|
|
20
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Enum that defines the various contexts in which a cursor can exist. The
|
|
9
9
|
* active context is determined first by looking at the cursor's siblings (e.g.,
|
|
10
10
|
* for the `BEFORE_FRACTION` context), and then at its direct parent. Though a
|
|
11
11
|
* cursor could in theory be nested in multiple contexts, we only care about the
|
|
@@ -15,18 +15,13 @@
|
|
|
15
15
|
* now, we show the dismiss button rather than allowing the user to jump out of
|
|
16
16
|
* the radical.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
declare export var IN_SUPER_SCRIPT: "IN_SUPER_SCRIPT";
|
|
29
|
-
declare export var IN_SUB_SCRIPT: "IN_SUB_SCRIPT";
|
|
30
|
-
declare export var IN_NUMERATOR: "IN_NUMERATOR";
|
|
31
|
-
declare export var IN_DENOMINATOR: "IN_DENOMINATOR";
|
|
32
|
-
declare export var BEFORE_FRACTION: "BEFORE_FRACTION";
|
|
18
|
+
|
|
19
|
+
declare export var CursorContext: {|
|
|
20
|
+
+NONE: "NONE", // "NONE"
|
|
21
|
+
+IN_PARENS: "IN_PARENS", // "IN_PARENS"
|
|
22
|
+
+IN_SUPER_SCRIPT: "IN_SUPER_SCRIPT", // "IN_SUPER_SCRIPT"
|
|
23
|
+
+IN_SUB_SCRIPT: "IN_SUB_SCRIPT", // "IN_SUB_SCRIPT"
|
|
24
|
+
+IN_NUMERATOR: "IN_NUMERATOR", // "IN_NUMERATOR"
|
|
25
|
+
+IN_DENOMINATOR: "IN_DENOMINATOR", // "IN_DENOMINATOR"
|
|
26
|
+
+BEFORE_FRACTION: "BEFORE_FRACTION", // "BEFORE_FRACTION"
|
|
27
|
+
|};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* more regular interface for the functionality we need while insulating us
|
|
4
4
|
* from MathQuill changes.
|
|
5
5
|
*/
|
|
6
|
+
import { CursorContext } from "./cursor-contexts";
|
|
6
7
|
declare class MathWrapper {
|
|
7
8
|
MQ: any;
|
|
8
9
|
mathField: any;
|
|
@@ -18,7 +19,7 @@ declare class MathWrapper {
|
|
|
18
19
|
* @returns {object} a cursor object, consisting of a cursor context
|
|
19
20
|
*/
|
|
20
21
|
pressKey(key: string): {
|
|
21
|
-
context:
|
|
22
|
+
context: CursorContext;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Place the cursor beside the node located at the given coordinates.
|
|
@@ -104,7 +105,7 @@ declare class MathWrapper {
|
|
|
104
105
|
_handleBackspaceOutsideParens(cursor: any): void;
|
|
105
106
|
_handleBackspaceInsideParens(cursor: any): void;
|
|
106
107
|
_handleBackspaceAfterLigaturedSymbol(cursor: any): void;
|
|
107
|
-
contextForCursor(cursor: any):
|
|
108
|
+
contextForCursor(cursor: any): CursorContext;
|
|
108
109
|
_isAtTopLevel(cursor: any): boolean;
|
|
109
110
|
}
|
|
110
111
|
export default MathWrapper;
|
|
@@ -4,11 +4,7 @@
|
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
* This file contains a wrapper around MathQuill so that we can provide a
|
|
9
|
-
* more regular interface for the functionality we need while insulating us
|
|
10
|
-
* from MathQuill changes.
|
|
11
|
-
*/
|
|
7
|
+
import { CursorContext } from "./cursor-contexts";
|
|
12
8
|
declare class MathWrapper {
|
|
13
9
|
MQ: any;
|
|
14
10
|
mathField: any;
|
|
@@ -24,7 +20,7 @@ declare class MathWrapper {
|
|
|
24
20
|
* @returns {{...}} a cursor object, consisting of a cursor context
|
|
25
21
|
*/
|
|
26
22
|
pressKey(key: string): {|
|
|
27
|
-
context:
|
|
23
|
+
context: CursorContext,
|
|
28
24
|
|};
|
|
29
25
|
|
|
30
26
|
/**
|
|
@@ -110,16 +106,7 @@ declare class MathWrapper {
|
|
|
110
106
|
_handleBackspaceOutsideParens(cursor: any): void;
|
|
111
107
|
_handleBackspaceInsideParens(cursor: any): void;
|
|
112
108
|
_handleBackspaceAfterLigaturedSymbol(cursor: any): void;
|
|
113
|
-
contextForCursor(
|
|
114
|
-
cursor: any
|
|
115
|
-
):
|
|
116
|
-
| "NONE"
|
|
117
|
-
| "IN_PARENS"
|
|
118
|
-
| "IN_SUPER_SCRIPT"
|
|
119
|
-
| "IN_SUB_SCRIPT"
|
|
120
|
-
| "IN_NUMERATOR"
|
|
121
|
-
| "IN_DENOMINATOR"
|
|
122
|
-
| "BEFORE_FRACTION";
|
|
109
|
+
contextForCursor(cursor: any): CursorContext;
|
|
123
110
|
_isAtTopLevel(cursor: any): boolean;
|
|
124
111
|
}
|
|
125
112
|
declare export default typeof MathWrapper;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { StyleType } from "@khanacademy/wonder-blocks-core";
|
|
3
|
-
type Props = {
|
|
3
|
+
export type Props = {
|
|
4
4
|
onPress: () => void;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
style?: StyleType;
|
|
@@ -9,4 +9,3 @@ type Props = {
|
|
|
9
9
|
export default class Button extends React.Component<Props> {
|
|
10
10
|
render(): React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export {};
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
type Props = {
|
|
3
3
|
onClickKey: (keyConfig: string) => void;
|
|
4
4
|
};
|
|
5
|
-
export default class
|
|
5
|
+
export default class GeometryPage extends React.Component<Props> {
|
|
6
6
|
render(): React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export {};
|
|
@@ -8,6 +8,6 @@ import * as React from "react";
|
|
|
8
8
|
declare type Props = {|
|
|
9
9
|
onClickKey: (keyConfig: string) => void,
|
|
10
10
|
|};
|
|
11
|
-
declare export default class
|
|
11
|
+
declare export default class GeometryPage extends React.Component<Props> {
|
|
12
12
|
render(): React.Node;
|
|
13
13
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { NumbersPageOptions } from "./numbers-page/types";
|
|
3
|
+
import { OperatorsButtonSets } from "./operators-page/types";
|
|
2
4
|
import type { TabbarItemType } from "../tabbar/types";
|
|
3
|
-
type Props = {
|
|
5
|
+
export type Props = {
|
|
4
6
|
onClickKey: (keyConfig: string) => void;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
7
|
+
trigonometry?: boolean;
|
|
8
|
+
} & OperatorsButtonSets & NumbersPageOptions;
|
|
8
9
|
type State = {
|
|
9
10
|
selectedPage: TabbarItemType;
|
|
10
11
|
};
|
|
@@ -5,11 +5,16 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
|
+
import { NumbersPageOptions } from "./numbers-page/types";
|
|
9
|
+
import { OperatorsButtonSets } from "./operators-page/types";
|
|
8
10
|
import type { TabbarItemType } from "../tabbar/types";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export type Props = {|
|
|
12
|
+
...{|
|
|
13
|
+
onClickKey: (keyConfig: string) => void,
|
|
14
|
+
trigonometry?: boolean,
|
|
15
|
+
|},
|
|
16
|
+
...OperatorsButtonSets,
|
|
17
|
+
...NumbersPageOptions,
|
|
13
18
|
|};
|
|
14
19
|
declare type State = {|
|
|
15
20
|
selectedPage: TabbarItemType,
|
|
@@ -5,7 +5,7 @@ type KeypadPageContainerProps = {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const KeypadPageContainer: ({ children, }: KeypadPageContainerProps) => React.ReactElement;
|
|
8
|
-
type KeypadButtonProps = {
|
|
8
|
+
export type KeypadButtonProps = {
|
|
9
9
|
keyConfig: KeyConfig;
|
|
10
10
|
tintColor?: string;
|
|
11
11
|
style?: StyleType;
|
|
@@ -24,5 +24,11 @@ type KeypadActionButtonProps = {
|
|
|
24
24
|
onClickKey: (keyConfig: string) => void;
|
|
25
25
|
};
|
|
26
26
|
export declare const KeypadActionButton: ({ keyConfig, onClickKey, style, }: KeypadActionButtonProps) => React.ReactElement;
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* A placeholder button for the keypad. Optional count prop to render multiple
|
|
29
|
+
* buttons. Defaults to 1.
|
|
30
|
+
*/
|
|
31
|
+
export declare const PlaceHolderButtons: ({ count, }: {
|
|
32
|
+
count?: number | undefined;
|
|
33
|
+
}) => React.ReactElement;
|
|
28
34
|
export {};
|
|
@@ -13,7 +13,7 @@ declare type KeypadPageContainerProps = {|
|
|
|
13
13
|
declare export var KeypadPageContainer: (
|
|
14
14
|
x: KeypadPageContainerProps
|
|
15
15
|
) => React.Element<any>;
|
|
16
|
-
|
|
16
|
+
export type KeypadButtonProps = {|
|
|
17
17
|
keyConfig: KeyConfig,
|
|
18
18
|
tintColor?: string,
|
|
19
19
|
style?: StyleType,
|
|
@@ -36,4 +36,10 @@ declare type KeypadActionButtonProps = {|
|
|
|
36
36
|
declare export var KeypadActionButton: (
|
|
37
37
|
x: KeypadActionButtonProps
|
|
38
38
|
) => React.Element<any>;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* A placeholder button for the keypad. Optional count prop to render multiple
|
|
41
|
+
* buttons. Defaults to 1.
|
|
42
|
+
*/
|
|
43
|
+
declare export var PlaceHolderButtons: (x: {|
|
|
44
|
+
count?: number | void,
|
|
45
|
+
|}) => React.Element<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { NumbersPageOptions } from "./types";
|
|
2
3
|
type Props = {
|
|
3
4
|
onClickKey: (keyConfig: string) => void;
|
|
4
|
-
};
|
|
5
|
-
export default class
|
|
5
|
+
} & NumbersPageOptions;
|
|
6
|
+
export default class NumbersPage extends React.Component<Props> {
|
|
6
7
|
render(): React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { NumbersPageOptions } from "./types";
|
|
9
|
+
declare type Props = {|
|
|
10
|
+
...{|
|
|
11
|
+
onClickKey: (keyConfig: string) => void,
|
|
12
|
+
|},
|
|
13
|
+
...NumbersPageOptions,
|
|
14
|
+
|};
|
|
15
|
+
declare export default class NumbersPage extends React.Component<Props> {
|
|
16
|
+
render(): React.Node;
|
|
17
|
+
}
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import React from "react";
|
|
8
8
|
declare type Props = {|
|
|
9
9
|
onClickKey: (keyConfig: string) => void,
|
|
10
|
+
placeholder?: boolean,
|
|
10
11
|
|};
|
|
11
|
-
declare export
|
|
12
|
-
render(): React.Node;
|
|
13
|
-
}
|
|
12
|
+
declare export var AdvancedRelations: (x: Props) => React.ReactElement;
|
|
@@ -4,12 +4,9 @@
|
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import React from "react";
|
|
8
8
|
declare type Props = {|
|
|
9
9
|
onClickKey: (keyConfig: string) => void,
|
|
10
|
+
placeholder?: boolean,
|
|
10
11
|
|};
|
|
11
|
-
declare export
|
|
12
|
-
extends React.Component<Props>
|
|
13
|
-
{
|
|
14
|
-
render(): React.Node;
|
|
15
|
-
}
|
|
12
|
+
declare export var BasicRelations: (x: Props) => React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { OperatorsButtonSets } from "./types";
|
|
3
|
+
type Props = {
|
|
4
|
+
onClickKey: (keyConfig: string) => void;
|
|
5
|
+
} & OperatorsButtonSets;
|
|
6
|
+
export default class OperatorsPage extends React.Component<Props> {
|
|
7
|
+
render(): React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { OperatorsButtonSets } from "./types";
|
|
9
|
+
declare type Props = {|
|
|
10
|
+
...{|
|
|
11
|
+
onClickKey: (keyConfig: string) => void,
|
|
12
|
+
|},
|
|
13
|
+
...OperatorsButtonSets,
|
|
14
|
+
|};
|
|
15
|
+
declare export default class OperatorsPage extends React.Component<Props> {
|
|
16
|
+
render(): React.Node;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
declare type Props = {|
|
|
9
|
+
onClickKey: (keyConfig: string) => void,
|
|
10
|
+
placeholder?: boolean,
|
|
11
|
+
|};
|
|
12
|
+
declare export var Logarithms: (x: Props) => React.ReactElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
declare type Props = {|
|
|
9
|
+
onClickKey: (keyConfig: string) => void,
|
|
10
|
+
placeholder?: boolean,
|
|
11
|
+
|};
|
|
12
|
+
declare export var PreAlgebra: (x: Props) => React.ReactElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
export type OperatorsButtonSets = {|
|
|
8
|
+
preAlgebra?: boolean,
|
|
9
|
+
logarithms?: boolean,
|
|
10
|
+
basicRelations?: boolean,
|
|
11
|
+
advancedRelations?: boolean,
|
|
12
|
+
|};
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* to be conservative in our measurements and make things smaller than they
|
|
19
19
|
* might need to be.
|
|
20
20
|
*/
|
|
21
|
+
import { LayoutMode } from "../../enums";
|
|
21
22
|
export declare const computeLayoutParameters: ({ numColumns, numMaxVisibleRows, numPages }: {
|
|
22
23
|
numColumns: any;
|
|
23
24
|
numMaxVisibleRows: any;
|
|
@@ -34,5 +35,5 @@ export declare const computeLayoutParameters: ({ numColumns, numMaxVisibleRows,
|
|
|
34
35
|
toolbarEnabled: any;
|
|
35
36
|
}) => {
|
|
36
37
|
buttonDimensions: any;
|
|
37
|
-
layoutMode:
|
|
38
|
+
layoutMode: LayoutMode;
|
|
38
39
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for data
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
* @flow
|
|
6
|
+
*/
|
|
7
|
+
import { LayoutMode } from "../../enums";
|
|
8
|
+
declare export var computeLayoutParameters: (
|
|
9
|
+
x: {|
|
|
10
|
+
numColumns: any,
|
|
11
|
+
numMaxVisibleRows: any,
|
|
12
|
+
numPages: any,
|
|
13
|
+
|},
|
|
14
|
+
x: {|
|
|
15
|
+
pageWidthPx: any,
|
|
16
|
+
pageHeightPx: any,
|
|
17
|
+
|},
|
|
18
|
+
x: {|
|
|
19
|
+
deviceOrientation: any,
|
|
20
|
+
deviceType: any,
|
|
21
|
+
|},
|
|
22
|
+
x: {|
|
|
23
|
+
navigationPadEnabled: any,
|
|
24
|
+
paginationEnabled: any,
|
|
25
|
+
toolbarEnabled: any,
|
|
26
|
+
|}
|
|
27
|
+
) => {|
|
|
28
|
+
buttonDimensions: any,
|
|
29
|
+
layoutMode: LayoutMode,
|
|
30
|
+
|};
|
|
@@ -2,18 +2,9 @@
|
|
|
2
2
|
* A component that renders and animates the selection state effect effect.
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import {
|
|
6
|
-
import type { Key } from "../data/keys";
|
|
7
|
-
import type { Border, Bound } from "../types";
|
|
8
|
-
type EchoPropType = {
|
|
9
|
-
animationId: string;
|
|
10
|
-
animationType: keyof typeof EchoAnimationTypes;
|
|
11
|
-
borders: Border;
|
|
12
|
-
id: Key;
|
|
13
|
-
initialBounds: Bound;
|
|
14
|
-
};
|
|
5
|
+
import type { Echo as EchoType } from "../../types";
|
|
15
6
|
type EchoManagerProps = {
|
|
16
|
-
echoes: ReadonlyArray<
|
|
7
|
+
echoes: ReadonlyArray<EchoType>;
|
|
17
8
|
onAnimationFinish?: (animationId: string) => void;
|
|
18
9
|
};
|
|
19
10
|
declare class EchoManager extends React.Component<EchoManagerProps> {
|
|
@@ -5,18 +5,9 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import {
|
|
9
|
-
import type { Key } from "../data/keys";
|
|
10
|
-
import type { Border, Bound } from "../types";
|
|
11
|
-
declare type EchoPropType = {|
|
|
12
|
-
animationId: string,
|
|
13
|
-
animationType: $Keys<typeof EchoAnimationTypes>,
|
|
14
|
-
borders: Border,
|
|
15
|
-
id: Key,
|
|
16
|
-
initialBounds: Bound,
|
|
17
|
-
|};
|
|
8
|
+
import type { Echo as EchoType } from "../../types";
|
|
18
9
|
declare type EchoManagerProps = {|
|
|
19
|
-
echoes: $ReadOnlyArray<
|
|
10
|
+
echoes: $ReadOnlyArray<EchoType>,
|
|
20
11
|
onAnimationFinish?: (animationId: string) => void,
|
|
21
12
|
|};
|
|
22
13
|
declare class EchoManager extends React.Component<EchoManagerProps> {
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
* A keypad that includes all of the expression symbols.
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import
|
|
6
|
-
import type {
|
|
5
|
+
import { CursorContext } from "../input/cursor-contexts";
|
|
6
|
+
import type { KeypadLayout } from "../../types";
|
|
7
7
|
interface ReduxProps {
|
|
8
|
-
currentPage: number;
|
|
9
8
|
cursorContext?: CursorContext;
|
|
10
9
|
dynamicJumpOut: boolean;
|
|
11
10
|
}
|
|
@@ -18,5 +17,5 @@ export declare const expressionKeypadLayout: KeypadLayout;
|
|
|
18
17
|
declare class ExpressionKeypad extends React.Component<Props> {
|
|
19
18
|
render(): JSX.Element;
|
|
20
19
|
}
|
|
21
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof ExpressionKeypad, import("react-redux").Omit<React.ClassAttributes<ExpressionKeypad> & Props, "
|
|
20
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof ExpressionKeypad, import("react-redux").Omit<React.ClassAttributes<ExpressionKeypad> & Props, "cursorContext" | "dynamicJumpOut">>;
|
|
22
21
|
export default _default;
|
package/dist/components/{expression-keypad.js.flow → keypad-legacy/expression-keypad.js.flow}
RENAMED
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as $Flowgen$Import$react_2d_redux from "react-redux";
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import
|
|
10
|
-
import type {
|
|
9
|
+
import { CursorContext } from "../input/cursor-contexts";
|
|
10
|
+
import type { KeypadLayout } from "../../types";
|
|
11
11
|
declare interface ReduxProps {
|
|
12
|
-
currentPage: number;
|
|
13
12
|
cursorContext?: CursorContext;
|
|
14
13
|
dynamicJumpOut: boolean;
|
|
15
14
|
}
|
|
@@ -26,7 +25,7 @@ declare var _default: $Flowgen$Import$react_2d_redux.ConnectedComponent<
|
|
|
26
25
|
typeof ExpressionKeypad,
|
|
27
26
|
$Flowgen$Import$react_2d_redux.Omit<
|
|
28
27
|
{| ...React.ClassAttributes<ExpressionKeypad>, ...Props |},
|
|
29
|
-
"
|
|
28
|
+
"cursorContext" | "dynamicJumpOut"
|
|
30
29
|
>
|
|
31
30
|
>;
|
|
32
31
|
declare export default typeof _default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* with fractions, decimals, and percents.
|
|
4
4
|
*/
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import
|
|
7
|
-
import type {
|
|
6
|
+
import { CursorContext } from "../input/cursor-contexts";
|
|
7
|
+
import type { KeypadLayout } from "../../types";
|
|
8
8
|
interface ReduxProps {
|
|
9
9
|
cursorContext?: CursorContext;
|
|
10
10
|
dynamicJumpOut: boolean;
|