{
src: string;
name?: string;
open?: boolean;
+ title?: string;
}
export function ComponentSource({
children,
className,
name,
+ title,
...props
}: ComponentSourceProps) {
+ const displaySrc = title ?? props.src?.split('/').pop() ?? name + '.tsx';
+ const { copyToClipboard } = useCopyToClipboard();
+
return (
-
- {children}
-
+
+ {displaySrc && (
+
+ )}
+
+
+ {children}
+
+
);
}
diff --git a/apps/www/src/components/tailwind-indicator.tsx b/apps/www/src/components/tailwind-indicator.tsx
index d9d5c663fe..45e1410627 100644
--- a/apps/www/src/components/tailwind-indicator.tsx
+++ b/apps/www/src/components/tailwind-indicator.tsx
@@ -2,7 +2,10 @@ export function TailwindIndicator() {
if (process.env.NODE_ENV === 'production') return null;
return (
-
+
xs
sm
diff --git a/apps/www/src/components/typography.tsx b/apps/www/src/components/typography.tsx
index d8f83a5cf1..e1721157b3 100644
--- a/apps/www/src/components/typography.tsx
+++ b/apps/www/src/components/typography.tsx
@@ -157,7 +157,10 @@ export const Table = ({
}: React.HTMLAttributes
) => (
@@ -167,7 +170,7 @@ export const TR = ({
className,
...props
}: React.HTMLAttributes) => (
-
+
);
export const TH = ({
diff --git a/apps/www/src/lib/_blocks.ts b/apps/www/src/lib/_blocks.ts
index b6a0cc008f..9b9aec2f6d 100644
--- a/apps/www/src/lib/_blocks.ts
+++ b/apps/www/src/lib/_blocks.ts
@@ -32,6 +32,7 @@ export async function getAllBlockIds(
return blocks.map((block) => block.name);
}
+// TODO: sync
export async function getBlock(
name: string,
style: Style['name'] = DEFAULT_BLOCKS_STYLE
diff --git a/apps/www/src/lib/highlighter-theme.json b/apps/www/src/lib/highlighter-theme.json
deleted file mode 100644
index d1a46c3b7d..0000000000
--- a/apps/www/src/lib/highlighter-theme.json
+++ /dev/null
@@ -1,380 +0,0 @@
-{
- "name": "Lambda Studio — Blackout",
- "semanticHighlighting": true,
- "colors": {
- "editorLink.activeForeground": "#ca8a0488",
- "foreground": "#fff8",
- "button.background": "#fff",
- "button.foreground": "#000",
- "button.hoverBackground": "#fffb",
- "list.highlightForeground": "#fff",
- "textLink.foreground": "#fff",
- "scrollbar.shadow": "#000",
- "textLink.activeForeground": "#fff8",
- "editor.lineHighlightBackground": "#8881",
- "editor.lineHighlightBorder": "#8882",
- "editorCursor.foreground": "#fff",
- "editor.findMatchBackground": "#fff8",
- "editor.findMatchHighlightBackground": "#fff2",
- "list.activeSelectionForeground": "#fff",
- "list.focusForeground": "#fff",
- "list.hoverForeground": "#fff",
- "list.inactiveSelectionForeground": "#fff",
- "list.inactiveSelectionBackground": "#000",
- "list.focusBackground": "#000",
- "list.focusAndSelectionOutline": "#000",
- "list.focusHighlightForeground": "#fff",
- "list.hoverBackground": "#000",
- "list.focusOutline": "#000",
- "list.activeSelectionBackground": "#000",
- "editorIndentGuide.background": "#fff2",
- "editor.background": "#000",
- "editor.foreground": "#fff",
- "editor.foldBackground": "#000",
- "editor.hoverHighlightBackground": "#000",
- "editor.selectionBackground": "#8888",
- "editor.inactiveSelectionBackground": "#8882",
- "gitDecoration.modifiedResourceForeground": "#fff",
- "gitDecoration.untrackedResourceForeground": "#a7cb7b",
- "gitDecoration.conflictingResourceForeground": "#ca8a04",
- "gitDecoration.deletedResourceForeground": "#c97b89",
- "listFilterWidget.background": "#000",
- "input.background": "#fff1",
- "titleBar.activeForeground": "#fff",
- "editorWidget.background": "#000",
- "editorGutter.background": "#000",
- "debugToolBar.background": "#000",
- "commandCenter.background": "#000",
- "sideBarSectionHeader.background": "#000",
- "focusBorder": "#fff8",
- "titleBar.activeBackground": "#000",
- "titleBar.inactiveBackground": "#000",
- "breadcrumb.background": "#000",
- "activityBar.background": "#000",
- "activityBar.foreground": "#fff8",
- "panel.background": "#000",
- "sideBar.background": "#000",
- "sideBarTitle.foreground": "#fff8",
- "tab.hoverBackground": "#000",
- "terminal.background": "#000",
- "statusBar.background": "#000",
- "statusBar.foreground": "#fff8",
- "selection.background": "#fff2",
- "editorPane.background": "#000",
- "badge.background": "#000",
- "banner.background": "#000",
- "menu.background": "#000",
- "activityBarBadge.background": "#000",
- "activityBarBadge.foreground": "#fff8",
- "editorLineNumber.foreground": "#fff2",
- "editorLineNumber.activeForeground": "#fff8",
- "statusBarItem.errorBackground": "#f43f5e"
- },
- "semanticTokenColors": {
- "comment": {
- "foreground": "#fff4"
- },
- "keyword": {
- "foreground": "#fff8"
- },
- "string": {
- "foreground": "#fff8"
- },
- "selfKeyword": {
- "foreground": "#fff",
- "bold": true
- },
- "method.declaration": {
- "foreground": "#fff",
- "bold": true
- },
- "method.definition": {
- "foreground": "#fff",
- "bold": true
- },
- "method": {
- "foreground": "#fff",
- "bold": false
- },
- "function.declaration": {
- "foreground": "#fff",
- "bold": true
- },
- "function.definition": {
- "foreground": "#fff",
- "bold": true
- },
- "function": {
- "foreground": "#fff",
- "bold": false
- },
- "property": {
- "foreground": "#fff"
- },
- "enumMember": {
- "foreground": "#fff8",
- "bold": false
- },
- "enum": {
- "foreground": "#fff",
- "bold": true
- },
- "boolean": {
- "foreground": "#fff8"
- },
- "number": {
- "foreground": "#fff8"
- },
- "type": {
- "foreground": "#fff",
- "bold": true
- },
- "typeAlias": {
- "foreground": "#fff",
- "bold": true
- },
- "class": {
- "foreground": "#fff",
- "bold": true
- },
- "selfTypeKeyword": {
- "foreground": "#fff",
- "bold": true
- },
- "builtinType": {
- "foreground": "#fff",
- "bold": true
- },
- "interface": {
- "foreground": "#fff8",
- "bold": false
- },
- "typeParameter": {
- "foreground": "#fff",
- "bold": true
- },
- "lifetime": {
- "foreground": "#fff8",
- "italic": false,
- "bold": false
- },
- "namespace": {
- "foreground": "#fff"
- },
- "macro": {
- "foreground": "#fff",
- "bold": false
- },
- "decorator": {
- "foreground": "#fff",
- "bold": false
- },
- "builtinAttribute": {
- "foreground": "#fff",
- "bold": false
- },
- "generic.attribute": {
- "foreground": "#fff"
- },
- "derive": {
- "foreground": "#fff"
- },
- "operator": {
- "foreground": "#fff8"
- },
- "variable": {
- "foreground": "#fff"
- },
- "variable.readonly": {
- "foreground": "#fff8"
- },
- "parameter": {
- "foreground": "#fff"
- },
- "variable.mutable": {
- "underline": true
- },
- "parameter.mutable": {
- "underline": true
- },
- "selfKeyword.mutable": {
- "underline": true
- },
- "variable.constant": {
- "foreground": "#fff8"
- },
- "struct": {
- "foreground": "#fff",
- "bold": true
- }
- },
- "tokenColors": [
- {
- "name": "Fallback Operator",
- "scope": ["keyword.operator"],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "Fallback keywords",
- "scope": [
- "storage.type.ts",
- "keyword",
- "keyword.other",
- "keyword.control",
- "storage.type",
- "storage.modifier"
- ],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "Fallback strings",
- "scope": ["string"],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "Fallback JSON Properties",
- "scope": ["support.type.property-name.json"],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "Fallback string variables",
- "scope": ["string variable", "string meta.interpolation"],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "Fallback comments",
- "scope": ["comment"],
- "settings": {
- "foreground": "#fff4"
- }
- },
- {
- "name": "Fallback constants",
- "scope": ["constant"],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "Fallback self/this",
- "scope": ["variable.language.this"],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "Fallback types",
- "scope": [
- "entity.other.alias",
- "source.php support.class",
- "entity.name.type",
- "meta.function-call support.class",
- "keyword.other.type",
- "entity.other.inherited-class"
- ],
- "settings": {
- "foreground": "#fff",
- "fontStyle": "bold"
- }
- },
- {
- "name": "Fallback method calls",
- "scope": ["meta.method-call entity.name.function"],
- "settings": {
- "foreground": "#fff",
- "fontStyle": ""
- }
- },
- {
- "name": "Fallback function calls",
- "scope": [
- "meta.function-call entity.name.function",
- "meta.function-call support.function",
- "meta.function.call entity.name.function"
- ],
- "settings": {
- "foreground": "#fff",
- "fontStyle": ""
- }
- },
- {
- "name": "Fallback enums & constants",
- "scope": ["constant.enum", "constant.other"],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "Fallback Properties & func arguments",
- "scope": [
- "variable.other.property",
- "entity.name.goto-label",
- "entity.name.variable.parameter"
- ],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "Fallback functions & methods declarations",
- "scope": [
- "entity.name.function",
- "support.function",
- "support.function.constructor",
- "entity.name.function meta.function-call meta.method-call"
- ],
- "settings": {
- "foreground": "#fff",
- "fontStyle": "bold"
- }
- },
- {
- "name": "HTML Tags",
- "scope": [
- "meta.tag entity.name.tag.html",
- "entity.name.tag.template.html"
- ],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "HTML Attributes",
- "scope": ["entity.other.attribute-name.html"],
- "settings": {
- "foreground": "#fff8"
- }
- },
- {
- "name": "HTML Custom Tag",
- "scope": ["meta.tag.other.unrecognized.html entity.name.tag.html"],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "HTML Keywords",
- "scope": ["text.html keyword"],
- "settings": {
- "foreground": "#fff"
- }
- },
- {
- "name": "Punctuations",
- "scope": ["punctuation", "meta.brace"],
- "settings": {
- "foreground": "#fff8"
- }
- }
- ]
-}
diff --git a/apps/www/src/lib/plate/demo/values/cloudValue.tsx b/apps/www/src/lib/plate/demo/values/cloudValue.tsx
deleted file mode 100644
index db5335bf78..0000000000
--- a/apps/www/src/lib/plate/demo/values/cloudValue.tsx
+++ /dev/null
@@ -1,137 +0,0 @@
-/** @jsxRuntime classic */
-/** @jsx jsx */
-import { jsx } from '@udecode/plate-test-utils';
-
-jsx;
-
-export const cloudValue: any = (
-
- ☁️ Plate Cloud Uploads - Images and Attachments
-
- Plate Cloud is Plate's official cloud upload service with support for
- attachments, images and image resizing. Includes server-side image
- resizing which delivers optimized images to each user. Supports high DPI
- files for retina devices and smaller files for faster delivery for
- non-high DPI devices.
-
-
- To upload a file, paste any file into this editor, or drag and drop the
- file into the editor. Images are automatically inserted as images and
- other files are inserted as attachments.
-
- Resizing Images
-
- Click an image and it will display a resize handle that you can drag to
- resize. Images are resized on the server saving bandwidth and improving
- download times for your users.
-
- Local Setup
-
- If you are running the examples locally, get a free Portive API Key from
- https://portive.com/, add a file at `/apps/www/.env.local` with one line
- in it like `PORTIVE_API_KEY=PRTV_xxxx_xxxx` substituting your API key for
- `PRTV_xxxx_xxxx`.
-
- Cloud Images
- Samples of cloud images in various upload states.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Cloud Attachments
- Samples of cloud attachments in various upload states.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
diff --git a/apps/www/src/registry/default/example/cloud-demo.tsx b/apps/www/src/registry/default/example/cloud-demo.tsx
deleted file mode 100644
index 2bb2e9102f..0000000000
--- a/apps/www/src/registry/default/example/cloud-demo.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import React from 'react';
-
-import { BasicElementsPlugin } from '@udecode/plate-basic-elements/react';
-import { BasicMarksPlugin } from '@udecode/plate-basic-marks/react';
-import {
- CloudAttachmentPlugin,
- CloudImagePlugin,
- CloudPlugin,
-} from '@udecode/plate-cloud';
-import { Plate } from '@udecode/plate-common/react';
-import { usePlateEditor } from '@udecode/plate-core/react';
-
-import { uploadStoreInitialValue } from '@/plate/demo/cloud/uploadStoreInitialValue';
-import { editableProps } from '@/plate/demo/editableProps';
-import { PlateUI } from '@/plate/demo/plate-ui';
-import { cloudValue } from '@/plate/demo/values/cloudValue';
-import { CloudAttachmentElement } from '@/registry/default/plate-ui/cloud-attachment-element';
-import { CloudImageElement } from '@/registry/default/plate-ui/cloud-image-element';
-import { CloudToolbarButtons } from '@/registry/default/plate-ui/cloud-toolbar-buttons';
-import { Editor } from '@/registry/default/plate-ui/editor';
-import { FixedToolbar } from '@/registry/default/plate-ui/fixed-toolbar';
-
-export default function CloudDemo() {
- const editor = usePlateEditor({
- override: { components: PlateUI },
- plugins: [
- BasicElementsPlugin,
- BasicMarksPlugin,
- CloudPlugin.configure({
- options: {
- authToken:
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InB1UFoyZTdlN0tUVzh0MjQifQ.eyJpYXQiOjE2Njg0NTUxMDksImV4cCI6MTcwMDAxMjcwOX0.xEznN3Wl6GqN57wsDGq0Z6giI4TvU32gvmMJUzcg2No',
- uploadStoreInitialValue,
- },
- }),
- CloudAttachmentPlugin.withComponent(CloudAttachmentElement),
- CloudImagePlugin.configure({
- options: {
- maxInitialHeight: 320,
- maxInitialWidth: 320,
- maxResizeWidth: 720,
- minResizeWidth: 100,
- },
- }).withComponent(CloudImageElement),
- ],
- value: cloudValue,
- });
-
- return (
-
-
-
-
-
-
-
- );
-}
diff --git a/apps/www/src/registry/default/plate-ui/button.tsx b/apps/www/src/registry/default/plate-ui/button.tsx
index c118b04bd3..d01df9d609 100644
--- a/apps/www/src/registry/default/plate-ui/button.tsx
+++ b/apps/www/src/registry/default/plate-ui/button.tsx
@@ -5,7 +5,7 @@ import { cn, withRef } from '@udecode/cn';
import { type VariantProps, cva } from 'class-variance-authority';
export const buttonVariants = cva(
- 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
+ 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
{
defaultVariants: {
size: 'default',
diff --git a/apps/www/src/registry/default/plate-ui/cloud-attachment-element.tsx b/apps/www/src/registry/default/plate-ui/cloud-attachment-element.tsx
deleted file mode 100644
index 90e071c35a..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud-attachment-element.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-'use client';
-
-import React from 'react';
-
-import { cn } from '@udecode/cn';
-import {
- type TCloudAttachmentElement,
- useCloudAttachmentElementState,
-} from '@udecode/plate-cloud';
-import {
- type PlateElementProps,
- PlateElement,
-} from '@udecode/plate-common/react';
-
-import { Icons } from '@/components/icons';
-
-import { StatusBar } from './cloud-status-bar';
-
-export interface CloudAttachmentElementProps
- extends PlateElementProps {}
-
-export function CloudAttachmentElement({
- className,
- ...props
-}: CloudAttachmentElementProps) {
- const { children, element } = props;
-
- const { focused, selected, upload } = useCloudAttachmentElementState({
- element,
- });
-
- return (
-
-
-
-
-
-
{element.filename}
-
-
- {element.bytes} bytes
-
-
-
-
- {upload.status === 'success' && (
-
-
-
- )}
-
- {children}
-
- );
-}
diff --git a/apps/www/src/registry/default/plate-ui/cloud-image-element.tsx b/apps/www/src/registry/default/plate-ui/cloud-image-element.tsx
deleted file mode 100644
index 539c45d408..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud-image-element.tsx
+++ /dev/null
@@ -1,100 +0,0 @@
-'use client';
-
-import React from 'react';
-
-import { cn } from '@udecode/cn';
-import {
- type TCloudImageElement,
- useCloudImageElementState,
-} from '@udecode/plate-cloud';
-import {
- type PlateElementProps,
- PlateElement,
-} from '@udecode/plate-common/react';
-
-import { ResizeControls } from './cloud-resize-controls';
-import { StatusBar } from './cloud-status-bar';
-
-export interface CloudImageElementProps
- extends PlateElementProps {}
-
-export function CloudImageElement({
- className,
- ...props
-}: CloudImageElementProps) {
- const { children, element } = props;
-
- const { focused, selected, setSize, size, src, srcSet, upload } =
- useCloudImageElementState({ element });
-
- return (
-
- on the inside is display: 'block'.
- */
- verticalAlign: 'top',
- }}
- contentEditable={false}
- >
- {src === '' ? (
-
- ) : (
-
- )}
-
-
-
- {selected && focused && (
-
- )}
-
- {children}
-
- );
-}
diff --git a/apps/www/src/registry/default/plate-ui/cloud-resize-controls.tsx b/apps/www/src/registry/default/plate-ui/cloud-resize-controls.tsx
deleted file mode 100644
index 7b07f6a8c7..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud-resize-controls.tsx
+++ /dev/null
@@ -1,191 +0,0 @@
-'use client';
-
-import React, {
- type Dispatch,
- type SetStateAction,
- useCallback,
- useRef,
- useState,
-} from 'react';
-
-import { resizeInWidth } from '@portive/client';
-import {
- type TCloudImageElement,
- CloudImagePlugin,
-} from '@udecode/plate-cloud';
-import { setNodes } from '@udecode/plate-common';
-import { findNodePath, useEditorRef } from '@udecode/plate-common/react';
-
-type ImageSize = { height: number; width: number };
-
-type SetImageSize = Dispatch>;
-
-/** The resize label that shows the width/height of the image */
-function ResizeLabel({ size }: { size: { height: number; width: number } }) {
- const isBelow = size.width < 100 || size.height < 100;
- const bottom = isBelow ? -24 : 4;
-
- return (
-
- {size.width} × {size.height}
-
- );
-}
-
-/** The little divets on the resize handle bar. */
-const barStyle = {
- background: 'rgba(255,255,255,0.75)',
- height: 16,
- position: 'absolute',
- top: 8,
- width: 1,
-} as const;
-
-/** The handle used to drag resize an image */
-function ResizeHandles({
- onMouseDown,
-}: {
- onMouseDown: React.MouseEventHandler;
-}) {
- return (
- <>
- {/* Invisible Handle */}
-
- {/* Visible Handle */}
-
-
- >
- );
-}
-
-export function ResizeControls({
- element,
- setSize,
- size,
-}: {
- element: TCloudImageElement;
- setSize: SetImageSize;
- size: ImageSize;
-}) {
- const editor = useEditorRef();
- const [isResizing, setIsResizing] = useState(false);
-
- const { maxResizeWidth, minResizeWidth } =
- editor.getOptions(CloudImagePlugin);
-
- const currentSizeRef = useRef<{ height: number; width: number }>();
-
- const onMouseDown = useCallback(
- (mouseDownEvent: React.MouseEvent) => {
- setIsResizing(true);
- const startX = mouseDownEvent.clientX;
- const startWidth = size.width;
- const minWidth = minResizeWidth;
- const maxWidth = Math.min(element.maxWidth, maxResizeWidth);
-
- /**
- * Handle resize dragging through an event handler on mouseMove on the
- * document.
- */
- function onDocumentMouseMove(mouseMoveEvent: MouseEvent) {
- mouseMoveEvent.preventDefault();
- mouseMoveEvent.stopPropagation();
- /** Calculate the proposed width based on drag position */
- const proposedWidth = startWidth + mouseMoveEvent.clientX - startX;
-
- /** Constrain the proposed with between min, max and original width */
- const nextWidth = Math.min(maxWidth, Math.max(minWidth, proposedWidth));
-
- const currentSize = resizeInWidth(
- { height: element.maxHeight, width: element.maxWidth },
- nextWidth
- );
-
- currentSizeRef.current = currentSize;
- setSize(currentSize);
- }
-
- const originalCursor = document.body.style.cursor;
-
- /** When the user releases the mouse, remove all the event handlers */
- function onDocumentMouseUp() {
- setIsResizing(false);
- document.removeEventListener('mousemove', onDocumentMouseMove);
- document.removeEventListener('mouseup', onDocumentMouseUp);
- document.body.style.cursor = originalCursor;
-
- const at = findNodePath(editor, element);
-
- if (!currentSizeRef.current) return;
-
- setNodes(editor, currentSizeRef.current, { at });
- }
-
- /** Attach document event listeners */
- document.addEventListener('mousemove', onDocumentMouseMove);
- document.addEventListener('mouseup', onDocumentMouseUp);
-
- /**
- * While dragging, we want the cursor to be `ew-resize` (left-right arrow)
- * even if the cursor happens to not be exactly on the handle at the
- * moment due to a delay in the cursor moving to a location and the image
- * resizing to it.
- *
- * Also, image has max width/height and the cursor can fall outside of it.
- */
- document.body.style.cursor = 'ew-resize';
- },
- [size.width, minResizeWidth, element, maxResizeWidth, setSize, editor]
- );
-
- if (element.width < minResizeWidth) return null;
-
- return (
- <>
- {isResizing ? : null}
-
- >
- );
-}
diff --git a/apps/www/src/registry/default/plate-ui/cloud-status-bar.tsx b/apps/www/src/registry/default/plate-ui/cloud-status-bar.tsx
deleted file mode 100644
index d9cd891256..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud-status-bar.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-'use client';
-
-import React, { type HTMLAttributes, useEffect, useRef, useState } from 'react';
-
-import type { Upload, UploadProgress } from '@udecode/plate-cloud';
-
-import { cn } from '@udecode/cn';
-
-export function ProgressBar({
- className,
- upload,
- ...props
-}: {
- upload: UploadProgress;
-} & HTMLAttributes) {
- const [width, setWidth] = useState(null);
- const ref = useRef(null);
-
- useEffect(() => {
- if (ref.current) setWidth(ref.current.offsetWidth);
- }, []);
-
- /**
- * This formula looks a little funny because we want the `0` value of the
- * progress bar to have a width that is still the height of the progress bar.
- *
- * This is for a few reasons:
- *
- * 1. We want the zero point to start with the progress bar being a circle
- * 2. If we want rounded edges, if the width is shorter than the height, we get
- * an oval instead of a circle
- * 3. The halfway point looks visually wrong because of the circle progress bar
- * when it is technically at the halfway point.
- */
- const progressWidth =
- width == null
- ? 0
- : (upload.sentBytes / upload.totalBytes) * (width - 16) + 16;
-
- return (
-
- );
-}
-
-export function FailBar({
- className,
- ...props
-}: HTMLAttributes) {
- return (
-
- );
-}
-
-export function StatusBar(props: {
- upload: Upload;
- children?: React.ReactNode;
-}) {
- const { children, upload } = props;
-
- switch (upload.status) {
- case 'progress': {
- return ;
- }
- case 'error': {
- return Upload Failed;
- }
- case 'not-found': {
- return Uploading...;
- }
- case 'success': {
- return children || null;
- }
- default: {
- throw new Error(`Should be unreachable`);
- }
- }
-}
diff --git a/apps/www/src/registry/default/plate-ui/cloud-toolbar-buttons.tsx b/apps/www/src/registry/default/plate-ui/cloud-toolbar-buttons.tsx
deleted file mode 100644
index 54151bfee6..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud-toolbar-buttons.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-'use client';
-
-import React from 'react';
-
-import { CloudPlugin } from '@udecode/plate-cloud';
-import { useEditorPlugin } from '@udecode/plate-common/react';
-
-const buttonStyle: React.CSSProperties = {
- background: '#f0f0f0',
- border: 'none',
- cursor: 'pointer',
- marginRight: 4,
- padding: 8,
-};
-
-export function CloudToolbarButtons() {
- const { api, editor } = useEditorPlugin(CloudPlugin);
-
- const getSaveValue = () => {
- console.info('editor.children', editor.children);
- console.info('editor.cloud.getSaveValue()', api.cloud.getSaveValue());
- };
-
- const finishUploads = async () => {
- await api.cloud.finishUploads();
- };
-
- return (
- <>
-
-
-
- Note: After clicking a button, output will be shown in console.
-
- >
- );
-}
diff --git a/apps/www/src/registry/default/plate-ui/cloud.tsx b/apps/www/src/registry/default/plate-ui/cloud.tsx
deleted file mode 100644
index bfea4d3178..0000000000
--- a/apps/www/src/registry/default/plate-ui/cloud.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-export * from './cloud-attachment-element';
-
-export * from './cloud-image-element';
-
-export * from './cloud-resize-controls';
-
-export * from './cloud-status-bar';
-
-export * from './cloud-toolbar-buttons';
diff --git a/apps/www/src/registry/default/plate-ui/dropdown-menu.tsx b/apps/www/src/registry/default/plate-ui/dropdown-menu.tsx
index ba3ae7b40f..8374f0440e 100644
--- a/apps/www/src/registry/default/plate-ui/dropdown-menu.tsx
+++ b/apps/www/src/registry/default/plate-ui/dropdown-menu.tsx
@@ -78,6 +78,7 @@ export const DropdownMenuContent = withRef<
const menuItemVariants = cva(
cn(
'relative flex h-9 cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',
+ '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
'focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50'
),
{
diff --git a/apps/www/src/registry/registry-examples.ts b/apps/www/src/registry/registry-examples.ts
index cab7b60df8..01f8277b33 100644
--- a/apps/www/src/registry/registry-examples.ts
+++ b/apps/www/src/registry/registry-examples.ts
@@ -85,12 +85,6 @@ export const examples: Registry = [
registryDependencies: [],
type: 'registry:example',
},
- {
- files: ['example/cloud-demo.tsx'],
- name: 'cloud-demo',
- registryDependencies: [],
- type: 'registry:example',
- },
{
files: ['example/editable-voids-demo.tsx'],
name: 'editable-voids-demo',
diff --git a/apps/www/src/registry/registry-ui.ts b/apps/www/src/registry/registry-ui.ts
index 3535749ded..7678e8fe36 100644
--- a/apps/www/src/registry/registry-ui.ts
+++ b/apps/www/src/registry/registry-ui.ts
@@ -22,20 +22,6 @@ export const ui: Registry = [
registryDependencies: ['block-selection'],
type: 'registry:ui',
},
- {
- dependencies: ['@udecode/plate-cloud'],
- files: [
- 'plate-ui/cloud.tsx',
- 'plate-ui/cloud-attachment-element.tsx',
- 'plate-ui/cloud-image-element.tsx',
- 'plate-ui/cloud-resize-controls.tsx',
- 'plate-ui/cloud-status-bar.tsx',
- 'plate-ui/cloud-toolbar-buttons.tsx',
- ],
- name: 'cloud',
- registryDependencies: [],
- type: 'registry:ui',
- },
{
dependencies: ['@udecode/plate-code-block'],
files: [
diff --git a/yarn.lock b/yarn.lock
index 1a00484f75..8a550f3e79 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3199,6 +3199,24 @@ __metadata:
languageName: node
linkType: hard
+"@puppeteer/browsers@npm:2.4.0":
+ version: 2.4.0
+ resolution: "@puppeteer/browsers@npm:2.4.0"
+ dependencies:
+ debug: "npm:^4.3.6"
+ extract-zip: "npm:^2.0.1"
+ progress: "npm:^2.0.3"
+ proxy-agent: "npm:^6.4.0"
+ semver: "npm:^7.6.3"
+ tar-fs: "npm:^3.0.6"
+ unbzip2-stream: "npm:^1.4.3"
+ yargs: "npm:^17.7.2"
+ bin:
+ browsers: lib/cjs/main-cli.js
+ checksum: 10c0/62227a4e3104d8bc8fbd6cd008ff82d63d8b8747ee6bba544d905c86d86b0ff005a1dfb6abbe1db80723733f338a55dd5719b12333f4332c0c7a1f6b007ed660
+ languageName: node
+ linkType: hard
+
"@radix-ui/colors@npm:3.0.0":
version: 3.0.0
resolution: "@radix-ui/colors@npm:3.0.0"
@@ -5256,6 +5274,13 @@ __metadata:
languageName: node
linkType: hard
+"@tootallnate/quickjs-emscripten@npm:^0.23.0":
+ version: 0.23.0
+ resolution: "@tootallnate/quickjs-emscripten@npm:0.23.0"
+ checksum: 10c0/2a939b781826fb5fd3edd0f2ec3b321d259d760464cf20611c9877205aaca3ccc0b7304dea68416baa0d568e82cd86b17d29548d1e5139fa3155a4a86a2b4b49
+ languageName: node
+ linkType: hard
+
"@ts-morph/common@npm:~0.19.0":
version: 0.19.0
resolution: "@ts-morph/common@npm:0.19.0"
@@ -5850,6 +5875,15 @@ __metadata:
languageName: node
linkType: hard
+"@types/yauzl@npm:^2.9.1":
+ version: 2.10.3
+ resolution: "@types/yauzl@npm:2.10.3"
+ dependencies:
+ "@types/node": "npm:*"
+ checksum: 10c0/f1b7c1b99fef9f2fe7f1985ef7426d0cebe48cd031f1780fcdc7451eec7e31ac97028f16f50121a59bcf53086a1fc8c856fd5b7d3e00970e43d92ae27d6b43dc
+ languageName: node
+ linkType: hard
+
"@typescript-eslint/eslint-plugin@npm:^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0":
version: 7.2.0
resolution: "@typescript-eslint/eslint-plugin@npm:7.2.0"
@@ -7706,6 +7740,15 @@ __metadata:
languageName: node
linkType: hard
+"ast-types@npm:^0.13.4":
+ version: 0.13.4
+ resolution: "ast-types@npm:0.13.4"
+ dependencies:
+ tslib: "npm:^2.0.1"
+ checksum: 10c0/3a1a409764faa1471601a0ad01b3aa699292991aa9c8a30c7717002cabdf5d98008e7b53ae61f6e058f757fc6ba965e147967a93c13e62692c907d79cfb245f8
+ languageName: node
+ linkType: hard
+
"ast-types@npm:^0.16.1":
version: 0.16.1
resolution: "ast-types@npm:0.16.1"
@@ -7812,6 +7855,13 @@ __metadata:
languageName: node
linkType: hard
+"b4a@npm:^1.6.4":
+ version: 1.6.7
+ resolution: "b4a@npm:1.6.7"
+ checksum: 10c0/ec2f004d1daae04be8c5a1f8aeb7fea213c34025e279db4958eb0b82c1729ee25f7c6e89f92a5f65c8a9cf2d017ce27e3dda912403341d1781bd74528a4849d4
+ languageName: node
+ linkType: hard
+
"babel-jest@npm:^29.7.0":
version: 29.7.0
resolution: "babel-jest@npm:29.7.0"
@@ -7922,6 +7972,49 @@ __metadata:
languageName: node
linkType: hard
+"bare-events@npm:^2.0.0, bare-events@npm:^2.2.0":
+ version: 2.5.0
+ resolution: "bare-events@npm:2.5.0"
+ checksum: 10c0/afbeec4e8be4d93fb4a3be65c3b4a891a2205aae30b5a38fafd42976cc76cf30dad348963fe330a0d70186e15dc507c11af42c89af5dddab2a54e5aff02e2896
+ languageName: node
+ linkType: hard
+
+"bare-fs@npm:^2.1.1":
+ version: 2.3.5
+ resolution: "bare-fs@npm:2.3.5"
+ dependencies:
+ bare-events: "npm:^2.0.0"
+ bare-path: "npm:^2.0.0"
+ bare-stream: "npm:^2.0.0"
+ checksum: 10c0/ff18cc9be7c557c38e0342681ba3672ae4b01e5696b567d4035e5995255dc6bc7d4df88ed210fa4d3eb940eb29512e924ebb42814c87fc59a2bee8cf83b7c2f9
+ languageName: node
+ linkType: hard
+
+"bare-os@npm:^2.1.0":
+ version: 2.4.4
+ resolution: "bare-os@npm:2.4.4"
+ checksum: 10c0/e7d1a7b2100c05da8d25b60d0d48cf850c6f57064577a3f2f51cf18d417fbcfd6967ed2d8314320914ed69e0f2ebcf54eb1b36092dd172d8e8f969cf8cccf041
+ languageName: node
+ linkType: hard
+
+"bare-path@npm:^2.0.0, bare-path@npm:^2.1.0":
+ version: 2.1.3
+ resolution: "bare-path@npm:2.1.3"
+ dependencies:
+ bare-os: "npm:^2.1.0"
+ checksum: 10c0/35587e177fc8fa5b13fb90bac8779b5ce49c99016d221ddaefe2232d02bd4295d79b941e14ae19fda75ec42a6fe5fb66c07d83ae7ec11462178e66b7be65ca74
+ languageName: node
+ linkType: hard
+
+"bare-stream@npm:^2.0.0":
+ version: 2.3.1
+ resolution: "bare-stream@npm:2.3.1"
+ dependencies:
+ streamx: "npm:^2.20.0"
+ checksum: 10c0/45714dc65df9c59d4b0f366e462c44869652a10073965328bc8340261fd6aba841e96babcf17e304090e1d46239ee2f6816e9b07c971b30447bfa199d6e3dcd1
+ languageName: node
+ linkType: hard
+
"barrelsby@npm:^2.8.1":
version: 2.8.1
resolution: "barrelsby@npm:2.8.1"
@@ -7949,6 +8042,13 @@ __metadata:
languageName: node
linkType: hard
+"basic-ftp@npm:^5.0.2":
+ version: 5.0.5
+ resolution: "basic-ftp@npm:5.0.5"
+ checksum: 10c0/be983a3997749856da87b839ffce6b8ed6c7dbf91ea991d5c980d8add275f9f2926c19f80217ac3e7f353815be879371d636407ca72b038cea8cab30e53928a6
+ languageName: node
+ linkType: hard
+
"better-path-resolve@npm:1.0.0":
version: 1.0.0
resolution: "better-path-resolve@npm:1.0.0"
@@ -8094,6 +8194,13 @@ __metadata:
languageName: node
linkType: hard
+"buffer-crc32@npm:~0.2.3":
+ version: 0.2.13
+ resolution: "buffer-crc32@npm:0.2.13"
+ checksum: 10c0/cb0a8ddf5cf4f766466db63279e47761eb825693eeba6a5a95ee4ec8cb8f81ede70aa7f9d8aeec083e781d47154290eb5d4d26b3f7a465ec57fb9e7d59c47150
+ languageName: node
+ linkType: hard
+
"buffer-from@npm:^1.0.0":
version: 1.1.2
resolution: "buffer-from@npm:1.1.2"
@@ -8101,6 +8208,16 @@ __metadata:
languageName: node
linkType: hard
+"buffer@npm:^5.2.1":
+ version: 5.7.1
+ resolution: "buffer@npm:5.7.1"
+ dependencies:
+ base64-js: "npm:^1.3.1"
+ ieee754: "npm:^1.1.13"
+ checksum: 10c0/27cac81cff434ed2876058d72e7c4789d11ff1120ef32c9de48f59eab58179b66710c488987d295ae89a228f835fc66d088652dffeb8e3ba8659f80eb091d55e
+ languageName: node
+ linkType: hard
+
"buffer@npm:^6.0.3":
version: 6.0.3
resolution: "buffer@npm:6.0.3"
@@ -8417,6 +8534,19 @@ __metadata:
languageName: node
linkType: hard
+"chromium-bidi@npm:0.8.0":
+ version: 0.8.0
+ resolution: "chromium-bidi@npm:0.8.0"
+ dependencies:
+ mitt: "npm:3.0.1"
+ urlpattern-polyfill: "npm:10.0.0"
+ zod: "npm:3.23.8"
+ peerDependencies:
+ devtools-protocol: "*"
+ checksum: 10c0/d69bcf6eebe8026aae19ef383a7ba35e84bed38be00c5f4cd9700542653e628c528b21b68da10c4de76fc46ee18d186765843b0eb428428eb7e360ff3a6641c8
+ languageName: node
+ linkType: hard
+
"ci-info@npm:^3.2.0, ci-info@npm:^3.7.0":
version: 3.9.0
resolution: "ci-info@npm:3.9.0"
@@ -8844,6 +8974,23 @@ __metadata:
languageName: node
linkType: hard
+"cosmiconfig@npm:^9.0.0":
+ version: 9.0.0
+ resolution: "cosmiconfig@npm:9.0.0"
+ dependencies:
+ env-paths: "npm:^2.2.1"
+ import-fresh: "npm:^3.3.0"
+ js-yaml: "npm:^4.1.0"
+ parse-json: "npm:^5.2.0"
+ peerDependencies:
+ typescript: ">=4.9.5"
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ checksum: 10c0/1c1703be4f02a250b1d6ca3267e408ce16abfe8364193891afc94c2d5c060b69611fdc8d97af74b7e6d5d1aac0ab2fb94d6b079573146bc2d756c2484ce5f0ee
+ languageName: node
+ linkType: hard
+
"create-jest@npm:^29.7.0":
version: 29.7.0
resolution: "create-jest@npm:29.7.0"
@@ -9014,6 +9161,13 @@ __metadata:
languageName: node
linkType: hard
+"data-uri-to-buffer@npm:^6.0.2":
+ version: 6.0.2
+ resolution: "data-uri-to-buffer@npm:6.0.2"
+ checksum: 10c0/f76922bf895b3d7d443059ff278c9cc5efc89d70b8b80cd9de0aa79b3adc6d7a17948eefb8692e30398c43635f70ece1673d6085cc9eba2878dbc6c6da5292ac
+ languageName: node
+ linkType: hard
+
"data-urls@npm:^3.0.2":
version: 3.0.2
resolution: "data-urls@npm:3.0.2"
@@ -9093,7 +9247,7 @@ __metadata:
languageName: node
linkType: hard
-"debug@npm:^4.3.5":
+"debug@npm:^4.3.5, debug@npm:^4.3.6, debug@npm:^4.3.7":
version: 4.3.7
resolution: "debug@npm:4.3.7"
dependencies:
@@ -9204,6 +9358,17 @@ __metadata:
languageName: node
linkType: hard
+"degenerator@npm:^5.0.0":
+ version: 5.0.1
+ resolution: "degenerator@npm:5.0.1"
+ dependencies:
+ ast-types: "npm:^0.13.4"
+ escodegen: "npm:^2.1.0"
+ esprima: "npm:^4.0.1"
+ checksum: 10c0/e48d8a651edeb512a648711a09afec269aac6de97d442a4bb9cf121a66877e0eec11b9727100a10252335c0666ae1c84a8bc1e3a3f47788742c975064d2c7b1c
+ languageName: node
+ linkType: hard
+
"delay@npm:5.0.0":
version: 5.0.0
resolution: "delay@npm:5.0.0"
@@ -9283,6 +9448,13 @@ __metadata:
languageName: node
linkType: hard
+"devtools-protocol@npm:0.0.1354347":
+ version: 0.0.1354347
+ resolution: "devtools-protocol@npm:0.0.1354347"
+ checksum: 10c0/c3b6106eca257d870aca6f56ec6520b25c970051c5dcf847091201f4a635d12ba3821171de966f65beaa9b06c9dc1a77b43b6e4c5533eb1a5a7ef0b8b2972491
+ languageName: node
+ linkType: hard
+
"didyoumean@npm:^1.2.2":
version: 1.2.2
resolution: "didyoumean@npm:1.2.2"
@@ -9555,6 +9727,15 @@ __metadata:
languageName: node
linkType: hard
+"end-of-stream@npm:^1.1.0":
+ version: 1.4.4
+ resolution: "end-of-stream@npm:1.4.4"
+ dependencies:
+ once: "npm:^1.4.0"
+ checksum: 10c0/870b423afb2d54bb8d243c63e07c170409d41e20b47eeef0727547aea5740bd6717aca45597a9f2745525667a6b804c1e7bede41f856818faee5806dd9ff3975
+ languageName: node
+ linkType: hard
+
"engine.io-client@npm:~6.5.2":
version: 6.5.3
resolution: "engine.io-client@npm:6.5.3"
@@ -9619,7 +9800,7 @@ __metadata:
languageName: node
linkType: hard
-"env-paths@npm:^2.2.0":
+"env-paths@npm:^2.2.0, env-paths@npm:^2.2.1":
version: 2.2.1
resolution: "env-paths@npm:2.2.1"
checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4
@@ -10116,7 +10297,7 @@ __metadata:
languageName: node
linkType: hard
-"escodegen@npm:^2.0.0":
+"escodegen@npm:^2.0.0, escodegen@npm:^2.1.0":
version: 2.1.0
resolution: "escodegen@npm:2.1.0"
dependencies:
@@ -11019,6 +11200,23 @@ __metadata:
languageName: node
linkType: hard
+"extract-zip@npm:^2.0.1":
+ version: 2.0.1
+ resolution: "extract-zip@npm:2.0.1"
+ dependencies:
+ "@types/yauzl": "npm:^2.9.1"
+ debug: "npm:^4.1.1"
+ get-stream: "npm:^5.1.0"
+ yauzl: "npm:^2.10.0"
+ dependenciesMeta:
+ "@types/yauzl":
+ optional: true
+ bin:
+ extract-zip: cli.js
+ checksum: 10c0/9afbd46854aa15a857ae0341a63a92743a7b89c8779102c3b4ffc207516b2019337353962309f85c66ee3d9092202a83cdc26dbf449a11981272038443974aee
+ languageName: node
+ linkType: hard
+
"fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3":
version: 3.1.3
resolution: "fast-deep-equal@npm:3.1.3"
@@ -11033,6 +11231,13 @@ __metadata:
languageName: node
linkType: hard
+"fast-fifo@npm:^1.2.0, fast-fifo@npm:^1.3.2":
+ version: 1.3.2
+ resolution: "fast-fifo@npm:1.3.2"
+ checksum: 10c0/d53f6f786875e8b0529f784b59b4b05d4b5c31c651710496440006a398389a579c8dbcd2081311478b5bf77f4b0b21de69109c5a4eabea9d8e8783d1eb864e4c
+ languageName: node
+ linkType: hard
+
"fast-glob@npm:^3.2.12, fast-glob@npm:^3.2.5, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.1, fast-glob@npm:^3.3.2":
version: 3.3.2
resolution: "fast-glob@npm:3.3.2"
@@ -11112,6 +11317,15 @@ __metadata:
languageName: node
linkType: hard
+"fd-slicer@npm:~1.1.0":
+ version: 1.1.0
+ resolution: "fd-slicer@npm:1.1.0"
+ dependencies:
+ pend: "npm:~1.2.0"
+ checksum: 10c0/304dd70270298e3ffe3bcc05e6f7ade2511acc278bc52d025f8918b48b6aa3b77f10361bddfadfe2a28163f7af7adbdce96f4d22c31b2f648ba2901f0c5fc20e
+ languageName: node
+ linkType: hard
+
"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4":
version: 3.2.0
resolution: "fetch-blob@npm:3.2.0"
@@ -11352,7 +11566,7 @@ __metadata:
languageName: node
linkType: hard
-"fs-extra@npm:^11.1.0, fs-extra@npm:^11.1.1":
+"fs-extra@npm:^11.1.0, fs-extra@npm:^11.1.1, fs-extra@npm:^11.2.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
dependencies:
@@ -11550,6 +11764,15 @@ __metadata:
languageName: node
linkType: hard
+"get-stream@npm:^5.1.0":
+ version: 5.2.0
+ resolution: "get-stream@npm:5.2.0"
+ dependencies:
+ pump: "npm:^3.0.0"
+ checksum: 10c0/43797ffd815fbb26685bf188c8cfebecb8af87b3925091dd7b9a9c915993293d78e3c9e1bce125928ff92f2d0796f3889b92b5ec6d58d1041b574682132e0a80
+ languageName: node
+ linkType: hard
+
"get-stream@npm:^6.0.0, get-stream@npm:^6.0.1":
version: 6.0.1
resolution: "get-stream@npm:6.0.1"
@@ -11586,6 +11809,18 @@ __metadata:
languageName: node
linkType: hard
+"get-uri@npm:^6.0.1":
+ version: 6.0.3
+ resolution: "get-uri@npm:6.0.3"
+ dependencies:
+ basic-ftp: "npm:^5.0.2"
+ data-uri-to-buffer: "npm:^6.0.2"
+ debug: "npm:^4.3.4"
+ fs-extra: "npm:^11.2.0"
+ checksum: 10c0/8d801c462cd5b9c171d4d9e5f17afce3d9ebfbbfb006a88e3e768ce0071a8e2e59ee1ce822915fc43b9d6b83fde7b8d1c9648330ae89778fa41ad774df8ee0ac
+ languageName: node
+ linkType: hard
+
"git-hooks-list@npm:^3.0.0":
version: 3.1.0
resolution: "git-hooks-list@npm:3.1.0"
@@ -12327,7 +12562,7 @@ __metadata:
languageName: node
linkType: hard
-"http-proxy-agent@npm:^7.0.0":
+"http-proxy-agent@npm:^7.0.0, http-proxy-agent@npm:^7.0.1":
version: 7.0.2
resolution: "http-proxy-agent@npm:7.0.2"
dependencies:
@@ -12367,6 +12602,16 @@ __metadata:
languageName: node
linkType: hard
+"https-proxy-agent@npm:^7.0.3, https-proxy-agent@npm:^7.0.5":
+ version: 7.0.5
+ resolution: "https-proxy-agent@npm:7.0.5"
+ dependencies:
+ agent-base: "npm:^7.0.2"
+ debug: "npm:4"
+ checksum: 10c0/2490e3acec397abeb88807db52cac59102d5ed758feee6df6112ab3ccd8325e8a1ce8bce6f4b66e5470eca102d31e425ace904242e4fa28dbe0c59c4bafa7b2c
+ languageName: node
+ linkType: hard
+
"human-id@npm:^1.0.2":
version: 1.0.2
resolution: "human-id@npm:1.0.2"
@@ -12413,7 +12658,7 @@ __metadata:
languageName: node
linkType: hard
-"ieee754@npm:^1.2.1":
+"ieee754@npm:^1.1.13, ieee754@npm:^1.2.1":
version: 1.2.1
resolution: "ieee754@npm:1.2.1"
checksum: 10c0/b0782ef5e0935b9f12883a2e2aa37baa75da6e66ce6515c168697b42160807d9330de9a32ec1ed73149aea02e0d822e572bca6f1e22bdcbd2149e13b050b17bb
@@ -14407,6 +14652,13 @@ __metadata:
languageName: node
linkType: hard
+"lru-cache@npm:^7.14.1":
+ version: 7.18.3
+ resolution: "lru-cache@npm:7.18.3"
+ checksum: 10c0/b3a452b491433db885beed95041eb104c157ef7794b9c9b4d647be503be91769d11206bb573849a16b4cc0d03cbd15ffd22df7960997788b74c1d399ac7a4fed
+ languageName: node
+ linkType: hard
+
"lucide-react@npm:^0.441.0":
version: 0.441.0
resolution: "lucide-react@npm:0.441.0"
@@ -15807,7 +16059,7 @@ __metadata:
languageName: node
linkType: hard
-"mitt@npm:^3.0.1":
+"mitt@npm:3.0.1, mitt@npm:^3.0.1":
version: 3.0.1
resolution: "mitt@npm:3.0.1"
checksum: 10c0/3ab4fdecf3be8c5255536faa07064d05caa3dd332bd318ff02e04621f7b3069ca1de9106cfe8e7ced675abfc2bec2ce4c4ef321c4a1bb1fb29df8ae090741913
@@ -15936,6 +16188,13 @@ __metadata:
languageName: node
linkType: hard
+"netmask@npm:^2.0.2":
+ version: 2.0.2
+ resolution: "netmask@npm:2.0.2"
+ checksum: 10c0/cafd28388e698e1138ace947929f842944d0f1c0b87d3fa2601a61b38dc89397d33c0ce2c8e7b99e968584b91d15f6810b91bef3f3826adf71b1833b61d4bf4f
+ languageName: node
+ linkType: hard
+
"next-contentlayer2@npm:^0.4.6":
version: 0.4.6
resolution: "next-contentlayer2@npm:0.4.6"
@@ -16307,7 +16566,7 @@ __metadata:
languageName: node
linkType: hard
-"once@npm:^1.3.0":
+"once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0":
version: 1.4.0
resolution: "once@npm:1.4.0"
dependencies:
@@ -16521,6 +16780,32 @@ __metadata:
languageName: node
linkType: hard
+"pac-proxy-agent@npm:^7.0.1":
+ version: 7.0.2
+ resolution: "pac-proxy-agent@npm:7.0.2"
+ dependencies:
+ "@tootallnate/quickjs-emscripten": "npm:^0.23.0"
+ agent-base: "npm:^7.0.2"
+ debug: "npm:^4.3.4"
+ get-uri: "npm:^6.0.1"
+ http-proxy-agent: "npm:^7.0.0"
+ https-proxy-agent: "npm:^7.0.5"
+ pac-resolver: "npm:^7.0.1"
+ socks-proxy-agent: "npm:^8.0.4"
+ checksum: 10c0/1ef0812bb860d2c695aa3a8604acdb4239b8074183c9fdb9bdf3747b8b28bbb88f22269d3ca95cae825c8ed0ca82681e6692c0e304c961fe004231e579d1ca91
+ languageName: node
+ linkType: hard
+
+"pac-resolver@npm:^7.0.1":
+ version: 7.0.1
+ resolution: "pac-resolver@npm:7.0.1"
+ dependencies:
+ degenerator: "npm:^5.0.0"
+ netmask: "npm:^2.0.2"
+ checksum: 10c0/5f3edd1dd10fded31e7d1f95776442c3ee51aa098c28b74ede4927d9677ebe7cebb2636750c24e945f5b84445e41ae39093d3a1014a994e5ceb9f0b1b88ebff5
+ languageName: node
+ linkType: hard
+
"package-json-from-dist@npm:^1.0.0":
version: 1.0.0
resolution: "package-json-from-dist@npm:1.0.0"
@@ -16792,6 +17077,13 @@ __metadata:
languageName: node
linkType: hard
+"pend@npm:~1.2.0":
+ version: 1.2.0
+ resolution: "pend@npm:1.2.0"
+ checksum: 10c0/8a87e63f7a4afcfb0f9f77b39bb92374afc723418b9cb716ee4257689224171002e07768eeade4ecd0e86f1fa3d8f022994219fb45634f2dbd78c6803e452458
+ languageName: node
+ linkType: hard
+
"performance-now@npm:^2.1.0":
version: 2.1.0
resolution: "performance-now@npm:2.1.0"
@@ -17372,6 +17664,13 @@ __metadata:
languageName: node
linkType: hard
+"progress@npm:^2.0.3":
+ version: 2.0.3
+ resolution: "progress@npm:2.0.3"
+ checksum: 10c0/1697e07cb1068055dbe9fe858d242368ff5d2073639e652b75a7eb1f2a1a8d4afd404d719de23c7b48481a6aa0040686310e2dac2f53d776daa2176d3f96369c
+ languageName: node
+ linkType: hard
+
"promise-retry@npm:^2.0.1":
version: 2.0.1
resolution: "promise-retry@npm:2.0.1"
@@ -17459,6 +17758,22 @@ __metadata:
languageName: node
linkType: hard
+"proxy-agent@npm:^6.4.0":
+ version: 6.4.0
+ resolution: "proxy-agent@npm:6.4.0"
+ dependencies:
+ agent-base: "npm:^7.0.2"
+ debug: "npm:^4.3.4"
+ http-proxy-agent: "npm:^7.0.1"
+ https-proxy-agent: "npm:^7.0.3"
+ lru-cache: "npm:^7.14.1"
+ pac-proxy-agent: "npm:^7.0.1"
+ proxy-from-env: "npm:^1.1.0"
+ socks-proxy-agent: "npm:^8.0.2"
+ checksum: 10c0/0c5b85cacf67eec9d8add025a5e577b2c895672e4187079ec41b0ee2a6dacd90e69a837936cb3ac141dd92b05b50a325b9bfe86ab0dc3b904011aa3bcf406fc0
+ languageName: node
+ linkType: hard
+
"proxy-compare@npm:2.6.0":
version: 2.6.0
resolution: "proxy-compare@npm:2.6.0"
@@ -17466,6 +17781,13 @@ __metadata:
languageName: node
linkType: hard
+"proxy-from-env@npm:^1.1.0":
+ version: 1.1.0
+ resolution: "proxy-from-env@npm:1.1.0"
+ checksum: 10c0/fe7dd8b1bdbbbea18d1459107729c3e4a2243ca870d26d34c2c1bcd3e4425b7bcc5112362df2d93cc7fb9746f6142b5e272fd1cc5c86ddf8580175186f6ad42b
+ languageName: node
+ linkType: hard
+
"ps-tree@npm:^1.2.0":
version: 1.2.0
resolution: "ps-tree@npm:1.2.0"
@@ -17491,6 +17813,16 @@ __metadata:
languageName: node
linkType: hard
+"pump@npm:^3.0.0":
+ version: 3.0.2
+ resolution: "pump@npm:3.0.2"
+ dependencies:
+ end-of-stream: "npm:^1.1.0"
+ once: "npm:^1.3.1"
+ checksum: 10c0/5ad655cb2a7738b4bcf6406b24ad0970d680649d996b55ad20d1be8e0c02394034e4c45ff7cd105d87f1e9b96a0e3d06fd28e11fae8875da26e7f7a8e2c9726f
+ languageName: node
+ linkType: hard
+
"punycode@npm:^2.1.0, punycode@npm:^2.1.1":
version: 2.3.1
resolution: "punycode@npm:2.3.1"
@@ -17498,6 +17830,36 @@ __metadata:
languageName: node
linkType: hard
+"puppeteer-core@npm:23.6.0":
+ version: 23.6.0
+ resolution: "puppeteer-core@npm:23.6.0"
+ dependencies:
+ "@puppeteer/browsers": "npm:2.4.0"
+ chromium-bidi: "npm:0.8.0"
+ debug: "npm:^4.3.7"
+ devtools-protocol: "npm:0.0.1354347"
+ typed-query-selector: "npm:^2.12.0"
+ ws: "npm:^8.18.0"
+ checksum: 10c0/98a31610ac221391ea374ed746a0f9eae6a2f343f3817f0fc3712a7b8f867197aed2c5888d3e1d17de97c01bde289fc88d804784f68eb35d9ed816a5cfe20005
+ languageName: node
+ linkType: hard
+
+"puppeteer@npm:^23.6.0":
+ version: 23.6.0
+ resolution: "puppeteer@npm:23.6.0"
+ dependencies:
+ "@puppeteer/browsers": "npm:2.4.0"
+ chromium-bidi: "npm:0.8.0"
+ cosmiconfig: "npm:^9.0.0"
+ devtools-protocol: "npm:0.0.1354347"
+ puppeteer-core: "npm:23.6.0"
+ typed-query-selector: "npm:^2.12.0"
+ bin:
+ puppeteer: lib/cjs/puppeteer/node/cli.js
+ checksum: 10c0/b7ab5044254de9ded422adc337e8c582eb251ae0689b03c030b3eb3f5b5e4d8df54672daadd0828b4b162cb650b4b33dc43f50efa7d5b12a298cb5ca4a99ab94
+ languageName: node
+ linkType: hard
+
"pure-rand@npm:^6.0.0":
version: 6.1.0
resolution: "pure-rand@npm:6.1.0"
@@ -17519,6 +17881,13 @@ __metadata:
languageName: node
linkType: hard
+"queue-tick@npm:^1.0.1":
+ version: 1.0.1
+ resolution: "queue-tick@npm:1.0.1"
+ checksum: 10c0/0db998e2c9b15215317dbcf801e9b23e6bcde4044e115155dae34f8e7454b9a783f737c9a725528d677b7a66c775eb7a955cf144fe0b87f62b575ce5bfd515a9
+ languageName: node
+ linkType: hard
+
"raf@npm:^3.4.1":
version: 3.4.1
resolution: "raf@npm:3.4.1"
@@ -19168,6 +19537,17 @@ __metadata:
languageName: node
linkType: hard
+"socks-proxy-agent@npm:^8.0.2, socks-proxy-agent@npm:^8.0.4":
+ version: 8.0.4
+ resolution: "socks-proxy-agent@npm:8.0.4"
+ dependencies:
+ agent-base: "npm:^7.1.1"
+ debug: "npm:^4.3.4"
+ socks: "npm:^2.8.3"
+ checksum: 10c0/345593bb21b95b0508e63e703c84da11549f0a2657d6b4e3ee3612c312cb3a907eac10e53b23ede3557c6601d63252103494caa306b66560f43af7b98f53957a
+ languageName: node
+ linkType: hard
+
"socks-proxy-agent@npm:^8.0.3":
version: 8.0.3
resolution: "socks-proxy-agent@npm:8.0.3"
@@ -19189,6 +19569,16 @@ __metadata:
languageName: node
linkType: hard
+"socks@npm:^2.8.3":
+ version: 2.8.3
+ resolution: "socks@npm:2.8.3"
+ dependencies:
+ ip-address: "npm:^9.0.5"
+ smart-buffer: "npm:^4.2.0"
+ checksum: 10c0/d54a52bf9325165770b674a67241143a3d8b4e4c8884560c4e0e078aace2a728dffc7f70150660f51b85797c4e1a3b82f9b7aa25e0a0ceae1a243365da5c51a7
+ languageName: node
+ linkType: hard
+
"sonner@npm:^1.5.0":
version: 1.5.0
resolution: "sonner@npm:1.5.0"
@@ -19430,6 +19820,21 @@ __metadata:
languageName: node
linkType: hard
+"streamx@npm:^2.15.0, streamx@npm:^2.20.0":
+ version: 2.20.1
+ resolution: "streamx@npm:2.20.1"
+ dependencies:
+ bare-events: "npm:^2.2.0"
+ fast-fifo: "npm:^1.3.2"
+ queue-tick: "npm:^1.0.1"
+ text-decoder: "npm:^1.1.0"
+ dependenciesMeta:
+ bare-events:
+ optional: true
+ checksum: 10c0/34ffa2ee9465d70e18c7e2ba70189720c166d150ab83eb7700304620fa23ff42a69cb37d712ea4b5fc6234d8e74346a88bb4baceb873c6b05e52ac420f8abb4d
+ languageName: node
+ linkType: hard
+
"string-length@npm:^4.0.1":
version: 4.0.2
resolution: "string-length@npm:4.0.2"
@@ -19875,6 +20280,34 @@ __metadata:
languageName: node
linkType: hard
+"tar-fs@npm:^3.0.6":
+ version: 3.0.6
+ resolution: "tar-fs@npm:3.0.6"
+ dependencies:
+ bare-fs: "npm:^2.1.1"
+ bare-path: "npm:^2.1.0"
+ pump: "npm:^3.0.0"
+ tar-stream: "npm:^3.1.5"
+ dependenciesMeta:
+ bare-fs:
+ optional: true
+ bare-path:
+ optional: true
+ checksum: 10c0/207b7c0f193495668bd9dbad09a0108ce4ffcfec5bce2133f90988cdda5c81fad83c99f963d01e47b565196594f7a17dbd063ae55b97b36268fcc843975278ee
+ languageName: node
+ linkType: hard
+
+"tar-stream@npm:^3.1.5":
+ version: 3.1.7
+ resolution: "tar-stream@npm:3.1.7"
+ dependencies:
+ b4a: "npm:^1.6.4"
+ fast-fifo: "npm:^1.2.0"
+ streamx: "npm:^2.15.0"
+ checksum: 10c0/a09199d21f8714bd729993ac49b6c8efcb808b544b89f23378ad6ffff6d1cb540878614ba9d4cfec11a64ef39e1a6f009a5398371491eb1fda606ffc7f70f718
+ languageName: node
+ linkType: hard
+
"tar@npm:^6.1.11, tar@npm:^6.1.2":
version: 6.2.1
resolution: "tar@npm:6.2.1"
@@ -19907,6 +20340,13 @@ __metadata:
languageName: node
linkType: hard
+"text-decoder@npm:^1.1.0":
+ version: 1.2.1
+ resolution: "text-decoder@npm:1.2.1"
+ checksum: 10c0/deea9e3f4bde3b8990439e59cd52b2e917a416e29fbaf607052c89117c7148f1831562c099e9dd49abea0839cffdeb75a3c8f1f137f1686afd2808322f8e3f00
+ languageName: node
+ linkType: hard
+
"text-table@npm:^0.2.0":
version: 0.2.0
resolution: "text-table@npm:0.2.0"
@@ -19955,7 +20395,7 @@ __metadata:
languageName: node
linkType: hard
-"through@npm:2, through@npm:~2.3, through@npm:~2.3.1":
+"through@npm:2, through@npm:^2.3.8, through@npm:~2.3, through@npm:~2.3.1":
version: 2.3.8
resolution: "through@npm:2.3.8"
checksum: 10c0/4b09f3774099de0d4df26d95c5821a62faee32c7e96fb1f4ebd54a2d7c11c57fe88b0a0d49cf375de5fee5ae6bf4eb56dbbf29d07366864e2ee805349970d3cc
@@ -20638,6 +21078,13 @@ __metadata:
languageName: node
linkType: hard
+"typed-query-selector@npm:^2.12.0":
+ version: 2.12.0
+ resolution: "typed-query-selector@npm:2.12.0"
+ checksum: 10c0/069509887ecfff824a470f5f93d300cc9223cb059a36c47ac685f2812c4c9470340e07615893765e4264cef1678507532fa78f642fd52f276b589f7f5d791f79
+ languageName: node
+ linkType: hard
+
"typedarray@npm:^0.0.6":
version: 0.0.6
resolution: "typedarray@npm:0.0.6"
@@ -20697,6 +21144,16 @@ __metadata:
languageName: node
linkType: hard
+"unbzip2-stream@npm:^1.4.3":
+ version: 1.4.3
+ resolution: "unbzip2-stream@npm:1.4.3"
+ dependencies:
+ buffer: "npm:^5.2.1"
+ through: "npm:^2.3.8"
+ checksum: 10c0/2ea2048f3c9db3499316ccc1d95ff757017ccb6f46c812d7c42466247e3b863fb178864267482f7f178254214247779daf68e85f50bd7736c3c97ba2d58b910a
+ languageName: node
+ linkType: hard
+
"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
@@ -21023,6 +21480,13 @@ __metadata:
languageName: node
linkType: hard
+"urlpattern-polyfill@npm:10.0.0":
+ version: 10.0.0
+ resolution: "urlpattern-polyfill@npm:10.0.0"
+ checksum: 10c0/43593f2a89bd54f2d5b5105ef4896ac5c5db66aef723759fbd15cd5eb1ea6cdae9d112e257eda9bbc3fb0cd90be6ac6e9689abe4ca69caa33114f42a27363531
+ languageName: node
+ linkType: hard
+
"use-callback-ref@npm:^1.3.0":
version: 1.3.2
resolution: "use-callback-ref@npm:1.3.2"
@@ -21635,7 +22099,7 @@ __metadata:
languageName: node
linkType: hard
-"ws@npm:^8.17.1":
+"ws@npm:^8.17.1, ws@npm:^8.18.0":
version: 8.18.0
resolution: "ws@npm:8.18.0"
peerDependencies:
@@ -21786,6 +22250,7 @@ __metadata:
nuqs: "npm:^1.19.1"
postcss: "npm:^8.4.45"
prismjs: "npm:^1.29.0"
+ puppeteer: "npm:^23.6.0"
react: "npm:^18.3.1"
react-day-picker: "npm:^8.10.1"
react-dnd: "npm:16.0.1"
@@ -21932,6 +22397,16 @@ __metadata:
languageName: node
linkType: hard
+"yauzl@npm:^2.10.0":
+ version: 2.10.0
+ resolution: "yauzl@npm:2.10.0"
+ dependencies:
+ buffer-crc32: "npm:~0.2.3"
+ fd-slicer: "npm:~1.1.0"
+ checksum: 10c0/f265002af7541b9ec3589a27f5fb8f11cf348b53cc15e2751272e3c062cd73f3e715bc72d43257de71bbaecae446c3f1b14af7559e8ab0261625375541816422
+ languageName: node
+ linkType: hard
+
"yjs@npm:^13.6.19":
version: 13.6.19
resolution: "yjs@npm:13.6.19"
@@ -21962,7 +22437,7 @@ __metadata:
languageName: node
linkType: hard
-"zod@npm:^3.20.2":
+"zod@npm:3.23.8, zod@npm:^3.20.2":
version: 3.23.8
resolution: "zod@npm:3.23.8"
checksum: 10c0/8f14c87d6b1b53c944c25ce7a28616896319d95bc46a9660fe441adc0ed0a81253b02b5abdaeffedbeb23bdd25a0bf1c29d2c12dd919aef6447652dd295e3e69