Skip to content

Commit ef1dba8

Browse files
authored
Merge pull request #13998 from keymanapp/refactor/web/variablestoredic
2 parents 74a29c6 + ff28ebc commit ef1dba8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

web/src/engine/keyboard/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { ActiveKeyBase, ActiveKey, ActiveSubKey, ActiveRow, ActiveLayer, ActiveLayout } from "./keyboards/activeLayout.js";
22
export { ButtonClass, ButtonClasses, LayoutLayer, LayoutFormFactor, LayoutRow, LayoutKey, LayoutSubKey, Layouts } from "./keyboards/defaultLayouts.js";
3-
export { JSKeyboard, LayoutState, VariableStoreDictionary } from "./keyboards/jsKeyboard.js";
3+
export { JSKeyboard, LayoutState } from "./keyboards/jsKeyboard.js";
44
export { KeyboardMinimalInterface } from './keyboards/keyboardMinimalInterface.js';
55
export { KMXKeyboard } from './keyboards/kmxKeyboard.js';
66
export { KeyboardHarness, KeyboardKeymanGlobal, MinimalCodesInterface, MinimalKeymanGlobal } from "./keyboards/keyboardHarness.js";
@@ -32,7 +32,7 @@ export { type KeyDistribution, KeyEventSpec, KeyEvent } from "./keyEvent.js";
3232
export { default as KeyMapping } from "./keyMapping.js";
3333
export { OutputTargetInterface } from "./outputTargetInterface.js";
3434
export { type SystemStoreMutationHandler, MutableSystemStore, SystemStore, SystemStoreIDs, type SystemStoreDictionary } from "./systemStore.js";
35-
export { type VariableStore, VariableStoreSerializer } from "./variableStore.js";
35+
export { type VariableStore, VariableStoreSerializer, VariableStoreDictionary } from "./variableStore.js";
3636

3737
export * from "@keymanapp/web-utils";
3838

web/src/engine/keyboard/src/keyboards/jsKeyboard.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ActiveKey, ActiveLayout, ActiveSubKey } from "./activeLayout.js";
44
import { KeyEvent } from "../keyEvent.js";
55
import { type OutputTargetInterface } from "../outputTargetInterface.js";
66
import { KeymanWebKeyboard, ModifierKeyConstants, TouchLayout } from "@keymanapp/common-types";
7+
import { VariableStoreDictionary } from "../variableStore.js";
78

89
import ComplexKeyboardStore = KeymanWebKeyboard.ComplexKeyboardStore;
910
import KeyboardObject = KeymanWebKeyboard.KeyboardObject;
@@ -30,10 +31,6 @@ export enum LayoutState {
3031
POLYFILLED = 1
3132
}
3233

33-
export interface VariableStoreDictionary {
34-
[name: string]: string;
35-
};
36-
3734
type KmwKeyboardObject = KeyboardObject & {
3835
/**
3936
* Used internally by Keyman Engine for Web to hold preprocessed stores.

web/src/engine/keyboard/src/keyboards/ruleBehavior.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
*/
44
import { LexicalModelTypes } from '@keymanapp/common-types';
55
import { Transcription } from './transcription.js';
6-
import { VariableStore } from '../variableStore.js';
7-
import { VariableStoreDictionary } from './jsKeyboard.js';
6+
import { VariableStore, VariableStoreDictionary } from '../variableStore.js';
87
import { SystemStoreDictionary } from '../systemStore.js';
98

109
/**

web/src/engine/keyboard/src/variableStore.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* Definitions for variable stores (see kmn reference)
55
*/
66

7+
export interface VariableStoreDictionary {
8+
[name: string]: string;
9+
};
10+
711
export type VariableStore = { [name: string]: string; };
812

913
export interface VariableStoreSerializer {

0 commit comments

Comments
 (0)