@remotion/lambda 4.0.406 → 4.0.408

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.
@@ -21,6 +21,9 @@ type OptionalParameters = {
21
21
  publicDir?: string | null;
22
22
  rootDir?: string;
23
23
  bypassBucketNameValidation?: boolean;
24
+ keyboardShortcutsEnabled?: boolean;
25
+ askAIEnabled?: boolean;
26
+ experimentalClientSideRenderingEnabled?: boolean;
24
27
  };
25
28
  privacy: 'public' | 'no-acl';
26
29
  gitSource: GitSource | null;
@@ -50,6 +53,9 @@ export declare const internalDeploySite: (args_0: MandatoryParameters & {
50
53
  publicDir?: string | null;
51
54
  rootDir?: string;
52
55
  bypassBucketNameValidation?: boolean;
56
+ keyboardShortcutsEnabled?: boolean;
57
+ askAIEnabled?: boolean;
58
+ experimentalClientSideRenderingEnabled?: boolean;
53
59
  };
54
60
  privacy: "public" | "no-acl";
55
61
  gitSource: GitSource | null;
@@ -13,7 +13,7 @@ const full_client_implementation_1 = require("../functions/full-client-implement
13
13
  const get_s3_operations_1 = require("../shared/get-s3-operations");
14
14
  const validate_site_name_1 = require("../shared/validate-site-name");
15
15
  const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, providerSpecifics, forcePathStyle, fullClientSpecifics, requestHandler, }) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
17
  lambda_client_1.LambdaClientInternals.validateAwsRegion(region);
18
18
  (0, serverless_1.validateBucketName)({
19
19
  bucketName,
@@ -62,6 +62,11 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
62
62
  onPublicDirCopyProgress: () => undefined,
63
63
  onSymlinkDetected: () => undefined,
64
64
  outDir: null,
65
+ askAIEnabled: (_g = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _g !== void 0 ? _g : true,
66
+ audioLatencyHint: null,
67
+ experimentalClientSideRenderingEnabled: (_h = options === null || options === void 0 ? void 0 : options.experimentalClientSideRenderingEnabled) !== null && _h !== void 0 ? _h : false,
68
+ keyboardShortcutsEnabled: (_j = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _j !== void 0 ? _j : true,
69
+ renderDefaults: null,
65
70
  }),
66
71
  ]);
67
72
  if (throwIfSiteExists && files.length > 0) {
@@ -71,7 +76,7 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
71
76
  .map((f) => f.Key)
72
77
  .join(', '));
73
78
  }
74
- (_g = options.onDiffingProgress) === null || _g === void 0 ? void 0 : _g.call(options, 0, false);
79
+ (_k = options.onDiffingProgress) === null || _k === void 0 ? void 0 : _k.call(options, 0, false);
75
80
  let totalBytes = 0;
76
81
  const { toDelete, toUpload, existingCount } = await (0, get_s3_operations_1.getS3DiffOperations)({
77
82
  objects: files,
@@ -84,13 +89,13 @@ const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options,
84
89
  },
85
90
  fullClientSpecifics,
86
91
  });
