@nextblock-cms/editor 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +29 -0
- package/lib/NotionEditor.d.ts +16 -0
- package/lib/components/DragHandle.d.ts +15 -0
- package/lib/components/HtmlContent.d.ts +7 -0
- package/lib/components/menus/BubbleMenu.d.ts +7 -0
- package/lib/components/menus/EnhancedFloatingMenu.d.ts +8 -0
- package/lib/components/menus/FloatingMenu.d.ts +7 -0
- package/lib/components/menus/ImageToolbar.d.ts +7 -0
- package/lib/components/menus/SlashCommandList.d.ts +13 -0
- package/lib/components/menus/TableToolbar.d.ts +7 -0
- package/lib/components/menus/Toolbar.d.ts +7 -0
- package/lib/components/mobile/MobileToolbar.d.ts +8 -0
- package/lib/components/test/FeatureValidationTest.d.ts +3 -0
- package/lib/components/test/NotionEditorEnhancedTest.d.ts +11 -0
- package/lib/components/test/UndoRedoTest.d.ts +15 -0
- package/lib/components/ui/AdvancedColorMenu.d.ts +9 -0
- package/lib/components/ui/AdvancedFontSizeMenu.d.ts +7 -0
- package/lib/components/ui/Toolbar.d.ts +7 -0
- package/lib/components/ui/UndoRedoButtons.d.ts +10 -0
- package/lib/components/widgets/AlertWidgetComponent.d.ts +3 -0
- package/lib/components/widgets/CtaWidgetComponent.d.ts +3 -0
- package/lib/editor.d.ts +19 -0
- package/lib/extensions/AdvancedPlaceholder.d.ts +3 -0
- package/lib/extensions/AlertWidget.d.ts +18 -0
- package/lib/extensions/CtaWidgetNode.d.ts +16 -0
- package/lib/extensions/DivNode.d.ts +2 -0
- package/lib/extensions/DraggableNodes.d.ts +11 -0
- package/lib/extensions/EnhancedFocus.d.ts +10 -0
- package/lib/extensions/FontSizeMark.d.ts +13 -0
- package/lib/extensions/ImageExtended.d.ts +2 -0
- package/lib/extensions/KeyboardShortcuts.d.ts +7 -0
- package/lib/extensions/PreserveAllAttributesExtension.d.ts +2 -0
- package/lib/extensions/ResizableImageView.d.ts +2 -0
- package/lib/extensions/ScriptTagNode.d.ts +2 -0
- package/lib/extensions/StyleTagNode.d.ts +2 -0
- package/lib/extensions/TrailingNode.d.ts +9 -0
- package/lib/extensions/components/AlertWidgetComponent.d.ts +3 -0
- package/lib/extensions/components/CtaWidgetComponent.d.ts +3 -0
- package/lib/extensions/slash-command.d.ts +17 -0
- package/lib/hooks/useEditorHistory.d.ts +30 -0
- package/lib/kit.d.ts +2 -0
- package/lib/utils/formatHTML.d.ts +2 -0
- package/lib/utils/mediaPicker.d.ts +11 -0
- package/package.json +12 -4
package/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { Editor } from './lib/editor';
|
|
2
|
+
export { Editor as default } from './lib/editor';
|
|
3
|
+
export { NotionEditor } from './lib/NotionEditor';
|
|
4
|
+
export { EditorBubbleMenu } from './lib/components/menus/BubbleMenu';
|
|
5
|
+
export { EditorFloatingMenu } from './lib/components/menus/FloatingMenu';
|
|
6
|
+
export { EnhancedFloatingMenu } from './lib/components/menus/EnhancedFloatingMenu';
|
|
7
|
+
export { EditorToolbar } from './lib/components/menus/Toolbar';
|
|
8
|
+
export { SlashCommandList } from './lib/components/menus/SlashCommandList';
|
|
9
|
+
export { Toolbar, ToolbarGroup, ToolbarButton, ToolbarSeparator } from './lib/components/ui/Toolbar';
|
|
10
|
+
export { UndoRedoButtons } from './lib/components/ui/UndoRedoButtons';
|
|
11
|
+
export { DragHandle } from './lib/components/DragHandle';
|
|
12
|
+
export { HtmlContent } from './lib/components/HtmlContent';
|
|
13
|
+
export { MobileToolbar } from './lib/components/mobile/MobileToolbar';
|
|
14
|
+
export { editorExtensions } from './lib/kit';
|
|
15
|
+
export { SlashCommand } from './lib/extensions/slash-command';
|
|
16
|
+
export { TrailingNode } from './lib/extensions/TrailingNode';
|
|
17
|
+
export { default as AlertWidget } from './lib/extensions/AlertWidget';
|
|
18
|
+
export { default as CtaWidgetNode } from './lib/extensions/CtaWidgetNode';
|
|
19
|
+
export { DraggableNodes } from './lib/extensions/DraggableNodes';
|
|
20
|
+
export { AdvancedPlaceholder } from './lib/extensions/AdvancedPlaceholder';
|
|
21
|
+
export { EnhancedFocus } from './lib/extensions/EnhancedFocus';
|
|
22
|
+
export { KeyboardShortcuts } from './lib/extensions/KeyboardShortcuts';
|
|
23
|
+
export { useEditorHistory, canExecuteHistoryAction, executeHistoryAction, getHistoryShortcut } from './lib/hooks/useEditorHistory';
|
|
24
|
+
export { FeatureValidationTest } from './lib/components/test/FeatureValidationTest';
|
|
25
|
+
export { UndoRedoTest } from './lib/components/test/UndoRedoTest';
|
|
26
|
+
export { NotionEditorEnhancedTest } from './lib/components/test/NotionEditorEnhancedTest';
|
|
27
|
+
export type { CommandItemProps } from './lib/extensions/slash-command';
|
|
28
|
+
export type { CommandListRef } from './lib/components/menus/SlashCommandList';
|
|
29
|
+
export type { EditorHistoryState, EditorHistoryActions } from './lib/hooks/useEditorHistory';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OpenImagePicker } from './utils/mediaPicker';
|
|
3
|
+
interface NotionEditorProps {
|
|
4
|
+
content: string;
|
|
5
|
+
onChange: (content: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
showToolbar?: boolean;
|
|
9
|
+
showCharacterCount?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
onFocus?: () => void;
|
|
12
|
+
onBlur?: () => void;
|
|
13
|
+
openImagePicker?: OpenImagePicker;
|
|
14
|
+
}
|
|
15
|
+
export declare const NotionEditor: React.FC<NotionEditorProps>;
|
|
16
|
+
export default NotionEditor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
3
|
+
interface DragHandleProps {
|
|
4
|
+
editor: Editor | null;
|
|
5
|
+
className?: string;
|
|
6
|
+
onDragStart?: (event: DragEvent) => void;
|
|
7
|
+
onDragEnd?: (event: DragEvent) => void;
|
|
8
|
+
onNodeChange?: (params: {
|
|
9
|
+
node: any;
|
|
10
|
+
editor: Editor;
|
|
11
|
+
pos: number;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const DragHandle: React.FC<DragHandleProps>;
|
|
15
|
+
export default DragHandle;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, default as React } from 'react';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
3
|
+
interface EnhancedFloatingMenuProps {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
wrapperRef?: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
}
|
|
7
|
+
export declare const EnhancedFloatingMenu: FC<EnhancedFloatingMenuProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommandItemProps } from '../../extensions/slash-command';
|
|
3
|
+
interface SlashCommandListProps {
|
|
4
|
+
items: CommandItemProps[];
|
|
5
|
+
command: (item: CommandItemProps) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface CommandListRef {
|
|
8
|
+
onKeyDown: ({ event }: {
|
|
9
|
+
event: KeyboardEvent;
|
|
10
|
+
}) => boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const SlashCommandList: React.ForwardRefExoticComponent<SlashCommandListProps & React.RefAttributes<CommandListRef>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Test component to verify NotionEditor enhanced functionality
|
|
4
|
+
* Tests:
|
|
5
|
+
* 1. Undo/Redo buttons are visible in toolbar
|
|
6
|
+
* 2. Drag handles appear on block hover
|
|
7
|
+
* 3. Enhanced styling and spacing
|
|
8
|
+
* 4. All existing features still work
|
|
9
|
+
*/
|
|
10
|
+
export declare const NotionEditorEnhancedTest: React.FC;
|
|
11
|
+
export default NotionEditorEnhancedTest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Test component to verify undo/redo functionality with all content types
|
|
4
|
+
* This component demonstrates the enhanced undo/redo features working with:
|
|
5
|
+
* - Text formatting (bold, italic, etc.)
|
|
6
|
+
* - Headings and paragraphs
|
|
7
|
+
* - Lists (bullet, ordered, task)
|
|
8
|
+
* - Tables
|
|
9
|
+
* - Images
|
|
10
|
+
* - Code blocks
|
|
11
|
+
* - Custom widgets
|
|
12
|
+
* - Drag and drop operations
|
|
13
|
+
*/
|
|
14
|
+
export declare const UndoRedoTest: React.FC;
|
|
15
|
+
export default UndoRedoTest;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
type Mode = "text" | "highlight";
|
|
3
|
+
interface AdvancedColorMenuProps {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
className?: string;
|
|
6
|
+
initialMode?: Mode;
|
|
7
|
+
}
|
|
8
|
+
export declare function AdvancedColorMenu({ editor, className, initialMode }: AdvancedColorMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
interface AdvancedFontSizeMenuProps {
|
|
3
|
+
editor: Editor;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function AdvancedFontSizeMenu({ editor, className }: AdvancedFontSizeMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AdvancedFontSizeMenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Toolbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const ToolbarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const ToolbarButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export declare const ToolbarSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
3
|
+
interface UndoRedoButtonsProps {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
className?: string;
|
|
6
|
+
showLabels?: boolean;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
export declare const UndoRedoButtons: React.FC<UndoRedoButtonsProps>;
|
|
10
|
+
export default UndoRedoButtons;
|
package/lib/editor.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EditorProps {
|
|
3
|
+
content: string;
|
|
4
|
+
onChange: (content: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
showToolbar?: boolean;
|
|
8
|
+
showCharacterCount?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
onFocus?: () => void;
|
|
11
|
+
onBlur?: () => void;
|
|
12
|
+
useEnhancedFloatingMenu?: boolean;
|
|
13
|
+
showMobileToolbar?: boolean;
|
|
14
|
+
enableAdvancedPlaceholders?: boolean;
|
|
15
|
+
enableFocusMode?: boolean;
|
|
16
|
+
showKeyboardShortcuts?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const Editor: React.FC<EditorProps>;
|
|
19
|
+
export default Editor;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
export type AlertAttrs = {
|
|
3
|
+
type?: 'info' | 'warning' | 'error' | 'success';
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
align?: 'left' | 'center' | 'right';
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
9
|
+
};
|
|
10
|
+
declare module '@tiptap/core' {
|
|
11
|
+
interface Commands<ReturnType> {
|
|
12
|
+
alertWidget: {
|
|
13
|
+
setAlertWidget: (attrs?: AlertAttrs) => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare const AlertWidget: Node<any, any>;
|
|
18
|
+
export default AlertWidget;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
declare const _default: Node<any, any>;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare module '@tiptap/core' {
|
|
5
|
+
interface Commands<ReturnType> {
|
|
6
|
+
ctaWidget: {
|
|
7
|
+
setCtaWidget: (options?: {
|
|
8
|
+
text?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
style?: string;
|
|
11
|
+
size?: string;
|
|
12
|
+
textAlign?: string;
|
|
13
|
+
}) => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export declare const DraggableParagraph: import('@tiptap/core').Node<import('@tiptap/extension-paragraph').ParagraphOptions, any>;
|
|
3
|
+
export declare const DraggableHeading: import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any>;
|
|
4
|
+
export declare const DraggableBlockquote: import('@tiptap/core').Node<import('@tiptap/extension-blockquote').BlockquoteOptions, any>;
|
|
5
|
+
export declare const DraggableBulletList: import('@tiptap/core').Node<import('@tiptap/extension-list').BulletListOptions, any>;
|
|
6
|
+
export declare const DraggableOrderedList: import('@tiptap/core').Node<import('@tiptap/extension-list').OrderedListOptions, any>;
|
|
7
|
+
export declare const DraggableTaskList: import('@tiptap/core').Node<import('@tiptap/extension-list').TaskListOptions, any>;
|
|
8
|
+
export declare const DraggableTaskItem: import('@tiptap/core').Node<import('@tiptap/extension-list').TaskItemOptions, any>;
|
|
9
|
+
export declare const DraggableCodeBlock: import('@tiptap/core').Node<import('@tiptap/extension-code-block-lowlight').CodeBlockLowlightOptions, any>;
|
|
10
|
+
export declare const DraggableImage: import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any>;
|
|
11
|
+
export declare const DraggableNodes: Extension<any, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface EnhancedFocusOptions {
|
|
3
|
+
className: string;
|
|
4
|
+
mode: 'all' | 'deepest' | 'shallowest';
|
|
5
|
+
showFocusRing: boolean;
|
|
6
|
+
highlightSelection: boolean;
|
|
7
|
+
dimUnfocused: boolean;
|
|
8
|
+
animateTransitions: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const EnhancedFocus: Extension<EnhancedFocusOptions, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
export interface FontSizeOptions {
|
|
3
|
+
HTMLAttributes: Record<string, unknown>;
|
|
4
|
+
}
|
|
5
|
+
declare module '@tiptap/core' {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
fontSize: {
|
|
8
|
+
setFontSize: (className: string) => ReturnType;
|
|
9
|
+
unsetFontSize: () => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare const FontSizeMark: Mark<FontSizeOptions, any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface KeyboardShortcutsOptions {
|
|
3
|
+
enableAdvancedShortcuts: boolean;
|
|
4
|
+
enableCustomShortcuts: boolean;
|
|
5
|
+
showShortcutHints: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const KeyboardShortcuts: Extension<KeyboardShortcutsOptions, any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface TrailingNodeOptions {
|
|
3
|
+
/** Name of the node to append at the end (must exist in your schema) */
|
|
4
|
+
node: string;
|
|
5
|
+
/** If the last node’s type is in this list, do nothing */
|
|
6
|
+
notAfter: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
|
|
9
|
+
export default TrailingNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Extension, Editor, Range } from '@tiptap/core';
|
|
2
|
+
import { SuggestionOptions } from '@tiptap/suggestion';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface CommandItemProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
command: ({ editor, range }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
range: Range;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
interface SlashCommandOptions {
|
|
14
|
+
suggestion: Partial<SuggestionOptions>;
|
|
15
|
+
}
|
|
16
|
+
export declare const SlashCommand: Extension<SlashCommandOptions, any>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export interface EditorHistoryState {
|
|
3
|
+
canUndo: boolean;
|
|
4
|
+
canRedo: boolean;
|
|
5
|
+
historyDepth: number;
|
|
6
|
+
isHistoryEmpty: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface EditorHistoryActions {
|
|
9
|
+
undo: () => boolean;
|
|
10
|
+
redo: () => boolean;
|
|
11
|
+
clearHistory: () => void;
|
|
12
|
+
getHistoryState: () => EditorHistoryState;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Custom hook for managing Tiptap editor history state and actions
|
|
16
|
+
* Provides real-time updates of undo/redo availability and history management
|
|
17
|
+
*/
|
|
18
|
+
export declare const useEditorHistory: (editor: Editor | null) => EditorHistoryState & EditorHistoryActions;
|
|
19
|
+
/**
|
|
20
|
+
* Utility function to check if undo/redo actions are available
|
|
21
|
+
*/
|
|
22
|
+
export declare const canExecuteHistoryAction: (editor: Editor | null, action: "undo" | "redo") => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Utility function to execute history actions safely
|
|
25
|
+
*/
|
|
26
|
+
export declare const executeHistoryAction: (editor: Editor | null, action: "undo" | "redo") => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Get keyboard shortcut text based on platform
|
|
29
|
+
*/
|
|
30
|
+
export declare const getHistoryShortcut: (action: "undo" | "redo") => string;
|
package/lib/kit.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export type PickedImage = {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: number | null;
|
|
6
|
+
height?: number | null;
|
|
7
|
+
blurDataURL?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type OpenImagePicker = () => Promise<PickedImage | null>;
|
|
10
|
+
export declare function setOpenImagePicker(editor: Editor, open?: OpenImagePicker): void;
|
|
11
|
+
export declare function getOpenImagePicker(editor: Editor): OpenImagePicker | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextblock-cms/editor",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"main": "index.
|
|
5
|
-
"module": "index.
|
|
6
|
-
"types": "index.d.ts"
|
|
3
|
+
"version": "0.2.18",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"module": "index.mjs",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"import": "./index.mjs",
|
|
11
|
+
"require": "./index.js"
|
|
12
|
+
},
|
|
13
|
+
"./styles/*": "./styles/*"
|
|
14
|
+
}
|
|
7
15
|
}
|