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

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,6 @@
1
+ import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
2
+ export default class PreviewVideo extends AtomControl {
3
+ constructor(app: any, e: any);
4
+ init(): Promise<void>;
5
+ }
6
+ //# 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":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAuC5E,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;gBAErC,GAAG,KAAA,EAAC,CAAC,KAAA;IAKX,IAAI;CAkBb"}
@@ -0,0 +1,80 @@
1
+ System.register(["tslib", "@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 (_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
+ display: grid;
25
+ grid-template-columns: 1fr;
26
+ grid-template-rows: 1fr auto;
27
+
28
+ align-items: stretch;
29
+ justify-content: stretch;
30
+ justify-items: stretch;
31
+
32
+ & [video-player] {
33
+ grid-row: 1;
34
+ }
35
+
36
+ & > footer {
37
+ grid-row: 2;
38
+ }
39
+
40
+
41
+ `.installGlobal("[data-preview-video]");
42
+ fileInfo = window.fileInfo;
43
+ if (!fileInfo) {
44
+ fileInfo = window.fileInfo = {};
45
+ const url = new URL(location.href);
46
+ url.searchParams.forEach((v, k) => {
47
+ fileInfo[k] = v;
48
+ });
49
+ }
50
+ PreviewVideo = class PreviewVideo extends AtomControl {
51
+ constructor(app, e) {
52
+ super(app, e);
53
+ this.pushInit();
54
+ }
55
+ init() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ this.renderer = XNode.create("div", null, XNode.create(AtomVideoPlayer, {
58
+ source: fileInfo.url
59
+ }), XNode.create("footer", {
60
+ "data-layout": "row",
61
+ "data-align-items": "center",
62
+ "data-justify-content": "center",
63
+ "data-justify-items": "center",
64
+ "data-font-size": "x-small"
65
+ }, XNode.create("a", {
66
+ target: "_blank",
67
+ href: "https://socialmail.me"
68
+ }, "Powered by Social Mail"), XNode.create("a", {
69
+ target: "_blank",
70
+ href: "https://fontawesome.com/"
71
+ }, "Fonts by Font Awesome")));
72
+ });
73
+ }
74
+ };
75
+ PreviewVideo = __decorate([Pack, __metadata("design:paramtypes", [Object, Object])], PreviewVideo);
76
+ _export("default", PreviewVideo);
77
+ }
78
+ };
79
+ });
80
+ //# 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","pushInit","init","renderer","create","source","target","__decorate","_export"],"sources":["../../../../src/public/preview/video/PreviewVideo.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;MAAOA,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;;;;;;;;;;;;;;;;;;;KAmBV,CAACC,aAAa,CAAC,sBAAsB,CAAC;MAGvCC,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,GAAG,EAACC,CAAC,CAAC;UACZ,IAAI,CAACC,QAAQ,EAAE;QACnB;QAEMC,IAAIA,CAAA;;YACN,IAAI,CAACC,QAAQ,GAAG9B,KAAA,CAAA+B,MAAA,cACZ/B,KAAA,CAA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