@vezham/react 26.0.0-alpha.6 → 26.0.0-alpha.7
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/dist/index.css +54 -0
- package/dist/lib/components/app-icon/index.d.ts +1 -1
- package/dist/lib/components/app-menu/index.d.ts +1 -1
- package/dist/lib/components/command/command-dialog.d.ts +1 -1
- package/dist/lib/components/command/command-provider.d.ts +1 -1
- package/dist/lib/components/menu/index.d.ts +1 -1
- package/dist/lib/components/menu/sheet.d.ts +1 -1
- package/dist/lib/components/menu/types.d.ts +1 -1
- package/dist/lib/components/mobile-controls/index.d.ts +1 -1
- package/dist/lib/components/pagination/index.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/composer.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/content.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/conversation.d.ts +4 -4
- package/dist/lib/components/panel/footer/ai/index.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts +1 -1
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts +3 -3
- package/dist/lib/components/panel/footer/control-center/appearance.d.ts +2 -2
- package/dist/lib/components/panel/footer/control-center/configured.d.ts +2 -2
- package/dist/lib/components/panel/footer/control-center/control-center.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/default.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/footer-context.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/language.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/options.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/preview.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/tile.d.ts +1 -1
- package/dist/lib/components/panel/footer/control-center/types.d.ts +2 -2
- package/dist/lib/components/panel/footer/control-center/variant.d.ts +6 -6
- package/dist/lib/components/panel/footer/data.d.ts +1 -1
- package/dist/lib/components/panel/footer/drawer-frame.d.ts +1 -1
- package/dist/lib/components/panel/footer/index.d.ts +1 -1
- package/dist/lib/components/panel/footer/notification-center/index.d.ts +1 -1
- package/dist/lib/components/panel/footer/notification-center/types.d.ts +201 -201
- package/dist/lib/components/panel/footer/notification-center/variant.d.ts +2 -2
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.d.ts +1 -1
- package/dist/lib/components/panel/footer/tabs.d.ts +1 -1
- package/dist/lib/components/panel/footer/types.d.ts +1 -1
- package/dist/lib/components/panel/footer/user-menu.d.ts +1 -1
- package/dist/lib/components/panel/header/application-menu-sheet.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.d.ts +2 -2
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/types.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/context-menu/types.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/favorites/index.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/favorites/types.d.ts +3 -3
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.d.ts +3 -3
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.d.ts +2 -2
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/membership.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/quick-access/types.d.ts +2 -2
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.d.ts +2 -2
- package/dist/lib/components/panel/header/bookmarks/tree-data.d.ts +1 -1
- package/dist/lib/components/panel/header/bookmarks/types.d.ts +105 -105
- package/dist/lib/components/panel/header/bookmarks/variant.d.ts +2 -2
- package/dist/lib/components/panel/header/storage/archive/types.d.ts +1 -1
- package/dist/lib/components/panel/header/storage/history-actions.d.ts +1 -1
- package/dist/lib/components/panel/header/storage/history-date-group.d.ts +2 -2
- package/dist/lib/components/panel/header/storage/history-item-content.d.ts +1 -1
- package/dist/lib/components/panel/header/storage/history-shell.d.ts +1 -1
- package/dist/lib/components/panel/header/storage/trash/types.d.ts +1 -1
- package/dist/lib/components/panel/header/storage/types.d.ts +82 -82
- package/dist/lib/components/panel/header/storage/variant.d.ts +2 -2
- package/dist/lib/components/panel/info-panel/container.d.ts +2 -2
- package/dist/lib/components/panel/info-panel/container.module.css +5 -1
- package/dist/lib/components/panel/info-panel/container.module.js +4 -4
- package/dist/lib/components/panel/info-panel/sheet.d.ts +2 -2
- package/dist/lib/components/panel/menu/index.d.ts +1 -1
- package/dist/lib/components/panel/menu/types.d.ts +194 -194
- package/dist/lib/components/panel/menu/variant.d.ts +3 -3
- package/dist/lib/components/responsive-toolbar-action/index.d.ts +1 -1
- package/dist/lib/components/shortcut-key/index.d.ts +1 -1
- package/dist/lib/components/toolbar-actions/index.d.ts +2 -2
- package/dist/lib/components/workspace-navigation/index.d.ts +1 -1
- package/dist/lib/layouts/app/frame.d.ts +1 -1
- package/dist/lib/layouts/app/index.d.ts +6 -6
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.d.ts +1 -1
- package/dist/lib/layouts/menu-layout/index-md.d.ts +1 -1
- package/dist/lib/layouts/menu-layout/index-sm.d.ts +2 -2
- package/dist/lib/layouts/menu-layout/index.d.ts +2 -2
- package/dist/lib/layouts/section/index.d.ts +4 -4
- package/dist/lib/layouts/section/preferences.d.ts +2 -2
- package/dist/lib/layouts/section/sidebar-state.d.ts +2 -2
- package/dist/lib/layouts/section/sidebar.d.ts +2 -2
- package/dist/lib/layouts/section/toolbar-content.d.ts +1 -1
- package/dist/lib/layouts/section/toolbar-more-sheet.d.ts +3 -3
- package/dist/lib/layouts/section/toolbar.d.ts +3 -3
- package/dist/lib/layouts/settings/index.d.ts +1 -1
- package/dist/lib/navigation-toolbar.d.ts +1 -1
- package/dist/lib/navigation.d.ts +2 -2
- package/dist/lib/pages/settings/index.d.ts +2 -2
- package/dist/lib/pages/settings/navigation.d.ts +1 -1
- package/dist/lib/pages/settings/settings-content.d.ts +1 -1
- package/dist/lib/pages/settings/tile-gallery.d.ts +2 -2
- package/dist/lib/store/useBookmarks/action.d.ts +1 -1
- package/dist/lib/store/useBookmarks/data.d.ts +1 -1
- package/dist/lib/store/useBookmarks/index.d.ts +2 -2
- package/dist/lib/store/useStorage/action.d.ts +1 -1
- package/dist/lib/store/useStorage/data.d.ts +1 -1
- package/dist/lib/store/useStorage/index.d.ts +2 -2
- package/package.json +2 -2
- package/dist/react.css +0 -49
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
export type ToolbarActionEvent = {
|
|
3
3
|
actionKey: string;
|
|
4
4
|
pageKey: string;
|
|
@@ -13,7 +13,7 @@ export declare const createToolbarActions: () => {
|
|
|
13
13
|
subscribe: (actionKey: string, handler: ToolbarActionHandler, scope?: Scope) => () => void;
|
|
14
14
|
emit: (event: ToolbarActionEvent) => boolean;
|
|
15
15
|
};
|
|
16
|
-
export declare const ToolbarActionsContext: import(
|
|
16
|
+
export declare const ToolbarActionsContext: import('react').Context<{
|
|
17
17
|
subscribe: (actionKey: string, handler: ToolbarActionHandler, scope?: Scope) => () => void;
|
|
18
18
|
emit: (event: ToolbarActionEvent) => boolean;
|
|
19
19
|
} | null>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { AppMenuItem } from '../../components/app-menu';
|
|
3
|
+
import { ControlCenterConfig, ControlCenterI18n } from '../../components/panel/footer/control-center/types';
|
|
4
|
+
import { AppNavigationItem } from '../../navigation';
|
|
5
|
+
import { User } from '../../store/users/useUserStore';
|
|
6
|
+
import { AppFrameProps } from './frame';
|
|
7
7
|
export type AppLayoutProps = Omit<AppFrameProps, 'navigation' | 'children'> & {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
navigationItems: AppNavigationItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MenuLayoutProps } from './index';
|
|
3
3
|
declare const MenuSM: ({ items, controlCenter }: MenuLayoutProps) => React.JSX.Element;
|
|
4
4
|
export { MenuSM };
|
|
5
5
|
//# sourceMappingURL=index-sm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FooterActionsProps } from '../../components/panel/footer/types';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
3
|
export type MenuLayoutProps = Pick<FooterActionsProps, 'controlCenter'> & {
|
|
4
4
|
items: AppNavigationItem[];
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
|
+
import { SectionSort } from './sort-menu';
|
|
4
|
+
import { SectionAction, SectionSearch, SectionViewAction } from './toolbar';
|
|
5
5
|
export type SectionLayoutProps = {
|
|
6
6
|
title: string;
|
|
7
7
|
sectionKey?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { SectionSort } from './sort-menu';
|
|
2
|
+
import { SectionFilterKey } from './toolbar';
|
|
3
3
|
export declare const useSectionPreferences: (scope: string, onSortChange?: (value: SectionSort) => void) => {
|
|
4
4
|
setSelectedFilters: (selectedFilters: SectionFilterKey[]) => void;
|
|
5
5
|
handleSortChange: (sortValue: SectionSort) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SetStateAction } from 'react';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
3
|
export declare const useSectionSidebarState: (items: AppNavigationItem[], pathname: string) => {
|
|
4
4
|
expandedKeys: Set<string>;
|
|
5
5
|
setExpandedKeys: (update: SetStateAction<Set<string>>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
3
|
export declare const SectionSidebar: ({ items, pathname, label, onNavigate, expandedKeys: controlledExpandedKeys, onExpandedChange }: {
|
|
4
4
|
items: AppNavigationItem[];
|
|
5
5
|
pathname: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SectionSort } from './sort-menu';
|
|
3
|
+
import { SectionAction, SectionFilterKey, SectionViewAction, SectionViewMode } from './toolbar';
|
|
4
4
|
type Props = {
|
|
5
5
|
filterAction?: SectionAction;
|
|
6
6
|
filterGroups: readonly {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
|
+
import { SectionSort } from './sort-menu';
|
|
4
4
|
export type SectionAction = {
|
|
5
5
|
key: string;
|
|
6
6
|
label: string;
|
package/dist/lib/navigation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NavigationToolbar } from './navigation-toolbar';
|
|
3
3
|
export type AppNavigationItem = {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ControlCenterConfig } from '../../components/panel/footer/control-center/types';
|
|
2
|
+
import { SettingsSection } from './navigation';
|
|
3
3
|
export declare const validateSearch: (search: Record<string, unknown>) => {
|
|
4
4
|
section: SettingsSection;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type SettingsSection = 'General' | 'Appearance' | 'Notifications' | 'Account' | 'Edit Widgets' | 'Edit Controls';
|
|
2
|
-
export declare const SettingsNavigationContext: import(
|
|
2
|
+
export declare const SettingsNavigationContext: import('react').Context<((section: SettingsSection) => void) | null>;
|
|
3
3
|
export declare const useSettingsNavigation: () => ((section: SettingsSection) => void) | null;
|
|
4
4
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditorState } from '../../components/panel/footer/control-center/editor';
|
|
3
3
|
type GalleryTile = {
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BookmarksResponse, FavoriteItem } from './types';
|
|
2
2
|
export declare const sampleFavorites: FavoriteItem[];
|
|
3
3
|
export declare const bookmarksData: BookmarksResponse;
|
|
4
4
|
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BookmarkItem, BookmarksResponse, FavoriteItem, RQBookmarks } from './types';
|
|
2
2
|
export * from './data';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export declare const useBookmarks: {
|
|
5
|
-
list: (rq?: RQBookmarks) => import(
|
|
5
|
+
list: (rq?: RQBookmarks) => import('@tanstack/react-query').DefinedUseQueryResult<BookmarksResponse, Error>;
|
|
6
6
|
actions: (rq?: RQBookmarks) => {
|
|
7
7
|
setFavorites: (items: FavoriteItem[]) => NoInfer<BookmarksResponse> | undefined;
|
|
8
8
|
setPins: (items: FavoriteItem[]) => NoInfer<BookmarksResponse> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RQStorage } from './types';
|
|
2
2
|
export * from './data';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export declare const useStorage: {
|
|
5
|
-
list: (rq?: RQStorage) => import(
|
|
5
|
+
list: (rq?: RQStorage) => import('@tanstack/react-query').DefinedUseQueryResult<import('./types').StorageResponse, Error>;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vezham/react",
|
|
3
|
-
"version": "26.0.0-alpha.
|
|
3
|
+
"version": "26.0.0-alpha.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/vezham/vx-fe-pkgs.git",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
],
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@tanstack/react-hotkeys": "^0.10.0",
|
|
112
|
-
"@vezham/hooks": "26.0.0-alpha.
|
|
112
|
+
"@vezham/hooks": "26.0.0-alpha.7",
|
|
113
113
|
"react-aria-components": "1.21.1"
|
|
114
114
|
}
|
|
115
115
|
}
|
package/dist/react.css
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
._panel_1bkin_1 {
|
|
2
|
-
height: 100%;
|
|
3
|
-
animation: _panel-enter_1bkin_1 180ms ease-out both;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
._panel_1bkin_1[data-state='closed'] {
|
|
7
|
-
animation: _panel-exit_1bkin_1 140ms ease-in both;
|
|
8
|
-
pointer-events: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@keyframes _panel-enter_1bkin_1 {
|
|
12
|
-
from {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
transform: translate3d(-1rem, 0, 0);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
to {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transform: translate3d(0, 0, 0);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes _panel-exit_1bkin_1 {
|
|
24
|
-
from {
|
|
25
|
-
opacity: 1;
|
|
26
|
-
transform: translate3d(0, 0, 0);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
to {
|
|
30
|
-
opacity: 0;
|
|
31
|
-
transform: translate3d(-1rem, 0, 0);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@keyframes _panel-reduced_1bkin_1 {
|
|
36
|
-
from,
|
|
37
|
-
to {
|
|
38
|
-
opacity: 1;
|
|
39
|
-
transform: none;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@media (prefers-reduced-motion: reduce) {
|
|
44
|
-
._panel_1bkin_1,
|
|
45
|
-
._panel_1bkin_1[data-state='closed'] {
|
|
46
|
-
animation: _panel-reduced_1bkin_1 1ms linear both;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/*$vite$:1*/
|