@ag2/weave 0.9.0 → 0.10.0
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/components/commons-tabs/CommonsTabs.css.d.ts +10 -0
- package/dist/components/commons-tabs/CommonsTabs.d.ts +21 -0
- package/dist/components/commons-tabs/index.d.ts +1 -0
- package/dist/components/dock/Dock.css.d.ts +7 -0
- package/dist/components/dock/Dock.d.ts +19 -0
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/icon/Icons.d.ts +9 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/inspector-tabs/InspectorTabs.css.d.ts +4 -0
- package/dist/components/inspector-tabs/InspectorTabs.d.ts +15 -0
- package/dist/components/inspector-tabs/index.d.ts +1 -0
- package/dist/components/surface-toolbar/SurfaceToolbar.css.d.ts +11 -0
- package/dist/components/surface-toolbar/SurfaceToolbar.d.ts +18 -0
- package/dist/components/surface-toolbar/index.d.ts +1 -0
- package/dist/components/tabFocusKeyboard.d.ts +4 -0
- package/dist/components/type-tile/TypeTile.css.d.ts +4 -0
- package/dist/components/type-tile/TypeTile.d.ts +14 -0
- package/dist/components/type-tile/index.d.ts +1 -0
- package/dist/index.js +2362 -1698
- package/dist/index.js.map +1 -1
- package/dist/style.css +419 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const CommonsTabStrip: string;
|
|
2
|
+
export declare const CommonsTabList: string;
|
|
3
|
+
export declare const CommonsTabControls: string;
|
|
4
|
+
export declare const CommonsTabDivider: string;
|
|
5
|
+
export declare const CommonsTab: string;
|
|
6
|
+
export declare const CommonsTabButton: string;
|
|
7
|
+
export declare const CommonsTabLabel: string;
|
|
8
|
+
export declare const CommonsTabDrafting: string;
|
|
9
|
+
export declare const CommonsTabUnseen: string;
|
|
10
|
+
export declare const CommonsTabClose: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type CommonsTabStripProps = {
|
|
3
|
+
/** The panel's own controls after the tabs: Commons menu, Expand, Hide. */
|
|
4
|
+
controls?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const CommonsTabStrip: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, CommonsTabStripProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
7
|
+
export declare type CommonsTabProps = {
|
|
8
|
+
label: string;
|
|
9
|
+
/** The page's type tile, 16px. */
|
|
10
|
+
tile?: ReactNode;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
/** An agent made or changed it since you looked. */
|
|
13
|
+
unseen?: boolean;
|
|
14
|
+
/** An agent is still writing it; `draftingBy` names who, for the tooltip. */
|
|
15
|
+
drafting?: boolean;
|
|
16
|
+
draftingBy?: string;
|
|
17
|
+
onSelect?: () => void;
|
|
18
|
+
/** Shown on the open tab and on hover; omit for a tab that can't close. */
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const CommonsTab: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, CommonsTabProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CommonsTabs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const Dock: string;
|
|
2
|
+
export declare const DockButton: string;
|
|
3
|
+
export declare const DockCount: string;
|
|
4
|
+
export declare const DockDivider: string;
|
|
5
|
+
export declare const DockHint: string;
|
|
6
|
+
export declare const DockChip: string;
|
|
7
|
+
export declare const DockChipText: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IconSrc } from "../icon";
|
|
3
|
+
export declare const Dock: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
4
|
+
export declare type DockButtonProps = {
|
|
5
|
+
icon: IconSrc;
|
|
6
|
+
/** The tooltip and accessible name; the visible text too when `labelled`. */
|
|
7
|
+
label: string;
|
|
8
|
+
labelled?: boolean;
|
|
9
|
+
/** A mode that's on (commenting, picking an area): the button turns dark. */
|
|
10
|
+
pressed?: boolean;
|
|
11
|
+
count?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const DockButton: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, DockButtonProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
14
|
+
export declare const DockDivider: () => JSX.Element;
|
|
15
|
+
export declare const DockHint: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
16
|
+
export declare type DockChipProps = {
|
|
17
|
+
before?: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
export declare const DockChip: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, DockChipProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Dock";
|
|
@@ -155,5 +155,14 @@ export declare const Icons: {
|
|
|
155
155
|
WordFile: IconSrc;
|
|
156
156
|
Files: IconSrc;
|
|
157
157
|
Pulse: IconSrc;
|
|
158
|
+
Doc: IconSrc;
|
|
159
|
+
Whiteboard: IconSrc;
|
|
160
|
+
Table: IconSrc;
|
|
161
|
+
Database: IconSrc;
|
|
162
|
+
Kanban: IconSrc;
|
|
163
|
+
Pdf: IconSrc;
|
|
164
|
+
FrameCorners: IconSrc;
|
|
165
|
+
Presentation: IconSrc;
|
|
166
|
+
Selection: IconSrc;
|
|
158
167
|
};
|
|
159
168
|
export declare type IconName = keyof typeof Icons;
|
|
@@ -59,3 +59,8 @@ export * from "./empty-state";
|
|
|
59
59
|
export * from "./panel-switch";
|
|
60
60
|
export * from "./people-line";
|
|
61
61
|
export * from "./room-header";
|
|
62
|
+
export * from "./type-tile";
|
|
63
|
+
export * from "./commons-tabs";
|
|
64
|
+
export * from "./surface-toolbar";
|
|
65
|
+
export * from "./dock";
|
|
66
|
+
export * from "./inspector-tabs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type InspectorHeaderProps = {
|
|
3
|
+
/** After the tabs, at the far end: Close. */
|
|
4
|
+
after?: ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const InspectorHeader: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, InspectorHeaderProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
8
|
+
export declare type InspectorTabProps = {
|
|
9
|
+
/** The tab's glyph, standard size. */
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
label: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
onSelect?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const InspectorTab: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, InspectorTabProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InspectorTabs";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const SurfaceToolbar: string;
|
|
2
|
+
export declare const SurfaceToolbarTitle: string;
|
|
3
|
+
export declare const SurfaceToolbarTitleText: string;
|
|
4
|
+
export declare const SurfaceToolbarMeta: string;
|
|
5
|
+
export declare const SurfaceToolbarTools: string;
|
|
6
|
+
export declare const SurfaceToolbarSpacer: string;
|
|
7
|
+
export declare const SurfaceToolbarDivider: string;
|
|
8
|
+
export declare const SummonPill: string;
|
|
9
|
+
export declare const SummonPillHere: string;
|
|
10
|
+
export declare const SummonPillFaces: string;
|
|
11
|
+
export declare const SummonPillGlyph: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare const SurfaceToolbar: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
3
|
+
export declare type SurfaceToolbarTitleProps = {
|
|
4
|
+
/** The page's type tile, 20px. */
|
|
5
|
+
tile?: ReactNode;
|
|
6
|
+
/** After the title, quieter: "· Page 1 of 3". */
|
|
7
|
+
meta?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const SurfaceToolbarTitle: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, SurfaceToolbarTitleProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export declare const SurfaceToolbarTools: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
11
|
+
export declare const SurfaceToolbarSpacer: () => JSX.Element;
|
|
12
|
+
export declare const SurfaceToolbarDivider: () => JSX.Element;
|
|
13
|
+
export declare type SummonPillProps = {
|
|
14
|
+
/** Faces of who's on this page now, overlapping; omit when nobody else is here. */
|
|
15
|
+
faces?: ReactNode;
|
|
16
|
+
label?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const SummonPill: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, SummonPillProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SurfaceToolbar";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent } from "react";
|
|
2
|
+
export declare const tabFocusRoving: (event: FocusEvent<HTMLElement>) => void;
|
|
3
|
+
export declare const tabBlurRoving: (event: FocusEvent<HTMLElement>) => void;
|
|
4
|
+
export declare const tabFocusKeyboard: (event: KeyboardEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const TypeTile: string;
|
|
2
|
+
export declare const TypeTileSize: Record<"200" | "300" | "500", string>;
|
|
3
|
+
export declare const TypeTileGlyph: Record<"200" | "300" | "500", string>;
|
|
4
|
+
export declare const TypeTileKind: Record<"Media" | "Doc" | "Html" | "Whiteboard" | "Sheet" | "Database" | "Pdf" | "Analysis" | "Figma" | "Presentation" | "Apps" | "Kanban", string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconSrc } from "../icon";
|
|
3
|
+
import * as css from "./TypeTile.css";
|
|
4
|
+
export declare type TypeTileKind = keyof typeof css.TypeTileKind;
|
|
5
|
+
/** The glyph each Commons page type is drawn with. */
|
|
6
|
+
export declare const typeTileIcon: Record<TypeTileKind, IconSrc>;
|
|
7
|
+
export declare type TypeTileProps = {
|
|
8
|
+
kind: TypeTileKind;
|
|
9
|
+
/** 200 = 16px in tabs and lists, 300 = 20px in toolbars, 500 = 40px in the New tab hub. */
|
|
10
|
+
size?: keyof typeof css.TypeTileSize;
|
|
11
|
+
/** Draw another glyph on the type's wash, for a type this set doesn't name. */
|
|
12
|
+
icon?: IconSrc;
|
|
13
|
+
};
|
|
14
|
+
export declare const TypeTile: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, TypeTileProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TypeTile";
|