🎥 Make videos programmatically with React
updaet
Jonny Burgera6df201bdc50
diff --git a/packages/create-video/src/templates.tsx b/packages/create-video/src/templates.tsxindex a391dac846..06e3cd3c8f 100644--- a/packages/create-video/src/templates.tsx+++ b/packages/create-video/src/templates.tsx@@ -266,7 +266,7 @@ export const FEATURED_TEMPLATES: Template[] = [defaultBranch: 'master',featuredOnHomePage: null,previewURL: null,- templateInMonorepo: null,+ templateInMonorepo: 'template-tts-azure',allowEnableTailwind: false,},{diff --git a/packages/template-three/.prettierrc b/packages/template-three/.prettierrcnew file mode 100644index 0000000000..37d5071748--- /dev/null+++ b/packages/template-three/.prettierrc@@ -0,0 +1,5 @@+{+ "useTabs": false,+ "bracketSpacing": true,+ "tabWidth": 2+}diff --git a/packages/template-three/remotion.config.ts b/packages/template-three/remotion.config.tsindex 4bae5f2611..03e46df576 100644--- a/packages/template-three/remotion.config.ts+++ b/packages/template-three/remotion.config.ts@@ -5,7 +5,7 @@* All configuration options: https://remotion.dev/docs/config*/-import {Config} from '@remotion/cli/config';+import { Config } from "@remotion/cli/config";-Config.setChromiumOpenGlRenderer('angle');-Config.setVideoImageFormat('jpeg');+Config.setChromiumOpenGlRenderer("angle");+Config.setVideoImageFormat("jpeg");diff --git a/packages/template-three/tsconfig.json b/packages/template-three/tsconfig.jsonindex 0a292af5f2..bb881cc903 100644--- a/packages/template-three/tsconfig.json+++ b/packages/template-three/tsconfig.json@@ -1,15 +1,15 @@{- "compilerOptions": {- "target": "ES2018",- "module": "commonjs",- "jsx": "react-jsx",- "outDir": "./dist",- "strict": true,- "noEmit": true,- "lib": ["es2015"],- "esModuleInterop": true,- "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,- "noUnusedLocals": true- }+ "compilerOptions": {+ "target": "ES2018",+ "module": "commonjs",+ "jsx": "react-jsx",+ "outDir": "./dist",+ "strict": true,+ "noEmit": true,+ "lib": ["es2015"],+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "noUnusedLocals": true+ }}diff --git a/packages/template-tts-azure/.env.example b/packages/template-tts-azure/.env.examplenew file mode 100644index 0000000000..533193fea2--- /dev/null+++ b/packages/template-tts-azure/.env.example@@ -0,0 +1,6 @@+AWS_ACCESS_KEY_ID=+AWS_SECRET_ACCESS_KEY=+AWS_S3_BUCKET_NAME=+AWS_S3_REGION=+AZURE_TTS_KEY=+AZURE_TTS_REGION=eastusdiff --git a/packages/template-tts-azure/.eslintrc b/packages/template-tts-azure/.eslintrcnew file mode 100644index 0000000000..67f9fd93c1--- /dev/null+++ b/packages/template-tts-azure/.eslintrc@@ -0,0 +1,3 @@+{+ "extends": "@remotion",+}diff --git a/packages/template-tts-azure/.gitignore b/packages/template-tts-azure/.gitignorenew file mode 100644index 0000000000..caa1e51125--- /dev/null+++ b/packages/template-tts-azure/.gitignore@@ -0,0 +1,7 @@+node_modules+dist+.DS_Store++# Ignore the output video from Git but not videos you import into src/.+out+.envdiff --git a/packages/template-tts-azure/.prettierrc b/packages/template-tts-azure/.prettierrcnew file mode 100644index 0000000000..37d5071748--- /dev/null+++ b/packages/template-tts-azure/.prettierrc@@ -0,0 +1,5 @@+{+ "useTabs": false,+ "bracketSpacing": true,+ "tabWidth": 2+}diff --git a/packages/template-tts-azure/README.md b/packages/template-tts-azure/README.mdnew file mode 100644index 0000000000..fa10d1589c--- /dev/null+++ b/packages/template-tts-azure/README.md@@ -0,0 +1,96 @@+# Remotion video++<p align="center">+ <a href="https://github.com/remotion-dev/logo">+ <picture>+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-dark.gif">+ <img alt="Animated Remotion Logo" src="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-light.gif">+ </picture>+ </a>+</p>++Welcome to your TTS Remotion project!++## Get Started++- Create Azure Account+- Create TTS service on Azure, set `AZURE_TTS_KEY` and `AZURE_TTS_REGION`.+ > It may take some time until the subscription is active, in the meanwhile you might get "1006" errors even if the token is valid.+- Create AWS Account+- Setup S3 Bucket with public access+ - Configure bucket policy+ ```json+ {+ "Version": "2008-10-17",+ "Statement": [+ {+ "Sid": "AllowPublicRead",+ "Effect": "Allow",+ "Principal": {+ "AWS": "*"+ },+ "Action": "s3:GetObject",+ "Resource": "arn:aws:s3:::<YOUR-BUCKET-NAME>/*"+ }+ ]+ }+ ```+ - Configure bucket CORS+ - Use it only as a template, we recommend you to edit "AllowedOrigins" entering your origin+ ```json+ [+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["HEAD", "GET", "PUT", "POST", "DELETE"],+ "AllowedOrigins": ["*"],+ "ExposeHeaders": ["ETag", "x-amz-meta-custom-header"]+ }+ ]+ ```+- Copy `.env.example` to `.env` entering your secrets+ - ⚠️ Ensure your AWS credentials only allow reading and uploading to a specific S3 bucket `s3:GetObject` and `s3:PutObject` to not compromise your credentials if you deploy your Remotion project+- Use method `synthesizeSpeech` from `src/TextToSpeech/tts.ts` to convert Text to Audio. Using `createS3Url()` you can create a source for the `<Audio />` component.++## Example++[](http://www.youtube.com/watch?v=gbIno38xdhQ 'Remotion TTS example')++## Commands++**Install Dependencies**++```console+npm install+```++**Start Preview**++```console+npm start+```++**Render video**++```console+npm run build+```++See [docs for server-side rendering](https://www.remotion.dev/docs/ssr) here.++**Upgrade Remotion**++```console+npm run upgrade+```++## Docs++Get started with Remotion by reading the [fundamentals page](https://www.remotion.dev/docs/the-fundamentals).++## Issues++Found an issue with Remotion? [File an issue here](https://github.com/JonnyBurger/remotion/issues/new).++## License++Note that for some entities a company license is needed. Read [the terms here](https://github.com/JonnyBurger/remotion/blob/main/LICENSE.md).diff --git a/packages/template-tts-azure/package.json b/packages/template-tts-azure/package.jsonnew file mode 100644index 0000000000..bf88b0d0ba--- /dev/null+++ b/packages/template-tts-azure/package.json@@ -0,0 +1,36 @@+{+ "name": "remotion-template",+ "version": "1.0.0",+ "description": "My Remotion video",+ "scripts": {+ "start": "remotion studio",+ "build": "remotion render HelloWorld out/video.mp4",+ "upgrade": "remotion upgrade",+ "test": "eslint src --ext ts,tsx,js,jsx && tsc"+ },+ "private": true,+ "repository": {},+ "license": "UNLICENSED",+ "dependencies": {+ "@aws-sdk/client-s3": "3.645.0",+ "@remotion/cli": "workspace:*",+ "@remotion/media-utils": "workspace:*",+ "@remotion/zod-types": "workspace:*",+ "md5": "2.3.0",+ "microsoft-cognitiveservices-speech-sdk": "1.17.0",+ "react": "18.3.1",+ "react-dom": "18.3.1",+ "remotion": "workspace:*"+ },+ "devDependencies": {+ "@types/node": "20.14.11",+ "@remotion/eslint-config": "workspace:*",+ "@types/md5": "2.3.0",+ "@types/react": "18.3.1",+ "eslint": "8.56.0",+ "prettier": "3.2.5",+ "ts-node": "10.9.1",+ "typescript": "5.3.3",+ "zod": "3.22.3"+ }+}diff --git a/packages/template-tts-azure/remotion.config.ts b/packages/template-tts-azure/remotion.config.tsnew file mode 100644index 0000000000..97a5bfd051--- /dev/null+++ b/packages/template-tts-azure/remotion.config.ts@@ -0,0 +1,10 @@+/**+ * Note: When using the Node.JS APIs, the config file+ * doesn't apply. Instead, pass options directly to the APIs.+ *+ * All configuration options: https://remotion.dev/docs/config+ */+import { Config } from "@remotion/cli/config";++Config.setVideoImageFormat("jpeg");+Config.setOverwriteOutput(true);diff --git a/packages/template-tts-azure/src/HelloWorld.tsx b/packages/template-tts-azure/src/HelloWorld.tsxnew file mode 100644index 0000000000..4ae1ebfb8c--- /dev/null+++ b/packages/template-tts-azure/src/HelloWorld.tsx@@ -0,0 +1,44 @@+import { Audio } from "remotion";+import {+ AbsoluteFill,+ interpolate,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import { z } from "zod";+import { compSchema } from "./types";+import { Title } from "./HelloWorld/Title";+import { createS3Url } from "./tts";++export const HelloWorld: React.FC<z.infer<typeof compSchema>> = ({+ text,+ titleColor,+ voice,+ displaySpeed,+}) => {+ const frame = useCurrentFrame();+ const videoConfig = useVideoConfig();++ const opacity = interpolate(+ frame,+ [videoConfig.durationInFrames - 25, videoConfig.durationInFrames - 15],+ [1, 0],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ },+ );++ return (+ <AbsoluteFill style={{ backgroundColor: "white" }}>+ <AbsoluteFill style={{ opacity }}>+ <Title+ displaySpeed={displaySpeed}+ text={text}+ titleColor={titleColor}+ />+ <Audio src={createS3Url({ text, voice })} />+ </AbsoluteFill>+ </AbsoluteFill>+ );+};diff --git a/packages/template-tts-azure/src/HelloWorld/Title.tsx b/packages/template-tts-azure/src/HelloWorld/Title.tsxnew file mode 100644index 0000000000..b3956c76a1--- /dev/null+++ b/packages/template-tts-azure/src/HelloWorld/Title.tsx@@ -0,0 +1,52 @@+import { spring, useCurrentFrame, useVideoConfig } from "remotion";++export const Title: React.FC<{+ text: string;+ titleColor: string;+ displaySpeed: number;+}> = ({ text, titleColor, displaySpeed }) => {+ const videoConfig = useVideoConfig();+ const frame = useCurrentFrame();+ const rawText = text.split(" ").map((t) => ` ${t} `);++ return (+ <>+ <h1+ style={{+ fontFamily: "SF Pro Text, Helvetica, Arial",+ fontWeight: "bold",+ fontSize: 100,+ textAlign: "center",+ position: "absolute",+ bottom: 160,+ width: "100%",+ }}+ >+ {rawText.map((t, i) => {+ return (+ <span+ key={i + t}+ style={{+ color: titleColor,+ marginLeft: 10,+ marginRight: 10,+ transform: `scale(${spring({+ fps: videoConfig.fps,+ frame: frame - i * displaySpeed,+ config: {+ damping: 100,+ stiffness: 200,+ mass: 0.5,+ },+ })})`,+ display: "inline-block",+ }}+ >+ {t}+ </span>+ );+ })}+ </h1>+ </>+ );+};diff --git a/packages/template-tts-azure/src/Root.tsx b/packages/template-tts-azure/src/Root.tsxnew file mode 100644index 0000000000..65822a7015--- /dev/null+++ b/packages/template-tts-azure/src/Root.tsx@@ -0,0 +1,47 @@+import { Composition } from "remotion";+import { compSchema } from "./types";+import { HelloWorld } from "./HelloWorld";+import { getAudioDurationInSeconds } from "@remotion/media-utils";+import { audioAlreadyExists, createS3Url, synthesizeSpeech } from "./tts";+import { waitForNoInput } from "./debounce";++export const RemotionRoot: React.FC = () => {+ return (+ <>+ <Composition+ id="HelloWorld"+ component={HelloWorld}+ durationInFrames={150}+ fps={30}+ width={1920}+ height={1080}+ defaultProps={{+ text: "Working with TTS (Azure + AWS S3)",+ titleColor: "black",+ voice: "enUSWoman1" as const,+ displaySpeed: 10,+ }}+ calculateMetadata={async ({ props, abortSignal }) => {+ await waitForNoInput(abortSignal, 1000);+ const exists = await audioAlreadyExists({+ text: props.text,+ voice: props.voice,+ });+ if (!exists) {+ await synthesizeSpeech(props.text, props.voice);+ }++ const fileName = createS3Url({+ text: props.text,+ voice: props.voice,+ });++ const duration = await getAudioDurationInSeconds(fileName);++ return { props, durationInFrames: Math.ceil(duration * 30) };+ }}+ schema={compSchema}+ />+ </>+ );+};diff --git a/packages/template-tts-azure/src/debounce.ts b/packages/template-tts-azure/src/debounce.tsnew file mode 100644index 0000000000..7d30a2dfaf--- /dev/null+++ b/packages/template-tts-azure/src/debounce.ts@@ -0,0 +1,25 @@+import { getRemotionEnvironment } from "remotion";++export const waitForNoInput = (signal: AbortSignal, ms: number) => {+ // Don't wait during rendering+ if (getRemotionEnvironment().isRendering) {+ return Promise.resolve();+ }++ if (signal.aborted) {+ return Promise.reject(new Error("stale"));+ }++ return Promise.race<void>([+ new Promise<void>((_, reject) => {+ signal.addEventListener("abort", () => {+ reject(new Error("stale"));+ });+ }),+ new Promise<void>((resolve) => {+ setTimeout(() => {+ resolve();+ }, ms);+ }),+ ]);+};diff --git a/packages/template-tts-azure/src/index.ts b/packages/template-tts-azure/src/index.tsnew file mode 100644index 0000000000..f31c790edb--- /dev/null+++ b/packages/template-tts-azure/src/index.ts@@ -0,0 +1,4 @@+import { registerRoot } from "remotion";+import { RemotionRoot } from "./Root";++registerRoot(RemotionRoot);diff --git a/packages/template-tts-azure/src/tts.ts b/packages/template-tts-azure/src/tts.tsnew file mode 100644index 0000000000..1706e9ab44--- /dev/null+++ b/packages/template-tts-azure/src/tts.ts@@ -0,0 +1,141 @@+import {+ HeadObjectCommand,+ PutObjectCommand,+ S3Client,+} from "@aws-sdk/client-s3";+import md5 from "md5";+import {+ SpeechConfig,+ SpeechSynthesisResult,+ SpeechSynthesizer,+ ResultReason,+ AudioConfig,+ AudioOutputStream,+} from "microsoft-cognitiveservices-speech-sdk";+import { env, Voice } from "./types";++export const getFileName = ({+ text,+ voice,+}: {+ text: string;+ voice: string;+}) => {+ return `${md5(`${text}--${voice}`)}.mp3`;+};++export const voiceMap: { [key in Voice]: string } = {+ ptBRWoman: "pt-BR-FranciscaNeural",+ ptBRMan: "pt-BR-AntonioNeural",+ enUSWoman1: "en-US-JennyNeural",+ enUSWoman2: "en-US-AriaNeural",+} as const;++export const synthesizeSpeech = async (+ text: string,+ voice: Voice,+): Promise<void> => {+ const speechConfig = SpeechConfig.fromSubscription(+ env.AZURE_TTS_KEY,+ env.AZURE_TTS_REGION,+ );++ if (!voiceMap[voice]) {+ throw new Error("Voice not found");+ }++ const fileName = getFileName({ text, voice });++ const stream = AudioOutputStream.createPullStream();+ const audioConfig = AudioConfig.fromStreamOutput(stream);++ const synthesizer = new SpeechSynthesizer(speechConfig, audioConfig);++ const ssml = `+ <speak version="1.0" xml:lang="en-US">+ <voice name="${voiceMap[voice]}">+ <break time="100ms" /> ${text}+ </voice>+ </speak>`.trim();++ const result = await new Promise<SpeechSynthesisResult>((resolve, reject) => {+ synthesizer.speakSsmlAsync(+ ssml,+ (res) => {+ if (res.reason === ResultReason.SynthesizingAudioCompleted) {+ resolve(res);+ } else if (res.errorDetails) {+ reject(new Error(res.errorDetails));+ } else {+ reject(new Error("Speech Synthesis Error"));+ }+ },+ (error) => {+ reject(error);+ synthesizer.close();+ },+ );+ });+ const { audioData, properties } = result;+ console.log(properties);+ synthesizer.close();++ await uploadTtsToS3(audioData, fileName);+};++export const audioAlreadyExists = async ({+ text,+ voice,+}: {+ text: string;+ voice: Voice;+}) => {+ const fileName = getFileName({ text, voice });+ const s3 = new S3Client({+ region: env.AWS_S3_REGION,+ credentials: {+ accessKeyId: env.AWS_ACCESS_KEY_ID,+ secretAccessKey: env.AWS_SECRET_ACCESS_KEY,+ },+ });++ try {+ return await s3.send(+ new HeadObjectCommand({ Bucket: env.AWS_S3_BUCKET_NAME, Key: fileName }),+ );+ } catch {+ return false;+ }+};++const uploadTtsToS3 = async (audioData: ArrayBuffer, fileName: string) => {+ const bucketName = env.AWS_S3_BUCKET_NAME;+ const awsRegion = env.AWS_S3_REGION;+ const s3 = new S3Client({+ region: awsRegion,+ credentials: {+ accessKeyId: env.AWS_ACCESS_KEY_ID,+ secretAccessKey: env.AWS_SECRET_ACCESS_KEY,+ },+ });++ return s3.send(+ new PutObjectCommand({+ Bucket: bucketName,+ Key: fileName,+ Body: new Uint8Array(audioData),+ }),+ );+};++export const createS3Url = ({+ text,+ voice,+}: {+ text: string;+ voice: Voice;+}) => {+ const filename = getFileName({ text, voice });++ return `https://${env.AWS_S3_BUCKET_NAME}.s3.amazonaws.com/${filename}`;+};diff --git a/packages/template-tts-azure/src/types.ts b/packages/template-tts-azure/src/types.tsnew file mode 100644index 0000000000..e5b100db4c--- /dev/null+++ b/packages/template-tts-azure/src/types.ts@@ -0,0 +1,24 @@+import { zColor } from "@remotion/zod-types";+import { z } from "zod";++export const env = z+ .object({+ AZURE_TTS_KEY: z.string(),+ AZURE_TTS_REGION: z.string(),+ AWS_S3_BUCKET_NAME: z.string(),+ AWS_S3_REGION: z.string(),+ AWS_ACCESS_KEY_ID: z.string(),+ AWS_SECRET_ACCESS_KEY: z.string(),+ })+ .parse(process.env);++const voices = ["ptBRWoman", "ptBRMan", "enUSWoman1", "enUSWoman2"] as const;++export type Voice = (typeof voices)[number];++export const compSchema = z.object({+ text: z.string(),+ titleColor: zColor(),+ voice: z.enum(voices),+ displaySpeed: z.number(),+});diff --git a/packages/template-tts-azure/tsconfig.json b/packages/template-tts-azure/tsconfig.jsonnew file mode 100644index 0000000000..1f23a898cc--- /dev/null+++ b/packages/template-tts-azure/tsconfig.json@@ -0,0 +1,15 @@+{+ "compilerOptions": {+ "target": "ES2018",+ "module": "commonjs",+ "jsx": "react-jsx",+ "outDir": "./dist",+ "strict": true,+ "noEmit": true,+ "lib": ["es2015", "DOM"],+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "noUnusedLocals": true+ }+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 94c3fcc4ea..a79eb07957 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2236,6 +2236,64 @@ importers:specifier: 5.3.3version: 5.3.3+ packages/template-tts-azure:+ dependencies:+ '@aws-sdk/client-s3':+ specifier: 3.645.0+ version: 3.645.0+ '@remotion/cli':+ specifier: workspace:*+ version: link:../cli+ '@remotion/media-utils':+ specifier: workspace:*+ version: link:../media-utils+ '@remotion/zod-types':+ specifier: workspace:*+ version: link:../zod-types+ md5:+ specifier: 2.3.0+ version: 2.3.0+ microsoft-cognitiveservices-speech-sdk:+ specifier: 1.17.0+ react:+ specifier: 18.3.1+ version: 18.3.1+ react-dom:+ specifier: 18.3.1+ version: 18.3.1([email protected])+ remotion:+ specifier: workspace:*+ version: link:../core+ devDependencies:+ '@remotion/eslint-config':+ specifier: workspace:*+ version: link:../eslint-config+ '@types/md5':+ specifier: 2.3.0+ version: 2.3.0+ '@types/node':+ specifier: 20.14.11+ version: 20.14.11+ '@types/react':+ specifier: 18.3.1+ version: 18.3.1+ eslint:+ specifier: 8.56.0+ version: 8.56.0+ prettier:+ specifier: 3.2.5+ version: 3.2.5+ ts-node:+ specifier: 10.9.1+ version: 10.9.1(@types/[email protected])([email protected])+ typescript:+ specifier: 5.3.3+ version: 5.3.3+ zod:+ specifier: 3.22.3+ version: 3.22.3+packages/test-utils:devDependencies:react:@@ -2503,6 +2561,30 @@ packages:'@jridgewell/gen-mapping': 0.3.5'@jridgewell/trace-mapping': 0.3.25+ resolution: {integrity: sha512-89793ow+wrI1c7C6kyMbnweLNIZHzXthosxAEjipRZGBrqBYjvTtkE45Fl+5yBa3JO7bAhyGkUnEoyvWtZIAEA==}+ engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0}+ peerDependencies:+ '@angular/core': 18.2.6+ rxjs: ^6.5.3 || ^7.4.0+ dependencies:+ '@angular/core': 18.2.6([email protected])([email protected])+ rxjs: 7.8.1+ tslib: 2.6.2+ dev: false++ resolution: {integrity: sha512-PjFad2j4YBwLVTw+0Te8CJCa/tV0W8caTHG8aOjj3ObdL6ihGI+FKnwerLc9RVzDFd14BOO4C6/+LbOQAh3Ltw==}+ engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0}+ peerDependencies:+ rxjs: ^6.5.3 || ^7.4.0+ zone.js: ~0.14.10+ dependencies:+ rxjs: 7.8.1+ tslib: 2.6.2+ zone.js: 0.14.10+ dev: false+/@astrojs/[email protected]:resolution: {integrity: sha512-bL/O7YBxsFt55YHU021oL+xz+B/9HvGNId3F9xURN16aeqDK9juHGktdkCSXz+U4nqFACq6ZFvWomOzhV+zfPw==}dev: false@@ -12044,6 +12126,12 @@ packages:resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}dev: false+ /@types/[email protected]:+ resolution: {integrity: sha512-556YJ7ejzxIqSSxzyGGpctuZOarNZJt/zlEkhmmDc1f/slOEANHuwu2ZX7YaZ40rMiWoxt8GvAhoDpW1cmSy6A==}+ dependencies:+ '@types/node': 20.14.11+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==}dependencies:@@ -13264,6 +13352,11 @@ packages:engines: {node: '>= 0.12.0'}dev: false+ resolution: {integrity: sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==}+ engines: {node: '>= 6.0.0'}+ dev: false+resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}engines: {node: '>= 6.0.0'}@@ -13578,6 +13671,30 @@ packages:engines: {node: '>=8'}dev: false+ resolution: {integrity: sha512-1PrVg6kuBziDN3PGFmRk3QrjpKvP9h/Hv5yMrFZvC1kpzP6dQRzf5BpKstANqHBkaOUmTpakJWhicTATOA/SbA==}+ peerDependencies:+ asn1.js: ^5.0.0+ dependencies:+ asn1.js: 5.4.1+ asn1.js-rfc5280: 3.0.0+ dev: false++ resolution: {integrity: sha512-Y2LZPOWeZ6qehv698ZgOGGCZXBQShObWnGthTrIFlIQjuV1gg2B8QOhWFRExq/MR1VnPpIIe7P9vX2vElxv+Pg==}+ dependencies:+ asn1.js: 5.4.1+ dev: false++ resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==}+ dependencies:+ bn.js: 4.12.0+ inherits: 2.0.4+ minimalistic-assert: 1.0.1+ safer-buffer: 2.1.2+ dev: false+resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}@@ -13689,6 +13806,21 @@ packages:- typescriptdev: false+ resolution: {integrity: sha512-iH+boep2xivfD9wMaZWkywYIURSmsL96d6MoqrC94BnGSvXE4Quf8hnJiHGFYhw/nLeIa1XyRaf4vvcvkwAefg==}+ engines: {node: 8.* || >= 10.*}+ dependencies:+ debug: 4.3.6([email protected])+ heimdalljs: 0.2.6+ istextorbinary: 2.6.0+ mkdirp: 0.5.6+ rimraf: 3.0.2+ rsvp: 4.8.5+ username-sync: 1.0.3+ transitivePeerDependencies:+ - supports-color+ dev: false+resolution: {integrity: sha512-V+SsTpDqkrWTimiotsyl33ePSjA5/KrithwupuvJ6ztsqPvGv6ge4OredFhPffVXiLN/QUWvE0XcqJaYgt6fOg==}engines: {node: '>= 14'}@@ -13966,6 +14098,11 @@ packages:resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-nAihlQsYGyc5Bwq6+EsubvANYGExeJKHDO3RjnvwU042fawQTQfM3Kxn7IHUXQOz4bzfwsGYYHGSvXyW4zOGLg==}+ engines: {node: '>=0.8'}+ dev: false+resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}dependencies:@@ -13976,6 +14113,10 @@ packages:resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==}+ resolution: {integrity: sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==}+ dev: false+resolution: {integrity: sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==}engines: {node: '>= 0.8'}@@ -14351,6 +14492,10 @@ packages:resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}+ resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==}+ dev: false+resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==}dependencies:@@ -14867,6 +15012,10 @@ packages:shebang-command: 2.0.0which: 2.0.2+ resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==}+ dev: false+resolution: {integrity: sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==}engines: {node: '>=12'}@@ -15665,6 +15814,14 @@ packages:time-span: 4.0.0dev: false+ resolution: {integrity: sha512-ptGvkwTvGdGfC0hfhKg0MT+TRLRKGtUiWGBInxOm5pz7ssADezahjCUaYuZ8Dr+C05FW0AECIIPt4WBxVINEhA==}+ engines: {node: '>=0.8'}+ dependencies:+ errlop: 2.2.0+ semver: 6.3.1+ dev: false+resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}@@ -15723,6 +15880,11 @@ packages:resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}+ resolution: {integrity: sha512-e64Qj9+4aZzjzzFpZC7p5kmm/ccCrbLhAJplhsDXQFs87XTsXwOpH4s1Io2s90Tau/8r2j9f4l/thhDevRjzxw==}+ engines: {node: '>=0.8'}+ dev: false+resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}dependencies:@@ -18397,6 +18559,12 @@ packages:hasBin: truedev: false+ resolution: {integrity: sha512-o9bd30+5vLBvBtzCPwwGqpry2+n0Hi6H1+qwt6y+0kwRHGGF8TFIhJPmnuM0xO97zaKrDZMwO/V56fAnn8m/tA==}+ dependencies:+ rsvp: 3.2.1+ dev: false+resolution: {integrity: sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==}dependencies:@@ -18646,6 +18814,16 @@ packages:resolve-alpn: 1.2.1dev: false+ resolution: {integrity: sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==}+ engines: {node: '>= 6.0.0'}+ dependencies:+ agent-base: 5.1.1+ debug: 4.3.6([email protected])+ transitivePeerDependencies:+ - supports-color+ dev: false+resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}engines: {node: '>= 6'}@@ -18868,6 +19046,10 @@ packages:call-bind: 1.0.7has-tostringtag: 1.0.2+ resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}+ dev: false+resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}engines: {node: '>=4'}@@ -19197,6 +19379,15 @@ packages:engines: {node: '>=0.10.0'}dev: false+ resolution: {integrity: sha512-+XRlFseT8B3L9KyjxxLjfXSLMuErKDsd8DBNrsaxoViABMEZlOSCstwmw0qpoFX3+U6yWU1yhLudAe6/lETGGA==}+ engines: {node: '>=0.12'}+ dependencies:+ binaryextensions: 2.3.0+ editions: 2.3.1+ textextensions: 2.6.0+ dev: false+resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==}dependencies:@@ -19795,6 +19986,14 @@ packages:dependencies:blueimp-md5: 2.19.0+ resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==}+ dependencies:+ charenc: 0.0.2+ crypt: 0.0.2+ is-buffer: 1.1.6+ dev: false+resolution: {integrity: sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==}dependencies:@@ -20798,6 +20997,28 @@ packages:braces: 3.0.3picomatch: 2.3.1+ resolution: {integrity: sha512-RVUCpTeu1g+R4HB/PaLQmEfsdHzwEa6+2phgCiPA4lGIiR7ILEL7qZHHUWAG6W4zcjnWeiLnL7tVgMbyd5XGgA==}+ dependencies:+ agent-base: 6.0.2+ asn1.js-rfc2560: 5.0.1([email protected])+ asn1.js-rfc5280: 3.0.0+ async-disk-cache: 2.1.0+ https-proxy-agent: 4.0.0+ simple-lru-cache: 0.0.2+ url-parse: 1.5.3+ uuid: 3.4.0+ ws: 7.5.5+ xmlhttprequest-ts: 1.0.1(@angular/[email protected])(@angular/[email protected])+ transitivePeerDependencies:+ - '@angular/common'+ - '@angular/core'+ - asn1.js+ - bufferutil+ - supports-color+ - utf-8-validate+ dev: false+resolution: {integrity: sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==}engines: {node: '>= 0.6'}@@ -20946,6 +21167,13 @@ packages:resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}+ resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}+ hasBin: true+ dependencies:+ minimist: 1.2.6+ dev: false+resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}engines: {node: '>=10'}@@ -23924,6 +24152,15 @@ packages:'@rollup/rollup-win32-x64-msvc': 4.21.2fsevents: 2.3.3+ resolution: {integrity: sha512-Rf4YVNYpKjZ6ASAmibcwTNciQ5Co5Ztq6iZPEykHpkoflnD/K5ryE/rHehFsTm4NJj8nKDhbi3eKBWGogmNnkg==}+ dev: false++ resolution: {integrity: sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==}+ engines: {node: 6.* || >= 7.*}+ dev: false+resolution: {integrity: sha512-EBR4I2VDSSYr7PkBmFy04uhycIpDKp+21p/jARYXlCSjQksTBQcJ0HFUPOO79EPPH5JS6VAhiIQbycf0O3JAxQ==}dev: false@@ -23944,6 +24181,12 @@ packages:dependencies:queue-microtask: 1.2.3+ resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==}+ dependencies:+ tslib: 2.6.2+ dev: false+resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}engines: {node: '>=6'}@@ -24469,6 +24712,10 @@ packages:simple-concat: 1.0.1dev: true+ resolution: {integrity: sha512-uEv/AFO0ADI7d99OHDmh1QfYzQk/izT1vCmu/riQfh7qjBVUUgRT87E5s5h7CxWCA/+YoZerykpEthzVrW3LIw==}+ dev: false+resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}requiresBuild: true@@ -25242,6 +25489,11 @@ packages:resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}+ resolution: {integrity: sha512-49WtAWS+tcsy93dRt6P0P3AMD2m5PvXRhuEA0kaXos5ZLlujtYmpmFsB+QvWUSxE1ZsstmYXfQ7L40+EcQgpAQ==}+ engines: {node: '>=0.8'}+ dev: false+resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}engines: {node: '>=0.8'}@@ -26101,6 +26353,10 @@ packages:tslib: 2.6.2dev: false+ resolution: {integrity: sha512-m/7/FSqjJNAzF2La448c/aEom0gJy7HY7Y509h6l0ePvEkFictAGptwWaj1msWJ38JbfEDOUoE8kqFee9EHKdA==}+ dev: false+resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -26126,6 +26382,12 @@ packages:resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=}engines: {node: '>= 0.4.0'}+ resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==}+ deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.+ hasBin: true+ dev: false+resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}hasBin: true@@ -27048,6 +27310,17 @@ packages:resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}+ resolution: {integrity: sha512-x+7u8NpBcwfBCeGqUpdGrR6+kGUGVjKc4wolyCz7CQqBZQp7VIyaF1xAvJ7ApRzvLeuiC4BbmrA6CWH9NqxK/g==}+ peerDependencies:+ '@angular/common': '>= 5.0.0'+ '@angular/core': '>= 5.0.0'+ dependencies:+ '@angular/common': 18.2.6(@angular/[email protected])([email protected])+ '@angular/core': 18.2.6([email protected])([email protected])+ tslib: 1.14.1+ dev: false+resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}engines: {node: '>=0.4'}@@ -27151,6 +27424,10 @@ packages:resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}dev: false+ resolution: {integrity: sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==}+ dev: false+resolution: {integrity: sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==}engines: {node: '>=12.7.0'}diff --git a/tsconfig.json b/tsconfig.jsonindex edbf400ed4..4d83d5a98a 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -117,6 +117,9 @@{"path": "./packages/template-skia"},+ {+ "path": "./packages/template-still"+ },{"path": "./packages/template-blank"},@@ -129,6 +132,9 @@{"path": "./packages/template-next-app-tailwind"},+ {+ "path": "./packages/template-tts-azure"+ },{"path": "./packages/template-three"},