@rokt/dcui-orchestrator 0.1.1-rc.2 → 0.1.1-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.
@@ -1,3 +1,4 @@
1
1
  export * from './style-consumer';
2
2
  export * from './style-mapper';
3
3
  export * from './get-css-writer';
4
+ export * from './transformers/dimension-value-transformer';
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "0.1.1-rc.2",
3
+ "version": "0.1.1-rc.3",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",