@letscooee/web-sdk 0.0.7 → 0.0.12

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,44 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { BlockRenderer } from './block-renderer';
17
- /**
18
- * Renders group element present in in-app layer block.
19
- *
20
- * @author Abhishek Taparia
21
- * @version 0.0.5
22
- */
23
- var GroupRenderer = /** @class */ (function (_super) {
24
- __extends(GroupRenderer, _super);
25
- function GroupRenderer() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- /**
29
- * Render group element from layers list in {@link InAppTrigger} block.
30
- * @param {HTMLElement} parent
31
- * @param {GroupElement} elementData style and attributes data of the group element
32
- * @return {HTMLElement} rendered group element
33
- */
34
- GroupRenderer.prototype.render = function (parent, elementData) {
35
- var newElement = this.renderer.createElement('div');
36
- // By default the parents will be relative
37
- this.renderer.setStyle(newElement, 'position', 'relative');
38
- this.commonRenderingFunction(newElement, elementData);
39
- this.renderer.appendChild(parent, newElement);
40
- return newElement;
41
- };
42
- return GroupRenderer;
43
- }(BlockRenderer));
44
- export { GroupRenderer };