@rokt/dcui-orchestrator 0.1.1-rc.2 → 0.1.1-rc.4
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/index.cjs +23 -23
- package/dist/index.js +23 -23
- package/dist/libraries/dcui-components/src/components/style-mapper/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/dimension-value-transformer.d.ts +2 -1
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/display.d.ts +58 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +3 -4
- package/dist/modules/instant-purchase/src/components/catalog-drop-down/catalog-drop-down.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +1 -1
- package/package.json +1 -1
- package/dist/modules/instant-purchase/src/selectors/catalogItems/index.d.ts +0 -1
- package/dist/modules/instant-purchase/src/selectors/catalogItems/selectors.d.ts +0 -4
- package/dist/modules/instant-purchase/src/selectors/index.d.ts +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { DimensionHeightFitValue, DimensionHeightValue, DimensionWidthFitValue, DimensionWidthValue } from '@rokt/dcui-layout-schema';
|
|
1
|
+
import { DimensionHeightFitValue, DimensionHeightValue, DimensionWidthFitValue, DimensionWidthValue, DimensionValue } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { AllCategoryStylingProperties, AllStylingProperties } from '../types';
|
|
3
3
|
export declare function dimensionValueTransformer(allowedFitValues: Array<DimensionWidthFitValue | DimensionHeightFitValue>): <K extends keyof AllStylingProperties, K2 extends keyof AllCategoryStylingProperties<K>>(categoryKey: K, propertyKey: K2, dimensionValue: DimensionHeightValue | DimensionWidthValue | undefined | null) => string;
|
|
4
|
+
export declare function parseDimensionValue(dimensionValue: DimensionHeightValue | DimensionWidthValue | DimensionValue): string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { LayoutDisplayPreset, FrameControls } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { DisplayPreset } from '@rokt/plugin';
|
|
3
|
+
export declare function getDisplaySettings(preset?: LayoutDisplayPreset | null, controls?: FrameControls | null): {
|
|
4
|
+
autoresize: boolean;
|
|
5
|
+
applyHighestZIndex: boolean;
|
|
6
|
+
replaceTargetElement: string;
|
|
7
|
+
outerCss: {
|
|
8
|
+
maxWidth?: string | undefined;
|
|
9
|
+
transform?: string | undefined;
|
|
10
|
+
top?: string | undefined;
|
|
11
|
+
right?: string | undefined;
|
|
12
|
+
left?: string | undefined;
|
|
13
|
+
bottom?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
innerCss: {
|
|
16
|
+
width: string;
|
|
17
|
+
};
|
|
18
|
+
css?: undefined;
|
|
19
|
+
preset?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
autoresize: boolean;
|
|
22
|
+
css: {
|
|
23
|
+
maxWidth?: string | undefined;
|
|
24
|
+
transform?: string | undefined;
|
|
25
|
+
top?: string | undefined;
|
|
26
|
+
right?: string | undefined;
|
|
27
|
+
left?: string | undefined;
|
|
28
|
+
bottom?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
applyHighestZIndex?: undefined;
|
|
31
|
+
replaceTargetElement?: undefined;
|
|
32
|
+
outerCss?: undefined;
|
|
33
|
+
innerCss?: undefined;
|
|
34
|
+
preset?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
autoresize: boolean;
|
|
37
|
+
applyHighestZIndex: boolean;
|
|
38
|
+
replaceTargetElement: string;
|
|
39
|
+
css: {
|
|
40
|
+
maxWidth?: string | undefined;
|
|
41
|
+
transform?: string | undefined;
|
|
42
|
+
top?: string | undefined;
|
|
43
|
+
right?: string | undefined;
|
|
44
|
+
left?: string | undefined;
|
|
45
|
+
bottom?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
outerCss?: undefined;
|
|
48
|
+
innerCss?: undefined;
|
|
49
|
+
preset?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
preset: DisplayPreset;
|
|
52
|
+
autoresize?: undefined;
|
|
53
|
+
applyHighestZIndex?: undefined;
|
|
54
|
+
replaceTargetElement?: undefined;
|
|
55
|
+
outerCss?: undefined;
|
|
56
|
+
innerCss?: undefined;
|
|
57
|
+
css?: undefined;
|
|
58
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { CallEffect, PutEffect, SelectEffect } from '@redux-saga/core/effects';
|
|
2
|
-
import { LayoutDisplayPreset } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { FrameControls, LayoutDisplayPreset } from '@rokt/dcui-layout-schema';
|
|
3
3
|
import { RaceEffect } from 'redux-saga/effects';
|
|
4
|
-
import { ContextService, DisplayService } from '../../../../plugin-utils/src/index';
|
|
4
|
+
import { ContextService, DisplayService, PluginService } from '../../../../plugin-utils/src/index';
|
|
5
5
|
import { HandleConfigAction, ReportError } from '../../actions';
|
|
6
6
|
import { EventChannel } from 'redux-saga';
|
|
7
|
-
import { PluginService } from '../../../../plugin-utils/src/index';
|
|
8
7
|
export declare function closePlugin(contextService: ContextService): Generator<RaceEffect<CallEffect | Generator<SelectEffect | CallEffect, void, boolean>> | SelectEffect | CallEffect | Generator<SelectEffect | CallEffect, void, boolean> | PutEffect<ReportError>, void, boolean>;
|
|
9
8
|
export declare function listenToWsdkChannel<LayoutModelType, PluginModelType>(pluginService: PluginService<LayoutModelType>, transformRawConfig: (config: LayoutModelType) => PluginModelType | undefined): Generator<PutEffect<ReportError> | CallEffect<EventChannel<import("../../../../orchestrator/src/actions").SetFontsAction | HandleConfigAction<PluginModelType>>> | import("redux-saga/effects").ChannelTakeEffect<HandleConfigAction<PluginModelType>> | PutEffect<HandleConfigAction<PluginModelType>>, void, EventChannel<HandleConfigAction<PluginModelType>> & HandleConfigAction<PluginModelType>>;
|
|
10
9
|
export declare function wsdkSagas<LayoutModelType, PluginModelType>(pluginService: PluginService<LayoutModelType>, transformRawConfig: (config: LayoutModelType) => PluginModelType | undefined): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<void>>, void, unknown>;
|
|
11
|
-
export declare function displayPlugin(displayService: DisplayService, preset?: LayoutDisplayPreset | null): Generator<CallEffect<void> | PutEffect<{
|
|
10
|
+
export declare function displayPlugin(displayService: DisplayService, preset?: LayoutDisplayPreset | null, controls?: FrameControls | null): Generator<CallEffect<void> | PutEffect<{
|
|
12
11
|
type: "ACTIVE/ADD";
|
|
13
12
|
payload: {
|
|
14
13
|
id: string;
|
package/dist/modules/instant-purchase/src/components/catalog-drop-down/catalog-drop-down.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ interface CatalogDropDownModel<NonInteractableChildren, Predicates> {
|
|
|
26
26
|
styles?: null | LayoutStyle<CatalogDropDownElements, ConditionalStyleTransition<CatalogDropDownTransitions, Predicates>>;
|
|
27
27
|
openTemplate: NonInteractableChildren;
|
|
28
28
|
closedTemplate: NonInteractableChildren;
|
|
29
|
+
closedDefaultTemplate?: NonInteractableChildren;
|
|
29
30
|
options: CatalogDropDownOptionData[];
|
|
30
31
|
}
|
|
31
32
|
export interface CatalogDropDownProps {
|
|
@@ -7,7 +7,7 @@ import { InitiateInstantPurchase, InstantPurchasePartnerResponse } from '../../a
|
|
|
7
7
|
import { AppState } from '../../reducers';
|
|
8
8
|
import { TriggerSelectItemAction, InstantPurchaseWsdkResponse } from '../../actions';
|
|
9
9
|
export declare const INSTANT_PURCHASE_RESPONSE_TTL = 60000;
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function processSelectOnlyCatalogItem(): Generator<SelectEffect | PutEffect, void, AppState | undefined>;
|
|
11
11
|
export declare function processSelectCatalogItem(action: TriggerSelectItemAction): Generator<PutEffect, void, PluginCatalogItem | undefined>;
|
|
12
12
|
export declare function processInstantPurchaseCartItem(gateway: GlobalGateway, logger: (log: Log) => void, action: InitiateInstantPurchase): Generator<CallEffect<void> | SelectEffect | import("redux-saga/effects").ForkEffect<void> | PutEffect<{
|
|
13
13
|
type: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './selectors';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AppState } from '../../reducers';
|
|
2
|
-
import { PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
3
|
-
export declare function getCatalogItems(state: AppState): Array<PluginCatalogItem>;
|
|
4
|
-
export declare function getFirstCatalogItem(state: AppState): PluginCatalogItem | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './catalogItems';
|