@italia/video 1.0.0-alpha.4 → 1.0.0-alpha.5
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/custom-elements.json +1 -1
- package/dist/src/it-video.js +95 -49
- package/dist/src/it-video.js.map +1 -1
- package/package.json +10 -10
package/custom-elements.json
CHANGED
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"type": {
|
|
392
392
|
"text": "Story"
|
|
393
393
|
},
|
|
394
|
-
"default": "{ name: 'i18n', tags: ['!dev'], render: () => html`<div class=\"hide-preview\"></div>`, parameters: { viewMode: 'docs', // assicura che si apra la tab Docs anziché Canvas docs: { description: { story: ` Oltre all'attributo \\`translations\\` che permette di modificare le traduzioni interne al player, sono disponibili ulteriori stringhe traducibili tramite l'[utility di internazionalizzazione](/docs/i18n-internazionalizzazione--documentazione). \\`\\`\\`js const translation =
|
|
394
|
+
"default": "{ name: 'i18n', tags: ['!dev'], render: () => html`<div class=\"hide-preview\"></div>`, parameters: { viewMode: 'docs', // assicura che si apra la tab Docs anziché Canvas docs: { description: { story: ` Oltre all'attributo \\`translations\\` che permette di modificare le traduzioni interne al player, sono disponibili ulteriori stringhe traducibili tramite l'[utility di internazionalizzazione](/docs/i18n-internazionalizzazione--documentazione). \\`\\`\\`js const translation = ${JSON.stringify(i18nIT, null, 2)} \\`\\`\\` `, }, }, }, }"
|
|
395
395
|
}
|
|
396
396
|
],
|
|
397
397
|
"exports": [
|
package/dist/src/it-video.js
CHANGED
|
@@ -543,8 +543,12 @@ function requireDomElement () {
|
|
|
543
543
|
|
|
544
544
|
DOMElement.prototype.removeAttributeNS =
|
|
545
545
|
function _Element_removeAttributeNS(namespace, name) {
|
|
546
|
+
// Prevent prototype pollution by checking if namespace is a direct property
|
|
547
|
+
if (!Object.prototype.hasOwnProperty.call(this._attributes, namespace)) {
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
546
550
|
var attributes = this._attributes[namespace];
|
|
547
|
-
if (attributes) {
|
|
551
|
+
if (attributes && Object.prototype.hasOwnProperty.call(attributes, name)) {
|
|
548
552
|
delete attributes[name];
|
|
549
553
|
}
|
|
550
554
|
};
|
|
@@ -7175,6 +7179,9 @@ function requireDom () {
|
|
|
7175
7179
|
}
|
|
7176
7180
|
do{
|
|
7177
7181
|
newFirst.parentNode = parent;
|
|
7182
|
+
// Update ownerDocument for each node being inserted
|
|
7183
|
+
var targetDoc = parent.ownerDocument || parent;
|
|
7184
|
+
_updateOwnerDocument(newFirst, targetDoc);
|
|
7178
7185
|
}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
|
|
7179
7186
|
_onUpdateChild(parent.ownerDocument||parent, parent);
|
|
7180
7187
|
//console.log(parent.lastChild.nextSibling == null)
|
|
@@ -7184,6 +7191,37 @@ function requireDom () {
|
|
|
7184
7191
|
return node;
|
|
7185
7192
|
}
|
|
7186
7193
|
|
|
7194
|
+
/**
|
|
7195
|
+
* Recursively updates the ownerDocument property for a node and all its descendants
|
|
7196
|
+
* @param {Node} node
|
|
7197
|
+
* @param {Document} newOwnerDocument
|
|
7198
|
+
* @private
|
|
7199
|
+
*/
|
|
7200
|
+
function _updateOwnerDocument(node, newOwnerDocument) {
|
|
7201
|
+
if (node.ownerDocument === newOwnerDocument) {
|
|
7202
|
+
return;
|
|
7203
|
+
}
|
|
7204
|
+
|
|
7205
|
+
node.ownerDocument = newOwnerDocument;
|
|
7206
|
+
|
|
7207
|
+
// Update attributes if this is an element
|
|
7208
|
+
if (node.nodeType === ELEMENT_NODE && node.attributes) {
|
|
7209
|
+
for (var i = 0; i < node.attributes.length; i++) {
|
|
7210
|
+
var attr = node.attributes.item(i);
|
|
7211
|
+
if (attr) {
|
|
7212
|
+
attr.ownerDocument = newOwnerDocument;
|
|
7213
|
+
}
|
|
7214
|
+
}
|
|
7215
|
+
}
|
|
7216
|
+
|
|
7217
|
+
// Recursively update child nodes
|
|
7218
|
+
var child = node.firstChild;
|
|
7219
|
+
while (child) {
|
|
7220
|
+
_updateOwnerDocument(child, newOwnerDocument);
|
|
7221
|
+
child = child.nextSibling;
|
|
7222
|
+
}
|
|
7223
|
+
}
|
|
7224
|
+
|
|
7187
7225
|
/**
|
|
7188
7226
|
* Appends `newChild` to `parentNode`.
|
|
7189
7227
|
* If `newChild` is already connected to a `parentNode` it is first removed from it.
|
|
@@ -7209,6 +7247,11 @@ function requireDom () {
|
|
|
7209
7247
|
}
|
|
7210
7248
|
parentNode.lastChild = newChild;
|
|
7211
7249
|
_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
|
|
7250
|
+
|
|
7251
|
+
// Update ownerDocument for the new child and all its descendants
|
|
7252
|
+
var targetDoc = parentNode.ownerDocument || parentNode;
|
|
7253
|
+
_updateOwnerDocument(newChild, targetDoc);
|
|
7254
|
+
|
|
7212
7255
|
return newChild;
|
|
7213
7256
|
}
|
|
7214
7257
|
|
|
@@ -7237,7 +7280,7 @@ function requireDom () {
|
|
|
7237
7280
|
return newChild;
|
|
7238
7281
|
}
|
|
7239
7282
|
_insertBefore(this, newChild, refChild);
|
|
7240
|
-
newChild
|
|
7283
|
+
_updateOwnerDocument(newChild, this);
|
|
7241
7284
|
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
|
7242
7285
|
this.documentElement = newChild;
|
|
7243
7286
|
}
|
|
@@ -7253,7 +7296,7 @@ function requireDom () {
|
|
|
7253
7296
|
replaceChild: function (newChild, oldChild) {
|
|
7254
7297
|
//raises
|
|
7255
7298
|
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
|
7256
|
-
newChild
|
|
7299
|
+
_updateOwnerDocument(newChild, this);
|
|
7257
7300
|
if (oldChild) {
|
|
7258
7301
|
this.removeChild(oldChild);
|
|
7259
7302
|
}
|
|
@@ -8033,7 +8076,7 @@ var hasRequiredEntities;
|
|
|
8033
8076
|
function requireEntities () {
|
|
8034
8077
|
if (hasRequiredEntities) return entities;
|
|
8035
8078
|
hasRequiredEntities = 1;
|
|
8036
|
-
(function (exports) {
|
|
8079
|
+
(function (exports$1) {
|
|
8037
8080
|
|
|
8038
8081
|
var freeze = requireConventions().freeze;
|
|
8039
8082
|
|
|
@@ -8044,7 +8087,7 @@ function requireEntities () {
|
|
|
8044
8087
|
* @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
|
|
8045
8088
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
|
|
8046
8089
|
*/
|
|
8047
|
-
exports.XML_ENTITIES = freeze({
|
|
8090
|
+
exports$1.XML_ENTITIES = freeze({
|
|
8048
8091
|
amp: '&',
|
|
8049
8092
|
apos: "'",
|
|
8050
8093
|
gt: '>',
|
|
@@ -8066,7 +8109,7 @@ function requireEntities () {
|
|
|
8066
8109
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
|
|
8067
8110
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
|
|
8068
8111
|
*/
|
|
8069
|
-
exports.HTML_ENTITIES = freeze({
|
|
8112
|
+
exports$1.HTML_ENTITIES = freeze({
|
|
8070
8113
|
Aacute: '\u00C1',
|
|
8071
8114
|
aacute: '\u00E1',
|
|
8072
8115
|
Abreve: '\u0102',
|
|
@@ -10198,7 +10241,7 @@ function requireEntities () {
|
|
|
10198
10241
|
* @deprecated use `HTML_ENTITIES` instead
|
|
10199
10242
|
* @see HTML_ENTITIES
|
|
10200
10243
|
*/
|
|
10201
|
-
exports.entityMap = exports.HTML_ENTITIES;
|
|
10244
|
+
exports$1.entityMap = exports$1.HTML_ENTITIES;
|
|
10202
10245
|
} (entities));
|
|
10203
10246
|
return entities;
|
|
10204
10247
|
}
|
|
@@ -71069,7 +71112,7 @@ if (typeof window !== 'undefined') {
|
|
|
71069
71112
|
window._itAnalytics = window._itAnalytics || {};
|
|
71070
71113
|
window._itAnalytics = {
|
|
71071
71114
|
...window._itAnalytics,
|
|
71072
|
-
version: '1.0.0-alpha.
|
|
71115
|
+
version: '1.0.0-alpha.5',
|
|
71073
71116
|
};
|
|
71074
71117
|
}
|
|
71075
71118
|
|
|
@@ -74002,14 +74045,14 @@ video::-webkit-media-text-track-display {
|
|
|
74002
74045
|
|
|
74003
74046
|
/* stylelint-enable */
|
|
74004
74047
|
.vjs-theme-bootstrap-italia {
|
|
74005
|
-
--
|
|
74006
|
-
--
|
|
74048
|
+
--bsi-videoplayer-button-background: var(--bsi-color-background-primary);
|
|
74049
|
+
--bsi-videoplayer-control-background: var(--bsi-color-background-primary);
|
|
74007
74050
|
}
|
|
74008
74051
|
.vjs-theme-bootstrap-italia .vjs-big-play-button, .vjs-theme-bootstrap-italia:hover .vjs-big-play-button, .vjs-theme-bootstrap-italia.vjs-big-play-button:focus {
|
|
74009
|
-
background-color: var(--
|
|
74052
|
+
background-color: var(--bsi-videoplayer-button-background);
|
|
74010
74053
|
}
|
|
74011
74054
|
.vjs-theme-bootstrap-italia .vjs-control-bar {
|
|
74012
|
-
background-color: var(--
|
|
74055
|
+
background-color: var(--bsi-videoplayer-control-background);
|
|
74013
74056
|
font-size: 1rem;
|
|
74014
74057
|
}
|
|
74015
74058
|
@media (min-width: 992px) {
|
|
@@ -74057,18 +74100,21 @@ video::-webkit-media-text-track-display {
|
|
|
74057
74100
|
}
|
|
74058
74101
|
}
|
|
74059
74102
|
.acceptoverlay {
|
|
74060
|
-
--
|
|
74061
|
-
--
|
|
74062
|
-
--
|
|
74063
|
-
--
|
|
74064
|
-
--
|
|
74065
|
-
--
|
|
74066
|
-
--
|
|
74067
|
-
--
|
|
74068
|
-
--
|
|
74069
|
-
--
|
|
74070
|
-
--
|
|
74071
|
-
|
|
74103
|
+
--bsi-acceptoverlay-color-background: var(--bsi-color-background-inverse);
|
|
74104
|
+
--bsi-acceptoverlay-color-text: var(--bsi-color-text);
|
|
74105
|
+
--bsi-acceptoverlay-label-color: var(--bsi-color-text-secondary);
|
|
74106
|
+
--bsi-acceptoverlay-label-border-color: var(--bsi-color-border-subtle);
|
|
74107
|
+
--bsi-acceptoverlay-opacity: 0.9;
|
|
74108
|
+
--bsi-acceptoverlay-spacing-inset: var(--bsi-spacing-s);
|
|
74109
|
+
--bsi-acceptoverlay-primary-opacity: 0.95;
|
|
74110
|
+
--bsi-acceptoverlay-inner-width: 600px;
|
|
74111
|
+
--bsi-acceptoverlay-icon-spacing: var(--bsi-spacing-s);
|
|
74112
|
+
--bsi-acceptoverlay-icon-fill: var(--bsi-icon-primary);
|
|
74113
|
+
--bsi-acceptoverlay-buttons-spacing: var(--bsi-spacing-s);
|
|
74114
|
+
}
|
|
74115
|
+
|
|
74116
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
74117
|
+
.acceptoverlay {
|
|
74072
74118
|
position: absolute;
|
|
74073
74119
|
top: 0;
|
|
74074
74120
|
right: 0;
|
|
@@ -74079,13 +74125,13 @@ video::-webkit-media-text-track-display {
|
|
|
74079
74125
|
flex-wrap: wrap;
|
|
74080
74126
|
align-items: flex-start;
|
|
74081
74127
|
justify-content: center;
|
|
74082
|
-
padding: var(--
|
|
74083
|
-
opacity: var(--
|
|
74084
|
-
background-color: var(--
|
|
74128
|
+
padding: var(--bsi-acceptoverlay-spacing-inset);
|
|
74129
|
+
opacity: var(--bsi-acceptoverlay-opacity);
|
|
74130
|
+
background-color: var(--bsi-acceptoverlay-background-color);
|
|
74085
74131
|
}
|
|
74086
74132
|
@media (min-width: 768px) {
|
|
74087
74133
|
.acceptoverlay {
|
|
74088
|
-
--
|
|
74134
|
+
--bsi-acceptoverlay-spacing-inset: var(--bsi-spacing-m);
|
|
74089
74135
|
}
|
|
74090
74136
|
}
|
|
74091
74137
|
@media (min-width: 992px) {
|
|
@@ -74094,19 +74140,19 @@ video::-webkit-media-text-track-display {
|
|
|
74094
74140
|
}
|
|
74095
74141
|
}
|
|
74096
74142
|
.acceptoverlay label {
|
|
74097
|
-
color: var(--
|
|
74143
|
+
color: var(--bsi-acceptoverlay-label-color);
|
|
74098
74144
|
}
|
|
74099
74145
|
.acceptoverlay label::after {
|
|
74100
|
-
border-color: var(--
|
|
74146
|
+
border-color: var(--bsi-acceptoverlay-label-border-color) !important;
|
|
74101
74147
|
}
|
|
74102
74148
|
.acceptoverlay[aria-hidden=true] {
|
|
74103
74149
|
display: none;
|
|
74104
74150
|
}
|
|
74105
74151
|
.acceptoverlay.acceptoverlay-primary {
|
|
74106
|
-
--
|
|
74152
|
+
--bsi-acceptoverlay-background-color: var(--bsi-color-background-primary);
|
|
74107
74153
|
}
|
|
74108
74154
|
.acceptoverlay.acceptoverlay-primary.show {
|
|
74109
|
-
opacity: var(--
|
|
74155
|
+
opacity: var(--bsi-acceptoverlay-primary-opacity);
|
|
74110
74156
|
}
|
|
74111
74157
|
.acceptoverlay h1,
|
|
74112
74158
|
.acceptoverlay h2,
|
|
@@ -74116,7 +74162,7 @@ video::-webkit-media-text-track-display {
|
|
|
74116
74162
|
.acceptoverlay h6,
|
|
74117
74163
|
.acceptoverlay p {
|
|
74118
74164
|
margin-bottom: 0;
|
|
74119
|
-
color: var(--
|
|
74165
|
+
color: var(--bsi-acceptoverlay-color-text);
|
|
74120
74166
|
}
|
|
74121
74167
|
.acceptoverlay h4 {
|
|
74122
74168
|
text-align: center;
|
|
@@ -74126,19 +74172,19 @@ video::-webkit-media-text-track-display {
|
|
|
74126
74172
|
}
|
|
74127
74173
|
.acceptoverlay .acceptoverlay-inner {
|
|
74128
74174
|
width: 100%;
|
|
74129
|
-
max-width: var(--
|
|
74175
|
+
max-width: var(--bsi-acceptoverlay-inner-width);
|
|
74130
74176
|
}
|
|
74131
74177
|
.acceptoverlay .acceptoverlay-icon {
|
|
74132
|
-
margin-bottom: var(--
|
|
74178
|
+
margin-bottom: var(--bsi-acceptoverlay-icon-spacing);
|
|
74133
74179
|
text-align: center;
|
|
74134
74180
|
}
|
|
74135
74181
|
@media (min-width: 768px) {
|
|
74136
74182
|
.acceptoverlay .acceptoverlay-icon {
|
|
74137
|
-
--
|
|
74183
|
+
--bsi-acceptoverlay-icon-margin-bottom: var(--bsi-spacing-xxl);
|
|
74138
74184
|
}
|
|
74139
74185
|
}
|
|
74140
74186
|
.acceptoverlay .acceptoverlay-icon .icon {
|
|
74141
|
-
fill: var(--
|
|
74187
|
+
fill: var(--bsi-acceptoverlay-icon-fill);
|
|
74142
74188
|
}
|
|
74143
74189
|
.acceptoverlay .acceptoverlay-buttons {
|
|
74144
74190
|
display: flex;
|
|
@@ -74146,14 +74192,14 @@ video::-webkit-media-text-track-display {
|
|
|
74146
74192
|
gap: 1rem;
|
|
74147
74193
|
flex-wrap: wrap;
|
|
74148
74194
|
justify-content: space-between;
|
|
74149
|
-
margin-top: var(--
|
|
74195
|
+
margin-top: var(--bsi-acceptoverlay-buttons-spacing);
|
|
74150
74196
|
background-color: transparent !important;
|
|
74151
74197
|
}
|
|
74152
74198
|
.acceptoverlay .acceptoverlay-buttons button {
|
|
74153
74199
|
width: 100%;
|
|
74154
74200
|
}
|
|
74155
74201
|
.acceptoverlay .acceptoverlay-buttons button:last-child {
|
|
74156
|
-
--
|
|
74202
|
+
--bsi-acceptoverlay-buttons-spacing: var(--bsi-spacing-xxs);
|
|
74157
74203
|
}
|
|
74158
74204
|
.acceptoverlay .acceptoverlay-buttons.single-button button {
|
|
74159
74205
|
margin-top: 0;
|
|
@@ -74168,7 +74214,7 @@ video::-webkit-media-text-track-display {
|
|
|
74168
74214
|
margin-top: 0 !important;
|
|
74169
74215
|
}
|
|
74170
74216
|
.acceptoverlay-buttons button:last-child {
|
|
74171
|
-
margin-left: var(--
|
|
74217
|
+
margin-left: var(--bsi-spacing-m);
|
|
74172
74218
|
}
|
|
74173
74219
|
.acceptoverlay-buttons.single-button button {
|
|
74174
74220
|
width: auto;
|
|
@@ -74188,25 +74234,25 @@ video::-webkit-media-text-track-display {
|
|
|
74188
74234
|
}
|
|
74189
74235
|
|
|
74190
74236
|
.acceptoverlay {
|
|
74191
|
-
--
|
|
74192
|
-
--
|
|
74193
|
-
--
|
|
74237
|
+
--bsi-acceptoverlay-color-text: #fff;
|
|
74238
|
+
--bsi-form-control-label-color: #fff;
|
|
74239
|
+
--bsi-form-checkbox-border-color: #fff;
|
|
74194
74240
|
}
|
|
74195
74241
|
.acceptoverlay a {
|
|
74196
|
-
color: var(--
|
|
74242
|
+
color: var(--bsi-acceptoverlay-color-text);
|
|
74197
74243
|
}
|
|
74198
74244
|
.acceptoverlay .bg-dark it-button::part(primary) {
|
|
74199
|
-
--
|
|
74200
|
-
--
|
|
74245
|
+
--bsi-btn-text-color: var(--bsi-color-background-primary);
|
|
74246
|
+
--bsi-btn-background: var(--bsi-color-background-inverse);
|
|
74201
74247
|
}
|
|
74202
74248
|
.acceptoverlay .bg-dark it-button::part(primary):hover {
|
|
74203
|
-
--
|
|
74249
|
+
--bsi-btn-text-color: var(--bsi-color-text);
|
|
74204
74250
|
}
|
|
74205
74251
|
.acceptoverlay .acceptoverlay-buttons it-button {
|
|
74206
74252
|
width: 100%;
|
|
74207
74253
|
}
|
|
74208
74254
|
.acceptoverlay .acceptoverlay-buttons it-button:last-child {
|
|
74209
|
-
--
|
|
74255
|
+
--bsi-acceptoverlay-buttons-spacing: var(--bsi-spacing-xxs);
|
|
74210
74256
|
}
|
|
74211
74257
|
@media (min-width: 768px) {
|
|
74212
74258
|
.acceptoverlay .acceptoverlay-buttons {
|
|
@@ -74216,7 +74262,7 @@ video::-webkit-media-text-track-display {
|
|
|
74216
74262
|
width: 50%;
|
|
74217
74263
|
}
|
|
74218
74264
|
.acceptoverlay .acceptoverlay-buttons it-button:last-child {
|
|
74219
|
-
margin-left: var(--
|
|
74265
|
+
margin-left: var(--bsi-spacing-m);
|
|
74220
74266
|
}
|
|
74221
74267
|
.acceptoverlay .acceptoverlay-buttons.single-button it-button {
|
|
74222
74268
|
width: auto;
|