@social-mail/social-mail-client 1.2.761 → 1.2.763

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.
@@ -0,0 +1,7 @@
1
+ import "../../../style/GlobalStyle";
2
+ import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
3
+ export default class PreviewVideo extends AtomControl {
4
+ constructor(app: any, e: any);
5
+ init(): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=PreviewVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewVideo.d.ts","sourceRoot":"","sources":["../../../../src/public/preview/video/PreviewVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AA0C5E,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;gBAErC,GAAG,KAAA,EAAC,CAAC,KAAA;IAMX,IAAI;CAkBb"}
@@ -0,0 +1,84 @@
1
+ System.register(["tslib", "../../../style/GlobalStyle", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/Pack", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/web-controls/dist/player/AtomVideoPlayer"], function (_export, _context) {
2
+ "use strict";
3
+
4
+ var __awaiter, __decorate, __metadata, XNode, Pack, styled, AtomControl, AtomVideoPlayer, fileInfo, PreviewVideo;
5
+ return {
6
+ setters: [function (_tslib) {
7
+ __awaiter = _tslib.__awaiter;
8
+ __decorate = _tslib.__decorate;
9
+ __metadata = _tslib.__metadata;
10
+ }, function (_styleGlobalStyle) {}, function (_webAtomsCoreDistCoreXNode) {
11
+ XNode = _webAtomsCoreDistCoreXNode.default;
12
+ }, function (_webAtomsCoreDistPack) {
13
+ Pack = _webAtomsCoreDistPack.default;
14
+ }, function (_webAtomsCoreDistStyleStyled) {
15
+ styled = _webAtomsCoreDistStyleStyled.default;
16
+ }, function (_webAtomsCoreDistWebControlsAtomControl) {
17
+ AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
18
+ }, function (_webAtomsWebControlsDistPlayerAtomVideoPlayer) {
19
+ AtomVideoPlayer = _webAtomsWebControlsDistPlayerAtomVideoPlayer.default;
20
+ }],
21
+ execute: function () {
22
+ styled.css`
23
+
24
+ & [data-preview-video] {
25
+
26
+ display: grid;
27
+ grid-template-columns: 1fr;
28
+ grid-template-rows: 1fr auto;
29
+
30
+ align-items: stretch;
31
+ justify-content: stretch;
32
+ justify-items: stretch;
33
+
34
+ & [video-player] {
35
+ grid-row: 1;
36
+ }
37
+
38
+ & > footer {
39
+ grid-row: 2;
40
+ }
41
+ }
42
+
43
+
44
+ `.installGlobal("body");
45
+ fileInfo = window.fileInfo;
46
+ if (!fileInfo) {
47
+ fileInfo = window.fileInfo = {};
48
+ const url = new URL(location.href);
49
+ url.searchParams.forEach((v, k) => {
50
+ fileInfo[k] = v;
51
+ });
52
+ }
53
+ PreviewVideo = class PreviewVideo extends AtomControl {
54
+ constructor(app, e) {
55
+ super(app, e);
56
+ this.element.setAttribute("data-preview-video", "preview-video");
57
+ this.pushInit();
58
+ }
59
+ init() {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ this.renderer = XNode.create("div", null, XNode.create(AtomVideoPlayer, {
62
+ source: fileInfo.url
63
+ }), XNode.create("footer", {
64
+ "data-layout": "row",
65
+ "data-align-items": "center",
66
+ "data-justify-content": "center",
67
+ "data-justify-items": "center",
68
+ "data-font-size": "x-small"
69
+ }, XNode.create("a", {
70
+ target: "_blank",
71
+ href: "https://socialmail.me"
72
+ }, "Powered by Social Mail"), XNode.create("a", {
73
+ target: "_blank",
74
+ href: "https://fontawesome.com/"
75
+ }, "Fonts by Font Awesome")));
76
+ });
77
+ }
78
+ };
79
+ PreviewVideo = __decorate([Pack, __metadata("design:paramtypes", [Object, Object])], PreviewVideo);
80
+ _export("default", PreviewVideo);
81
+ }
82
+ };
83
+ });
84
+ //# sourceMappingURL=PreviewVideo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["XNode","_webAtomsCoreDistCoreXNode","default","_webAtomsCoreDistPack","Pack","_webAtomsCoreDistStyleStyled","styled","_webAtomsCoreDistWebControlsAtomControl","AtomControl","_webAtomsWebControlsDistPlayerAtomVideoPlayer","AtomVideoPlayer","execute","css","installGlobal","fileInfo","window","url","URL","location","href","searchParams","forEach","v","k","PreviewVideo","constructor","app","e","element","setAttribute","pushInit","init","renderer","create","source","target","__decorate","_export"],"sources":["../../../../src/public/preview/video/PreviewVideo.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;MACOA,KAAK,GAAAC,0BAAA,CAAAC,OAAA;IAAA,aAAAC,qBAAA;MACLC,IAAI,GAAAD,qBAAA,CAAAD,OAAA;IAAA,aAAAG,4BAAA;MACJC,MAAM,GAAAD,4BAAA,CAAAH,OAAA;IAAA,aAAAK,uCAAA;MACJC,WAAW,GAAAD,uCAAA,CAAXC,WAAW;IAAA,aAAAC,6CAAA;MACbC,eAAe,GAAAD,6CAAA,CAAAP,OAAA;IAAA;IAAAS,OAAA,WAAAA,CAAA;MAGlBL,MAAM,CAACM,GAAI;;;;;;;;;;;;;;;;;;;;;;KAsBV,CAACC,aAAa,CAAC,MAAM,CAAC;MAGvBC,QAAQ,GAAuBC,MAAc,CAACD,QAAQ;MAE1D,IAAI,CAACA,QAAQ,EAAE;QACXA,QAAQ,GAAIC,MAAc,CAACD,QAAQ,GAAG,EAAE;QACxC,MAAME,GAAG,GAAG,IAAIC,GAAG,CAACC,QAAQ,CAACC,IAAI,CAAC;QAClCH,GAAG,CAACI,YAAY,CAACC,OAAO,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAI;UAC9BT,QAAQ,CAACS,CAAC,CAAC,GAAGD,CAAC;QACnB,CAAC,CAAC;;MAMeE,YAAY,GAAlB,MAAMA,YAAa,SAAQhB,WAAW;QAEjDiB,YAAYC,GAAG,EAACC,CAAC;UACb,KAAK,CAACD,G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