@remotion/studio 4.0.255 → 4.0.257
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/.turbo/turbo-make.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InstallPackageResponse
|
|
2
|
-
export declare const installPackages: (packageNames:
|
|
1
|
+
import type { InstallPackageResponse } from '@remotion/studio-shared';
|
|
2
|
+
export declare const installPackages: (packageNames: string[]) => Promise<InstallPackageResponse>;
|
|
@@ -52,32 +52,7 @@ const text = {
|
|
|
52
52
|
};
|
|
53
53
|
const InstallPackageModal = ({ packageManager }) => {
|
|
54
54
|
const [state, setState] = react_1.default.useState({ type: 'idle' });
|
|
55
|
-
const [map, setMap] = react_1.default.useState({
|
|
56
|
-
'@remotion/animated-emoji': false,
|
|
57
|
-
'@remotion/gif': false,
|
|
58
|
-
'@remotion/lottie': false,
|
|
59
|
-
'@remotion/media-utils': false,
|
|
60
|
-
'@remotion/animation-utils': false,
|
|
61
|
-
'@remotion/cloudrun': false,
|
|
62
|
-
'@remotion/google-fonts': false,
|
|
63
|
-
'@remotion/enable-scss': false,
|
|
64
|
-
'@remotion/lambda': false,
|
|
65
|
-
'@remotion/layout-utils': false,
|
|
66
|
-
'@remotion/media-parser': false,
|
|
67
|
-
'@remotion/motion-blur': false,
|
|
68
|
-
'@remotion/noise': false,
|
|
69
|
-
'@remotion/paths': false,
|
|
70
|
-
'@remotion/rive': false,
|
|
71
|
-
'@remotion/shapes': false,
|
|
72
|
-
'@remotion/skia': false,
|
|
73
|
-
'@remotion/studio': false,
|
|
74
|
-
'@remotion/tailwind': false,
|
|
75
|
-
'@remotion/three': false,
|
|
76
|
-
'@remotion/transitions': false,
|
|
77
|
-
'@remotion/zod-types': false,
|
|
78
|
-
'@remotion/captions': false,
|
|
79
|
-
'@remotion/openai-whisper': false,
|
|
80
|
-
});
|
|
55
|
+
const [map, setMap] = react_1.default.useState({});
|
|
81
56
|
const { previewServerState: ctx } = (0, react_1.useContext)(client_id_1.StudioServerConnectionCtx);
|
|
82
57
|
const selectedPackages = Object.keys(map).filter((pkg) => map[pkg]);
|
|
83
58
|
const onClick = (0, react_1.useCallback)(async () => {
|
|
@@ -118,11 +93,14 @@ const InstallPackageModal = ({ packageManager }) => {
|
|
|
118
93
|
enter.unregister();
|
|
119
94
|
};
|
|
120
95
|
}, [disabled, onClick, registerKeybinding]);
|
|
121
|
-
return ((0, jsx_runtime_1.jsxs)(DismissableModal_1.DismissableModal, { children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.ModalHeader, { title: "Install packages" }), (0, jsx_runtime_1.jsx)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: state.type === 'done' ? ((0, jsx_runtime_1.jsxs)("div", { style: text, children: ["Installed package", selectedPackages.length === 1 ? '' : 's', ' ', "successfully. Restart the server to complete."] })) : state.type === 'restarting' ? ((0, jsx_runtime_1.jsx)("div", { style: text, children: "Restarting the Studio server..." })) : state.type === 'installing' ? ((0, jsx_runtime_1.jsxs)("div", { style: text, children: ["Installing package", selectedPackages.length === 1 ? '' : 's', ". Check your terminal for progress."] })) : ((0, jsx_runtime_1.jsx)("div", { style: text, children: studio_shared_1.
|
|
96
|
+
return ((0, jsx_runtime_1.jsxs)(DismissableModal_1.DismissableModal, { children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.ModalHeader, { title: "Install packages" }), (0, jsx_runtime_1.jsx)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: state.type === 'done' ? ((0, jsx_runtime_1.jsxs)("div", { style: text, children: ["Installed package", selectedPackages.length === 1 ? '' : 's', ' ', "successfully. Restart the server to complete."] })) : state.type === 'restarting' ? ((0, jsx_runtime_1.jsx)("div", { style: text, children: "Restarting the Studio server..." })) : state.type === 'installing' ? ((0, jsx_runtime_1.jsxs)("div", { style: text, children: ["Installing package", selectedPackages.length === 1 ? '' : 's', ". Check your terminal for progress."] })) : ((0, jsx_runtime_1.jsx)("div", { style: text, children: Object.entries(studio_shared_1.installableMap)
|
|
97
|
+
.filter(([, install]) => install)
|
|
98
|
+
.map(([pkgShort]) => {
|
|
122
99
|
var _a, _b;
|
|
100
|
+
const pkg = pkgShort === 'core' ? 'remotion' : `@remotion/${pkgShort}`;
|
|
123
101
|
const isInstalled = (_b = (_a = window.remotion_installedPackages) === null || _a === void 0 ? void 0 : _a.includes(pkg)) !== null && _b !== void 0 ? _b : false;
|
|
124
|
-
const link = studio_shared_1.apiDocs[
|
|
125
|
-
const description = studio_shared_1.descriptions[
|
|
102
|
+
const link = studio_shared_1.apiDocs[pkgShort];
|
|
103
|
+
const description = studio_shared_1.descriptions[pkgShort];
|
|
126
104
|
if (!link) {
|
|
127
105
|
throw new Error('No link for ' + pkg);
|
|
128
106
|
}
|
package/dist/esm/internals.mjs
CHANGED
|
@@ -4886,7 +4886,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
4886
4886
|
/* @__PURE__ */ jsx47("style", {
|
|
4887
4887
|
type: "text/css",
|
|
4888
4888
|
children: `
|
|
4889
|
-
|
|
4889
|
+
@keyframes ${remotionSpinnerAnimation} {
|
|
4890
4890
|
0% {
|
|
4891
4891
|
opacity: 1;
|
|
4892
4892
|
}
|
|
@@ -4898,7 +4898,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
4898
4898
|
.${className} {
|
|
4899
4899
|
animation: ${remotionSpinnerAnimation} ${duration}s linear infinite;
|
|
4900
4900
|
}
|
|
4901
|
-
|
|
4901
|
+
`
|
|
4902
4902
|
}),
|
|
4903
4903
|
/* @__PURE__ */ jsx47("svg", {
|
|
4904
4904
|
style: style2,
|
|
@@ -19515,12 +19515,12 @@ var Inner4 = ({ s, windowWidth }) => {
|
|
|
19515
19515
|
width: premountWidth,
|
|
19516
19516
|
height: "100%",
|
|
19517
19517
|
background: `repeating-linear-gradient(
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19518
|
+
-45deg,
|
|
19519
|
+
transparent,
|
|
19520
|
+
transparent 2px,
|
|
19521
|
+
rgba(255, 255, 255, ${isPremounting ? 0.5 : 0.2}) 2px,
|
|
19522
|
+
rgba(255, 255, 255, ${isPremounting ? 0.5 : 0.2}) 4px
|
|
19523
|
+
)`,
|
|
19524
19524
|
position: "absolute"
|
|
19525
19525
|
}
|
|
19526
19526
|
}) : null,
|
|
@@ -19831,11 +19831,7 @@ var GlobalKeybindings = () => {
|
|
|
19831
19831
|
import { useContext as useContext78 } from "react";
|
|
19832
19832
|
|
|
19833
19833
|
// src/components/InstallPackage.tsx
|
|
19834
|
-
import {
|
|
19835
|
-
apiDocs,
|
|
19836
|
-
descriptions,
|
|
19837
|
-
listOfInstallableRemotionPackages
|
|
19838
|
-
} from "@remotion/studio-shared";
|
|
19834
|
+
import { apiDocs, descriptions, installableMap } from "@remotion/studio-shared";
|
|
19839
19835
|
import React137, { useCallback as useCallback94, useContext as useContext68, useEffect as useEffect62 } from "react";
|
|
19840
19836
|
import { VERSION as VERSION2 } from "remotion";
|
|
19841
19837
|
|
|
@@ -20033,32 +20029,7 @@ var text2 = {
|
|
|
20033
20029
|
};
|
|
20034
20030
|
var InstallPackageModal = ({ packageManager }) => {
|
|
20035
20031
|
const [state, setState] = React137.useState({ type: "idle" });
|
|
20036
|
-
const [map, setMap] = React137.useState({
|
|
20037
|
-
"@remotion/animated-emoji": false,
|
|
20038
|
-
"@remotion/gif": false,
|
|
20039
|
-
"@remotion/lottie": false,
|
|
20040
|
-
"@remotion/media-utils": false,
|
|
20041
|
-
"@remotion/animation-utils": false,
|
|
20042
|
-
"@remotion/cloudrun": false,
|
|
20043
|
-
"@remotion/google-fonts": false,
|
|
20044
|
-
"@remotion/enable-scss": false,
|
|
20045
|
-
"@remotion/lambda": false,
|
|
20046
|
-
"@remotion/layout-utils": false,
|
|
20047
|
-
"@remotion/media-parser": false,
|
|
20048
|
-
"@remotion/motion-blur": false,
|
|
20049
|
-
"@remotion/noise": false,
|
|
20050
|
-
"@remotion/paths": false,
|
|
20051
|
-
"@remotion/rive": false,
|
|
20052
|
-
"@remotion/shapes": false,
|
|
20053
|
-
"@remotion/skia": false,
|
|
20054
|
-
"@remotion/studio": false,
|
|
20055
|
-
"@remotion/tailwind": false,
|
|
20056
|
-
"@remotion/three": false,
|
|
20057
|
-
"@remotion/transitions": false,
|
|
20058
|
-
"@remotion/zod-types": false,
|
|
20059
|
-
"@remotion/captions": false,
|
|
20060
|
-
"@remotion/openai-whisper": false
|
|
20061
|
-
});
|
|
20032
|
+
const [map, setMap] = React137.useState({});
|
|
20062
20033
|
const { previewServerState: ctx } = useContext68(StudioServerConnectionCtx);
|
|
20063
20034
|
const selectedPackages = Object.keys(map).filter((pkg) => map[pkg]);
|
|
20064
20035
|
const onClick = useCallback94(async () => {
|
|
@@ -20125,10 +20096,11 @@ var InstallPackageModal = ({ packageManager }) => {
|
|
|
20125
20096
|
]
|
|
20126
20097
|
}) : /* @__PURE__ */ jsx198("div", {
|
|
20127
20098
|
style: text2,
|
|
20128
|
-
children:
|
|
20099
|
+
children: Object.entries(installableMap).filter(([, install]) => install).map(([pkgShort]) => {
|
|
20100
|
+
const pkg = pkgShort === "core" ? "remotion" : `@remotion/${pkgShort}`;
|
|
20129
20101
|
const isInstalled = window.remotion_installedPackages?.includes(pkg) ?? false;
|
|
20130
|
-
const link = apiDocs[
|
|
20131
|
-
const description = descriptions[
|
|
20102
|
+
const link = apiDocs[pkgShort];
|
|
20103
|
+
const description = descriptions[pkgShort];
|
|
20132
20104
|
if (!link) {
|
|
20133
20105
|
throw new Error("No link for " + pkg);
|
|
20134
20106
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.257",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"memfs": "3.4.3",
|
|
19
19
|
"source-map": "0.7.3",
|
|
20
20
|
"open": "^8.4.2",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/
|
|
23
|
-
"@remotion/
|
|
24
|
-
"@remotion/
|
|
25
|
-
"@remotion/
|
|
26
|
-
"@remotion/
|
|
21
|
+
"remotion": "4.0.257",
|
|
22
|
+
"@remotion/player": "4.0.257",
|
|
23
|
+
"@remotion/media-utils": "4.0.257",
|
|
24
|
+
"@remotion/renderer": "4.0.257",
|
|
25
|
+
"@remotion/studio-shared": "4.0.257",
|
|
26
|
+
"@remotion/media-parser": "4.0.257"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"react": "19.0.0",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@types/semver": "^7.3.4",
|
|
32
32
|
"zod": "3.22.3",
|
|
33
33
|
"eslint": "9.14.0",
|
|
34
|
-
"@remotion/zod-types": "4.0.
|
|
35
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/zod-types": "4.0.257",
|
|
35
|
+
"@remotion/eslint-config-internal": "4.0.257"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|