@remotion/promo-pages 4.0.441 → 4.0.442

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 (27) hide show
  1. package/dist/Homepage.js +49 -16
  2. package/dist/design.js +1 -1
  3. package/dist/experts.js +1 -1
  4. package/dist/homepage/Pricing.js +1 -1
  5. package/dist/prompts/PromptsGallery.js +6 -5
  6. package/dist/prompts/PromptsShow.js +1 -1
  7. package/dist/prompts/PromptsSubmit.js +5 -5
  8. package/dist/team.js +1 -1
  9. package/dist/template-modal-content.js +1 -1
  10. package/dist/templates.js +1 -1
  11. package/package.json +13 -13
  12. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.css +0 -32
  13. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +0 -42625
  14. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +0 -20460
  15. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/experts/experts-data.js +0 -740
  16. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/experts.js +0 -8778
  17. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +0 -21875
  18. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsGallery.js +0 -20301
  19. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsShow.css +0 -2578
  20. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsShow.js +0 -40128
  21. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsSubmit.css +0 -2578
  22. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsSubmit.js +0 -40219
  23. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/prompt-types.js +0 -0
  24. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/team.js +0 -292
  25. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.css +0 -32
  26. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +0 -22044
  27. package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +0 -21305
package/dist/Homepage.js CHANGED
@@ -999,7 +999,7 @@ var useIsPlayer = () => {
999
999
  function truthy(value) {
1000
1000
  return Boolean(value);
1001
1001
  }
1002
- var VERSION = "4.0.441";
1002
+ var VERSION = "4.0.442";
1003
1003
  var checkMultipleRemotionVersions = () => {
1004
1004
  if (typeof globalThis === "undefined") {
1005
1005
  return;
@@ -23265,7 +23265,7 @@ var GitHubStars = () => {
23265
23265
  width: "45px"
23266
23266
  }),
23267
23267
  /* @__PURE__ */ jsx50(StatItemContent, {
23268
- content: "40k",
23268
+ content: "41k",
23269
23269
  width: "80px",
23270
23270
  fontSize: "2.5rem",
23271
23271
  fontWeight: "bold"
@@ -32865,6 +32865,23 @@ var AudioInner = (props) => {
32865
32865
  };
32866
32866
  var Audio2 = Internals.wrapInSchema(AudioInner, audioSchema);
32867
32867
  Internals.addSequenceStackTraces(Audio2);
32868
+ var OBJECT_FIT_CLASS_PATTERN = /\bobject-(contain|cover|fill|none|scale-down)\b/;
32869
+ var warnedStyle = false;
32870
+ var warnedClassName = false;
32871
+ var warnAboutObjectFitInStyleOrClassName = ({
32872
+ style: style2,
32873
+ className: className2,
32874
+ logLevel
32875
+ }) => {
32876
+ if (!warnedStyle && style2?.objectFit) {
32877
+ warnedStyle = true;
32878
+ Internals.Log.warn({ logLevel, tag: "@remotion/media" }, "Use the `objectFit` prop instead of the `style` prop.");
32879
+ }
32880
+ if (!warnedClassName && className2 && OBJECT_FIT_CLASS_PATTERN.test(className2)) {
32881
+ warnedClassName = true;
32882
+ Internals.Log.warn({ logLevel, tag: "@remotion/media" }, "Use the `objectFit` prop instead of `object-*` CSS class names.");
32883
+ }
32884
+ };
32868
32885
  var {
32869
32886
  useUnsafeVideoConfig: useUnsafeVideoConfig22,
32870
32887
  Timeline: Timeline2,
@@ -32902,7 +32919,8 @@ var VideoForPreviewAssertedShowing = ({
32902
32919
  headless,
32903
32920
  onError,
32904
32921
  credentials,
32905
- controls
32922
+ controls,
32923
+ objectFit: objectFitProp
32906
32924
  }) => {
32907
32925
  const src = usePreload22(unpreloadedSrc);
32908
32926
  const canvasRef = useRef212(null);
@@ -33099,6 +33117,7 @@ var VideoForPreviewAssertedShowing = ({
33099
33117
  onError,
33100
33118
  credentials
33101
33119
  ]);
33120
+ warnAboutObjectFitInStyleOrClassName({ style: style2, className: className2, logLevel });
33102
33121
  const classNameValue = useMemo412(() => {
33103
33122
  return [Internals.OBJECTFIT_CONTAIN_CLASS_NAME, className2].filter(Internals.truthy).join(" ");
33104
33123
  }, [className2]);
@@ -33144,9 +33163,10 @@ var VideoForPreviewAssertedShowing = ({
33144
33163
  const actualStyle = useMemo412(() => {
33145
33164
  return {
33146
33165
  ...style2,
33147
- opacity: isSequenceHidden ? 0 : style2?.opacity ?? 1
33166
+ opacity: isSequenceHidden ? 0 : style2?.opacity ?? 1,
33167
+ objectFit: objectFitProp
33148
33168
  };
33149
- }, [isSequenceHidden, style2]);
33169
+ }, [isSequenceHidden, objectFitProp, style2]);
33150
33170
  if (shouldFallbackToNativeVideo && !disallowFallbackToOffthreadVideo) {
33151
33171
  return /* @__PURE__ */ jsx410(Html5Video, {
33152
33172
  src,
@@ -33230,7 +33250,8 @@ var VideoForRendering2 = ({
33230
33250
  trimBeforeValue,
33231
33251
  headless,
33232
33252
  onError,
33233
- credentials
33253
+ credentials,
33254
+ objectFit: objectFitProp
33234
33255
  }) => {
33235
33256
  if (!src) {
33236
33257
  throw new TypeError("No `src` was passed to <Video>.");
@@ -33433,9 +33454,16 @@ var VideoForRendering2 = ({
33433
33454
  onError,
33434
33455
  credentials
33435
33456
  ]);
33457
+ warnAboutObjectFitInStyleOrClassName({ style: style2, className: className2, logLevel });
33436
33458
  const classNameValue = useMemo53(() => {
33437
33459
  return [Internals.OBJECTFIT_CONTAIN_CLASS_NAME, className2].filter(Internals.truthy).join(" ");
33438
33460
  }, [className2]);
33461
+ const styleWithObjectFit = useMemo53(() => {
33462
+ return {
33463
+ ...style2,
33464
+ objectFit: objectFitProp
33465
+ };
33466
+ }, [objectFitProp, style2]);
33439
33467
  if (replaceWithOffthreadVideo) {
33440
33468
  const fallback = /* @__PURE__ */ jsx59(Internals.InnerOffthreadVideo, {
33441
33469
  src,
@@ -33445,7 +33473,7 @@ var VideoForRendering2 = ({
33445
33473
  loopVolumeCurveBehavior: loopVolumeCurveBehavior ?? "repeat",
33446
33474
  delayRenderRetries: delayRenderRetries ?? undefined,
33447
33475
  delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMilliseconds ?? undefined,
33448
- style: style2,
33476
+ style: styleWithObjectFit,
33449
33477
  allowAmplificationDuringRender: true,
33450
33478
  transparent: fallbackOffthreadVideoProps?.transparent ?? true,
33451
33479
  toneMapped: fallbackOffthreadVideoProps?.toneMapped ?? true,
@@ -33493,7 +33521,7 @@ var VideoForRendering2 = ({
33493
33521
  }
33494
33522
  return /* @__PURE__ */ jsx59("canvas", {
33495
33523
  ref: canvasRef,
33496
- style: style2,
33524
+ style: styleWithObjectFit,
33497
33525
  className: classNameValue
33498
33526
  });
33499
33527
  };
@@ -33571,7 +33599,8 @@ var InnerVideo = ({
33571
33599
  headless,
33572
33600
  onError,
33573
33601
  credentials,
33574
- controls
33602
+ controls,
33603
+ objectFit
33575
33604
  }) => {
33576
33605
  const environment = useRemotionEnvironment();
33577
33606
  if (typeof src !== "string") {
@@ -33614,7 +33643,8 @@ var InnerVideo = ({
33614
33643
  trimBeforeValue,
33615
33644
  headless,
33616
33645
  onError,
33617
- credentials
33646
+ credentials,
33647
+ objectFit
33618
33648
  });
33619
33649
  }
33620
33650
  return /* @__PURE__ */ jsx65(VideoForPreview2, {
@@ -33641,7 +33671,8 @@ var InnerVideo = ({
33641
33671
  headless: headless ?? false,
33642
33672
  onError,
33643
33673
  credentials,
33644
- controls
33674
+ controls,
33675
+ objectFit
33645
33676
  });
33646
33677
  };
33647
33678
  var VideoInner = ({
@@ -33671,7 +33702,8 @@ var VideoInner = ({
33671
33702
  headless,
33672
33703
  onError,
33673
33704
  credentials,
33674
- controls
33705
+ controls,
33706
+ objectFit
33675
33707
  }) => {
33676
33708
  const fallbackLogLevel = Internals.useLogLevel();
33677
33709
  return /* @__PURE__ */ jsx65(InnerVideo, {
@@ -33701,7 +33733,8 @@ var VideoInner = ({
33701
33733
  headless: headless ?? false,
33702
33734
  onError,
33703
33735
  credentials,
33704
- controls
33736
+ controls,
33737
+ objectFit: objectFit ?? "contain"
33705
33738
  });
33706
33739
  };
33707
33740
  var Video = Internals.wrapInSchema(VideoInner, videoSchema);
@@ -35008,7 +35041,7 @@ import {
35008
35041
  import { BufferTarget, StreamTarget } from "mediabunny";
35009
35042
 
35010
35043
  // ../core/dist/esm/version.mjs
35011
- var VERSION2 = "4.0.441";
35044
+ var VERSION2 = "4.0.442";
35012
35045
 
35013
35046
  // ../web-renderer/dist/esm/index.mjs
35014
35047
  import { AudioSample, VideoSample } from "mediabunny";
@@ -40963,7 +40996,7 @@ var RealMP4Videos = () => {
40963
40996
  /* @__PURE__ */ jsxs48("p", {
40964
40997
  className: "leading-relaxed",
40965
40998
  children: [
40966
- "Render the video .mp4 or other formats. ",
40999
+ "Render the video as .mp4 or other formats. ",
40967
41000
  /* @__PURE__ */ jsx126("br", {}),
40968
41001
  "Locally, on the server or serverless."
40969
41002
  ]
@@ -42748,7 +42781,7 @@ var GithubButton = () => {
42748
42781
  " ",
42749
42782
  /* @__PURE__ */ jsx164("div", {
42750
42783
  className: "text-xs inline-block ml-2 leading-none mt-[3px] self-center",
42751
- children: "40k"
42784
+ children: "41k"
42752
42785
  })
42753
42786
  ]
42754
42787
  });
package/dist/design.js CHANGED
@@ -5973,7 +5973,7 @@ var useIsPlayer = () => {
5973
5973
  function truthy2(value) {
5974
5974
  return Boolean(value);
5975
5975
  }
5976
- var VERSION = "4.0.441";
5976
+ var VERSION = "4.0.442";
5977
5977
  var checkMultipleRemotionVersions = () => {
5978
5978
  if (typeof globalThis === "undefined") {
5979
5979
  return;
package/dist/experts.js CHANGED
@@ -999,7 +999,7 @@ var useIsPlayer = () => {
999
999
  function truthy(value) {
1000
1000
  return Boolean(value);
1001
1001
  }
1002
- var VERSION = "4.0.441";
1002
+ var VERSION = "4.0.442";
1003
1003
  var checkMultipleRemotionVersions = () => {
1004
1004
  if (typeof globalThis === "undefined") {
1005
1005
  return;
@@ -5973,7 +5973,7 @@ var useIsPlayer = () => {
5973
5973
  function truthy2(value) {
5974
5974
  return Boolean(value);
5975
5975
  }
5976
- var VERSION = "4.0.441";
5976
+ var VERSION = "4.0.442";
5977
5977
  var checkMultipleRemotionVersions = () => {
5978
5978
  if (typeof globalThis === "undefined") {
5979
5979
  return;
@@ -5973,7 +5973,7 @@ var useIsPlayer = () => {
5973
5973
  function truthy2(value) {
5974
5974
  return Boolean(value);
5975
5975
  }
5976
- var VERSION = "4.0.441";
5976
+ var VERSION = "4.0.442";
5977
5977
  var checkMultipleRemotionVersions = () => {
5978
5978
  if (typeof globalThis === "undefined") {
5979
5979
  return;
@@ -20263,19 +20263,20 @@ var PromptsGalleryPage = ({ promptSubmissions, currentPage, totalPages }) => {
20263
20263
  children: [
20264
20264
  /* @__PURE__ */ jsx40("h1", {
20265
20265
  className: "text-3xl font-brand font-black",
20266
- children: "Create a video with just a prompt"
20266
+ children: "Prompt Showcase"
20267
20267
  }),
20268
20268
  /* @__PURE__ */ jsxs8("p", {
20269
20269
  className: "font-brand text-muted-foreground mt-4 max-w-[700px]",
20270
20270
  children: [
20271
- "With",
20271
+ "See what the community has built using",
20272
20272
  " ",
20273
20273
  /* @__PURE__ */ jsx40("a", {
20274
20274
  href: "/docs/ai/skills",
20275
20275
  className: "underline hover:text-text underline-offset-4",
20276
20276
  children: "Remotion Skills"
20277
20277
  }),
20278
- ", you can create videos simply by giving a prompt to your coding agent, whether it's Claude Code, Codex, or OpenCode. Browse the gallery for inspiration!"
20278
+ " ",
20279
+ "and a coding agent like Claude Code, Codex, or OpenCode. Want to make your own?"
20279
20280
  ]
20280
20281
  })
20281
20282
  ]
@@ -20308,7 +20309,7 @@ var PromptsGalleryPage = ({ promptSubmissions, currentPage, totalPages }) => {
20308
20309
  /* @__PURE__ */ jsx40(Button, {
20309
20310
  href: "/prompts/submit",
20310
20311
  className: "font-brand rounded-full text-sm",
20311
- children: "Submit a prompt"
20312
+ children: "Share your video"
20312
20313
  })
20313
20314
  ]
20314
20315
  }),
@@ -23307,7 +23307,7 @@ var useIsPlayer = () => {
23307
23307
  function truthy2(value) {
23308
23308
  return Boolean(value);
23309
23309
  }
23310
- var VERSION = "4.0.441";
23310
+ var VERSION = "4.0.442";
23311
23311
  var checkMultipleRemotionVersions = () => {
23312
23312
  if (typeof globalThis === "undefined") {
23313
23313
  return;
@@ -23307,7 +23307,7 @@ var useIsPlayer = () => {
23307
23307
  function truthy2(value) {
23308
23308
  return Boolean(value);
23309
23309
  }
23310
- var VERSION = "4.0.441";
23310
+ var VERSION = "4.0.442";
23311
23311
  var checkMultipleRemotionVersions = () => {
23312
23312
  if (typeof globalThis === "undefined") {
23313
23313
  return;
@@ -39988,7 +39988,7 @@ var PromptsSubmitPage = () => {
39988
39988
  /* @__PURE__ */ jsx41("a", {
39989
39989
  href: "/prompts",
39990
39990
  className: "underline",
39991
- children: "prompts gallery"
39991
+ children: "prompts showcase"
39992
39992
  }),
39993
39993
  "."
39994
39994
  ]
@@ -40022,17 +40022,17 @@ var PromptsSubmitPage = () => {
40022
40022
  }),
40023
40023
  /* @__PURE__ */ jsx41("h1", {
40024
40024
  className: "text-3xl font-brand font-black",
40025
- children: "Submit a prompt"
40025
+ children: "Share your video"
40026
40026
  }),
40027
40027
  /* @__PURE__ */ jsxs9("p", {
40028
40028
  className: "text-muted-foreground text-sm font-brand",
40029
40029
  children: [
40030
- "Submit a prompt to be featured in the",
40030
+ "Share a video you made with Remotion to be featured in the",
40031
40031
  " ",
40032
40032
  /* @__PURE__ */ jsx41("a", {
40033
40033
  href: "/prompts",
40034
40034
  className: "underline hover:text-text underline-offset-4",
40035
- children: "prompt gallery."
40035
+ children: "Prompt Showcase."
40036
40036
  })
40037
40037
  ]
40038
40038
  }),
package/dist/team.js CHANGED
@@ -6154,7 +6154,7 @@ var useIsPlayer = () => {
6154
6154
  function truthy2(value) {
6155
6155
  return Boolean(value);
6156
6156
  }
6157
- var VERSION = "4.0.441";
6157
+ var VERSION = "4.0.442";
6158
6158
  var checkMultipleRemotionVersions = () => {
6159
6159
  if (typeof globalThis === "undefined") {
6160
6160
  return;
@@ -5973,7 +5973,7 @@ var useIsPlayer = () => {
5973
5973
  function truthy2(value) {
5974
5974
  return Boolean(value);
5975
5975
  }
5976
- var VERSION = "4.0.441";
5976
+ var VERSION = "4.0.442";
5977
5977
  var checkMultipleRemotionVersions = () => {
5978
5978
  if (typeof globalThis === "undefined") {
5979
5979
  return;
package/dist/templates.js CHANGED
@@ -5973,7 +5973,7 @@ var useIsPlayer = () => {
5973
5973
  function truthy2(value) {
5974
5974
  return Boolean(value);
5975
5975
  }
5976
- var VERSION = "4.0.441";
5976
+ var VERSION = "4.0.442";
5977
5977
  var checkMultipleRemotionVersions = () => {
5978
5978
  if (typeof globalThis === "undefined") {
5979
5979
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.441",
3
+ "version": "4.0.442",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,19 +11,19 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.441",
15
- "@remotion/design": "4.0.441",
16
- "@remotion/web-renderer": "4.0.441",
17
- "@remotion/lottie": "4.0.441",
18
- "@remotion/paths": "4.0.441",
19
- "@remotion/player": "4.0.441",
20
- "@remotion/shapes": "4.0.441",
21
- "@remotion/media": "4.0.441",
22
- "@remotion/svg-3d-engine": "4.0.441",
23
- "create-video": "4.0.441",
14
+ "@remotion/animated-emoji": "4.0.442",
15
+ "@remotion/design": "4.0.442",
16
+ "@remotion/web-renderer": "4.0.442",
17
+ "@remotion/lottie": "4.0.442",
18
+ "@remotion/paths": "4.0.442",
19
+ "@remotion/player": "4.0.442",
20
+ "@remotion/shapes": "4.0.442",
21
+ "@remotion/media": "4.0.442",
22
+ "@remotion/svg-3d-engine": "4.0.442",
23
+ "create-video": "4.0.442",
24
24
  "hls.js": "1.5.19",
25
25
  "polished": "4.3.1",
26
- "remotion": "4.0.441",
26
+ "remotion": "4.0.442",
27
27
  "zod": "4.3.6",
28
28
  "@mux/upchunk": "^3.5.0",
29
29
  "@vidstack/react": "1.12.13",
@@ -34,7 +34,7 @@
34
34
  "@mediabunny/mp3-encoder": "1.39.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@remotion/eslint-config-internal": "4.0.441",
37
+ "@remotion/eslint-config-internal": "4.0.442",
38
38
  "@eslint/eslintrc": "3.1.0",
39
39
  "@types/react": "19.2.7",
40
40
  "@types/react-dom": "19.2.3",
@@ -1,32 +0,0 @@
1
- /* src/components/homepage/video-player.css */
2
- :global(:root) {
3
- --plyr-color-main: #1b1b1b;
4
- --plyr-range-fill-background: #ccc;
5
- }
6
-
7
- :global(.plyr__controls button) {
8
- cursor: pointer;
9
- }
10
-
11
- :global(.plyr__controls input) {
12
- cursor: pointer;
13
- }
14
-
15
- .video-container {
16
- border-radius: 30px;
17
- margin-top: 40px;
18
- margin-bottom: 40px;
19
- }
20
-
21
- :global(.plyr:fullscreen video) {
22
- max-width: initial;
23
- max-height: initial;
24
- width: 100%;
25
- height: 100%;
26
- }
27
-
28
- video {
29
- display: block;
30
- cursor: pointer;
31
- max-width: 100%;
32
- }