@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.
Files changed (92) hide show
  1. package/README.md +2 -0
  2. package/dist/cast-button.js +2 -3
  3. package/dist/cast-button.js.map +1 -1
  4. package/dist/cast-screen.d.ts.map +1 -1
  5. package/dist/cast-screen.js +5 -6
  6. package/dist/cast-screen.js.map +1 -1
  7. package/dist/cast.js +1 -2
  8. package/dist/cdn/mattebox-player-cast.min.js +1 -1
  9. package/dist/component.d.ts +6 -0
  10. package/dist/component.d.ts.map +1 -1
  11. package/dist/component.js +11 -2
  12. package/dist/component.js.map +1 -1
  13. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.js +1 -2
  14. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/objectSpread2.js +1 -2
  15. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.js +1 -2
  16. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.js +1 -2
  17. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.js +1 -2
  18. package/dist/es2015/cast-button.js +3 -4
  19. package/dist/es2015/cast-screen.js +6 -7
  20. package/dist/es2015/cast.js +2 -3
  21. package/dist/es2015/component.js +12 -2
  22. package/dist/es2015/host.js +1 -2
  23. package/dist/es2015/icons.js +1 -2
  24. package/dist/es2015/index.js +1 -2
  25. package/dist/es2015/locales/ar.js +7 -0
  26. package/dist/es2015/locales/ca.js +7 -0
  27. package/dist/es2015/locales/de.js +7 -0
  28. package/dist/es2015/locales/es.js +7 -0
  29. package/dist/es2015/locales/fr.js +7 -0
  30. package/dist/es2015/locales/hi.js +7 -0
  31. package/dist/es2015/locales/it.js +7 -0
  32. package/dist/es2015/locales/ja.js +7 -0
  33. package/dist/es2015/locales/ko.js +7 -0
  34. package/dist/es2015/locales/pt.js +7 -0
  35. package/dist/es2015/locales/zh.js +7 -0
  36. package/dist/es2015/shared.js +1 -2
  37. package/dist/es2015/slider.js +1 -2
  38. package/dist/host.js +1 -2
  39. package/dist/icons.js +1 -2
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +1 -2
  43. package/dist/index.js.map +1 -1
  44. package/dist/locales/ar.d.ts +7 -0
  45. package/dist/locales/ar.d.ts.map +1 -0
  46. package/dist/locales/ar.js +9 -0
  47. package/dist/locales/ar.js.map +1 -0
  48. package/dist/locales/ca.d.ts +7 -0
  49. package/dist/locales/ca.d.ts.map +1 -0
  50. package/dist/locales/ca.js +9 -0
  51. package/dist/locales/ca.js.map +1 -0
  52. package/dist/locales/de.d.ts +7 -0
  53. package/dist/locales/de.d.ts.map +1 -0
  54. package/dist/locales/de.js +9 -0
  55. package/dist/locales/de.js.map +1 -0
  56. package/dist/locales/es.d.ts +7 -0
  57. package/dist/locales/es.d.ts.map +1 -0
  58. package/dist/locales/es.js +9 -0
  59. package/dist/locales/es.js.map +1 -0
  60. package/dist/locales/fr.d.ts +7 -0
  61. package/dist/locales/fr.d.ts.map +1 -0
  62. package/dist/locales/fr.js +9 -0
  63. package/dist/locales/fr.js.map +1 -0
  64. package/dist/locales/hi.d.ts +7 -0
  65. package/dist/locales/hi.d.ts.map +1 -0
  66. package/dist/locales/hi.js +9 -0
  67. package/dist/locales/hi.js.map +1 -0
  68. package/dist/locales/it.d.ts +7 -0
  69. package/dist/locales/it.d.ts.map +1 -0
  70. package/dist/locales/it.js +9 -0
  71. package/dist/locales/it.js.map +1 -0
  72. package/dist/locales/ja.d.ts +7 -0
  73. package/dist/locales/ja.d.ts.map +1 -0
  74. package/dist/locales/ja.js +9 -0
  75. package/dist/locales/ja.js.map +1 -0
  76. package/dist/locales/ko.d.ts +7 -0
  77. package/dist/locales/ko.d.ts.map +1 -0
  78. package/dist/locales/ko.js +9 -0
  79. package/dist/locales/ko.js.map +1 -0
  80. package/dist/locales/pt.d.ts +7 -0
  81. package/dist/locales/pt.d.ts.map +1 -0
  82. package/dist/locales/pt.js +9 -0
  83. package/dist/locales/pt.js.map +1 -0
  84. package/dist/locales/zh.d.ts +7 -0
  85. package/dist/locales/zh.d.ts.map +1 -0
  86. package/dist/locales/zh.js +9 -0
  87. package/dist/locales/zh.js.map +1 -0
  88. package/dist/messages.d.ts +19 -0
  89. package/dist/messages.d.ts.map +1 -0
  90. package/dist/shared.js +1 -2
  91. package/dist/slider.js +1 -2
  92. package/package.json +9 -4
@@ -0,0 +1,7 @@
1
+ // src/locales/fr.ts
2
+ var fr_default = {
3
+ castStart: "Diffuser sur la télé",
4
+ castStop: "Arrêter la diffusion",
5
+ castingTo: "Diffusion sur {device}"
6
+ };
7
+ export { fr_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/hi.ts
2
+ var hi_default = {
3
+ castStart: "टीवी पर कास्ट करें",
4
+ castStop: "कास्ट बंद करें",
5
+ castingTo: "{device} पर कास्ट हो रहा है"
6
+ };
7
+ export { hi_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/it.ts
2
+ var it_default = {
3
+ castStart: "Trasmetti alla TV",
4
+ castStop: "Interrompi la trasmissione",
5
+ castingTo: "Trasmissione su {device}"
6
+ };
7
+ export { it_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/ja.ts
2
+ var ja_default = {
3
+ castStart: "テレビにキャスト",
4
+ castStop: "キャストを停止",
5
+ castingTo: "{device} にキャスト中"
6
+ };
7
+ export { ja_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/ko.ts
2
+ var ko_default = {
3
+ castStart: "TV로 전송",
4
+ castStop: "전송 중지",
5
+ castingTo: "{device}에 전송 중"
6
+ };
7
+ export { ko_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/pt.ts
2
+ var pt_default = {
3
+ castStart: "Transmitir para a TV",
4
+ castStop: "Parar a transmissão",
5
+ castingTo: "A transmitir para {device}"
6
+ };
7
+ export { pt_default as default };
@@ -0,0 +1,7 @@
1
+ // src/locales/zh.ts
2
+ var zh_default = {
3
+ castStart: "投放到电视",
4
+ castStop: "停止投放",
5
+ castingTo: "正在投放到 {device}"
6
+ };
7
+ export { zh_default as default };
@@ -1,4 +1,4 @@
1
- //#region src/shared.ts
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 };
@@ -1,5 +1,5 @@
1
1
  import { el } from "./shared.js";
2
- //#region src/slider.ts
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
- //#region src/host.ts
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
- //#region src/icons.ts
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 {
@@ -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;AAEjD,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"}
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
- //#region src/index.ts
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":";;;;;;;;;;;;AAwBA,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"}
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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=ar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../src/locales/ar.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/ar.ts
2
+ var ar_default = {
3
+ castStart: "إرسال إلى التلفاز",
4
+ castStop: "إيقاف الإرسال",
5
+ castingTo: "الإرسال إلى {device}"
6
+ };
7
+ export { ar_default as default };
8
+
9
+ //# sourceMappingURL=ar.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=ca.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../src/locales/ca.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/ca.ts
2
+ var ca_default = {
3
+ castStart: "Envia a la tele",
4
+ castStop: "Atura l'enviament",
5
+ castingTo: "Enviant a {device}"
6
+ };
7
+ export { ca_default as default };
8
+
9
+ //# sourceMappingURL=ca.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=de.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../src/locales/de.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/de.ts
2
+ var de_default = {
3
+ castStart: "Auf den Fernseher streamen",
4
+ castStop: "Streaming beenden",
5
+ castingTo: "Wiedergabe auf {device}"
6
+ };
7
+ export { de_default as default };
8
+
9
+ //# sourceMappingURL=de.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/es.ts
2
+ var es_default = {
3
+ castStart: "Enviar a la tele",
4
+ castStop: "Detener el envío",
5
+ castingTo: "Enviando a {device}"
6
+ };
7
+ export { es_default as default };
8
+
9
+ //# sourceMappingURL=es.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=fr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/fr.ts
2
+ var fr_default = {
3
+ castStart: "Diffuser sur la télé",
4
+ castStop: "Arrêter la diffusion",
5
+ castingTo: "Diffusion sur {device}"
6
+ };
7
+ export { fr_default as default };
8
+
9
+ //# sourceMappingURL=fr.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=hi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../src/locales/hi.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/hi.ts
2
+ var hi_default = {
3
+ castStart: "टीवी पर कास्ट करें",
4
+ castStop: "कास्ट बंद करें",
5
+ castingTo: "{device} पर कास्ट हो रहा है"
6
+ };
7
+ export { hi_default as default };
8
+
9
+ //# sourceMappingURL=hi.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=it.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../src/locales/it.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/it.ts
2
+ var it_default = {
3
+ castStart: "Trasmetti alla TV",
4
+ castStop: "Interrompi la trasmissione",
5
+ castingTo: "Trasmissione su {device}"
6
+ };
7
+ export { it_default as default };
8
+
9
+ //# sourceMappingURL=it.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=ja.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../src/locales/ja.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/ja.ts
2
+ var ja_default = {
3
+ castStart: "テレビにキャスト",
4
+ castStop: "キャストを停止",
5
+ castingTo: "{device} にキャスト中"
6
+ };
7
+ export { ja_default as default };
8
+
9
+ //# sourceMappingURL=ja.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=ko.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../src/locales/ko.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/ko.ts
2
+ var ko_default = {
3
+ castStart: "TV로 전송",
4
+ castStop: "전송 중지",
5
+ castingTo: "{device}에 전송 중"
6
+ };
7
+ export { ko_default as default };
8
+
9
+ //# sourceMappingURL=ko.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=pt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../src/locales/pt.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/pt.ts
2
+ var pt_default = {
3
+ castStart: "Transmitir para a TV",
4
+ castStop: "Parar a transmissão",
5
+ castingTo: "A transmitir para {device}"
6
+ };
7
+ export { pt_default as default };
8
+
9
+ //# sourceMappingURL=pt.js.map
@@ -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,7 @@
1
+ declare const _default: {
2
+ castStart: string;
3
+ castStop: string;
4
+ castingTo: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=zh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../src/locales/zh.ts"],"names":[],"mappings":";;;;;AAMA,wBAIyB"}
@@ -0,0 +1,9 @@
1
+ // src/locales/zh.ts
2
+ var zh_default = {
3
+ castStart: "投放到电视",
4
+ castStop: "停止投放",
5
+ castingTo: "正在投放到 {device}"
6
+ };
7
+ export { zh_default as default };
8
+
9
+ //# sourceMappingURL=zh.js.map
@@ -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
- //#region src/shared.ts
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
- //#region src/slider.ts
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.5.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.7.0"
57
+ "@mattebox/player-core": "^0.9.0"
53
58
  },
54
59
  "peerDependencies": {
55
- "@mattebox/player": ">=0.11.0",
56
- "mattebox": "^0.16.0"
60
+ "@mattebox/player": ">=0.13.0",
61
+ "mattebox": "^0.17.0"
57
62
  }
58
63
  }