@mattebox/player-cast 0.5.0 → 0.6.1
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/README.md +2 -0
- package/dist/cast-button.js +2 -3
- package/dist/cast-button.js.map +1 -1
- package/dist/cast-screen.d.ts.map +1 -1
- package/dist/cast-screen.js +5 -6
- package/dist/cast-screen.js.map +1 -1
- package/dist/cast.js +1 -2
- package/dist/cdn/mattebox-player-cast.min.js +1 -1
- package/dist/component.d.ts +6 -0
- package/dist/component.d.ts.map +1 -1
- package/dist/component.js +11 -2
- package/dist/component.js.map +1 -1
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/objectSpread2.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.js +1 -2
- package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.js +1 -2
- package/dist/es2015/cast-button.js +3 -4
- package/dist/es2015/cast-screen.js +6 -7
- package/dist/es2015/cast.js +2 -3
- package/dist/es2015/component.js +12 -2
- package/dist/es2015/host.js +1 -2
- package/dist/es2015/icons.js +1 -2
- package/dist/es2015/index.js +1 -2
- package/dist/es2015/locales/ar.js +7 -0
- package/dist/es2015/locales/ca.js +7 -0
- package/dist/es2015/locales/de.js +7 -0
- package/dist/es2015/locales/es.js +7 -0
- package/dist/es2015/locales/fr.js +7 -0
- package/dist/es2015/locales/hi.js +7 -0
- package/dist/es2015/locales/it.js +7 -0
- package/dist/es2015/locales/ja.js +7 -0
- package/dist/es2015/locales/ko.js +7 -0
- package/dist/es2015/locales/pt.js +7 -0
- package/dist/es2015/locales/zh.js +7 -0
- package/dist/es2015/shared.js +1 -2
- package/dist/es2015/slider.js +1 -2
- package/dist/host.js +1 -2
- package/dist/icons.js +1 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.d.ts +7 -0
- package/dist/locales/ar.d.ts.map +1 -0
- package/dist/locales/ar.js +9 -0
- package/dist/locales/ar.js.map +1 -0
- package/dist/locales/ca.d.ts +7 -0
- package/dist/locales/ca.d.ts.map +1 -0
- package/dist/locales/ca.js +9 -0
- package/dist/locales/ca.js.map +1 -0
- package/dist/locales/de.d.ts +7 -0
- package/dist/locales/de.d.ts.map +1 -0
- package/dist/locales/de.js +9 -0
- package/dist/locales/de.js.map +1 -0
- package/dist/locales/es.d.ts +7 -0
- package/dist/locales/es.d.ts.map +1 -0
- package/dist/locales/es.js +9 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/locales/fr.d.ts +7 -0
- package/dist/locales/fr.d.ts.map +1 -0
- package/dist/locales/fr.js +9 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/hi.d.ts +7 -0
- package/dist/locales/hi.d.ts.map +1 -0
- package/dist/locales/hi.js +9 -0
- package/dist/locales/hi.js.map +1 -0
- package/dist/locales/it.d.ts +7 -0
- package/dist/locales/it.d.ts.map +1 -0
- package/dist/locales/it.js +9 -0
- package/dist/locales/it.js.map +1 -0
- package/dist/locales/ja.d.ts +7 -0
- package/dist/locales/ja.d.ts.map +1 -0
- package/dist/locales/ja.js +9 -0
- package/dist/locales/ja.js.map +1 -0
- package/dist/locales/ko.d.ts +7 -0
- package/dist/locales/ko.d.ts.map +1 -0
- package/dist/locales/ko.js +9 -0
- package/dist/locales/ko.js.map +1 -0
- package/dist/locales/pt.d.ts +7 -0
- package/dist/locales/pt.d.ts.map +1 -0
- package/dist/locales/pt.js +9 -0
- package/dist/locales/pt.js.map +1 -0
- package/dist/locales/zh.d.ts +7 -0
- package/dist/locales/zh.d.ts.map +1 -0
- package/dist/locales/zh.js +9 -0
- package/dist/locales/zh.js.map +1 -0
- package/dist/messages.d.ts +19 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/shared.js +1 -2
- package/dist/slider.js +1 -2
- package/package.json +9 -4
package/dist/es2015/shared.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shared.ts
|
|
2
2
|
/**
|
|
3
3
|
* The styles and helpers the two elements share, copied from the player:
|
|
4
4
|
* the button and slider styles, the glyph slots, the part helper, the label
|
|
@@ -66,5 +66,4 @@ function format(seconds) {
|
|
|
66
66
|
function describe(current, duration) {
|
|
67
67
|
return Number.isFinite(duration) ? `${format(current)} of ${format(duration)}` : format(current);
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { BUTTON_STYLE, SLIDER_STYLE, describe, el, fill, format, iconSlots, show, style };
|
package/dist/es2015/slider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { el } from "./shared.js";
|
|
2
|
-
|
|
2
|
+
// src/slider.ts
|
|
3
3
|
/**
|
|
4
4
|
* The slider primitive, copied from the player's, which exports none: a
|
|
5
5
|
* `div` with
|
|
@@ -150,5 +150,4 @@ function slider(options) {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
//#endregion
|
|
154
153
|
export { slider };
|
package/dist/host.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/host.ts
|
|
2
2
|
const PLAYER = "mattebox-player";
|
|
3
3
|
/** The parent, or the host of the shadow root `node` sits in, or null at the document. */
|
|
4
4
|
function above(node) {
|
|
@@ -15,7 +15,6 @@ function findPlayer(node) {
|
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { PLAYER, findPlayer };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=host.js.map
|
package/dist/icons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/icons.ts
|
|
2
2
|
/** Each glyph's subpaths joined into one `d`, drawn even-odd like the player's. */
|
|
3
3
|
const PATHS = {
|
|
4
4
|
play: "M9 5L26 16L9 27z",
|
|
@@ -19,7 +19,6 @@ function icon(name) {
|
|
|
19
19
|
svg.append(path);
|
|
20
20
|
return svg;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { icon };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=icons.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type { CastState, LicenseReply, LoadRequest as CastLoadRequest, MatteboxC
|
|
|
12
12
|
export { LICENSE_NAMESPACE } from './cast.js';
|
|
13
13
|
export { MbxCastButton } from './cast-button.js';
|
|
14
14
|
export { MbxCastScreen } from './cast-screen.js';
|
|
15
|
+
export type { CastMessages } from './messages.js';
|
|
15
16
|
export declare const CAST_BUTTON = "mbx-cast-button";
|
|
16
17
|
export declare const CAST_SCREEN = "mbx-cast-screen";
|
|
17
18
|
declare global {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,eAAe,EAC9B,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,WAAW,IAAI,eAAe,EAC9B,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAS7C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;QACjC,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LICENSE_NAMESPACE } from "./cast.js";
|
|
2
2
|
import { MbxCastButton } from "./cast-button.js";
|
|
3
3
|
import { MbxCastScreen } from "./cast-screen.js";
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* @mattebox/player-cast: <mbx-cast-button> and <mbx-cast-screen>, Chromecast
|
|
7
7
|
* from the player over Google's sender SDK. Importing this module registers
|
|
@@ -14,7 +14,6 @@ const CAST_BUTTON = "mbx-cast-button";
|
|
|
14
14
|
const CAST_SCREEN = "mbx-cast-screen";
|
|
15
15
|
if (customElements.get("mbx-cast-button") === void 0) customElements.define(CAST_BUTTON, MbxCastButton);
|
|
16
16
|
if (customElements.get("mbx-cast-screen") === void 0) customElements.define(CAST_SCREEN, MbxCastScreen);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { CAST_BUTTON, CAST_SCREEN, LICENSE_NAMESPACE, MbxCastButton, MbxCastScreen };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @mattebox/player-cast: <mbx-cast-button> and <mbx-cast-screen>, Chromecast\n * from the player over Google's sender SDK. Importing this module registers\n * both elements; that is the package's one side effect. It is a package of\n * its own because the button loads Google's script onto the page, which the\n * player never does on an integrator's behalf: the AirPlay button, over\n * Safari's own API, ships with the player.\n */\nimport { MbxCastButton } from './cast-button.js';\nimport { MbxCastScreen } from './cast-screen.js';\n\nexport type {\n CastState,\n LicenseReply,\n LoadRequest as CastLoadRequest,\n MatteboxCustomData,\n MediaInfo,\n Track,\n UnauthorizedDetail,\n} from './cast.js';\nexport { LICENSE_NAMESPACE } from './cast.js';\nexport { MbxCastButton } from './cast-button.js';\nexport { MbxCastScreen } from './cast-screen.js';\n\nexport const CAST_BUTTON = 'mbx-cast-button';\nexport const CAST_SCREEN = 'mbx-cast-screen';\n\nif (customElements.get(CAST_BUTTON) === undefined) {\n customElements.define(CAST_BUTTON, MbxCastButton);\n}\nif (customElements.get(CAST_SCREEN) === undefined) {\n customElements.define(CAST_SCREEN, MbxCastScreen);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'mbx-cast-button': MbxCastButton;\n 'mbx-cast-screen': MbxCastScreen;\n }\n}\n"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @mattebox/player-cast: <mbx-cast-button> and <mbx-cast-screen>, Chromecast\n * from the player over Google's sender SDK. Importing this module registers\n * both elements; that is the package's one side effect. It is a package of\n * its own because the button loads Google's script onto the page, which the\n * player never does on an integrator's behalf: the AirPlay button, over\n * Safari's own API, ships with the player.\n */\nimport { MbxCastButton } from './cast-button.js';\nimport { MbxCastScreen } from './cast-screen.js';\n\nexport type {\n CastState,\n LicenseReply,\n LoadRequest as CastLoadRequest,\n MatteboxCustomData,\n MediaInfo,\n Track,\n UnauthorizedDetail,\n} from './cast.js';\nexport { LICENSE_NAMESPACE } from './cast.js';\nexport { MbxCastButton } from './cast-button.js';\nexport { MbxCastScreen } from './cast-screen.js';\nexport type { CastMessages } from './messages.js';\n\nexport const CAST_BUTTON = 'mbx-cast-button';\nexport const CAST_SCREEN = 'mbx-cast-screen';\n\nif (customElements.get(CAST_BUTTON) === undefined) {\n customElements.define(CAST_BUTTON, MbxCastButton);\n}\nif (customElements.get(CAST_SCREEN) === undefined) {\n customElements.define(CAST_SCREEN, MbxCastScreen);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'mbx-cast-button': MbxCastButton;\n 'mbx-cast-screen': MbxCastScreen;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAyBA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAE3B,IAAI,eAAe,IAAA,iBAAe,MAAM,KAAA,GACtC,eAAe,OAAO,aAAa,aAAa;AAElD,IAAI,eAAe,IAAA,iBAAe,MAAM,KAAA,GACtC,eAAe,OAAO,aAAa,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/locales/ar.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ar.js","names":[],"sources":["../../src/locales/ar.ts"],"sourcesContent":["/**\n * Arabic words of the cast button and screen, for `MatteboxPlayerElement.addLocale('ar', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'إرسال إلى التلفاز',\n castStop: 'إيقاف الإرسال',\n castingTo: 'الإرسال إلى {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../src/locales/ca.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ca.js","names":[],"sources":["../../src/locales/ca.ts"],"sourcesContent":["/**\n * Catalan words of the cast button and screen, for `MatteboxPlayerElement.addLocale('ca', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Envia a la tele',\n castStop: \"Atura l'enviament\",\n castingTo: 'Enviant a {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../src/locales/de.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de.js","names":[],"sources":["../../src/locales/de.ts"],"sourcesContent":["/**\n * German words of the cast button and screen, for `MatteboxPlayerElement.addLocale('de', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Auf den Fernseher streamen',\n castStop: 'Streaming beenden',\n castingTo: 'Wiedergabe auf {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.js","names":[],"sources":["../../src/locales/es.ts"],"sourcesContent":["/**\n * Spanish words of the cast button and screen, for `MatteboxPlayerElement.addLocale('es', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Enviar a la tele',\n castStop: 'Detener el envío',\n castingTo: 'Enviando a {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.js","names":[],"sources":["../../src/locales/fr.ts"],"sourcesContent":["/**\n * French words of the cast button and screen, for `MatteboxPlayerElement.addLocale('fr', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Diffuser sur la télé',\n castStop: 'Arrêter la diffusion',\n castingTo: 'Diffusion sur {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../src/locales/hi.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hi.js","names":[],"sources":["../../src/locales/hi.ts"],"sourcesContent":["/**\n * Hindi words of the cast button and screen, for `MatteboxPlayerElement.addLocale('hi', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'टीवी पर कास्ट करें',\n castStop: 'कास्ट बंद करें',\n castingTo: '{device} पर कास्ट हो रहा है',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../src/locales/it.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it.js","names":[],"sources":["../../src/locales/it.ts"],"sourcesContent":["/**\n * Italian words of the cast button and screen, for `MatteboxPlayerElement.addLocale('it', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Trasmetti alla TV',\n castStop: 'Interrompi la trasmissione',\n castingTo: 'Trasmissione su {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../src/locales/ja.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.js","names":[],"sources":["../../src/locales/ja.ts"],"sourcesContent":["/**\n * Japanese words of the cast button and screen, for `MatteboxPlayerElement.addLocale('ja', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'テレビにキャスト',\n castStop: 'キャストを停止',\n castingTo: '{device} にキャスト中',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../src/locales/ko.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko.js","names":[],"sources":["../../src/locales/ko.ts"],"sourcesContent":["/**\n * Korean words of the cast button and screen, for `MatteboxPlayerElement.addLocale('ko', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'TV로 전송',\n castStop: '전송 중지',\n castingTo: '{device}에 전송 중',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../src/locales/pt.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt.js","names":[],"sources":["../../src/locales/pt.ts"],"sourcesContent":["/**\n * European Portuguese words of the cast button and screen, for `MatteboxPlayerElement.addLocale('pt', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: 'Transmitir para a TV',\n castStop: 'Parar a transmissão',\n castingTo: 'A transmitir para {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../src/locales/zh.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh.js","names":[],"sources":["../../src/locales/zh.ts"],"sourcesContent":["/**\n * Simplified Chinese words of the cast button and screen, for `MatteboxPlayerElement.addLocale('zh', …)`.\n * Machine-drafted, not yet reviewed by a native speaker.\n */\nimport type { CastMessages } from '../messages.js';\n\nexport default {\n castStart: '投放到电视',\n castStop: '停止投放',\n castingTo: '正在投放到 {device}',\n} satisfies CastMessages;\n"],"mappings":";AAMA,IAAA,aAAe;CACb,WAAW;CACX,UAAU;CACV,WAAW;AACb"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words of the cast elements, by id, merged into the player's
|
|
3
|
+
* `Messages` so one `addLocale` call carries them. The cast screen's play,
|
|
4
|
+
* pause and seek use the player's own `play`, `pause` and `seek`. Each id
|
|
5
|
+
* lists its English text, which the elements carry themselves. Type only.
|
|
6
|
+
*/
|
|
7
|
+
export interface CastMessages {
|
|
8
|
+
/** "Cast": the cast button. */
|
|
9
|
+
readonly castStart: string;
|
|
10
|
+
/** "Stop casting". */
|
|
11
|
+
readonly castStop: string;
|
|
12
|
+
/** "Casting to {device}": the cast screen's title. */
|
|
13
|
+
readonly castingTo: string;
|
|
14
|
+
}
|
|
15
|
+
declare module '@mattebox/player' {
|
|
16
|
+
interface Messages extends CastMessages {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sBAAsB;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,sDAAsD;IACtD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,QAAS,SAAQ,YAAY;KAAG;CAC3C"}
|
package/dist/shared.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shared.ts
|
|
2
2
|
/**
|
|
3
3
|
* The styles and helpers the two elements share, copied from the player:
|
|
4
4
|
* the button and slider styles, the glyph slots, the part helper, the label
|
|
@@ -66,7 +66,6 @@ function format(seconds) {
|
|
|
66
66
|
function describe(current, duration) {
|
|
67
67
|
return Number.isFinite(duration) ? `${format(current)} of ${format(duration)}` : format(current);
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { BUTTON_STYLE, SLIDER_STYLE, describe, el, fill, format, iconSlots, show, style };
|
|
71
70
|
|
|
72
71
|
//# sourceMappingURL=shared.js.map
|
package/dist/slider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { el } from "./shared.js";
|
|
2
|
-
|
|
2
|
+
// src/slider.ts
|
|
3
3
|
/**
|
|
4
4
|
* The slider primitive, copied from the player's, which exports none: a
|
|
5
5
|
* `div` with
|
|
@@ -150,7 +150,6 @@ function slider(options) {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
//#endregion
|
|
154
153
|
export { slider };
|
|
155
154
|
|
|
156
155
|
//# sourceMappingURL=slider.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattebox/player-cast",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "<mbx-cast-button> and <mbx-cast-screen>: Chromecast from <mattebox-player>, over Google's sender SDK.",
|
|
5
5
|
"author": "Josep Boix Requesens",
|
|
6
6
|
"repository": {
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
"modern": "./dist/index.js",
|
|
35
35
|
"default": "./dist/es2015/index.js"
|
|
36
36
|
},
|
|
37
|
+
"./locales/*": {
|
|
38
|
+
"types": "./dist/locales/*.d.ts",
|
|
39
|
+
"modern": "./dist/locales/*.js",
|
|
40
|
+
"default": "./dist/es2015/locales/*.js"
|
|
41
|
+
},
|
|
37
42
|
"./package.json": "./package.json"
|
|
38
43
|
},
|
|
39
44
|
"files": [
|
|
@@ -49,10 +54,10 @@
|
|
|
49
54
|
"release:ci": "semantic-release"
|
|
50
55
|
},
|
|
51
56
|
"devDependencies": {
|
|
52
|
-
"@mattebox/player-core": "^0.
|
|
57
|
+
"@mattebox/player-core": "^0.9.0"
|
|
53
58
|
},
|
|
54
59
|
"peerDependencies": {
|
|
55
|
-
"@mattebox/player": ">=0.
|
|
56
|
-
"mattebox": "^0.
|
|
60
|
+
"@mattebox/player": ">=0.13.0",
|
|
61
|
+
"mattebox": "^0.17.0"
|
|
57
62
|
}
|
|
58
63
|
}
|