entcore 4.5.0-dev.3 → 4.5.0-dev.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entcore",
3
- "version": "4.5.0-dev.3",
3
+ "version": "4.5.0-dev.6",
4
4
  "description": "",
5
5
  "main": "gulpfile.js",
6
6
  "types": "./types/src/ts/entcore.d.ts",
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  <div class="row">
13
13
  <label class="four cell zero-mobile"><i18n>linker.tooltip</i18n></label>
14
- <input class="four cell twelve-mobile" type="text" i18n-placeholder="linker.tooltip" ng-model="linker.params.tooltip" />
14
+ <input class="four cell twelve-mobile" type="text" i18n-placeholder="linker.tooltip" ng-model="linker.params.title" />
15
15
  </div>
16
16
  <div class="row">
17
17
  <div class="four cell zero-mobile">&nbsp;</div>
@@ -50,7 +50,7 @@
50
50
  <div class="twelve cell vertical-spacing">
51
51
  <div class="row">
52
52
  <label class="three cell zero-mobile"><i18n>linker.tooltip</i18n></label>
53
- <input class="nine cell twelve-mobile" type="text" ng-model="linker.params.tooltip" i18n-placeholder="linker.tooltip" />
53
+ <input class="nine cell twelve-mobile" type="text" ng-model="linker.params.title" i18n-placeholder="linker.tooltip" />
54
54
  </div>
55
55
  <div class="row">
56
56
  <div class="three cell zero-mobile">&nbsp;</div>
@@ -45,6 +45,6 @@
45
45
  </div>
46
46
  <div class="row media-library-toolbar">
47
47
  <em class="six cell small-text"><i18n>medialibrary.images.editable.formats</i18n></em>
48
- <button class="right-magnet" ng-click="confirmImport()" type="button"><i18n>import</i18n></button>
48
+ <button class="right-magnet" ng-click="confirmImport()" ng-disabled="!canConfirmImport()" type="button"><i18n>import</i18n></button>
49
49
  <button class="right-magnet cancel" ng-click="cancelUpload()" type="button"><i18n>cancel</i18n></button>
50
50
  </div>
@@ -18,26 +18,37 @@
18
18
  ~
19
19
  -->
20
20
 
21
- <div class="row media-library">
22
- <div class="drop-zone import-files">
23
- <article class="drop flex-row align-center">
24
- <i class="two cloud-upload"></i>
25
- <div class="ten help">
26
- <em><i18n>medialibrary.drop.help2</i18n></em>
27
- </div>
28
- </article>
29
- <article class="default flex-row align-center absolute-position">
30
- <div class="three select-file">
31
- <div class="hidden-content">
32
- <input class="upload-input" type="file" multiple files-input-change="importFiles()" ng-model="upload.files" />
33
- </div>
34
- <button class="file-button no-margin" translate content="library.file.choose" ng-click="triggerIpnutFileClick($event)"></button>
35
- </div>
36
- <i class="two cloud-upload"></i>
37
- <div class="seven help">
38
- <em><i18n>medialibrary.drop.help</i18n></em>
39
- </div>
40
- </article>
41
-
42
- </div>
43
- </div>
21
+ <div class="row media-library">
22
+ <div class="drop-zone import-files">
23
+ <article class="drop flex-row align-center">
24
+ <i class="two cloud-upload"></i>
25
+ <div class="ten help">
26
+ <em><i18n>medialibrary.drop.help2</i18n></em>
27
+ </div>
28
+ </article>
29
+ <article class="default flex-row align-center absolute-position">
30
+ <div class="three select-file">
31
+ <div class="hidden-content">
32
+ <input
33
+ class="upload-input"
34
+ type="file"
35
+ files-input-change="importFiles()"
36
+ accept="[[display.acceptType]]"
37
+ ng-model="upload.files"
38
+ />
39
+ </div>
40
+ <button
41
+ class="file-button no-margin"
42
+ translate
43
+ content="library.file.choose"
44
+ ng-click="triggerIpnutFileClick($event)"
45
+ ></button>
46
+ </div>
47
+ <i class="two cloud-upload"></i>
48
+ <div class="seven help">
49
+ <em><i18n>medialibrary.drop.help</i18n></em>
50
+ </div>
51
+ </article>
52
+ </div>
53
+ </div>
54
+
@@ -10,8 +10,8 @@ export interface Embedder {
10
10
  export declare const embedderService: {
11
11
  _providers: Embedder[];
12
12
  getProviders(): Promise<Embedder[]>;
13
- getHtmlForVideoStream(document: Element): string;
14
- getHtmlForVideoStreams(documents: Element[]): string;
13
+ getHtmlForVideoStream(document: Element, visibility: "protected" | "public" | "external"): string;
14
+ getHtmlForVideoStreams(documents: Element[], visibility: "protected" | "public" | "external"): string;
15
15
  getHtmlForUrl(url: string, returnDefault?: boolean): Promise<string>;
16
16
  getHtmlForProvider(embedder: Embedder, url: string): string;
17
17
  };