@noya-app/noya-designsystem 0.0.2 → 0.0.3

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.
@@ -5,13 +5,13 @@ CLI tsup v8.0.1
5
5
  CLI Target: esnext
6
6
  CJS Build start
7
7
  ESM Build start
8
- CJS dist/index.js 789.25 KB
9
- CJS dist/index.js.map 1.15 MB
10
- CJS ⚡️ Build success in 118ms
11
- ESM dist/index.mjs 752.86 KB
8
+ ESM dist/index.mjs 752.90 KB
12
9
  ESM dist/index.mjs.map 1.15 MB
13
- ESM ⚡️ Build success in 118ms
10
+ ESM ⚡️ Build success in 164ms
11
+ CJS dist/index.js 789.36 KB
12
+ CJS dist/index.js.map 1.15 MB
13
+ CJS ⚡️ Build success in 178ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 7001ms
16
- DTS dist/index.d.ts 48.32 KB
17
- DTS dist/index.d.mts 48.32 KB
15
+ DTS ⚡️ Build success in 5772ms
16
+ DTS dist/index.d.ts 48.78 KB
17
+ DTS dist/index.d.mts 48.78 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Export ImageDataContext
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1002,6 +1002,15 @@ declare const DialogProvider: ({ children, }: {
1002
1002
  declare function useOpenInputDialog(): (title: string, inputValue?: string | undefined) => Promise<string | undefined>;
1003
1003
  declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
1004
1004
 
1005
+ type ImageDataContextValue = {
1006
+ getImageData: (ref: string) => ArrayBuffer | undefined;
1007
+ };
1008
+ declare const ImageDataProvider: (props: {
1009
+ children: ReactNode;
1010
+ getImageData?: ((ref: string) => ArrayBuffer | undefined) | undefined;
1011
+ }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1012
+ declare function useImageData(ref: string): ArrayBuffer | undefined;
1013
+
1005
1014
  type GlobalInputBlurContextValue = {
1006
1015
  addListener: (f: () => void) => void;
1007
1016
  removeListener: (f: () => void) => void;
@@ -1175,4 +1184,4 @@ declare module "react" {
1175
1184
  function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
1176
1185
  }
1177
1186
 
1178
- export { ActivityIndicator, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, Divider, DividerVertical, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IScoredItem, type IToken, type IVirtualizedList, IconButton, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type ReactDOMEventHandlers, type ReactEventHandlers, type RegularMenuItem, type RelativeDropPosition, Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
1187
+ export { ActivityIndicator, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, Divider, DividerVertical, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IScoredItem, type IToken, type IVirtualizedList, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type ReactDOMEventHandlers, type ReactEventHandlers, type RegularMenuItem, type RelativeDropPosition, Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
package/dist/index.d.ts CHANGED
@@ -1002,6 +1002,15 @@ declare const DialogProvider: ({ children, }: {
1002
1002
  declare function useOpenInputDialog(): (title: string, inputValue?: string | undefined) => Promise<string | undefined>;
1003
1003
  declare function useDialogContainsElement(): (element: HTMLElement) => boolean;
1004
1004
 
1005
+ type ImageDataContextValue = {
1006
+ getImageData: (ref: string) => ArrayBuffer | undefined;
1007
+ };
1008
+ declare const ImageDataProvider: (props: {
1009
+ children: ReactNode;
1010
+ getImageData?: ((ref: string) => ArrayBuffer | undefined) | undefined;
1011
+ }) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
1012
+ declare function useImageData(ref: string): ArrayBuffer | undefined;
1013
+
1005
1014
  type GlobalInputBlurContextValue = {
1006
1015
  addListener: (f: () => void) => void;
1007
1016
  removeListener: (f: () => void) => void;
@@ -1175,4 +1184,4 @@ declare module "react" {
1175
1184
  function forwardRef<T, P = {}>(render: (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
1176
1185
  }
1177
1186
 
1178
- export { ActivityIndicator, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, Divider, DividerVertical, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IScoredItem, type IToken, type IVirtualizedList, IconButton, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type ReactDOMEventHandlers, type ReactEventHandlers, type RegularMenuItem, type RelativeDropPosition, Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
1187
+ export { ActivityIndicator, Avatar, Body, Button, ButtonElement, type ButtonRootProps, Chip, type ChipProps, CloseButtonContainer, type Colors, type CompletionItem, type CompletionListItem, CompletionMenu, type CompletionSectionHeader, CompletionToken, ContextMenu, type DesignSystemConfigurationContextValue, DesignSystemConfigurationProvider, Dialog, type DialogContextValue, DialogProvider, Divider, DividerVertical, type DropValidator, DropdownMenu, type EditableRowProps, type EventName, type ExtractMenuItemType, FillInputField, FillPreviewBackground, type GlobalInputBlurContextValue, GlobalInputBlurProvider, GradientPicker, type GridProps, GridView, type GridViewSize, Heading1, Heading2, Heading3, Heading4, Heading5, type HoverEvent, type HoverEvents, type HoverProps, type IDialog, type IScoredItem, type IToken, type IVirtualizedList, IconButton, type ImageDataContextValue, ImageDataProvider, InputElement, InputField, type InputFieldSize, InputFieldWithCompletions, Italic, KeyboardShortcut, Label, LabeledElementView, type ListRowMarginType, type ListRowPosition, ListView, type MatchRange, type MenuConfig, type MenuItem, type MenuItemProps, type MenuProps, type Optional, PatternPreviewBackground, Popover, Progress, RadioGroup, type ReactDOMEventHandlers, type ReactEventHandlers, type RegularMenuItem, type RelativeDropPosition, Row, SEPARATOR_ITEM, SUPPORTED_CANVAS_UPLOAD_TYPES, SUPPORTED_IMAGE_UPLOAD_TYPES, ScrollArea, Select, SelectOption, type SketchPattern, Slider, Small, Sortable, Spacer, Stack, type StackBreakpointList, type SupportedCanvasUploadType, type SupportedImageUploadType, Switch, Text, type TextBreakpointList, type Theme, type ThemeColorName, Toast, ToastProvider, Tooltip, TreeView, createSectionedMenu, dark as darkTheme, fuzzyFilter, fuzzyScore, fuzzyTokenize, getGradientBackground, isLeftButtonClicked, isRightButtonClicked, lightTheme, mediaQuery, mergeEventHandlers, normalizeListIndex, rgbaToSketchColor, size, sketchColorToHex, sketchColorToRgba, sketchColorToRgbaString, useDesignSystemConfiguration, useDesignSystemTheme, useDialogContainsElement, useGlobalInputBlur, useGlobalInputBlurListener, useGlobalInputBlurTrigger, useHover, useImageData, useOpenInputDialog, usePlatform, usePlatformModKey, withSeparatorElements };
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ __export(src_exports, {
57
57
  Heading4: () => Heading4,
58
58
  Heading5: () => Heading5,
59
59
  IconButton: () => IconButton,
60
+ ImageDataProvider: () => ImageDataProvider,
60
61
  InputElement: () => InputElement,
61
62
  InputField: () => InputField,
62
63
  InputFieldWithCompletions: () => InputFieldWithCompletions,
@@ -111,6 +112,7 @@ __export(src_exports, {
111
112
  useGlobalInputBlurListener: () => useGlobalInputBlurListener,
112
113
  useGlobalInputBlurTrigger: () => useGlobalInputBlurTrigger,
113
114
  useHover: () => useHover,
115
+ useImageData: () => useImageData,
114
116
  useOpenInputDialog: () => useOpenInputDialog,
115
117
  usePlatform: () => usePlatform,
116
118
  usePlatformModKey: () => usePlatformModKey,
@@ -15565,6 +15567,7 @@ var SUPPORTED_CANVAS_UPLOAD_TYPES = [
15565
15567
  Heading4,
15566
15568
  Heading5,
15567
15569
  IconButton,
15570
+ ImageDataProvider,
15568
15571
  InputElement,
15569
15572
  InputField,
15570
15573
  InputFieldWithCompletions,
@@ -15619,6 +15622,7 @@ var SUPPORTED_CANVAS_UPLOAD_TYPES = [
15619
15622
  useGlobalInputBlurListener,
15620
15623
  useGlobalInputBlurTrigger,
15621
15624
  useHover,
15625
+ useImageData,
15622
15626
  useOpenInputDialog,
15623
15627
  usePlatform,
15624
15628
  usePlatformModKey,