@claspo/document-connector 16.7.3 → 16.7.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.
|
@@ -3,7 +3,6 @@ import InAppActionFactory from '@claspo/renderer/action/InAppActionFactory';
|
|
|
3
3
|
import { WidgetType } from '@claspo/common/WidgetType';
|
|
4
4
|
export default function getInAppDocumentConnectorParams(layoutType: any, bundledComponentClasses: any, documentModel: any, config?: {}): {
|
|
5
5
|
bundledComponentClasses: any;
|
|
6
|
-
disableGlobalScroll: boolean;
|
|
7
6
|
disableScrollbarCalculation: boolean;
|
|
8
7
|
layoutFactoryClass: typeof InAppLayoutFactory;
|
|
9
8
|
layoutType: any;
|
|
@@ -14,7 +13,6 @@ export default function getInAppDocumentConnectorParams(layoutType: any, bundled
|
|
|
14
13
|
staticResourcesUrl: string;
|
|
15
14
|
} | {
|
|
16
15
|
bundledComponentClasses: any;
|
|
17
|
-
disableGlobalScroll: boolean;
|
|
18
16
|
disableScrollbarCalculation: boolean;
|
|
19
17
|
layoutFactoryClass: typeof InAppLayoutFactory;
|
|
20
18
|
layoutType: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import InAppLayoutFactory from"./layouts/InAppLayoutFactory";import{InAppLayoutType}from"@claspo/common/InAppLayoutType";import InAppActionFactory from"@claspo/renderer/action/InAppActionFactory";import{WidgetType}from"@claspo/common/WidgetType";export default function getInAppDocumentConnectorParams(t,o,e,a={}){const p=Object.assign({actionFactoryClass:InAppActionFactory,branded:!1,staticResourcesUrl:"https://statics.esstage.com/bundled-components"},a),n={bundledComponentClasses:o,
|
|
1
|
+
import InAppLayoutFactory from"./layouts/InAppLayoutFactory";import{InAppLayoutType}from"@claspo/common/InAppLayoutType";import InAppActionFactory from"@claspo/renderer/action/InAppActionFactory";import{WidgetType}from"@claspo/common/WidgetType";export default function getInAppDocumentConnectorParams(t,o,e,a={}){const p=Object.assign({actionFactoryClass:InAppActionFactory,branded:!1,staticResourcesUrl:"https://statics.esstage.com/bundled-components"},a),n={bundledComponentClasses:o,disableScrollbarCalculation:!0,layoutFactoryClass:InAppLayoutFactory},s=WidgetType.INFORMER;switch(t){case InAppLayoutType.BOTTOM_BAR:case InAppLayoutType.SLIDE_UP:return Object.assign(Object.assign(Object.assign({},p),{layoutType:t,widgetType:s,documentModel:e}),n);case InAppLayoutType.POP_UP:case InAppLayoutType.FULL:return Object.assign(Object.assign(Object.assign({},p),{layoutType:t,widgetType:s,documentModel:e,optionalDocumentStyles:{width:"100%",height:"100%",overflow:"auto"},displayPosition:"fixed"}),n);default:throw new Error(`Unsupported layout type: ${t}`)}}
|