@remotion/studio 4.0.165 → 4.0.166
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-build.log +1 -1
- package/.turbo/turbo-test.log +85 -0
- package/dist/api/focus-default-props-path.d.ts +7 -0
- package/dist/api/focus-default-props-path.js +22 -0
- package/dist/components/CompositionContextButton.d.ts +6 -0
- package/dist/components/CompositionContextButton.js +27 -0
- package/dist/components/CompositionSelector.js +18 -18
- package/dist/components/CompositionSelectorItem.d.ts +6 -6
- package/dist/components/CompositionSelectorItem.js +2 -1
- package/dist/components/ContextMenu.d.ts +2 -2
- package/dist/components/GlobalPropsEditorUpdateButton.d.ts +5 -0
- package/dist/components/GlobalPropsEditorUpdateButton.js +59 -0
- package/dist/components/InlineAction.d.ts +7 -6
- package/dist/components/InlineAction.js +1 -1
- package/dist/components/InlineDropdown.d.ts +5 -0
- package/dist/components/InlineDropdown.js +85 -0
- package/dist/components/NewComposition/RemInput.d.ts +1 -1
- package/dist/components/OptionsPanel.js +3 -20
- package/dist/components/RenderModal/SchemaEditor/SchemaEditor.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +2 -1
- package/dist/components/RenderModal/SchemaEditor/scroll-to-default-props-path.d.ts +4 -0
- package/dist/components/RenderModal/SchemaEditor/scroll-to-default-props-path.js +10 -0
- package/dist/components/RendersTab.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +6 -6
- package/dist/components/Tabs/index.js +1 -1
- package/dist/esm/index.mjs +29 -0
- package/dist/esm/internals.mjs +4503 -4239
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/create-folder-tree.js +8 -2
- package/dist/helpers/inject-css.js +6 -0
- package/dist/helpers/persist-open-folders.d.ts +4 -1
- package/dist/helpers/persist-open-folders.js +1 -1
- package/dist/icons/ellipsis.d.ts +5 -0
- package/dist/icons/ellipsis.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -4249,6 +4249,34 @@ var deleteStaticFile = async (relativePath) => {
|
|
|
4249
4249
|
return res;
|
|
4250
4250
|
};
|
|
4251
4251
|
|
|
4252
|
+
// src/components/RenderModal/SchemaEditor/scroll-to-default-props-path.ts
|
|
4253
|
+
import React from "react";
|
|
4254
|
+
var DEFAULT_PROPS_PATH_CLASSNAME = "__remotion-default-props-editor-label";
|
|
4255
|
+
var DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME = "__remotion-default-props-editor-label-active";
|
|
4256
|
+
var defaultPropsEditorScrollableAreaRef = React.createRef();
|
|
4257
|
+
|
|
4258
|
+
// src/api/focus-default-props-path.ts
|
|
4259
|
+
var focusDefaultPropsPath = ({
|
|
4260
|
+
path,
|
|
4261
|
+
scrollBehavior
|
|
4262
|
+
}) => {
|
|
4263
|
+
const currentlyActive = document.querySelector(`.${DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME}`);
|
|
4264
|
+
if (currentlyActive !== null) {
|
|
4265
|
+
currentlyActive.classList.remove(DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME);
|
|
4266
|
+
}
|
|
4267
|
+
const query = document.querySelector(`.${DEFAULT_PROPS_PATH_CLASSNAME}[data-json-path="${path.join(".")}"]`);
|
|
4268
|
+
if (query === null) {
|
|
4269
|
+
return {
|
|
4270
|
+
success: false
|
|
4271
|
+
};
|
|
4272
|
+
}
|
|
4273
|
+
query.scrollIntoView({ behavior: scrollBehavior });
|
|
4274
|
+
query.classList.add(DEFAULT_PROPS_PATH_ACTIVE_CLASSNAME);
|
|
4275
|
+
return {
|
|
4276
|
+
success: true
|
|
4277
|
+
};
|
|
4278
|
+
};
|
|
4279
|
+
|
|
4252
4280
|
// src/api/get-static-files.ts
|
|
4253
4281
|
var warnedServer = false;
|
|
4254
4282
|
var warnedPlayer = false;
|
|
@@ -4562,5 +4590,6 @@ export {
|
|
|
4562
4590
|
saveDefaultProps,
|
|
4563
4591
|
restartStudio,
|
|
4564
4592
|
getStaticFiles,
|
|
4593
|
+
focusDefaultPropsPath,
|
|
4565
4594
|
deleteStaticFile
|
|
4566
4595
|
};
|