@yoobic/yobi 7.7.83 → 7.7.87
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/cjs/index.cjs.js +2 -1
- package/dist/cjs/{video-player-helpers-07afe78c.js → video-player-helpers-658b4a9a.js} +17 -5
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +1 -1
- package/dist/cjs/yoo-section-list.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/yoo-videoplayer-dailymotion.cjs.entry.js +1 -1
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +1 -1
- package/dist/cjs/yoo-videoplayer-vimeo.cjs.entry.js +1 -1
- package/dist/cjs/yoo-videoplayer-youtube.cjs.entry.js +1 -1
- package/dist/collection/components/app/user-profile/user-profile.css +1 -1
- package/dist/collection/components/app-boost/section-list/section-list.js +2 -2
- package/dist/collection/components/form/form-dynamic/form-dynamic.css +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -2
- package/dist/collection/utils/helpers/video-player-helpers.js +16 -5
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-d51ee577.entry.js → p-260a81e6.entry.js} +1 -1
- package/dist/design-system/{p-09c9cf30.entry.js → p-41e155f7.entry.js} +1 -1
- package/dist/design-system/p-497f00b1.entry.js +1 -0
- package/dist/design-system/{p-ae197453.entry.js → p-6504133f.entry.js} +1 -1
- package/dist/design-system/{p-71cca219.entry.js → p-671b34db.entry.js} +1 -1
- package/dist/design-system/{p-2c1dff83.entry.js → p-a69dcdaf.entry.js} +1 -1
- package/dist/design-system/p-b289eb9a.js +1 -0
- package/dist/design-system/{p-50fdc9f2.entry.js → p-d2d9ca4d.entry.js} +1 -1
- package/dist/design-system/{p-eef60f76.entry.js → p-fb884de6.entry.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{video-player-helpers-cd3527ae.js → video-player-helpers-866ceaa0.js} +17 -6
- package/dist/esm/yoo-ag-grid_96.entry.js +3 -3
- package/dist/esm/yoo-form-videoplayer.entry.js +1 -1
- package/dist/esm/yoo-section-list.entry.js +2 -2
- package/dist/esm/yoo-user-profile.entry.js +1 -1
- package/dist/esm/yoo-videoplayer-dailymotion.entry.js +1 -1
- package/dist/esm/yoo-videoplayer-videojs.entry.js +1 -1
- package/dist/esm/yoo-videoplayer-vimeo.entry.js +1 -1
- package/dist/esm/yoo-videoplayer-youtube.entry.js +1 -1
- package/dist/types/utils/helpers/video-player-helpers.d.ts +1 -0
- package/package.json +1 -1
- package/dist/design-system/p-46c2f5f9.js +0 -1
- package/dist/design-system/p-577f31e4.entry.js +0 -1
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-2edf4ecd.js');
|
|
9
|
-
const videoPlayerHelpers = require('./video-player-helpers-
|
|
9
|
+
const videoPlayerHelpers = require('./video-player-helpers-658b4a9a.js');
|
|
10
10
|
const index$1 = require('./index-e4be1010.js');
|
|
11
11
|
const remove = require('./remove-41707d5a.js');
|
|
12
12
|
require('./isUndefined-8f9cfd10.js');
|
|
@@ -12,7 +12,7 @@ const videoPlayerHelpers$1 = require('./video-player-helpers-a6d263f8.js');
|
|
|
12
12
|
require('./ResizeObserver.es-2edf4ecd.js');
|
|
13
13
|
const commonHelpers = require('./common-helpers-797be2a6.js');
|
|
14
14
|
const observerHelpers = require('./observer-helpers-b02f15af.js');
|
|
15
|
-
const videoPlayerHelpers = require('./video-player-helpers-
|
|
15
|
+
const videoPlayerHelpers = require('./video-player-helpers-658b4a9a.js');
|
|
16
16
|
const index$1 = require('./index-e4be1010.js');
|
|
17
17
|
const document$1 = require('./document-b4cc3315.js');
|
|
18
18
|
require('./validate-f2c2f205.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-2edf4ecd.js');
|
|
9
|
-
const videoPlayerHelpers = require('./video-player-helpers-
|
|
9
|
+
const videoPlayerHelpers = require('./video-player-helpers-658b4a9a.js');
|
|
10
10
|
const index$1 = require('./index-e4be1010.js');
|
|
11
11
|
require('./isUndefined-8f9cfd10.js');
|
|
12
12
|
require('./isNumber-4c1ace60.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fd52e687.js');
|
|
|
6
6
|
const rrule = require('./rrule-f8e7fec2.js');
|
|
7
7
|
require('./input-bar.interface-b96b7107.js');
|
|
8
8
|
require('./ResizeObserver.es-2edf4ecd.js');
|
|
9
|
-
const videoPlayerHelpers = require('./video-player-helpers-
|
|
9
|
+
const videoPlayerHelpers = require('./video-player-helpers-658b4a9a.js');
|
|
10
10
|
const index$1 = require('./index-e4be1010.js');
|
|
11
11
|
require('./isUndefined-8f9cfd10.js');
|
|
12
12
|
require('./isNumber-4c1ace60.js');
|
|
@@ -915,7 +915,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
915
915
|
}
|
|
916
916
|
:host .profile-content.advanced .profile-links .profile-links-menu .multiple-items-margin {
|
|
917
917
|
margin-right: var(--spacing-16, 1rem);
|
|
918
|
-
|
|
918
|
+
line-height: 1.5;
|
|
919
919
|
}
|
|
920
920
|
:host .profile-content.advanced .profile-links .profile-links-menu yoo-avatar {
|
|
921
921
|
margin-right: var(--spacing-08, 0.5rem);
|
|
@@ -440,7 +440,7 @@ export class YooSectionListComponent {
|
|
|
440
440
|
h("div", { class: "info-container" }, item.columns && item.columns.map((column) => this.renderSectionItemColumn(column))),
|
|
441
441
|
!this.disableSortable && !this.isReadonly && h("div", { class: "draggable" },
|
|
442
442
|
h("yoo-icon", { name: "draggable", color: "text-color", size: "medium" })),
|
|
443
|
-
(this.isPublisher || this.isViewer) && this.countSuffix === 'lessons' ? this.renderViewerPublisherActions() : this.renderItemActions(item))));
|
|
443
|
+
!this.isOwner && (this.isPublisher || this.isViewer) && this.countSuffix === 'lessons' ? this.renderViewerPublisherActions() : this.renderItemActions(item))));
|
|
444
444
|
}
|
|
445
445
|
renderSectionItemColumn(column) {
|
|
446
446
|
return (h("div", { class: "column" },
|
|
@@ -456,7 +456,7 @@ export class YooSectionListComponent {
|
|
|
456
456
|
if (!this.itemActions || !this.itemActions.length) {
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
459
|
-
const actions = this.itemActions.map((action) => (Object.assign(Object.assign({}, action), { handler: () => action.handler(i), isVisible: () => (action === null || action === void 0 ? void 0 : action.visible) ? action.visible() : true })));
|
|
459
|
+
const actions = this.itemActions.map((action) => (Object.assign(Object.assign({}, action), { handler: () => action.handler(i), isVisible: () => (action === null || action === void 0 ? void 0 : action.visible) ? action.visible(i) : true })));
|
|
460
460
|
return (h("div", { class: "item-actions" },
|
|
461
461
|
h("yoo-context-menu", { contentButtons: actions, placement: "below" },
|
|
462
462
|
h("yoo-button", { disabled: this.isViewer && this.countSuffix === 'users' ? true : false, size: "medium" },
|
|
@@ -2867,7 +2867,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
|
|
|
2867
2867
|
page-break-before: avoid;
|
|
2868
2868
|
page-break-inside: auto;
|
|
2869
2869
|
}
|
|
2870
|
-
:host .inputs-container .field-placeholder:not(.multiphotos):not(.image):not(.selectmulti),
|
|
2870
|
+
:host .inputs-container .field-placeholder:not(.multiphotos):not(.image):not(.selectmulti):not(.selectbuttons),
|
|
2871
2871
|
:host .inputs-container .field-placeholder.no-break {
|
|
2872
2872
|
page-break-inside: avoid;
|
|
2873
2873
|
}
|
|
@@ -2271,7 +2271,7 @@ export class YooFormDynamicComponent {
|
|
|
2271
2271
|
html: field.type === FormFieldType.textarea && field.language === 'html' && isWeb(this.host),
|
|
2272
2272
|
[field.mode]: field.mode && (field.type === FormFieldType.document || field.type === FormFieldType.image || field.type === FormFieldType.podcast),
|
|
2273
2273
|
[field.type]: true,
|
|
2274
|
-
'no-break': !isPdfMultiplePhotos && (field === null || field === void 0 ? void 0 : field.type)
|
|
2274
|
+
'no-break': !isPdfMultiplePhotos && ![FormFieldType.selectmulti, FormFieldType.selectbuttons].includes(field === null || field === void 0 ? void 0 : field.type)
|
|
2275
2275
|
}, style: this.isInlineRow() || this.isInlineRowNarrow() ? inlineStyle : style },
|
|
2276
2276
|
!!(header === null || header === void 0 ? void 0 : header.length) && isFieldVisible && h("div", { class: { 'field-header': true, first: first }, style: field.headerStyle, innerHTML: translateMulti(header) }),
|
|
2277
2277
|
isFieldVisible
|
|
@@ -2316,7 +2316,7 @@ export class YooFormDynamicComponent {
|
|
|
2316
2316
|
if (this.isPdf && renderSlideTitle) {
|
|
2317
2317
|
const pdfClass = {
|
|
2318
2318
|
'pdf-field-wrapper': true,
|
|
2319
|
-
break: isPdfMultiplePhotos,
|
|
2319
|
+
break: isPdfMultiplePhotos || [FormFieldType.selectbuttons].includes(field === null || field === void 0 ? void 0 : field.type),
|
|
2320
2320
|
[fieldClass]: !!fieldClass
|
|
2321
2321
|
};
|
|
2322
2322
|
return h("div", { class: pdfClass, style: fieldStyle }, fieldContent());
|
|
@@ -47,7 +47,7 @@ function isNumeric(item) {
|
|
|
47
47
|
export function fixVideoSource(field) {
|
|
48
48
|
const source = field.url || field.value || field.videoData || '';
|
|
49
49
|
const arr = !field.videoData && source.split('/');
|
|
50
|
-
|
|
50
|
+
const videoId = arr && arr[arr.length - 1];
|
|
51
51
|
let newSource = source;
|
|
52
52
|
if (field.videoData) {
|
|
53
53
|
newSource = isFile(field.videoData) ? URL.createObjectURL(field.videoData) : field.videoData;
|
|
@@ -59,13 +59,24 @@ export function fixVideoSource(field) {
|
|
|
59
59
|
newSource = 'https://www.dailymotion.com/embed/video/' + videoId;
|
|
60
60
|
}
|
|
61
61
|
if (isVimeoSource(newSource)) {
|
|
62
|
-
|
|
63
|
-
videoId = arr[arr.length - 2];
|
|
64
|
-
}
|
|
65
|
-
newSource = 'https://player.vimeo.com/video/' + videoId;
|
|
62
|
+
return fixVimeoSource(newSource);
|
|
66
63
|
}
|
|
67
64
|
return newSource;
|
|
68
65
|
}
|
|
66
|
+
export function fixVimeoSource(source) {
|
|
67
|
+
const arr = source === null || source === void 0 ? void 0 : source.split('/');
|
|
68
|
+
const lastItem = arr === null || arr === void 0 ? void 0 : arr[arr.length - 1];
|
|
69
|
+
const secondLastItem = arr === null || arr === void 0 ? void 0 : arr[arr.length - 2];
|
|
70
|
+
const URL_PREFIX = 'https://player.vimeo.com/video/';
|
|
71
|
+
const MIN_VIDEO_ID_LENGTH = 3;
|
|
72
|
+
if (isNumeric(lastItem)) {
|
|
73
|
+
return `${URL_PREFIX}${lastItem}`;
|
|
74
|
+
}
|
|
75
|
+
else if (!(source === null || source === void 0 ? void 0 : source.includes('player.vimeo.com')) && isNumeric(secondLastItem) && (secondLastItem === null || secondLastItem === void 0 ? void 0 : secondLastItem.length) > MIN_VIDEO_ID_LENGTH) {
|
|
76
|
+
return `${URL_PREFIX}${secondLastItem}?h=${lastItem}`;
|
|
77
|
+
}
|
|
78
|
+
return source;
|
|
79
|
+
}
|
|
69
80
|
export function openVideoPlayerInModal(type, coreParams, modalParams) {
|
|
70
81
|
const videoModal = document.createElement('yoo-videoplayer-core');
|
|
71
82
|
const videoPlayerCoreParameters = Object.assign({ fullscreen: false, controls: true }, coreParams);
|