@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../../node_modules/react-error-boundary/dist/react-error-boundary.esm.js"],"sourcesContent":["function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport * as React from 'react';\n\nvar changedArray = function changedArray(a, b) {\n if (a === void 0) {\n a = [];\n }\n\n if (b === void 0) {\n b = [];\n }\n\n return a.length !== b.length || a.some(function (item, index) {\n return !Object.is(item, b[index]);\n });\n};\n\nvar initialState = {\n error: null\n};\n\nvar ErrorBoundary = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ErrorBoundary, _React$Component);\n\n function ErrorBoundary() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n _this.state = initialState;\n\n _this.resetErrorBoundary = function () {\n var _this$props;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this.props.onReset == null ? void 0 : (_this$props = _this.props).onReset.apply(_this$props, args);\n\n _this.reset();\n };\n\n return _this;\n }\n\n ErrorBoundary.getDerivedStateFromError = function getDerivedStateFromError(error) {\n return {\n error: error\n };\n };\n\n var _proto = ErrorBoundary.prototype;\n\n _proto.reset = function reset() {\n this.setState(initialState);\n };\n\n _proto.componentDidCatch = function componentDidCatch(error, info) {\n var _this$props$onError, _this$props2;\n\n (_this$props$onError = (_this$props2 = this.props).onError) == null ? void 0 : _this$props$onError.call(_this$props2, error, info);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n var error = this.state.error;\n var resetKeys = this.props.resetKeys; // There's an edge case where if the thing that triggered the error\n // happens to *also* be in the resetKeys array, we'd end up resetting\n // the error boundary immediately. This would likely trigger a second\n // error to be thrown.\n // So we make sure that we don't check the resetKeys on the first call\n // of cDU after the error is set\n\n if (error !== null && prevState.error !== null && changedArray(prevProps.resetKeys, resetKeys)) {\n var _this$props$onResetKe, _this$props3;\n\n (_this$props$onResetKe = (_this$props3 = this.props).onResetKeysChange) == null ? void 0 : _this$props$onResetKe.call(_this$props3, prevProps.resetKeys, resetKeys);\n this.reset();\n }\n };\n\n _proto.render = function render() {\n var error = this.state.error;\n var _this$props4 = this.props,\n fallbackRender = _this$props4.fallbackRender,\n FallbackComponent = _this$props4.FallbackComponent,\n fallback = _this$props4.fallback;\n\n if (error !== null) {\n var _props = {\n error: error,\n resetErrorBoundary: this.resetErrorBoundary\n };\n\n if ( /*#__PURE__*/React.isValidElement(fallback)) {\n return fallback;\n } else if (typeof fallbackRender === 'function') {\n return fallbackRender(_props);\n } else if (FallbackComponent) {\n return /*#__PURE__*/React.createElement(FallbackComponent, _props);\n } else {\n throw new Error('react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop');\n }\n }\n\n return this.props.children;\n };\n\n return ErrorBoundary;\n}(React.Component);\n\nfunction withErrorBoundary(Component, errorBoundaryProps) {\n var Wrapped = function Wrapped(props) {\n return /*#__PURE__*/React.createElement(ErrorBoundary, errorBoundaryProps, /*#__PURE__*/React.createElement(Component, props));\n }; // Format for display in DevTools\n\n\n var name = Component.displayName || Component.name || 'Unknown';\n Wrapped.displayName = \"withErrorBoundary(\" + name + \")\";\n return Wrapped;\n}\n\nfunction useErrorHandler(givenError) {\n var _React$useState = React.useState(null),\n error = _React$useState[0],\n setError = _React$useState[1];\n\n if (givenError != null) throw givenError;\n if (error != null) throw error;\n return setError;\n}\n/*\neslint\n @typescript-eslint/sort-type-union-intersection-members: \"off\",\n @typescript-eslint/no-throw-literal: \"off\",\n @typescript-eslint/prefer-nullish-coalescing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;AACJ;AACA,EAAE,OAAO,aAAa,CAAC;AACvB,CAAC,CAACA,gBAAK,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type InputOnChangeData } from 'semantic-ui-react';
|
|
3
|
+
import type { ProfileConfig } from '../common/types/profile-config';
|
|
4
|
+
interface ProfileURLProps {
|
|
5
|
+
selectedProfile: ProfileConfig;
|
|
6
|
+
handleInputChange: (event: React.ChangeEvent<HTMLInputElement>, data: InputOnChangeData) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ProfileURLs: React.FC<ProfileURLProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ProfileURLs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileURLs.d.ts","sourceRoot":"","sources":["../../../src/Profiles/ProfileURLs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,KAAK,iBAAiB,EAAO,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type InputOnChangeData } from 'semantic-ui-react';
|
|
3
|
+
import type { ProfileConfig } from '../common/types/profile-config';
|
|
4
|
+
interface ProfileVariableProps {
|
|
5
|
+
selectedProfile: ProfileConfig;
|
|
6
|
+
handleVariableInputChange: (variableIndex: number) => (event: React.ChangeEvent<HTMLInputElement>, data: InputOnChangeData) => void;
|
|
7
|
+
insertNewVariable: () => void;
|
|
8
|
+
deleteVariable: (variableIndex: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ProfileVariables: React.FC<ProfileVariableProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ProfileVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileVariables.d.ts","sourceRoot":"","sources":["../../../src/Profiles/ProfileVariables.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type RouteComponentProps } from 'react-router-dom';
|
|
3
|
+
interface MatchParams {
|
|
4
|
+
profileId?: string;
|
|
5
|
+
tabId?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ProfileProps extends RouteComponentProps<MatchParams> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Profiles: React.FC<ProfileProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Profiles.d.ts","sourceRoot":"","sources":["../../../src/Profiles/Profiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAGL,KAAK,mBAAmB,EAGzB,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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Logger } from '../common/types/logger';
|
|
3
|
+
import type { ProfileConfig, ProfileVariable } from '../common/types/profile-config';
|
|
4
|
+
import type { ScenarioRegistration } from '../common/types/scenario-registration';
|
|
5
|
+
export type ScenarioHostProps = {
|
|
6
|
+
scenarios: readonly ScenarioRegistration[];
|
|
7
|
+
};
|
|
8
|
+
export declare const ScenarioHost: React.FC<ScenarioHostProps>;
|
|
9
|
+
export interface ScenarioHostClient {
|
|
10
|
+
scenarios: readonly ScenarioRegistration[];
|
|
11
|
+
activeProfile: ProfileConfig;
|
|
12
|
+
getVariable: <T>(key: string) => T;
|
|
13
|
+
getVariables: () => ProfileVariable[];
|
|
14
|
+
setVariable: (key: string, value: unknown, comment: string) => void;
|
|
15
|
+
logger: Logger;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the `ScenarioHostClient` which exposes an interface to interact with the `ScenarioHost`
|
|
19
|
+
*/
|
|
20
|
+
export declare const useScenarioHost: () => ScenarioHostClient;
|
|
21
|
+
//# sourceMappingURL=ScenarioHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScenarioHost.d.ts","sourceRoot":"","sources":["../../../src/ScenarioHost/ScenarioHost.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAYlF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0RpD,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JSONValue, LogLevel } from '../common/types/logger';
|
|
3
|
+
export interface LoggerHandle {
|
|
4
|
+
logMessage: (messages: JSONValue[], logLevel: LogLevel) => void;
|
|
5
|
+
}
|
|
6
|
+
interface LoggerProps {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* This logger component is used by `ScenarioHost` to facilitate logging to scenarios.
|
|
10
|
+
* It is kept here in a separate file for clarity and readability of the code. It should not be reused as a standalone component.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ScenarioHostLogger: React.ForwardRefExoticComponent<LoggerProps & React.RefAttributes<LoggerHandle>>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ScenarioHostLogger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScenarioHostLogger.d.ts","sourceRoot":"","sources":["../../../src/ScenarioHost/ScenarioHostLogger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,SAAS,EAAY,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAE5E,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ScenarioHostSplitProps = {
|
|
3
|
+
initialPrimarySize: string;
|
|
4
|
+
splitterSize: string;
|
|
5
|
+
onSplitChanged?: (value: string) => void;
|
|
6
|
+
children: readonly [React.ReactNode, React.ReactNode];
|
|
7
|
+
};
|
|
8
|
+
export declare const ScenarioHostSplit: ({ initialPrimarySize, splitterSize, onSplitChanged, children, }: ScenarioHostSplitProps) => React.ReactElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ScenarioHostSplit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScenarioHostSplit.d.ts","sourceRoot":"","sources":["../../../src/ScenarioHost/ScenarioHostSplit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,KAAK,sBAAsB,GAAG;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CACvD,CAAC;AAiCF,eAAO,MAAM,iBAAiB,GAAI,iEAK/B,sBAAsB,KAAG,KAAK,CAAC,YAmIjC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ScenarioRegistration } from '../common/types/scenario-registration';
|
|
3
|
+
export type ScenarioHostAppProps = {
|
|
4
|
+
scenarios: readonly ScenarioRegistration[];
|
|
5
|
+
};
|
|
6
|
+
export declare const ScenarioHostApp: React.FC<ScenarioHostAppProps>;
|
|
7
|
+
//# sourceMappingURL=ScenarioHostApp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScenarioHostApp.d.ts","sourceRoot":"","sources":["../../../src/ScenarioHostApp/ScenarioHostApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAQlF,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SearchProps } from 'semantic-ui-react';
|
|
3
|
+
export interface VariableSearchProps extends SearchProps {
|
|
4
|
+
/**
|
|
5
|
+
* The label to be displayed
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* The React state setter used to update the value when typing into the search field or selecting a search result
|
|
10
|
+
*/
|
|
11
|
+
setStateValue?: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* This component has built-in support to display all `variables` defined in the active profile when the
|
|
15
|
+
* control is focused. The user may click on an item from this list to select a variable, then its corresponding value will be
|
|
16
|
+
* fetched and assigned into the input field.
|
|
17
|
+
*/
|
|
18
|
+
export declare const VariableSearch: React.FC<VariableSearchProps>;
|
|
19
|
+
//# sourceMappingURL=VariableSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableSearch.d.ts","sourceRoot":"","sources":["../../../src/VariableSearch/VariableSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,mBAAmB,CAAC;AAG3B,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type LogLevel = 'LOG' | 'WARN' | 'ERROR';
|
|
2
|
+
export type LogEntry = {
|
|
3
|
+
timestamp: number;
|
|
4
|
+
scenarioId: string;
|
|
5
|
+
messages: JSONValue[];
|
|
6
|
+
logLevel: LogLevel;
|
|
7
|
+
};
|
|
8
|
+
export type JSONValue = string | number | boolean | object;
|
|
9
|
+
export interface Logger {
|
|
10
|
+
log: (...messages: JSONValue[]) => void;
|
|
11
|
+
warn: (...messages: JSONValue[]) => void;
|
|
12
|
+
error: (...messages: JSONValue[]) => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ProfileConfig {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
userAuthBaseURL: string;
|
|
5
|
+
userServiceBaseURL: string;
|
|
6
|
+
imageServiceBaseURL: string;
|
|
7
|
+
personalizationServiceBaseURL: string;
|
|
8
|
+
mediaServiceBaseURL: string;
|
|
9
|
+
catalogServiceBaseURL: string;
|
|
10
|
+
entitlementServiceBaseURL: string;
|
|
11
|
+
tenantId: string;
|
|
12
|
+
environmentId: string;
|
|
13
|
+
applicationId: string;
|
|
14
|
+
applicationKey: string;
|
|
15
|
+
variables: ProfileVariable[];
|
|
16
|
+
}
|
|
17
|
+
export interface ProfileVariable {
|
|
18
|
+
key: string;
|
|
19
|
+
value: unknown;
|
|
20
|
+
comment: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=profile-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export interface ScenarioRegistration {
|
|
3
|
+
/**
|
|
4
|
+
* A human readable unique identifier for the scenario.
|
|
5
|
+
* This value will also be visible in the Browser address bar.
|
|
6
|
+
*
|
|
7
|
+
* The naming convention shall be `lower-kebab-case`
|
|
8
|
+
*
|
|
9
|
+
* The route for the scenario will be generated as `/${shortId}`.
|
|
10
|
+
*/
|
|
11
|
+
readonly shortId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The group the scenario belongs to. This value will be displayed in the `Scenario Explorer` list
|
|
14
|
+
* and each scenario will be grouped under the same group name.
|
|
15
|
+
*/
|
|
16
|
+
readonly groupName: string;
|
|
17
|
+
/**
|
|
18
|
+
* A label that will be displayed to identify the scenario in the `Scenario Explorer` list.
|
|
19
|
+
*/
|
|
20
|
+
readonly displayName: string;
|
|
21
|
+
/**
|
|
22
|
+
* The order the scenario will be displayed in the `Scenario Explorer` list. The `displayOrder` will be
|
|
23
|
+
* used to sort scenarios with each `groupName`.
|
|
24
|
+
*/
|
|
25
|
+
readonly displayOrder: number;
|
|
26
|
+
/**
|
|
27
|
+
* The root React component to be rendered for the scenario.
|
|
28
|
+
*/
|
|
29
|
+
readonly rootComponent: FC;
|
|
30
|
+
}
|
|
31
|
+
export interface GroupedScenarios {
|
|
32
|
+
[groupName: string]: ScenarioRegistration[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=scenario-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-registration.d.ts","sourceRoot":"","sources":["../../../../src/common/types/scenario-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ProfileConfig, ProfileVariable } from '../types/profile-config';
|
|
2
|
+
import type { UserSettings } from '../types/user-settings';
|
|
3
|
+
/**
|
|
4
|
+
* The structure of the `ProfileConfig` type maintained in code can undergo several structural changes overtime.
|
|
5
|
+
* However, there may exist objects that were created using prior versions of the type persisted on client local-storages.
|
|
6
|
+
*
|
|
7
|
+
* This function will migrate the current saved state found in the local-storage into a state that is compatible with the
|
|
8
|
+
* latest `ProfileConfig` type in code by substituting reasonable defaults where necessary and eliminating obsolete properties.
|
|
9
|
+
*/
|
|
10
|
+
export declare const migrateProfileStructuralChanges: () => void;
|
|
11
|
+
export declare const getAllProfiles: () => ProfileConfig[];
|
|
12
|
+
export declare const saveAllProfiles: (profiles: ProfileConfig[]) => void;
|
|
13
|
+
export declare const saveProfile: (profileToSave: ProfileConfig) => void;
|
|
14
|
+
export declare const getProfileVariable: <T>(profile: ProfileConfig, key: string) => T;
|
|
15
|
+
export declare const getProfileVariables: (profile: ProfileConfig) => ProfileVariable[];
|
|
16
|
+
export declare const setProfileVariable: (profile: ProfileConfig, key: string, value: unknown, comment: string) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The structure of the `UserSettings` type maintained in code can undergo several structural changes overtime.
|
|
19
|
+
* However, there may exist objects that were created using prior versions of the type persisted on client local-storages.
|
|
20
|
+
*
|
|
21
|
+
* This function will migrate the current saved state found in the local-storage into a state that is compatible with the
|
|
22
|
+
* latest `UserSettings` type in code by substituting reasonable defaults where necessary and eliminating obsolete properties.
|
|
23
|
+
*/
|
|
24
|
+
export declare const migrateUserSettingsStructuralChanges: () => void;
|
|
25
|
+
export declare const getUserSettings: () => UserSettings;
|
|
26
|
+
export declare const setUserSettings: (value: UserSettings) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Generate a Short ID with the given length. The ID will be in hexadecimal.
|
|
29
|
+
*/
|
|
30
|
+
export declare const generateShortUniqueId: (length?: number) => string;
|
|
31
|
+
//# sourceMappingURL=storage-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-utils.d.ts","sourceRoot":"","sources":["../../../../src/common/utils/storage-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAK3D;;;;;;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { JSONValue, Logger } from './common/types/logger';
|
|
2
|
+
export type { ProfileConfig, ProfileVariable, } from './common/types/profile-config';
|
|
3
|
+
export type { ScenarioRegistration } from './common/types/scenario-registration';
|
|
4
|
+
export { useScenarioHost, type ScenarioHostClient, } from './ScenarioHost/ScenarioHost';
|
|
5
|
+
export { ScenarioHostApp, type ScenarioHostAppProps, } from './ScenarioHostApp/ScenarioHostApp';
|
|
6
|
+
export { VariableSearch, type VariableSearchProps, } from './VariableSearch/VariableSearch';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EACL,eAAe,EACf,KAAK,kBAAkB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,iCAAiC,CAAC"}
|