@remotion/animation-utils 4.0.142 → 4.0.143

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.
@@ -1,4 +1,5 @@
1
- import { Internals, interpolateColors, interpolate } from 'remotion';
1
+ import { interpolateColors, interpolate } from 'remotion';
2
+ import { NoReactInternals } from 'remotion/no-react';
2
3
 
3
4
  const NUMBER = '[-+]?\\d*\\.?\\d+';
4
5
  const PERCENTAGE = NUMBER + '%';
@@ -92,7 +93,7 @@ const classifyArgsOfFunction = (value) => {
92
93
  };
93
94
  const isColorValue = (value) => {
94
95
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
95
- if (Object.keys(Internals.colorNames).includes(value)) {
96
+ if (Object.keys(NoReactInternals.colorNames).includes(value)) {
96
97
  return true;
97
98
  }
98
99
  const matchers = getColorMatchers();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getColorMatchers = exports.breakDownValueIntoUnitNumberAndFunctions = void 0;
4
- const remotion_1 = require("remotion");
4
+ const no_react_1 = require("remotion/no-react");
5
5
  const constants_1 = require("./constants");
6
6
  function call(...args) {
7
7
  return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)';
@@ -93,7 +93,7 @@ const classifyArgsOfFunction = (value) => {
93
93
  };
94
94
  const isColorValue = (value) => {
95
95
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
96
- if (Object.keys(remotion_1.Internals.colorNames).includes(value)) {
96
+ if (Object.keys(no_react_1.NoReactInternals.colorNames).includes(value)) {
97
97
  return true;
98
98
  }
99
99
  const matchers = getColorMatchers();
package/package.json CHANGED
@@ -4,13 +4,13 @@
4
4
  "name": "Chetan Karwa",
5
5
  "email": "cbkarwa@gmail.com"
6
6
  },
7
- "version": "4.0.142",
7
+ "version": "4.0.143",
8
8
  "description": "A set of animation utilities for Remotion",
9
9
  "main": "./dist/index.js",
10
10
  "module": "./dist/index.mjs",
11
11
  "types": "./dist/index.d.ts",
12
12
  "dependencies": {
13
- "remotion": "4.0.142"
13
+ "remotion": "4.0.143"
14
14
  },
15
15
  "files": [
16
16
  "dist",
@@ -48,7 +48,6 @@
48
48
  "animation-utils"
49
49
  ],
50
50
  "scripts": {
51
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
52
51
  "formatting": "prettier src --check",
53
52
  "lint": "eslint src --ext ts,tsx",
54
53
  "watch": "tsc -w",