@multiplatform.one/components 7.31.0 → 7.32.0

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": "@multiplatform.one/components",
3
- "version": "7.31.0",
3
+ "version": "7.32.0",
4
4
  "description": "multiplatform.one ui components",
5
5
  "keywords": [
6
6
  "components",
@@ -57,11 +57,11 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@floating-ui/react": "^0.27.19",
60
- "@multiplatform.one/forms": "7.31.0",
61
- "@multiplatform.one/i18n": "7.31.0",
62
- "@multiplatform.one/platform": "7.31.0",
63
- "@multiplatform.one/router": "7.31.0",
64
- "@multiplatform.one/theme": "7.31.0",
60
+ "@multiplatform.one/forms": "7.32.0",
61
+ "@multiplatform.one/i18n": "7.32.0",
62
+ "@multiplatform.one/platform": "7.32.0",
63
+ "@multiplatform.one/router": "7.32.0",
64
+ "@multiplatform.one/theme": "7.32.0",
65
65
  "@phosphor-icons/react": "^2.1.10",
66
66
  "@shopify/flash-list": "^2.3.1",
67
67
  "@tamagui/colors": "2.7.6",
@@ -87,9 +87,9 @@
87
87
  "tamagui": "2.7.6"
88
88
  },
89
89
  "devDependencies": {
90
- "@multiplatform.one/config": "7.31.0",
91
- "@multiplatform.one/storybook": "7.31.0",
92
- "@multiplatform.one/test-utils": "7.31.0",
90
+ "@multiplatform.one/config": "7.32.0",
91
+ "@multiplatform.one/storybook": "7.32.0",
92
+ "@multiplatform.one/test-utils": "7.32.0",
93
93
  "@tamagui/build": "2.7.6",
94
94
  "@testing-library/jest-dom": "^6.9.1",
95
95
  "@testing-library/react": "^16.3.2",
@@ -1,5 +1,6 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
2
2
  import { YStack } from "tamagui";
3
+ import { videoSample } from "../../tests/fixtures/videoSample";
3
4
  import { Video } from "./index";
4
5
 
5
6
  const meta: Meta<typeof Video> = {
@@ -29,13 +30,10 @@ export default meta;
29
30
 
30
31
  type Story = StoryObj<typeof Video>;
31
32
 
32
- /** Short public-domain sample (W3C / MDN). */
33
- const SAMPLE = "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4";
34
-
35
33
  export const Default: Story = {
36
34
  name: "Main",
37
35
  args: {
38
- src: SAMPLE,
36
+ src: videoSample.src,
39
37
  controls: true,
40
38
  title: "Flower",
41
39
  children: "MDN CC0 sample clip.",
@@ -44,7 +42,7 @@ export const Default: Story = {
44
42
 
45
43
  export const MutedLoop: Story = {
46
44
  args: {
47
- src: SAMPLE,
45
+ src: videoSample.src,
48
46
  muted: true,
49
47
  loop: true,
50
48
  autoPlay: true,
@@ -56,11 +54,7 @@ export const MutedLoop: Story = {
56
54
  export const WithPoster: Story = {
57
55
  render: () => (
58
56
  <YStack maxWidth={560}>
59
- <Video
60
- src={SAMPLE}
61
- poster="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.jpg"
62
- title="Flower with poster"
63
- >
57
+ <Video src={videoSample.src} poster={videoSample.poster} title="Flower with poster">
64
58
  Poster frame before play (HTML poster on web; image overlay until first frame on native).
65
59
  </Video>
66
60
  </YStack>