@axinom/mosaic-fe-samples-host 0.42.0 → 0.43.0-rc.3
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/dist/{Profiles → cjs/Profiles}/ProfileURLs.d.ts +2 -2
- package/dist/cjs/Profiles/ProfileURLs.d.ts.map +1 -0
- package/dist/{Profiles → cjs/Profiles}/ProfileVariables.d.ts +2 -2
- package/dist/cjs/Profiles/ProfileVariables.d.ts.map +1 -0
- package/dist/{Profiles → cjs/Profiles}/Profiles.d.ts +1 -1
- package/dist/cjs/Profiles/Profiles.d.ts.map +1 -0
- package/dist/{ScenarioHost → cjs/ScenarioHost}/ScenarioHost.d.ts +3 -3
- package/dist/cjs/ScenarioHost/ScenarioHost.d.ts.map +1 -0
- package/dist/{ScenarioHost → cjs/ScenarioHost}/ScenarioHostLogger.d.ts +1 -1
- package/dist/cjs/ScenarioHost/ScenarioHostLogger.d.ts.map +1 -0
- package/dist/cjs/ScenarioHost/ScenarioHostSplit.d.ts +10 -0
- package/dist/cjs/ScenarioHost/ScenarioHostSplit.d.ts.map +1 -0
- package/dist/{ScenarioHostApp → cjs/ScenarioHostApp}/ScenarioHostApp.d.ts +1 -1
- package/dist/cjs/ScenarioHostApp/ScenarioHostApp.d.ts.map +1 -0
- package/dist/{VariableSearch → cjs/VariableSearch}/VariableSearch.d.ts +1 -1
- package/dist/cjs/VariableSearch/VariableSearch.d.ts.map +1 -0
- package/dist/cjs/common/types/logger.d.ts.map +1 -0
- package/dist/cjs/common/types/profile-config.d.ts.map +1 -0
- package/dist/{common → cjs/common}/types/scenario-registration.d.ts +1 -1
- package/dist/cjs/common/types/scenario-registration.d.ts.map +1 -0
- package/dist/cjs/common/types/user-settings.d.ts.map +1 -0
- package/dist/{common → cjs/common}/utils/storage-utils.d.ts +2 -2
- package/dist/cjs/common/utils/storage-utils.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/{index.js → cjs/index.js} +203 -145
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/Profiles/ProfileURLs.d.ts +10 -0
- package/dist/esm/Profiles/ProfileURLs.d.ts.map +1 -0
- package/dist/esm/Profiles/ProfileVariables.d.ts +12 -0
- package/dist/esm/Profiles/ProfileVariables.d.ts.map +1 -0
- package/dist/esm/Profiles/Profiles.d.ts +11 -0
- package/dist/esm/Profiles/Profiles.d.ts.map +1 -0
- package/dist/esm/ScenarioHost/ScenarioHost.d.ts +21 -0
- package/dist/esm/ScenarioHost/ScenarioHost.d.ts.map +1 -0
- package/dist/esm/ScenarioHost/ScenarioHostLogger.d.ts +14 -0
- package/dist/esm/ScenarioHost/ScenarioHostLogger.d.ts.map +1 -0
- package/dist/esm/ScenarioHost/ScenarioHostSplit.d.ts +10 -0
- package/dist/esm/ScenarioHost/ScenarioHostSplit.d.ts.map +1 -0
- package/dist/esm/ScenarioHostApp/ScenarioHostApp.d.ts +7 -0
- package/dist/esm/ScenarioHostApp/ScenarioHostApp.d.ts.map +1 -0
- package/dist/esm/VariableSearch/VariableSearch.d.ts +19 -0
- package/dist/esm/VariableSearch/VariableSearch.d.ts.map +1 -0
- package/dist/esm/common/types/logger.d.ts +14 -0
- package/dist/esm/common/types/logger.d.ts.map +1 -0
- package/dist/esm/common/types/profile-config.d.ts +22 -0
- package/dist/esm/common/types/profile-config.d.ts.map +1 -0
- package/dist/esm/common/types/scenario-registration.d.ts +34 -0
- package/dist/esm/common/types/scenario-registration.d.ts.map +1 -0
- package/dist/esm/common/types/user-settings.d.ts +5 -0
- package/dist/esm/common/types/user-settings.d.ts.map +1 -0
- package/dist/esm/common/utils/storage-utils.d.ts +31 -0
- package/dist/esm/common/utils/storage-utils.d.ts.map +1 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/{index.es.js → esm/index.js} +189 -131
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/package.json +16 -8
- package/src/Profiles/ProfileURLs.tsx +2 -2
- package/src/Profiles/ProfileVariables.tsx +2 -2
- package/src/Profiles/Profiles.tsx +2 -2
- package/src/ScenarioHost/ScenarioHost.tsx +12 -11
- package/src/ScenarioHost/ScenarioHostLogger.tsx +1 -1
- package/src/ScenarioHost/ScenarioHostSplit.tsx +180 -0
- package/src/ScenarioHostApp/ScenarioHostApp.tsx +1 -1
- package/src/VariableSearch/VariableSearch.tsx +5 -1
- package/src/common/types/scenario-registration.ts +1 -1
- package/src/common/utils/storage-utils.ts +2 -2
- package/src/index.ts +9 -6
- package/dist/Profiles/ProfileURLs.d.ts.map +0 -1
- package/dist/Profiles/ProfileVariables.d.ts.map +0 -1
- package/dist/Profiles/Profiles.d.ts.map +0 -1
- package/dist/ScenarioHost/ScenarioHost.d.ts.map +0 -1
- package/dist/ScenarioHost/ScenarioHostLogger.d.ts.map +0 -1
- package/dist/ScenarioHostApp/ScenarioHostApp.d.ts.map +0 -1
- package/dist/VariableSearch/VariableSearch.d.ts.map +0 -1
- package/dist/common/types/logger.d.ts.map +0 -1
- package/dist/common/types/profile-config.d.ts.map +0 -1
- package/dist/common/types/scenario-registration.d.ts.map +0 -1
- package/dist/common/types/user-settings.d.ts.map +0 -1
- package/dist/common/utils/storage-utils.d.ts.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
- /package/dist/{common → cjs/common}/types/logger.d.ts +0 -0
- /package/dist/{common → cjs/common}/types/profile-config.d.ts +0 -0
- /package/dist/{common → cjs/common}/types/user-settings.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-fe-samples-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0-rc.3",
|
|
4
4
|
"description": "The host application, React components and hooks used when developing fe-sample scenarios",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -13,18 +13,26 @@
|
|
|
13
13
|
"dist",
|
|
14
14
|
"src"
|
|
15
15
|
],
|
|
16
|
-
"main": "
|
|
17
|
-
"module": "
|
|
18
|
-
"types": "
|
|
16
|
+
"main": "dist/cjs/index.js",
|
|
17
|
+
"module": "dist/esm/index.js",
|
|
18
|
+
"types": "dist/cjs/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/cjs/index.d.ts",
|
|
22
|
+
"import": "./dist/esm/index.js",
|
|
23
|
+
"require": "./dist/cjs/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
19
26
|
"scripts": {
|
|
20
27
|
"clean": "rimraf dist",
|
|
21
|
-
"build": "yarn clean && rollup -c",
|
|
28
|
+
"build": "yarn clean && rollup -c && node ../../scripts/write-esm-markers.js",
|
|
22
29
|
"build:ci": "yarn workspaces focus && yarn build",
|
|
23
30
|
"dev": "rollup -c -w",
|
|
24
|
-
"
|
|
31
|
+
"ts:validate": "tsc && yarn build && yarn check:esm-interop",
|
|
32
|
+
"check:esm-interop": "node scripts/check-esm-interop.mjs",
|
|
33
|
+
"lint": "yarn workspace navy exec eslint libs/fe-samples-host --ext .ts,.tsx,.js --color --cache --cache-location libs/fe-samples-host/.eslintcache"
|
|
25
34
|
},
|
|
26
35
|
"dependencies": {
|
|
27
|
-
"@geoffcox/react-splitter": "^2.1.1",
|
|
28
36
|
"react-error-boundary": "^3.1.4"
|
|
29
37
|
},
|
|
30
38
|
"devDependencies": {
|
|
@@ -82,5 +90,5 @@
|
|
|
82
90
|
"publishConfig": {
|
|
83
91
|
"access": "public"
|
|
84
92
|
},
|
|
85
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "9c7831acd6fcced9a09f97ffd4c9d67ee1b3b640"
|
|
86
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Divider, Form, InputOnChangeData, Tab } from 'semantic-ui-react';
|
|
3
|
-
import { ProfileConfig } from '../common/types/profile-config';
|
|
2
|
+
import { Divider, Form, type InputOnChangeData, Tab } from 'semantic-ui-react';
|
|
3
|
+
import type { ProfileConfig } from '../common/types/profile-config';
|
|
4
4
|
|
|
5
5
|
interface ProfileURLProps {
|
|
6
6
|
selectedProfile: ProfileConfig;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
Divider,
|
|
5
5
|
Form,
|
|
6
|
-
InputOnChangeData,
|
|
6
|
+
type InputOnChangeData,
|
|
7
7
|
Tab,
|
|
8
8
|
} from 'semantic-ui-react';
|
|
9
|
-
import { ProfileConfig } from '../common/types/profile-config';
|
|
9
|
+
import type { ProfileConfig } from '../common/types/profile-config';
|
|
10
10
|
|
|
11
11
|
interface ProfileVariableProps {
|
|
12
12
|
selectedProfile: ProfileConfig;
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Link,
|
|
4
4
|
NavLink,
|
|
5
|
-
RouteComponentProps,
|
|
5
|
+
type RouteComponentProps,
|
|
6
6
|
useHistory,
|
|
7
7
|
useLocation,
|
|
8
8
|
} from 'react-router-dom';
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Form,
|
|
14
14
|
Grid,
|
|
15
15
|
Header,
|
|
16
|
-
InputOnChangeData,
|
|
16
|
+
type InputOnChangeData,
|
|
17
17
|
List,
|
|
18
18
|
Segment,
|
|
19
19
|
Tab,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserSettings } from 'common/types/user-settings';
|
|
1
|
+
import type { UserSettings } from 'common/types/user-settings';
|
|
3
2
|
import React, {
|
|
4
3
|
createContext,
|
|
5
4
|
useCallback,
|
|
@@ -12,16 +11,19 @@ import { Link, Route, Switch, useLocation } from 'react-router-dom';
|
|
|
12
11
|
import {
|
|
13
12
|
Button,
|
|
14
13
|
Divider,
|
|
15
|
-
DropdownProps,
|
|
14
|
+
type DropdownProps,
|
|
16
15
|
Grid,
|
|
17
16
|
Header,
|
|
18
17
|
List,
|
|
19
18
|
Segment,
|
|
20
19
|
Select,
|
|
21
20
|
} from 'semantic-ui-react';
|
|
22
|
-
import { JSONValue, Logger } from '../common/types/logger';
|
|
23
|
-
import {
|
|
24
|
-
|
|
21
|
+
import type { JSONValue, Logger } from '../common/types/logger';
|
|
22
|
+
import type {
|
|
23
|
+
ProfileConfig,
|
|
24
|
+
ProfileVariable,
|
|
25
|
+
} from '../common/types/profile-config';
|
|
26
|
+
import type { ScenarioRegistration } from '../common/types/scenario-registration';
|
|
25
27
|
import {
|
|
26
28
|
getAllProfiles,
|
|
27
29
|
getProfileVariable,
|
|
@@ -30,7 +32,8 @@ import {
|
|
|
30
32
|
setProfileVariable,
|
|
31
33
|
setUserSettings,
|
|
32
34
|
} from '../common/utils/storage-utils';
|
|
33
|
-
import { LoggerHandle, ScenarioHostLogger } from './ScenarioHostLogger';
|
|
35
|
+
import { type LoggerHandle, ScenarioHostLogger } from './ScenarioHostLogger';
|
|
36
|
+
import { ScenarioHostSplit } from './ScenarioHostSplit';
|
|
34
37
|
|
|
35
38
|
export type ScenarioHostProps = {
|
|
36
39
|
scenarios: readonly ScenarioRegistration[];
|
|
@@ -210,11 +213,9 @@ export const ScenarioHost: React.FC<ScenarioHostProps> = ({ scenarios }) => {
|
|
|
210
213
|
>
|
|
211
214
|
{activeProfile !== undefined ? (
|
|
212
215
|
<>
|
|
213
|
-
<
|
|
214
|
-
horizontal
|
|
216
|
+
<ScenarioHostSplit
|
|
215
217
|
initialPrimarySize={getUserSettings().loggerPosition}
|
|
216
218
|
splitterSize="25px"
|
|
217
|
-
resetOnDoubleClick={true}
|
|
218
219
|
onSplitChanged={(value) =>
|
|
219
220
|
setUserSettings({
|
|
220
221
|
...getUserSettings(),
|
|
@@ -306,7 +307,7 @@ export const ScenarioHost: React.FC<ScenarioHostProps> = ({ scenarios }) => {
|
|
|
306
307
|
<ScenarioHostLogger ref={loggerRef}></ScenarioHostLogger>
|
|
307
308
|
</div>
|
|
308
309
|
</div>
|
|
309
|
-
</
|
|
310
|
+
</ScenarioHostSplit>
|
|
310
311
|
</>
|
|
311
312
|
) : (
|
|
312
313
|
<Segment basic>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef, useImperativeHandle, useState } from 'react';
|
|
2
2
|
import { useLocation } from 'react-router-dom';
|
|
3
3
|
import { Button, Grid } from 'semantic-ui-react';
|
|
4
|
-
import { JSONValue, LogEntry, LogLevel } from '../common/types/logger';
|
|
4
|
+
import type { JSONValue, LogEntry, LogLevel } from '../common/types/logger';
|
|
5
5
|
|
|
6
6
|
export interface LoggerHandle {
|
|
7
7
|
logMessage: (messages: JSONValue[], logLevel: LogLevel) => void;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
const MIN_PANE_SIZE_PX = 80;
|
|
4
|
+
const KEYBOARD_STEP_PX = 24;
|
|
5
|
+
|
|
6
|
+
type ScenarioHostSplitProps = {
|
|
7
|
+
initialPrimarySize: string;
|
|
8
|
+
splitterSize: string;
|
|
9
|
+
onSplitChanged?: (value: string) => void;
|
|
10
|
+
children: readonly [React.ReactNode, React.ReactNode];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const getBoundedPrimarySize = (
|
|
14
|
+
container: HTMLDivElement,
|
|
15
|
+
clientY: number,
|
|
16
|
+
): string | undefined => {
|
|
17
|
+
const bounds = container.getBoundingClientRect();
|
|
18
|
+
|
|
19
|
+
if (bounds.height <= 0) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const minimumPaneSize = Math.min(MIN_PANE_SIZE_PX, bounds.height / 2);
|
|
24
|
+
const primarySize = Math.min(
|
|
25
|
+
Math.max(clientY - bounds.top, minimumPaneSize),
|
|
26
|
+
bounds.height - minimumPaneSize,
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
return `${((primarySize / bounds.height) * 100).toFixed(2)}%`;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const getPrimarySizePixels = (value: string, totalSize: number): number => {
|
|
33
|
+
const numericValue = Number.parseFloat(value);
|
|
34
|
+
|
|
35
|
+
if (!Number.isFinite(numericValue)) {
|
|
36
|
+
return totalSize * 0.7;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return value.trim().endsWith('%')
|
|
40
|
+
? (numericValue / 100) * totalSize
|
|
41
|
+
: numericValue;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const ScenarioHostSplit = ({
|
|
45
|
+
initialPrimarySize,
|
|
46
|
+
splitterSize,
|
|
47
|
+
onSplitChanged,
|
|
48
|
+
children,
|
|
49
|
+
}: ScenarioHostSplitProps): React.ReactElement => {
|
|
50
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
51
|
+
const [primarySize, setPrimarySize] = useState(initialPrimarySize);
|
|
52
|
+
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
setPrimarySize(initialPrimarySize);
|
|
55
|
+
}, [initialPrimarySize]);
|
|
56
|
+
|
|
57
|
+
const applyPrimarySize = useCallback(
|
|
58
|
+
(value: string) => {
|
|
59
|
+
setPrimarySize(value);
|
|
60
|
+
onSplitChanged?.(value);
|
|
61
|
+
},
|
|
62
|
+
[onSplitChanged],
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
const handlePointerDown = useCallback(
|
|
66
|
+
(event: React.PointerEvent<HTMLDivElement>) => {
|
|
67
|
+
const container = containerRef.current;
|
|
68
|
+
|
|
69
|
+
if (container === null) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
|
|
75
|
+
const ownerDocument = container.ownerDocument;
|
|
76
|
+
const updatePrimarySize = (clientY: number) => {
|
|
77
|
+
const nextPrimarySize = getBoundedPrimarySize(container, clientY);
|
|
78
|
+
|
|
79
|
+
if (nextPrimarySize !== undefined) {
|
|
80
|
+
applyPrimarySize(nextPrimarySize);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const handlePointerMove = (pointerEvent: PointerEvent) => {
|
|
84
|
+
updatePrimarySize(pointerEvent.clientY);
|
|
85
|
+
};
|
|
86
|
+
const stopDragging = (pointerEvent: PointerEvent) => {
|
|
87
|
+
updatePrimarySize(pointerEvent.clientY);
|
|
88
|
+
ownerDocument.removeEventListener('pointermove', handlePointerMove);
|
|
89
|
+
ownerDocument.removeEventListener('pointerup', stopDragging);
|
|
90
|
+
ownerDocument.removeEventListener('pointercancel', stopDragging);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
ownerDocument.addEventListener('pointermove', handlePointerMove);
|
|
94
|
+
ownerDocument.addEventListener('pointerup', stopDragging);
|
|
95
|
+
ownerDocument.addEventListener('pointercancel', stopDragging);
|
|
96
|
+
},
|
|
97
|
+
[applyPrimarySize],
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const adjustPrimarySize = useCallback(
|
|
101
|
+
(delta: number) => {
|
|
102
|
+
const container = containerRef.current;
|
|
103
|
+
|
|
104
|
+
if (container === null) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const bounds = container.getBoundingClientRect();
|
|
109
|
+
const currentPrimarySize = getPrimarySizePixels(
|
|
110
|
+
primarySize,
|
|
111
|
+
bounds.height,
|
|
112
|
+
);
|
|
113
|
+
const nextPrimarySize = getBoundedPrimarySize(
|
|
114
|
+
container,
|
|
115
|
+
bounds.top + currentPrimarySize + delta,
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
if (nextPrimarySize !== undefined) {
|
|
119
|
+
applyPrimarySize(nextPrimarySize);
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
[applyPrimarySize, primarySize],
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
const handleKeyDown = useCallback(
|
|
126
|
+
(event: React.KeyboardEvent<HTMLDivElement>) => {
|
|
127
|
+
if (event.key === 'ArrowUp') {
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
adjustPrimarySize(-KEYBOARD_STEP_PX);
|
|
130
|
+
} else if (event.key === 'ArrowDown') {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
adjustPrimarySize(KEYBOARD_STEP_PX);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
[adjustPrimarySize],
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
const handleDoubleClick = useCallback(() => {
|
|
139
|
+
applyPrimarySize(initialPrimarySize);
|
|
140
|
+
}, [applyPrimarySize, initialPrimarySize]);
|
|
141
|
+
|
|
142
|
+
return (
|
|
143
|
+
<div
|
|
144
|
+
ref={containerRef}
|
|
145
|
+
style={{
|
|
146
|
+
display: 'grid',
|
|
147
|
+
gridTemplateRows: `minmax(0, ${primarySize}) ${splitterSize} minmax(0, 1fr)`,
|
|
148
|
+
height: '100%',
|
|
149
|
+
minHeight: 0,
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
<div style={{ minHeight: 0, overflow: 'hidden' }}>{children[0]}</div>
|
|
153
|
+
<div
|
|
154
|
+
aria-orientation="horizontal"
|
|
155
|
+
onDoubleClick={handleDoubleClick}
|
|
156
|
+
onKeyDown={handleKeyDown}
|
|
157
|
+
onPointerDown={handlePointerDown}
|
|
158
|
+
role="separator"
|
|
159
|
+
tabIndex={0}
|
|
160
|
+
style={{
|
|
161
|
+
alignItems: 'center',
|
|
162
|
+
cursor: 'row-resize',
|
|
163
|
+
display: 'flex',
|
|
164
|
+
justifyContent: 'center',
|
|
165
|
+
touchAction: 'none',
|
|
166
|
+
userSelect: 'none',
|
|
167
|
+
}}
|
|
168
|
+
>
|
|
169
|
+
<div
|
|
170
|
+
style={{
|
|
171
|
+
backgroundColor: 'silver',
|
|
172
|
+
height: '1px',
|
|
173
|
+
width: '100%',
|
|
174
|
+
}}
|
|
175
|
+
/>
|
|
176
|
+
</div>
|
|
177
|
+
<div style={{ minHeight: 0, overflow: 'hidden' }}>{children[1]}</div>
|
|
178
|
+
</div>
|
|
179
|
+
);
|
|
180
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
|
3
|
-
import { ScenarioRegistration } from '../common/types/scenario-registration';
|
|
3
|
+
import type { ScenarioRegistration } from '../common/types/scenario-registration';
|
|
4
4
|
import {
|
|
5
5
|
migrateProfileStructuralChanges,
|
|
6
6
|
migrateUserSettingsStructuralChanges,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Search,
|
|
4
|
+
type SearchProps,
|
|
5
|
+
type SearchResultData,
|
|
6
|
+
} from 'semantic-ui-react';
|
|
3
7
|
import { useScenarioHost } from '../ScenarioHost/ScenarioHost';
|
|
4
8
|
|
|
5
9
|
export interface VariableSearchProps extends SearchProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProfileConfig, ProfileVariable } from '../types/profile-config';
|
|
2
|
-
import { UserSettings } from '../types/user-settings';
|
|
1
|
+
import type { ProfileConfig, ProfileVariable } from '../types/profile-config';
|
|
2
|
+
import type { UserSettings } from '../types/user-settings';
|
|
3
3
|
|
|
4
4
|
const KEY_PROFILE_DATA = 'AX_PROFILE_DATA';
|
|
5
5
|
const KEY_USER_SETTINGS = 'AX_USER_SETTINGS';
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { JSONValue, Logger } from './common/types/logger';
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
export type { JSONValue, Logger } from './common/types/logger';
|
|
2
|
+
export type {
|
|
3
|
+
ProfileConfig,
|
|
4
|
+
ProfileVariable,
|
|
5
|
+
} from './common/types/profile-config';
|
|
6
|
+
export type { ScenarioRegistration } from './common/types/scenario-registration';
|
|
4
7
|
export {
|
|
5
|
-
ScenarioHostClient,
|
|
6
8
|
useScenarioHost,
|
|
9
|
+
type ScenarioHostClient,
|
|
7
10
|
} from './ScenarioHost/ScenarioHost';
|
|
8
11
|
export {
|
|
9
12
|
ScenarioHostApp,
|
|
10
|
-
ScenarioHostAppProps,
|
|
13
|
+
type ScenarioHostAppProps,
|
|
11
14
|
} from './ScenarioHostApp/ScenarioHostApp';
|
|
12
15
|
export {
|
|
13
16
|
VariableSearch,
|
|
14
|
-
VariableSearchProps,
|
|
17
|
+
type VariableSearchProps,
|
|
15
18
|
} from './VariableSearch/VariableSearch';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileURLs.d.ts","sourceRoot":"","sources":["../../src/Profiles/ProfileURLs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,iBAAiB,EAAO,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,eAAe;IACvB,eAAe,EAAE,aAAa,CAAC;IAC/B,iBAAiB,EAAE,CACjB,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,IAAI,EAAE,iBAAiB,KACpB,IAAI,CAAC;CACX;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6FjD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileVariables.d.ts","sourceRoot":"","sources":["../../src/Profiles/ProfileVariables.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,oBAAoB;IAC5B,eAAe,EAAE,aAAa,CAAC;IAC/B,yBAAyB,EAAE,CACzB,aAAa,EAAE,MAAM,KAClB,CACH,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,IAAI,EAAE,iBAAiB,KACpB,IAAI,CAAC;IACV,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,cAAc,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmE3D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Profiles.d.ts","sourceRoot":"","sources":["../../src/Profiles/Profiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAGL,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAqB1B,UAAU,WAAW;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,YAAa,SAAQ,mBAAmB,CAAC,WAAW,CAAC;CAAG;AAElE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2a3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScenarioHost.d.ts","sourceRoot":"","sources":["../../src/ScenarioHost/ScenarioHost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAaf,OAAO,EAAa,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAW7E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4RpD,CAAC;AAMF,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;IACnC,YAAY,EAAE,MAAM,eAAe,EAAE,CAAC;IACtC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,kBAUlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScenarioHostLogger.d.ts","sourceRoot":"","sources":["../../src/ScenarioHost/ScenarioHostLogger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAY,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CACjE;AAED,UAAU,WAAW;CAAG;AAExB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,kFA+E9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScenarioHostApp.d.ts","sourceRoot":"","sources":["../../src/ScenarioHostApp/ScenarioHostApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAQ7E,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyB1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariableSearch.d.ts","sourceRoot":"","sources":["../../src/VariableSearch/VariableSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAU,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAG1E,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CAC9D;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0DxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/types/logger.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,CAAC,GAAG,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IACxC,IAAI,EAAE,CAAC,GAAG,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,CAAC,GAAG,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;CAC3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile-config.d.ts","sourceRoot":"","sources":["../../../src/common/types/profile-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6BAA6B,EAAE,MAAM,CAAC;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAElC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scenario-registration.d.ts","sourceRoot":"","sources":["../../../src/common/types/scenario-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,EAAE,CAAC;CAC7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-settings.d.ts","sourceRoot":"","sources":["../../../src/common/types/user-settings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/storage-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,YA6C3C,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,aAAa,EAE9C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,aAAa,EAAE,KAAG,IAO3D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,eAAe,aAAa,KAAG,IAe1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAClC,SAAS,aAAa,EACtB,KAAK,MAAM,KACV,CAEF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,SAAS,aAAa,KACrB,eAAe,EAEjB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,SAAS,aAAa,EACtB,KAAK,MAAM,EACX,OAAO,OAAO,EACd,SAAS,MAAM,KACd,IAYF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,YAYhD,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,YAMlC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY,KAAG,IAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAQ,MAAU,WAKvD,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { JSONValue, Logger } from './common/types/logger';
|
|
2
|
-
export { ProfileConfig, ProfileVariable } from './common/types/profile-config';
|
|
3
|
-
export { ScenarioRegistration } from './common/types/scenario-registration';
|
|
4
|
-
export { ScenarioHostClient, useScenarioHost, } from './ScenarioHost/ScenarioHost';
|
|
5
|
-
export { ScenarioHostApp, ScenarioHostAppProps, } from './ScenarioHostApp/ScenarioHostApp';
|
|
6
|
-
export { VariableSearch, VariableSearchProps, } from './VariableSearch/VariableSearch';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,iCAAiC,CAAC"}
|