87
- (_h = options.onDiffingProgress) === null || _h === void 0 ? void 0 : _h.call(options, totalBytes, true);
92
+ (_l = options.onDiffingProgress) === null || _l === void 0 ? void 0 : _l.call(options, totalBytes, true);
88
93
  await Promise.all([
89
94
  fullClientSpecifics.uploadDir({
90
95
  bucket: bucketName,
91
96
  region,
92
97
  localDir: bundled,
93
- onProgress: (_j = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _j !== void 0 ? _j : (() => undefined),
98
+ onProgress: (_m = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _m !== void 0 ? _m : (() => undefined),
94
99
  keyPrefix: subFolder,
95
100
  privacy: privacy !== null && privacy !== void 0 ? privacy : 'public',
96
101
  toUpload,
@@ -16,7 +16,7 @@ const progress_bar_1 = require("../../helpers/progress-bar");
16
16
  const quit_1 = require("../../helpers/quit");
17
17
  const log_1 = require("../../log");
18
18
  exports.SITES_CREATE_SUBCOMMAND = 'create';
19
- const { folderExpiryOption, publicDirOption, throwIfSiteExistsOption, disableGitSourceOption, } = client_1.BrowserSafeApis.options;
19
+ const { folderExpiryOption, publicDirOption, throwIfSiteExistsOption, disableGitSourceOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, } = client_1.BrowserSafeApis.options;
20
20
  const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation) => {
21
21
  var _a, _b, _c, _d, _e;
22
22
  const { file, reason } = cli_1.CliInternals.findEntryPoint({
@@ -106,6 +106,15 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
106
106
  disableGitSource,
107
107
  logLevel,
108
108
  });
109
+ const askAIEnabled = askAIOption.getValue({
110
+ commandLine: cli_1.CliInternals.parsedCli,
111
+ }).value;
112
+ const experimentalClientSideRenderingEnabled = experimentalClientSideRenderingOption.getValue({
113
+ commandLine: cli_1.CliInternals.parsedCli,
114
+ }).value;
115
+ const keyboardShortcutsEnabled = keyboardShortcutsOption.getValue({
116
+ commandLine: cli_1.CliInternals.parsedCli,
117
+ }).value;
109
118
  const { serveUrl, siteName, stats } = await internals_1.LambdaInternals.internalDeploySite({
110
119
  entryPoint: file,
111
120
  siteName: desiredSiteName !== null && desiredSiteName !== void 0 ? desiredSiteName : implementation.randomHash(),
@@ -146,6 +155,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementatio
146
155
  enableCaching: config_1.ConfigInternals.getWebpackCaching(),
147
156
  webpackOverride: (_c = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _c !== void 0 ? _c : ((f) => f),
148
157
  bypassBucketNameValidation: Boolean(args_1.parsedLambdaCli['force-bucket-name']),
158
+ askAIEnabled,
159
+ experimentalClientSideRenderingEnabled,
160
+ keyboardShortcutsEnabled,
149
161
  },
150
162
  region: (0, get_aws_region_1.getAwsRegion)(),
151
163
  privacy: (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : 'public',
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
8604
8604
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8605
  },
8606
8606
  name: "@remotion/lambda",
8607
- version: "4.0.406",
8607
+ version: "4.0.408",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -10198,7 +10198,12 @@ var mandatoryDeploySite = async ({
10198
10198
  onSymlinkDetected: () => {
10199
10199
  return;
10200
10200
  },
10201
- outDir: null
10201
+ outDir: null,
10202
+ askAIEnabled: options?.askAIEnabled ?? true,
10203
+ audioLatencyHint: null,
10204
+ experimentalClientSideRenderingEnabled: options?.experimentalClientSideRenderingEnabled ?? false,
10205
+ keyboardShortcutsEnabled: options?.keyboardShortcutsEnabled ?? true,
10206
+ renderDefaults: null
10202
10207
  })
10203
10208
  ]);
10204
10209
  if (throwIfSiteExists && files.length > 0) {
@@ -12113,7 +12118,10 @@ var {
12113
12118
  folderExpiryOption,
12114
12119
  publicDirOption,
12115
12120
  throwIfSiteExistsOption,
12116
- disableGitSourceOption
12121
+ disableGitSourceOption,
12122
+ askAIOption,
12123
+ experimentalClientSideRenderingOption,
12124
+ keyboardShortcutsOption
12117
12125
  } = BrowserSafeApis4.options;
12118
12126
  var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation) => {
12119
12127
  const { file, reason } = CliInternals16.findEntryPoint({
@@ -12201,6 +12209,15 @@ var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation)
12201
12209
  disableGitSource,
12202
12210
  logLevel
12203
12211
  });
12212
+ const askAIEnabled = askAIOption.getValue({
12213
+ commandLine: CliInternals16.parsedCli
12214
+ }).value;
12215
+ const experimentalClientSideRenderingEnabled = experimentalClientSideRenderingOption.getValue({
12216
+ commandLine: CliInternals16.parsedCli
12217
+ }).value;
12218
+ const keyboardShortcutsEnabled = keyboardShortcutsOption.getValue({
12219
+ commandLine: CliInternals16.parsedCli
12220
+ }).value;
12204
12221
  const { serveUrl, siteName, stats } = await LambdaInternals.internalDeploySite({
12205
12222
  entryPoint: file,
12206
12223
  siteName: desiredSiteName ?? implementation.randomHash(),
@@ -12240,7 +12257,10 @@ var sitesCreateSubcommand = async (args, remotionRoot, logLevel, implementation)
12240
12257
  },
12241
12258
  enableCaching: ConfigInternals2.getWebpackCaching(),
12242
12259
  webpackOverride: ConfigInternals2.getWebpackOverrideFn() ?? ((f) => f),
12243
- bypassBucketNameValidation: Boolean(parsedLambdaCli["force-bucket-name"])
12260
+ bypassBucketNameValidation: Boolean(parsedLambdaCli["force-bucket-name"]),
12261
+ askAIEnabled,
12262
+ experimentalClientSideRenderingEnabled,
12263
+ keyboardShortcutsEnabled
12244
12264
  },
12245
12265
  region: getAwsRegion(),
12246
12266
  privacy: parsedLambdaCli.privacy ?? "public",
@@ -16,6 +16,9 @@ export declare const LambdaInternals: {
16
16
  publicDir?: string | null;
17
17
  rootDir?: string;
18
18
  bypassBucketNameValidation?: boolean;
19
+ keyboardShortcutsEnabled?: boolean;
20
+ askAIEnabled?: boolean;
21
+ experimentalClientSideRenderingEnabled?: boolean;
19
22
  };
20
23
  privacy: "public" | "no-acl";
21
24
  gitSource: import("@remotion/bundler").GitSource | null;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.406",
6
+ "version": "4.0.408",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -28,22 +28,22 @@
28
28
  "@aws-sdk/client-cloudwatch-logs": "3.936.0",
29
29
  "@aws-sdk/client-service-quotas": "3.936.0",
30
30
  "@aws-sdk/lib-storage": "3.936.0",
31
- "@remotion/bundler": "4.0.406",
32
- "@remotion/cli": "4.0.406",
33
- "@remotion/lambda-client": "4.0.406",
34
- "@remotion/renderer": "4.0.406",
35
- "@remotion/serverless": "4.0.406",
36
- "@remotion/streaming": "4.0.406",
31
+ "@remotion/bundler": "4.0.408",
32
+ "@remotion/cli": "4.0.408",
33
+ "@remotion/lambda-client": "4.0.408",
34
+ "@remotion/renderer": "4.0.408",
35
+ "@remotion/serverless": "4.0.408",
36
+ "@remotion/streaming": "4.0.408",
37
37
  "@smithy/abort-controller": "4.0.1",
38
- "remotion": "4.0.406",
38
+ "remotion": "4.0.408",
39
39
  "zod": "3.22.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@remotion/bundler": "4.0.406",
42
+ "@remotion/bundler": "4.0.408",
43
43
  "@types/express": "^5.0.0",
44
44
  "express": "4.21.0",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.406",
46
- "@remotion/eslint-config-internal": "4.0.406",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.408",
46
+ "@remotion/eslint-config-internal": "4.0.408",
47
47
  "mime-types": "2.1.34",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
@@ -54,7 +54,7 @@
54
54
  "@types/node": "20.12.14"
55
55
  },
56
56
  "peerDependencies": {
57
- "@remotion/bundler": "4.0.406"
57
+ "@remotion/bundler": "4.0.408"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
Binary file