@social-mail/social-mail-client 1.2.760 → 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.
- package/dist/public/channel/ChannelApp.pack.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/preview/video/PreviewVideo.d.ts +6 -0
- package/dist/public/preview/video/PreviewVideo.d.ts.map +1 -0
- package/dist/public/preview/video/PreviewVideo.js +80 -0
- package/dist/public/preview/video/PreviewVideo.js.map +1 -0
- package/dist/public/preview/video/PreviewVideo.pack.js +13306 -0
- package/dist/public/preview/video/PreviewVideo.pack.js.map +1 -0
- package/dist/public/preview/video/PreviewVideo.pack.min.js +512 -0
- package/dist/public/preview/video/PreviewVideo.pack.min.js.map +1 -0
- package/dist/site-editor/editor/webComponentsPath.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/preview/video/PreviewVideo.tsx +68 -0
- package/src/site-editor/editor/webComponentsPath.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import Pack from "@web-atoms/core/dist/Pack";
|
|
3
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
4
|
+
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
5
|
+
import AtomVideoPlayer from "@web-atoms/web-controls/dist/player/AtomVideoPlayer";
|
|
6
|
+
import { IAppFile } from "../../../model/model";
|
|
7
|
+
|
|
8
|
+
styled.css `
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: 1fr;
|
|
12
|
+
grid-template-rows: 1fr auto;
|
|
13
|
+
|
|
14
|
+
align-items: stretch;
|
|
15
|
+
justify-content: stretch;
|
|
16
|
+
justify-items: stretch;
|
|
17
|
+
|
|
18
|
+
& [video-player] {
|
|
19
|
+
grid-row: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& > footer {
|
|
23
|
+
grid-row: 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
`.installGlobal("[data-preview-video]");
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
let fileInfo: Partial<IAppFile> = (window as any).fileInfo;
|
|
31
|
+
|
|
32
|
+
if (!fileInfo) {
|
|
33
|
+
fileInfo = (window as any).fileInfo = {};
|
|
34
|
+
const url = new URL(location.href);
|
|
35
|
+
url.searchParams.forEach((v, k) => {
|
|
36
|
+
fileInfo[k] = v;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// fileInfo = {"name":"PA_CERTIFICATE_8723097310.pdf", "fileContentID":"451769", "appFileID":"607151"} as any;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@Pack
|
|
43
|
+
export default class PreviewVideo extends AtomControl {
|
|
44
|
+
|
|
45
|
+
constructor(app,e) {
|
|
46
|
+
super(app,e);
|
|
47
|
+
this.pushInit();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async init() {
|
|
51
|
+
this.renderer = <div>
|
|
52
|
+
<AtomVideoPlayer
|
|
53
|
+
source={fileInfo.url}
|
|
54
|
+
/>
|
|
55
|
+
<footer
|
|
56
|
+
data-layout="row"
|
|
57
|
+
data-align-items="center"
|
|
58
|
+
data-justify-content="center"
|
|
59
|
+
data-justify-items="center"
|
|
60
|
+
data-font-size="x-small"
|
|
61
|
+
>
|
|
62
|
+
<a target="_blank" href="https://socialmail.me">Powered by Social Mail</a>
|
|
63
|
+
<a target="_blank" href="https://fontawesome.com/">Fonts by Font Awesome</a>
|
|
64
|
+
</footer>
|
|
65
|
+
</div>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
@@ -28,7 +28,7 @@ const addAttributes = (target, values: (x: any) => IEditableAttribute[]) => {
|
|
|
28
28
|
|
|
29
29
|
export class WebComponents {
|
|
30
30
|
|
|
31
|
-
static path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.
|
|
31
|
+
static path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.157`;
|
|
32
32
|
|
|
33
33
|
// Not working in Chrome, Works well in Firefox
|
|
34
34
|
// static async run2(frame: HTMLIFrameElement, doc: Document) {
|