Skip to content

🎥 Make videos programmatically with React

learn section

Jonny Burgere421a8ab973c
diff --git a/packages/docs/docusaurus-theme-shiki-twoslash/index.js b/packages/docs/docusaurus-theme-shiki-twoslash/index.js
new file mode 100644
index 0000000000..9d1de67394
--- /dev/null
+++ b/packages/docs/docusaurus-theme-shiki-twoslash/index.js
@@ -0,0 +1,15 @@
+const path = require("path");
+
+/**
+ * @returns {import("@docusaurus/types").Plugin}
+ */
+function theme() {
+ return {
+ name: "docusaurus-theme-shiki-twoslash",
+ getThemePath() {
+ return path.resolve(__dirname, "./theme");
+ },
+ };
+}
+
+module.exports = theme;
diff --git a/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js
new file mode 100644
index 0000000000..01bcfb9ebe
--- /dev/null
+++ b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js
@@ -0,0 +1,49 @@
+// Based on https://github.com/facebook/docusaurus/blob/ed9d2a26f5a7b8096804ae1b3a4fffc504f8f90d/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx
+// which is under MIT License as per the banner
+
+import "./styles.css"
+
+import copy from "copy-text-to-clipboard"
+import React, { useRef, useState } from "react"
+import Translate, { translate } from "@docusaurus/Translate"
+
+const CodeBlock = ({ children, ...props }) => {
+ const pre = useRef(null)
+ const [showCopied, setShowCopied] = useState(false)
+
+ const handleCopyCode = () => {
+ if (pre.current) {
+ copy(Array.from(pre.current.querySelectorAll("code div.line")).map(el => el.textContent).join("\n"))
+ }
+ setShowCopied(true)
+ setTimeout(() => setShowCopied(false), 2000)
+ }
+
+ return (
+ <pre {...props} ref={pre}>
+ {children}
+ <button
+ type="button"
+ aria-label={translate({
+ id: "theme.CodeBlock.copyButtonAriaLabel",
+ message: "Copy code to clipboard",
+ description: "The ARIA label for copy code blocks button",
+ })}
+ className="copy-button"
+ onClick={handleCopyCode}
+ >
+ {showCopied ? (
+ <Translate id="theme.CodeBlock.copied" description="The copied button label on code blocks">
+ Copied
+ </Translate>
+ ) : (
+ <Translate id="theme.CodeBlock.copy" description="The copy button label on code blocks">
+ Copy
+ </Translate>
+ )}
+ </button>
+ </pre>
+ )
+}
+
+export default CodeBlock
diff --git a/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/styles.css b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/styles.css
new file mode 100644
index 0000000000..e764aeb41e
--- /dev/null
+++ b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/styles.css
@@ -0,0 +1,293 @@
+/* Title */
+
+pre.shiki > .code-title {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ width: 100%;
+
+ font-family: var(--ifm-font-family-base);
+ font-size: var(--ifm-code-font-size);
+ font-weight: 500;
+
+ color: var(--ifm-color-emphasis-900);
+ border-bottom: 1px solid var(--ifm-color-emphasis-300);
+ padding: 0 var(--ifm-pre-padding);
+
+ height: 2.5rem;
+ display: flex;
+ align-items: center;
+}
+
+pre.shiki.with-title {
+ padding-top: 2.5rem;
+}
+
+/**
+ * Copy-to-Clipboard Button
+ * Taken from https://github.com/facebook/docusaurus/blob/ed9d2a26f5a7b8096804ae1b3a4fffc504f8f90d/packages/docusaurus-theme-classic/src/theme/CodeBlock/styles.module.css
+ * which is under MIT License as per the banner
+ */
+
+pre.shiki .copy-button {
+ appearance: none;
+ border: none;
+ cursor: pointer;
+
+ background: rgba(0, 0, 0, 0.3);
+ border-radius: var(--ifm-global-radius);
+ color: var(--ifm-color-white);
+ opacity: 0;
+ user-select: none;
+ padding: 0.4rem 0.5rem;
+ position: absolute;
+ right: calc(var(--ifm-pre-padding) / 2);
+ top: calc(var(--ifm-pre-padding) / 2);
+ transition: opacity 200ms ease-in-out;
+}
+
+pre.shiki.with-title .copy-button {
+ top: calc(2.5rem + var(--ifm-pre-padding) / 2);
+}
+
+pre.shiki:hover > .copy-button,
+.copy-button:focus {
+ opacity: 1;
+}
+
+/* Base */
+pre.shiki {
+ overflow: visible;
+ position: relative;
+ padding: 0;
+}
+
+/* Sets a horizontal padding for all the lines */
+pre.shiki div.line,
+pre.shiki div.meta-line {
+ padding-left: var(--ifm-pre-padding);
+ padding-right: var(--ifm-pre-padding);
+}
+
+/* Sets vertical padding for the container */
+pre.shiki > .code-container {
+ padding: var(--ifm-pre-padding) 0;
+}
+
+/* Border for light themes, dark themes don't usually require borders */
+pre.shiki {
+ border: 1px solid transparent;
+}
+
+[data-theme="light"] pre.shiki {
+ border-color: var(--ifm-color-emphasis-300);
+}
+
+/* Hide language identifiers */
+pre.shiki .language-id {
+ display: none;
+}
+
+/* Line highlighting */
+pre.shiki:hover .dim {
+ opacity: 1;
+ filter: none;
+}
+
+pre.shiki div.dim {
+ opacity: 0.5;
+ filter: grayscale(1);
+ transition: opacity 200ms ease-in-out;
+}
+
+pre.shiki div.dim,
+pre.shiki div.highlight {
+ margin: 0;
+ /* To avoid flickering on the highlighted lines focus */
+ border-left: 2px solid transparent;
+}
+
+pre.shiki div.highlight {
+ opacity: 1;
+ transition: background-color 200ms ease-in-out;
+}
+
+pre.shiki:hover div.highlight {
+ background-color: var(--ifm-hover-overlay);
+ border-left: 2px solid var(--ifm-color-primary);
+ width: 100%;
+}
+
+pre.shiki div.line {
+ min-height: 1rem;
+}
+
+/** When you mouse over the pre, show the underlines */
+pre.twoslash:hover data-lsp {
+ border-color: var(--ifm-color-emphasis-400);
+}
+
+/** The tooltip-like which provides the LSP response */
+pre.twoslash data-lsp:hover::before {
+ content: attr(lsp);
+ position: absolute;
+ transform: translate(0, 1.5rem);
+
+ background-color: #3f3f3f;
+ color: #fff;
+ text-align: left;
+ padding: 5px 8px;
+ border-radius: 2px;
+ font-size: 85%;
+ white-space: pre-wrap;
+ z-index: 100;
+}
+
+pre .code-container {
+ overflow: auto;
+}
+
+pre code {
+ white-space: pre;
+ -webkit-overflow-scrolling: touch;
+}
+
+pre code a {
+ text-decoration: none;
+}
+
+/* Error */
+pre data-err {
+ /* Extracted from VS Code */
+ background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
+ repeat-x bottom left;
+ padding-bottom: 3px;
+}
+
+pre .query {
+ margin-bottom: 10px;
+ color: var(--ifm-color-primary);
+ display: inline-block;
+}
+
+/**
+ * In order to have the 'popped out' style design and to not break the layout
+ * we need to place a fake and un-selectable copy of the error which _isn't_ broken out
+ * behind the actual error message.
+ * This sections keeps both of those two in in sync
+ */
+
+pre .error,
+pre .error-behind {
+ margin-top: 8px;
+ padding: 6px;
+ padding-left: 14px;
+ width: 100%;
+ white-space: pre-wrap;
+ display: block;
+}
+
+pre .error {
+ position: absolute;
+ background-color: #fee;
+ border-left: 2px solid var(--ifm-color-danger-dark);
+ /* Give the space to the error code */
+ display: flex;
+ align-items: center;
+ color: black;
+}
+
+pre .error .code {
+ display: none;
+}
+
+pre .error-behind {
+ user-select: none;
+ color: #fee;
+}
+
+/* Queries */
+pre .arrow {
+ /* Transparent background */
+ background-color: var(--ifm-color-emphasis-200);
+ position: relative;
+ top: -7px;
+ margin-left: 0.1rem;
+ /* Edges */
+ border-left: 1px solid var(--ifm-color-emphasis-200);
+ border-top: 1px solid var(--ifm-color-emphasis-200);
+ transform: translateY(25%) rotate(45deg);
+ /* Size */
+ height: 8px;
+ width: 8px;
+}
+
+pre .popover {
+ margin-bottom: 10px;
+ background-color: var(--ifm-color-emphasis-200);
+ display: inline-block;
+ padding: 0 0.5rem 0.3rem;
+ margin-top: 10px;
+ border-radius: 3px;
+}
+
+/* Completion */
+pre .inline-completions ul.dropdown {
+ display: inline-block;
+ position: absolute;
+ width: 240px;
+ background-color: var(--ifm-color-emphasis-200);
+ padding-top: 5px;
+ font-family: var(--code-font);
+ margin: 0 0 0 3px;
+ padding: 0;
+ border-left: 2px solid var(--ifm-color-primary);
+}
+
+pre .inline-completions ul.dropdown::before {
+ background-color: var(--ifm-color-primary);
+ width: 2px;
+ position: absolute;
+ top: -1.2rem;
+ left: -2px;
+ content: " ";
+}
+
+pre .inline-completions ul.dropdown li {
+ overflow-x: hidden;
+ padding-left: 4px;
+ margin-bottom: 4px;
+}
+
+pre .inline-completions ul.dropdown li.deprecated {
+ text-decoration: line-through;
+}
+
+pre .inline-completions ul.dropdown li span.result-found {
+ color: var(--ifm-color-primary);
+}
+
+pre .inline-completions ul.dropdown li span.result {
+ width: 100px;
+ color: black;
+ display: inline-block;
+}
+
+data-lsp {
+ /* Ensures there's no 1px jump when the hover happens */
+ border-bottom: 1px dotted transparent;
+ /* Fades in unobtrusively */
+ transition-timing-function: ease;
+ transition: border-color 0.3s;
+}
+
+/* Respect people's wishes to not have animations */
+@media (prefers-reduced-motion: reduce) {
+ data-lsp,
+ pre .code-container > a,
+ pre.shiki div.dim,
+ pre.shiki div.highlight {
+ transition: none;
+ }
+}
diff --git a/packages/docs/docusaurus-theme-shiki-twoslash/theme/MDXComponents/index.js b/packages/docs/docusaurus-theme-shiki-twoslash/theme/MDXComponents/index.js
new file mode 100644
index 0000000000..cddd6d53c5
--- /dev/null
+++ b/packages/docs/docusaurus-theme-shiki-twoslash/theme/MDXComponents/index.js
@@ -0,0 +1,12 @@
+import React from "react"
+import CodeBlock from "@theme/CodeBlock"
+import MDXComponents from "@theme-init/MDXComponents"
+
+const NewComponents = {
+ ...MDXComponents,
+ div: props => (props.className === "shiki-twoslash-fragment" ? <>{props.children}</> : <div {...props} />),
+ pre: props => <CodeBlock {...props} />,
+ code: props => <code {...props} />,
+}
+
+export default NewComponents
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index 94d6bc2be0..a51d89c112 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -202,7 +202,7 @@ module.exports = {
},
],
[
- "@jonny/docusaurus-preset-shiki-twoslash",
+ "./shiki",
{
vfsRoot: process.cwd(),
themes: ["github-light", "github-dark"],
@@ -232,6 +232,25 @@ module.exports = {
blogSidebarTitle: "Success stories",
},
],
+ [
+ "@docusaurus/plugin-content-blog",
+ {
+ /**
+ * Required for any multi-instance plugin
+ */
+ id: "learn",
+ /**
+ * URL route for the blog section of your site.
+ * *DO NOT* include a trailing slash.
+ */
+ routeBasePath: "learn",
+ /**
+ * Path to data on filesystem relative to site dir.
+ */
+ path: "./learn",
+ blogSidebarTitle: "Learn",
+ },
+ ],
"./route-plugin",
],
};
diff --git a/packages/docs/learn/2022-11-18-apple-fireworks.md b/packages/docs/learn/2022-11-18-apple-fireworks.md
new file mode 100644
index 0000000000..e889b39a1d
--- /dev/null
+++ b/packages/docs/learn/2022-11-18-apple-fireworks.md
@@ -0,0 +1,8 @@
+---
+slug: apple-fireworks
+title: Making the Apple fireworks tutorial
+---
+
+```ts twoslash
+export const MyFn = () => null;
+```
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 89d640d773..e1880c941d 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -22,7 +22,8 @@
"@docusaurus/plugin-content-blog": "2.1.0",
"@docusaurus/preset-classic": "2.1.0",
"@docusaurus/theme-common": "2.1.0",
- "@jonny/docusaurus-preset-shiki-twoslash": "^1.1.36",
+ "copy-text-to-clipboard": "^2",
+ "remark-shiki-twoslash": "^3.1.0",
"@jonny/eslint-config": "3.0.266",
"@mdx-js/react": "^1.6.21",
"@remotion/babel-loader": "3.3.0",
diff --git a/packages/docs/shiki.js b/packages/docs/shiki.js
new file mode 100644
index 0000000000..1c7069fff1
--- /dev/null
+++ b/packages/docs/shiki.js
@@ -0,0 +1,128 @@
+const path = require("path");
+const { default: twoslash } = require("remark-shiki-twoslash");
+
+/**
+ * @param {import("@docusaurus/types").DocusaurusContext} context
+ * @param {import("remark-shiki-twoslash").Settings} pluginOptions
+ * @returns {import("@docusaurus/types").Preset}
+ */
+function shiki(context, pluginOptions) {
+ const options = { ...pluginOptions, wrapFragments: true };
+
+ // So, how do we hijack the code renderer? We mostly override the user's configuration for
+ // the presets.
+
+ if (!context.siteConfig.presets || !context.siteConfig.plugins) {
+ throw Error("Couldn't find either a preset or a plugin");
+ }
+
+ // Available presets & plugins
+ // We could parse out the repeated parts from the strings but
+ // I think it's better this way as a way of showing that twoslash could
+ // technically support all kinds of presets, not just official ones
+ const presets = [["@docusaurus/preset-classic", "classic"]];
+ const plugins = [
+ ["@docusaurus/plugin-content-docs", "content-docs"],
+ ["@docusaurus/plugin-content-blog", "content-blog"],
+ ["@docusaurus/plugin-content-pages", "content-pages"],
+ ];
+
+ // Flag to keep track if at least one of the presets or the plugins are installed
+ let flag = false;
+
+ /**
+ * Checks if b is in a
+ * @param {string[][]} a
+ * @param {string | [string] | [string, any]} b
+ */
+ const contains = (a, b) =>
+ a.flat().includes(typeof b === "string" ? b : b[0]);
+
+ /**
+ * Structure `a` into proper `[a, {}]`
+ * @param {string | [string] | [string, any]} a
+ * @returns {[string, any]}
+ * - `[a, {}]` if `a` is `string`
+ * - `[a[0], {}]` if `a` is `[string]`
+ * - `a` if `a` is already `[string, {}]`
+ */
+ const structure = (a) =>
+ typeof a === "string" ? [a, {}] : a.length === 1 ? [a[0], {}] : a;
+
+ // Adds remark-shiki-twoslash into beforeDefaultRemarkPlugins
+ const addTwoslash = (a) => {
+ flag = true;
+
+ if (!a.beforeDefaultRemarkPlugins) {
+ a.beforeDefaultRemarkPlugins = [];
+ }
+
+ a.beforeDefaultRemarkPlugins.push([twoslash, options]);
+ return a;
+ };
+
+ const addTwoslashArray = (a) => {
+ flag = true;
+
+ if (!a[1].beforeDefaultRemarkPlugins) {
+ a[1].beforeDefaultRemarkPlugins = [];
+ }
+
+ a[1].beforeDefaultRemarkPlugins.push([twoslash, options]);
+ console.log(a[1]);
+ return a;
+ };
+
+ context.siteConfig.presets = context.siteConfig.presets.map((preset) => {
+ if (!contains(presets, preset)) {
+ return preset;
+ }
+
+ const output = structure(preset);
+ const sections = ["docs", "blog", "pages"];
+ for (const section of sections) {
+ // If the plugin is disabled, keep it disabled
+ if (output[1][section] === false) continue;
+ if (!output[1][section]) output[1][section] = {};
+ addTwoslash(output[1][section]);
+ }
+
+ return output;
+ });
+
+ context.siteConfig.plugins = context.siteConfig.plugins.map((plugin) => {
+ if (
+ typeof plugin === "function" ||
+ (Array.isArray(plugin) && typeof plugin[0] === "function")
+ ) {
+ console.log({ plugin });
+ return plugin;
+ }
+
+ if (plugin?.[1]?.id === "learn" || plugin[1]?.id === "success-stories") {
+ return addTwoslashArray(structure(plugin));
+ }
+
+ // if the plugin is not supported
+ if (!contains(plugins, plugin)) {
+ return plugin;
+ }
+
+ return addTwoslash(structure(plugin));
+ });
+
+ if (!flag) {
+ throw Error(`
+ Couldn't find a preset or a plugin supported by twoslash
+ Make sure you installed one of these presets [ ${presets
+ .map((p) => p[0])
+ .join(", ")} ],
+ or one of these plugins [ ${plugins.map((p) => p[0]).join(", ")} ].\n`);
+ }
+
+ return {
+ themes: [path.resolve(__dirname, "./docusaurus-theme-shiki-twoslash")],
+ };
+}
+
+module.exports = shiki;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 532220c652..2fd6fc13a1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -262,7 +262,6 @@ importers:
'@docusaurus/plugin-content-blog': 2.1.0
'@docusaurus/preset-classic': 2.1.0
'@docusaurus/theme-common': 2.1.0
- '@jonny/docusaurus-preset-shiki-twoslash': ^1.1.36
'@jonny/eslint-config': 3.0.266
'@mdx-js/react': ^1.6.21
'@remotion/babel-loader': 3.3.0
@@ -292,6 +291,7 @@ importers:
clipboard: ^2.0.8
clsx: ^1.1.1
color-namer: 1.4.0
+ copy-text-to-clipboard: ^2
create-video: 3.3.0
eslint: 8.25.0
got: ^11
@@ -303,6 +303,7 @@ importers:
react: 18.0.0
react-dom: 18.0.0
react-player: ^2.9.0
+ remark-shiki-twoslash: ^3.1.0
remotion: 3.3.0
three: 0.145.0
typescript: ^4.7.0
@@ -314,7 +315,6 @@ importers:
'@docusaurus/plugin-content-blog': 2.1.0_s4lyieemhygsa654i5iqqdkz6e
'@docusaurus/preset-classic': 2.1.0_qg35f65r6i5aei65qcb5j6lwze
'@docusaurus/theme-common': 2.1.0_drwkl57vfqqdxjlmmcrjz53pie
- '@jonny/docusaurus-preset-shiki-twoslash': 1.1.36
'@jonny/eslint-config': 3.0.266_t54va6jeo5lf3vtqih5uiyrm5e
'@mdx-js/react': [email protected]
'@remotion/babel-loader': link:../babel-loader
@@ -339,6 +339,7 @@ importers:
clipboard: 2.0.8
clsx: 1.1.1
color-namer: 1.4.0
+ copy-text-to-clipboard: 2.2.0
create-video: link:../create-video
got: 11.8.5
hls.js: 0.14.17
@@ -347,6 +348,7 @@ importers:
react: 18.0.0
react-dom: [email protected]
react-player: [email protected]
+ remark-shiki-twoslash: 3.1.0
remotion: link:../core
three: 0.145.0
vitest: 0.24.3
@@ -6532,15 +6534,6 @@ packages:
'@types/yargs': 16.0.4
chalk: 4.1.2
- /@jonny/docusaurus-preset-shiki-twoslash/1.1.36:
- resolution: {integrity: sha512-8hobv8ZeIvTVOCFkNi6G7YnkC3jDbS0pZrucCK596uzXhvl98JcPJJ8G1Pu8Ok0kC31/fA9aNiDXaXSl9QywTw==}
- dependencies:
- remark-shiki-twoslash: 3.0.5
- typescript: 4.7.2
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/@jonny/eslint-config/3.0.266_t54va6jeo5lf3vtqih5uiyrm5e:
resolution: {integrity: sha512-jtrgDIHcM+arLaGxuUlSIh3FrJFSrSjMHEQAFtcSeA/4iNXYjJHRbN9Q0vc8H3wwMNPYYvbxrbmC1zycaEAStQ==}
dependencies:
@@ -9007,11 +9000,11 @@ packages:
'@typescript-eslint/types': 5.29.0
eslint-visitor-keys: 3.3.0
- /@typescript/twoslash/2.2.0:
- resolution: {integrity: sha512-Lkgrs9L/OIn1JZcIv2k4uy/CsQ+9dmurN64YzSWIHleTE3PkZlV2lZdq9xM7TnLh5zFy3tP8KuPtUxbIGV9sIw==}
+ /@typescript/twoslash/3.1.0:
+ resolution: {integrity: sha512-kTwMUQ8xtAZaC4wb2XuLkPqFVBj2dNBueMQ89NWEuw87k2nLBbuafeG5cob/QEr6YduxIdTVUjix0MtC7mPlmg==}
dependencies:
- '@typescript/vfs': 1.3.4
- debug: 4.3.3
+ '@typescript/vfs': 1.3.5
+ debug: 4.3.4
lz-string: 1.4.4
transitivePeerDependencies:
- supports-color
@@ -9020,7 +9013,15 @@ packages:
/@typescript/vfs/1.3.4:
resolution: {integrity: sha512-RbyJiaAGQPIcAGWFa3jAXSuAexU4BFiDRF1g3hy7LmRqfNpYlTQWGXjcrOaVZjJ8YkkpuwG0FcsYvtWQpd9igQ==}
dependencies:
- debug: 4.3.3
+ debug: 4.3.4
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
+ /@typescript/vfs/1.3.5:
+ resolution: {integrity: sha512-pI8Saqjupf9MfLw7w2+og+fmb0fZS0J6vsKXXrp4/PDXEFvntgzXmChCXC/KefZZS0YGS6AT8e0hGAJcTsdJlg==}
+ dependencies:
+ debug: 4.3.4
transitivePeerDependencies:
- supports-color
dev: false
@@ -10204,7 +10205,7 @@ packages:
resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}
dependencies:
pascal-case: 3.1.2
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/camelcase-css/2.0.1:
@@ -10849,6 +10850,11 @@ packages:
resolution: {integrity: sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==}
engines: {node: '>=0.10.0'}
+ /copy-text-to-clipboard/2.2.0:
+ resolution: {integrity: sha512-WRvoIdnTs1rgPMkgA2pUOa/M4Enh2uzCwdKsOMYNAJiz/4ZvEJgmbF4OmninPmlFdAWisfeh0tH+Cpf7ni3RqQ==}
+ engines: {node: '>=6'}
+ dev: false
+
/copy-text-to-clipboard/3.0.1:
resolution: {integrity: sha512-rvVsHrpFcL4F2P8ihsoLdFHmd404+CMg71S756oRSeQgqk51U3kicGdnvfkrxva0xXH92SjGS62B0XIJsbh+9Q==}
engines: {node: '>=12'}
@@ -11648,7 +11654,7 @@ packages:
resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
dependencies:
no-case: 3.0.4
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/dot-prop/5.3.0:
@@ -15071,8 +15077,8 @@ packages:
engines: {node: '>=6'}
hasBin: true
- /jsonc-parser/3.0.0:
- resolution: {integrity: sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==}
+ /jsonc-parser/3.2.0:
+ resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==}
dev: false
/jsonfile/2.4.0:
@@ -15463,7 +15469,7 @@ packages:
/lower-case/2.0.2:
resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
dependencies:
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/lowercase-keys/1.0.1:
@@ -15475,12 +15481,6 @@ packages:
resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==}
engines: {node: '>=8'}
- /lru-cache/5.1.1:
- resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
- dependencies:
- yallist: 3.1.1
- dev: false
-
/lru-cache/6.0.0:
resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
engines: {node: '>=10'}
@@ -16389,7 +16389,7 @@ packages:
resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
dependencies:
lower-case: 2.0.2
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/nocache/3.0.4:
@@ -16792,12 +16792,6 @@ packages:
dependencies:
mimic-fn: 2.1.0
- /onigasm/2.2.5:
- resolution: {integrity: sha512-F+th54mPc0l1lp1ZcFMyL/jTs2Tlq4SqIHKIXGZOR/VkHkF9A7Fr5rRr5+ZG/lWeRsyrClLYRq7s/yFQ/XhWCA==}
- dependencies:
- lru-cache: 5.1.1
- dev: false
-
/open/6.4.0:
resolution: {integrity: sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==}
engines: {node: '>=8'}
@@ -17061,7 +17055,7 @@ packages:
resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==}
dependencies:
dot-case: 3.0.4
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/parent-module/1.0.1:
@@ -17166,7 +17160,7 @@ packages:
resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
dependencies:
no-case: 3.0.4
- tslib: 2.3.1
+ tslib: 2.4.0
dev: false
/pascalcase/0.1.1:
@@ -18979,15 +18973,15 @@ packages:
xtend: 4.0.2
dev: false
- /remark-shiki-twoslash/3.0.5:
- resolution: {integrity: sha512-7asnFLAZtJ7XiDsxJRGKdZNvD+q00je2VIR1wSDhXbODlYMiyw+llWyqFaLhk96Iag+ppmnxcoFtJyIxcJ8WFA==}
+ /remark-shiki-twoslash/3.1.0:
+ resolution: {integrity: sha512-6LqSqVtHQR4S0DKfdQ2/ePn9loTKUtpyopYvwk8johjDTeUW5MkaLQuZHlWNkkST/4aMbz6aTkstIcwfwcHpXg==}
dependencies:
- '@typescript/twoslash': 2.2.0
+ '@typescript/twoslash': 3.1.0
'@typescript/vfs': 1.3.4
fenceparser: 1.1.1
regenerator-runtime: 0.13.9
- shiki: 0.9.11
- shiki-twoslash: 3.0.1
+ shiki: 0.10.1
+ shiki-twoslash: 3.1.0
tslib: 2.1.0
typescript: 4.7.2
unist-util-visit: 2.0.3
@@ -19540,32 +19534,25 @@ packages:
rechoir: 0.6.2
dev: false
- /shiki-twoslash/3.0.1:
- resolution: {integrity: sha512-gm2qyyu7iqmVn3wnKOg4DG6DodyDEh/e4Yo5SqyOBbgzM/qAP0q6LvcaG32q/lTQRBwfS3GhwvvzkQT1RxNC6Q==}
+ /shiki-twoslash/3.1.0:
+ resolution: {integrity: sha512-uDqrTutOIZzyHbo103GsK7Vvc10saK1XCCivnOQ1NHJzgp3FBilEpftGeVzVSMOJs+JyhI7whkvhXV7kXQ5zCg==}
dependencies:
- '@typescript/twoslash': 2.2.0
+ '@typescript/twoslash': 3.1.0
'@typescript/vfs': 1.3.4
- shiki: 0.9.3
+ shiki: 0.10.1
typescript: 4.7.2
transitivePeerDependencies:
- supports-color
dev: false
- /shiki/0.9.11:
- resolution: {integrity: sha512-tjruNTLFhU0hruCPoJP0y+B9LKOmcqUhTpxn7pcJB3fa+04gFChuEmxmrUfOJ7ZO6Jd+HwMnDHgY3lv3Tqonuw==}
+ /shiki/0.10.1:
+ resolution: {integrity: sha512-VsY7QJVzU51j5o1+DguUd+6vmCmZ5v/6gYu4vyYAhzjuNQU6P/vmSy4uQaOhvje031qQMiW0d2BwgMH52vqMng==}
dependencies:
- jsonc-parser: 3.0.0
- onigasm: 2.2.5
+ jsonc-parser: 3.2.0
+ vscode-oniguruma: 1.6.2
vscode-textmate: 5.2.0
dev: false
- /shiki/0.9.3:
- resolution: {integrity: sha512-NEjg1mVbAUrzRv2eIcUt3TG7X9svX7l3n3F5/3OdFq+/BxUdmBOeKGiH4icZJBLHy354Shnj6sfBTemea2e7XA==}
- dependencies:
- onigasm: 2.2.5
- vscode-textmate: 5.4.0
- dev: false
-
/side-channel/1.0.4:
resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}
dependencies:
@@ -20779,10 +20766,6 @@ packages:
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
dev: false
- /tslib/2.3.1:
- resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==}
- dev: false
-
/tslib/2.4.0:
resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==}
@@ -21596,12 +21579,12 @@ packages:
/vlq/1.0.1:
resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==}
- /vscode-textmate/5.2.0:
- resolution: {integrity: sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==}
+ /vscode-oniguruma/1.6.2:
+ resolution: {integrity: sha512-KH8+KKov5eS/9WhofZR8M8dMHWN2gTxjMsG4jd04YhpbPR91fUj7rYQ2/XjeHCJWbg7X++ApRIU9NUwM2vTvLA==}
dev: false
- /vscode-textmate/5.4.0:
- resolution: {integrity: sha512-c0Q4zYZkcLizeYJ3hNyaVUM2AA8KDhNCA3JvXY8CeZSJuBdAy3bAvSbv46RClC4P3dSO9BdwhnKEx2zOo6vP/w==}
+ /vscode-textmate/5.2.0:
+ resolution: {integrity: sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==}
dev: false
/w3c-xmlserializer/3.0.0: