@automattic/agenttic-client 0.1.13 → 0.1.15
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/README.md +78 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/types/index.d.ts +55 -0
- package/dist/client/types/index.d.ts.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1189 -1591
- package/dist/message-actions/index.d.ts +0 -2
- package/dist/message-actions/index.d.ts.map +1 -1
- package/dist/message-actions/useMessageActions.d.ts.map +1 -1
- package/dist/mocks/MockSalesGraph.d.ts.map +1 -1
- package/dist/mocks.js +672 -50
- package/dist/react/agentManager.d.ts +1 -0
- package/dist/react/agentManager.d.ts.map +1 -1
- package/dist/react/useAgentChat.d.ts +0 -18
- package/dist/react/useAgentChat.d.ts.map +1 -1
- package/dist/react/useClientTools.d.ts +65 -3
- package/dist/react/useClientTools.d.ts.map +1 -1
- package/dist/utils/wordpressAbilities.d.ts +37 -0
- package/dist/utils/wordpressAbilities.d.ts.map +1 -0
- package/package.json +6 -11
- package/dist/BarChart-Cid6YH81.js +0 -801
- package/dist/BarChart.css +0 -1
- package/dist/markdown-extensions/charts/BarChart.d.ts +0 -16
- package/dist/markdown-extensions/charts/BarChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/BaseChart.d.ts +0 -36
- package/dist/markdown-extensions/charts/BaseChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartBlock.d.ts +0 -34
- package/dist/markdown-extensions/charts/ChartBlock.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartError.d.ts +0 -17
- package/dist/markdown-extensions/charts/ChartError.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts +0 -30
- package/dist/markdown-extensions/charts/ChartErrorBoundary.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/LineChart.d.ts +0 -14
- package/dist/markdown-extensions/charts/LineChart.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/index.d.ts +0 -294
- package/dist/markdown-extensions/charts/index.d.ts.map +0 -1
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts +0 -56
- package/dist/markdown-extensions/charts/utils/chartUtils.d.ts.map +0 -1
- package/dist/markdown-extensions/index.d.ts +0 -34
- package/dist/markdown-extensions/index.d.ts.map +0 -1
- package/dist/markdown-extensions/types.d.ts +0 -52
- package/dist/markdown-extensions/types.d.ts.map +0 -1
- package/dist/message-actions/factories.d.ts +0 -16
- package/dist/message-actions/factories.d.ts.map +0 -1
- package/dist/utils/createMessageRenderer.d.ts +0 -25
- package/dist/utils/createMessageRenderer.d.ts.map +0 -1
- package/dist/utils/markdownParser.d.ts +0 -25
- package/dist/utils/markdownParser.d.ts.map +0 -1
package/dist/BarChart.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.chart-block{margin:var(--spacing-1) 0;position:relative;width:100%;max-width:100%;box-sizing:border-box;overflow:visible;z-index:1000;font-family:var(--font-sans)}.chart-block-title{margin:0 0 var(--spacing-2) 0;font-size:var(--text-sm);font-family:inherit;font-weight:var(--font-weight-bold, 700);word-wrap:break-word;white-space:normal;line-height:var(--text-sm--line-height);-webkit-hyphens:auto;hyphens:auto}.chart-container{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;z-index:1001;overflow:visible;position:relative;box-sizing:border-box}.chart-container svg{overflow:visible!important}.chart-error{padding:var(--spacing-4);border:1px solid var(--color-destructive);border-radius:var(--radius-sm);background-color:var(--color-muted);color:var(--color-destructive);font-size:var(--text-sm)}.chart-error strong{display:inline-block;margin-bottom:var(--spacing-1)}.chart-error details{margin-top:var(--spacing-2)}.chart-error details summary{cursor:pointer;color:var(--color-muted-foreground)}.chart-error details pre{margin-top:var(--spacing-2);padding:var(--spacing-2);background-color:var(--color-muted);border-radius:var(--radius-sm);overflow:auto;font-size:var(--text-sm)}.chart-tooltip{line-height:1.2;font-size:11px;max-width:120px;min-width:auto;background:#000c;color:#fff;padding:var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.chart-tooltip-date{font-size:10px;opacity:.8;margin-bottom:var(--spacing-1);color:#fffc;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:var(--spacing-1)}.chart-tooltip-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-1)}.chart-tooltip-row:last-child{margin-bottom:0}.chart-tooltip-label{font-weight:var(--font-weight-normal);font-size:11px;color:#fffc;margin-right:var(--spacing-2)}.chart-tooltip-value{font-weight:var(--font-weight-semibold);font-size:11px;color:#fff;text-align:right}.visx-tooltip{z-index:10000!important;max-width:150px!important;word-wrap:break-word!important;white-space:normal!important}div[style*="pointer-events: none"][style*="position: absolute"]{z-index:10000!important}.chart-block .visx-axis-bottom text{font-size:11px}.chart-block .visx-axis-bottom text.visx-axis-tick{text-anchor:middle}.chart-block .visx-axis-bottom.rotate-labels .visx-axis-tick text{text-anchor:end;transform:rotate(-45deg);transform-origin:right center}.chart-block .visx-legend .visx-legend-label{font-size:11px!important;max-width:none!important}.chart-block .visx-legend{margin-top:8px;position:relative;z-index:1002}.chart-block .visx-legend-item{display:flex;align-items:center;margin:0 8px}.chart-block .visx-legend-shape{width:12px;height:12px;margin-right:6px;display:inline-block;flex-shrink:0}.chart-block .visx-legend-shape svg{width:100%;height:100%;display:block}.chart-block .visx-legend-shape rect{width:100%;height:100%}.chart-block .visx-legend-shape circle{r:6;cx:6;cy:6}.chart-block .visx-legend>div{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.chart-block .visx-legend-item>div:first-child{margin-right:6px}.chart-block .visx-legend [class*=legend] svg{opacity:1;visibility:visible}.chart-block .visx-legend svg *{opacity:1;visibility:visible;fill:currentColor}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import type { BaseChartProps } from './BaseChart';
|
|
6
|
-
export interface BarChartProps extends BaseChartProps {
|
|
7
|
-
mode?: 'time-comparison' | 'item-comparison';
|
|
8
|
-
truncateLabels?: boolean;
|
|
9
|
-
maxLabelLength?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Bar chart component for comparisons and time-series data
|
|
13
|
-
* @param props Component props
|
|
14
|
-
*/
|
|
15
|
-
export declare const BarChart: FC<BarChartProps>;
|
|
16
|
-
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/BarChart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAQlD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACpD,IAAI,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAE,aAAa,CA8GvC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { type BaseChartProps as AutomatticBaseChartProps, type DataPointDate, type SeriesData } from '@automattic/charts';
|
|
5
|
-
import type { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
|
|
6
|
-
import type { FC } from 'react';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export interface CurrencyOptions {
|
|
9
|
-
symbol: string;
|
|
10
|
-
symbolPosition: 'left' | 'right';
|
|
11
|
-
}
|
|
12
|
-
export interface BaseChartProps extends Omit<AutomatticBaseChartProps<SeriesData[]>, 'data'> {
|
|
13
|
-
data: SeriesData[];
|
|
14
|
-
currency?: CurrencyOptions;
|
|
15
|
-
renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => React.ReactNode;
|
|
16
|
-
error?: {
|
|
17
|
-
message: string;
|
|
18
|
-
details?: string;
|
|
19
|
-
} | null;
|
|
20
|
-
}
|
|
21
|
-
export type { SeriesData } from '@automattic/charts';
|
|
22
|
-
interface BaseChartInternalProps {
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
error?: {
|
|
25
|
-
message: string;
|
|
26
|
-
details?: string;
|
|
27
|
-
} | null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Base chart component with shared logic for all chart types
|
|
31
|
-
* @param root0
|
|
32
|
-
* @param root0.children
|
|
33
|
-
* @param root0.error
|
|
34
|
-
*/
|
|
35
|
-
export declare const BaseChart: FC<BaseChartInternalProps>;
|
|
36
|
-
//# sourceMappingURL=BaseChart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChart.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/BaseChart.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACN,KAAK,cAAc,IAAI,wBAAwB,EAC/C,KAAK,aAAa,EAElB,KAAK,UAAU,EAEf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,cAChB,SAAQ,IAAI,CAAE,wBAAwB,CAAE,UAAU,EAAE,CAAE,EAAE,MAAM,CAAE;IAChE,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,CAAC,EAAE,CACf,MAAM,EAAE,mBAAmB,CAAE,aAAa,CAAE,KACxC,KAAK,CAAC,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,CAAC;CACT;AAED,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,UAAU,sBAAsB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,CAAC;CACT;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAE,sBAAsB,CA4CjD,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import type { ChartExtensionConfig } from '../types';
|
|
6
|
-
export interface ChartBlockProps {
|
|
7
|
-
data: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
config?: ChartExtensionConfig['config'];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ChartBlock component that renders interactive charts from markdown code blocks
|
|
13
|
-
*
|
|
14
|
-
* Supports JSON format chart data:
|
|
15
|
-
* {
|
|
16
|
-
* "chartType": "line",
|
|
17
|
-
* "title": "Revenue Trend",
|
|
18
|
-
* "data": [
|
|
19
|
-
* {
|
|
20
|
-
* "label": "Revenue",
|
|
21
|
-
* "data": [
|
|
22
|
-
* {"date": "2024-01-01", "value": 1000},
|
|
23
|
-
* {"date": "2024-01-02", "value": 1200}
|
|
24
|
-
* ]
|
|
25
|
-
* }
|
|
26
|
-
* ]
|
|
27
|
-
* }
|
|
28
|
-
* @param root0
|
|
29
|
-
* @param root0.data
|
|
30
|
-
* @param root0.className
|
|
31
|
-
* @param root0.config
|
|
32
|
-
*/
|
|
33
|
-
export declare const ChartBlock: FC<ChartBlockProps>;
|
|
34
|
-
//# sourceMappingURL=ChartBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartBlock.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/ChartBlock.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC;;GAEG;AACH,OAAO,KAAK,EAA6B,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,oBAAoB,CAAE,QAAQ,CAAE,CAAC;CAC1C;AAsBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAE,eAAe,CA4U3C,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { FC } from 'react';
|
|
5
|
-
interface ChartErrorProps {
|
|
6
|
-
message: string;
|
|
7
|
-
details?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Error display component for chart rendering issues
|
|
11
|
-
* @param root0
|
|
12
|
-
* @param root0.message
|
|
13
|
-
* @param root0.details
|
|
14
|
-
*/
|
|
15
|
-
export declare const ChartError: FC<ChartErrorProps>;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ChartError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartError.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/ChartError.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,UAAU,eAAe;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAE,eAAe,CAU3C,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { Component, type ErrorInfo, type ReactNode } from 'react';
|
|
5
|
-
interface Props {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
chartData?: string;
|
|
8
|
-
}
|
|
9
|
-
interface State {
|
|
10
|
-
hasError: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
errorInfo: ErrorInfo | null;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Error boundary component to catch and handle chart rendering errors
|
|
16
|
-
* Prevents the entire chat window from crashing when chart errors occur
|
|
17
|
-
*
|
|
18
|
-
* NOTE: This must remain a class component. React does not yet support error
|
|
19
|
-
* boundaries as functional components or hooks. The componentDidCatch and
|
|
20
|
-
* getDerivedStateFromError lifecycle methods are only available in class components.
|
|
21
|
-
* See: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
|
|
22
|
-
*/
|
|
23
|
-
export declare class ChartErrorBoundary extends Component<Props, State> {
|
|
24
|
-
constructor(props: Props);
|
|
25
|
-
static getDerivedStateFromError(error: Error): State;
|
|
26
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
27
|
-
render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=ChartErrorBoundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/ChartErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOlE,UAAU,KAAK;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAK;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,SAAS,CAAE,KAAK,EAAE,KAAK,CAAE;gBACnD,KAAK,EAAE,KAAK;IASzB,MAAM,CAAC,wBAAwB,CAAE,KAAK,EAAE,KAAK,GAAI,KAAK;IAQtD,iBAAiB,CAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAuBrD,MAAM;CAoBN"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import type { BaseChartProps } from './BaseChart';
|
|
6
|
-
export interface LineChartProps extends BaseChartProps {
|
|
7
|
-
withGradientFill?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Line chart component for time-series data
|
|
11
|
-
* @param props Component props
|
|
12
|
-
*/
|
|
13
|
-
export declare const LineChart: FC<LineChartProps>;
|
|
14
|
-
//# sourceMappingURL=LineChart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/LineChart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,MAAM,WAAW,cAAe,SAAQ,cAAc;IACrD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAE,cAAc,CAiDzC,CAAC"}
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chart extension for markdown processing
|
|
3
|
-
*/
|
|
4
|
-
import './charts.css';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ChartExtensionConfig } from '../types';
|
|
7
|
-
interface CodeProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
type ChartConfig = ChartExtensionConfig['config'];
|
|
12
|
-
/**
|
|
13
|
-
* Create a chart block component that handles code blocks with language="chart"
|
|
14
|
-
* @param config - Optional configuration for the chart extension
|
|
15
|
-
* @return A react-markdown code component that renders charts
|
|
16
|
-
*/
|
|
17
|
-
export declare function createChartBlock(config?: ChartConfig): (props: CodeProps) => React.DetailedReactHTMLElement<{
|
|
18
|
-
defaultChecked?: boolean | undefined;
|
|
19
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
20
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
21
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
22
|
-
accessKey?: string | undefined;
|
|
23
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
24
|
-
autoFocus?: boolean | undefined;
|
|
25
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
26
|
-
contextMenu?: string | undefined;
|
|
27
|
-
dir?: string | undefined;
|
|
28
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
29
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
30
|
-
hidden?: boolean | undefined;
|
|
31
|
-
id?: string | undefined;
|
|
32
|
-
lang?: string | undefined;
|
|
33
|
-
nonce?: string | undefined;
|
|
34
|
-
slot?: string | undefined;
|
|
35
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
36
|
-
style?: React.CSSProperties | undefined;
|
|
37
|
-
tabIndex?: number | undefined;
|
|
38
|
-
title?: string | undefined;
|
|
39
|
-
translate?: "yes" | "no" | undefined;
|
|
40
|
-
radioGroup?: string | undefined;
|
|
41
|
-
role?: React.AriaRole | undefined;
|
|
42
|
-
about?: string | undefined;
|
|
43
|
-
content?: string | undefined;
|
|
44
|
-
datatype?: string | undefined;
|
|
45
|
-
inlist?: any;
|
|
46
|
-
prefix?: string | undefined;
|
|
47
|
-
property?: string | undefined;
|
|
48
|
-
rel?: string | undefined;
|
|
49
|
-
resource?: string | undefined;
|
|
50
|
-
rev?: string | undefined;
|
|
51
|
-
typeof?: string | undefined;
|
|
52
|
-
vocab?: string | undefined;
|
|
53
|
-
autoCorrect?: string | undefined;
|
|
54
|
-
autoSave?: string | undefined;
|
|
55
|
-
color?: string | undefined;
|
|
56
|
-
itemProp?: string | undefined;
|
|
57
|
-
itemScope?: boolean | undefined;
|
|
58
|
-
itemType?: string | undefined;
|
|
59
|
-
itemID?: string | undefined;
|
|
60
|
-
itemRef?: string | undefined;
|
|
61
|
-
results?: number | undefined;
|
|
62
|
-
security?: string | undefined;
|
|
63
|
-
unselectable?: "on" | "off" | undefined;
|
|
64
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
65
|
-
is?: string | undefined;
|
|
66
|
-
exportparts?: string | undefined;
|
|
67
|
-
part?: string | undefined;
|
|
68
|
-
"aria-activedescendant"?: string | undefined;
|
|
69
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
71
|
-
"aria-braillelabel"?: string | undefined;
|
|
72
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
73
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
74
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
75
|
-
"aria-colcount"?: number | undefined;
|
|
76
|
-
"aria-colindex"?: number | undefined;
|
|
77
|
-
"aria-colindextext"?: string | undefined;
|
|
78
|
-
"aria-colspan"?: number | undefined;
|
|
79
|
-
"aria-controls"?: string | undefined;
|
|
80
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
81
|
-
"aria-describedby"?: string | undefined;
|
|
82
|
-
"aria-description"?: string | undefined;
|
|
83
|
-
"aria-details"?: string | undefined;
|
|
84
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
86
|
-
"aria-errormessage"?: string | undefined;
|
|
87
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
88
|
-
"aria-flowto"?: string | undefined;
|
|
89
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
90
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
91
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
93
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
94
|
-
"aria-label"?: string | undefined;
|
|
95
|
-
"aria-labelledby"?: string | undefined;
|
|
96
|
-
"aria-level"?: number | undefined;
|
|
97
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
98
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
99
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
101
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
102
|
-
"aria-owns"?: string | undefined;
|
|
103
|
-
"aria-placeholder"?: string | undefined;
|
|
104
|
-
"aria-posinset"?: number | undefined;
|
|
105
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
106
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
107
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
108
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
109
|
-
"aria-roledescription"?: string | undefined;
|
|
110
|
-
"aria-rowcount"?: number | undefined;
|
|
111
|
-
"aria-rowindex"?: number | undefined;
|
|
112
|
-
"aria-rowindextext"?: string | undefined;
|
|
113
|
-
"aria-rowspan"?: number | undefined;
|
|
114
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
115
|
-
"aria-setsize"?: number | undefined;
|
|
116
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
117
|
-
"aria-valuemax"?: number | undefined;
|
|
118
|
-
"aria-valuemin"?: number | undefined;
|
|
119
|
-
"aria-valuenow"?: number | undefined;
|
|
120
|
-
"aria-valuetext"?: string | undefined;
|
|
121
|
-
dangerouslySetInnerHTML?: {
|
|
122
|
-
__html: string | TrustedHTML;
|
|
123
|
-
} | undefined;
|
|
124
|
-
onCopy?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
125
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
126
|
-
onCut?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
127
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
128
|
-
onPaste?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
129
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLElement> | undefined;
|
|
130
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
131
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
132
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
133
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
134
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
135
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement> | undefined;
|
|
136
|
-
onFocus?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
137
|
-
onFocusCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
138
|
-
onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
139
|
-
onBlurCapture?: React.FocusEventHandler<HTMLElement> | undefined;
|
|
140
|
-
onChange?: React.FormEventHandler<HTMLElement> | undefined;
|
|
141
|
-
onChangeCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
142
|
-
onBeforeInput?: React.InputEventHandler<HTMLElement> | undefined;
|
|
143
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
144
|
-
onInput?: React.FormEventHandler<HTMLElement> | undefined;
|
|
145
|
-
onInputCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
146
|
-
onReset?: React.FormEventHandler<HTMLElement> | undefined;
|
|
147
|
-
onResetCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
148
|
-
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
149
|
-
onSubmitCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
150
|
-
onInvalid?: React.FormEventHandler<HTMLElement> | undefined;
|
|
151
|
-
onInvalidCapture?: React.FormEventHandler<HTMLElement> | undefined;
|
|
152
|
-
onLoad?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
153
|
-
onLoadCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
154
|
-
onError?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
155
|
-
onErrorCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
156
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
157
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
158
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
159
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
160
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
161
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement> | undefined;
|
|
162
|
-
onAbort?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
163
|
-
onAbortCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
164
|
-
onCanPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
165
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
166
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
167
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
168
|
-
onDurationChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
169
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
170
|
-
onEmptied?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
171
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
172
|
-
onEncrypted?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
173
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
174
|
-
onEnded?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
175
|
-
onEndedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
176
|
-
onLoadedData?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
177
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
178
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
179
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
180
|
-
onLoadStart?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
181
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
182
|
-
onPause?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
183
|
-
onPauseCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
184
|
-
onPlay?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
185
|
-
onPlayCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
186
|
-
onPlaying?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
187
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
188
|
-
onProgress?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
189
|
-
onProgressCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
190
|
-
onRateChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
191
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
192
|
-
onSeeked?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
193
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
194
|
-
onSeeking?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
195
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
196
|
-
onStalled?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
197
|
-
onStalledCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
198
|
-
onSuspend?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
199
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
200
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
201
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
202
|
-
onVolumeChange?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
203
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
204
|
-
onWaiting?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
205
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
206
|
-
onAuxClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
207
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
208
|
-
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
209
|
-
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
210
|
-
onContextMenu?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
211
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
212
|
-
onDoubleClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
213
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
214
|
-
onDrag?: React.DragEventHandler<HTMLElement> | undefined;
|
|
215
|
-
onDragCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
216
|
-
onDragEnd?: React.DragEventHandler<HTMLElement> | undefined;
|
|
217
|
-
onDragEndCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
218
|
-
onDragEnter?: React.DragEventHandler<HTMLElement> | undefined;
|
|
219
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
220
|
-
onDragExit?: React.DragEventHandler<HTMLElement> | undefined;
|
|
221
|
-
onDragExitCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
222
|
-
onDragLeave?: React.DragEventHandler<HTMLElement> | undefined;
|
|
223
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
224
|
-
onDragOver?: React.DragEventHandler<HTMLElement> | undefined;
|
|
225
|
-
onDragOverCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
226
|
-
onDragStart?: React.DragEventHandler<HTMLElement> | undefined;
|
|
227
|
-
onDragStartCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
228
|
-
onDrop?: React.DragEventHandler<HTMLElement> | undefined;
|
|
229
|
-
onDropCapture?: React.DragEventHandler<HTMLElement> | undefined;
|
|
230
|
-
onMouseDown?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
231
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
232
|
-
onMouseEnter?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
233
|
-
onMouseLeave?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
234
|
-
onMouseMove?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
235
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
236
|
-
onMouseOut?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
237
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
238
|
-
onMouseOver?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
239
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
240
|
-
onMouseUp?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
241
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
242
|
-
onSelect?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
243
|
-
onSelectCapture?: React.ReactEventHandler<HTMLElement> | undefined;
|
|
244
|
-
onTouchCancel?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
245
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
246
|
-
onTouchEnd?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
247
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
248
|
-
onTouchMove?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
249
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
250
|
-
onTouchStart?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
251
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLElement> | undefined;
|
|
252
|
-
onPointerDown?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
253
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
254
|
-
onPointerMove?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
255
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
256
|
-
onPointerUp?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
257
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
258
|
-
onPointerCancel?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
259
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
260
|
-
onPointerEnter?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
261
|
-
onPointerLeave?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
262
|
-
onPointerOver?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
263
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
264
|
-
onPointerOut?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
265
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
266
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
267
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
268
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
269
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement> | undefined;
|
|
270
|
-
onScroll?: React.UIEventHandler<HTMLElement> | undefined;
|
|
271
|
-
onScrollCapture?: React.UIEventHandler<HTMLElement> | undefined;
|
|
272
|
-
onWheel?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
273
|
-
onWheelCapture?: React.WheelEventHandler<HTMLElement> | undefined;
|
|
274
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
275
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
276
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
277
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
278
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
279
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
280
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
281
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
282
|
-
className: string | undefined;
|
|
283
|
-
}, HTMLElement> | React.FunctionComponentElement<import("./ChartBlock").ChartBlockProps>;
|
|
284
|
-
export { BarChart } from './BarChart';
|
|
285
|
-
export { BaseChart } from './BaseChart';
|
|
286
|
-
export { ChartBlock } from './ChartBlock';
|
|
287
|
-
export { ChartError } from './ChartError';
|
|
288
|
-
export { ChartErrorBoundary } from './ChartErrorBoundary';
|
|
289
|
-
export { LineChart } from './LineChart';
|
|
290
|
-
export type { BarChartProps } from './BarChart';
|
|
291
|
-
export type { BaseChartProps, CurrencyOptions, SeriesData } from './BaseChart';
|
|
292
|
-
export type { ChartBlockProps } from './ChartBlock';
|
|
293
|
-
export type { LineChartProps } from './LineChart';
|
|
294
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/markdown-extensions/charts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,UAAU,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAE,WAAW,CAAE;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,KAAK,WAAW,GAAG,oBAAoB,CAAE,QAAQ,CAAE,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAE,MAAM,CAAC,EAAE,WAAW,IACrB,OAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAqBhD;AAGD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared utilities for chart components
|
|
3
|
-
*/
|
|
4
|
-
import type { SeriesData } from '@automattic/charts';
|
|
5
|
-
/**
|
|
6
|
-
* Calculate bottom margin for charts based on data and display requirements
|
|
7
|
-
* @param minMargin - Minimum margin to apply
|
|
8
|
-
* @param charWidth - Average character width for calculations
|
|
9
|
-
* @param padding - Additional padding
|
|
10
|
-
* @param labelLength - Optional label length for custom calculations
|
|
11
|
-
* @return Calculated bottom margin
|
|
12
|
-
*/
|
|
13
|
-
export declare const calculateBottomMargin: (minMargin?: number, charWidth?: number, padding?: number, labelLength?: number) => number;
|
|
14
|
-
/**
|
|
15
|
-
* Generate time axis configuration for charts with date data
|
|
16
|
-
* @param data - Chart series data
|
|
17
|
-
* @return Axis configuration object
|
|
18
|
-
*/
|
|
19
|
-
export declare const getTimeAxisConfig: (data: SeriesData[]) => {
|
|
20
|
-
orientation?: undefined;
|
|
21
|
-
tickValues?: undefined;
|
|
22
|
-
tickFormat?: undefined;
|
|
23
|
-
tickLabelProps?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
orientation: "bottom";
|
|
26
|
-
tickValues: Date[];
|
|
27
|
-
tickFormat: (value: Date | string | number) => string;
|
|
28
|
-
tickLabelProps: () => {
|
|
29
|
-
fontSize: number;
|
|
30
|
-
textAnchor: "end";
|
|
31
|
-
angle: number;
|
|
32
|
-
dx: number;
|
|
33
|
-
dy: number;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Generate default chart margins with calculated bottom margin
|
|
38
|
-
* @param customMargin - Optional custom margin overrides
|
|
39
|
-
* @param customMargin.top - Top margin override
|
|
40
|
-
* @param customMargin.right - Right margin override
|
|
41
|
-
* @param customMargin.bottom - Bottom margin override
|
|
42
|
-
* @param customMargin.left - Left margin override
|
|
43
|
-
* @return Complete margin configuration
|
|
44
|
-
*/
|
|
45
|
-
export declare const getDefaultChartMargins: (customMargin?: {
|
|
46
|
-
top?: number;
|
|
47
|
-
right?: number;
|
|
48
|
-
bottom?: number;
|
|
49
|
-
left?: number;
|
|
50
|
-
}) => {
|
|
51
|
-
bottom: number;
|
|
52
|
-
top: number;
|
|
53
|
-
right: number;
|
|
54
|
-
left: number;
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=chartUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chartUtils.d.ts","sourceRoot":"","sources":["../../../../src/markdown-extensions/charts/utils/chartUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GACjC,YAAW,MAAW,EACtB,YAAW,MAAU,EACrB,UAAS,MAAW,EACpB,cAAc,MAAM,KAClB,MAGF,CAAC;AAsBF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAK,MAAM,UAAU,EAAE;;;;;;;;wBAuD9B,IAAI,GAAG,MAAM,GAAG,MAAM;;;;;;;;CA+B5C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GAAK,eAAe;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;;SAJM,MAAM;WACJ,MAAM;UAEP,MAAM;CAcb,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Markdown Extensions Processor
|
|
3
|
-
*
|
|
4
|
-
* This module handles the processing of markdown extensions for agenttic-client.
|
|
5
|
-
* It provides a centralized way to register and process different types of
|
|
6
|
-
* markdown extensions like charts, tables, forms, etc.
|
|
7
|
-
*/
|
|
8
|
-
import type { Components } from 'react-markdown';
|
|
9
|
-
import type { PluggableList } from 'unified';
|
|
10
|
-
import type { MarkdownExtensions } from './types';
|
|
11
|
-
/**
|
|
12
|
-
* Result of processing markdown extensions
|
|
13
|
-
*/
|
|
14
|
-
export interface ProcessedMarkdownExtensions {
|
|
15
|
-
components: Components;
|
|
16
|
-
remarkPlugins: PluggableList;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Process markdown extensions and return components and plugins for react-markdown
|
|
20
|
-
* @param extensions - The markdown extensions configuration
|
|
21
|
-
* @return An object containing react-markdown components and remark plugins for the enabled extensions
|
|
22
|
-
*/
|
|
23
|
-
export declare function processMarkdownExtensions(extensions?: MarkdownExtensions): ProcessedMarkdownExtensions;
|
|
24
|
-
/**
|
|
25
|
-
* Merge extension components with user-provided markdown components
|
|
26
|
-
* User components take precedence over extension components
|
|
27
|
-
* @param extensionComponents - Components from extensions
|
|
28
|
-
* @param userComponents - User-provided components
|
|
29
|
-
* @return Merged components object
|
|
30
|
-
*/
|
|
31
|
-
export declare function mergeMarkdownComponents(extensionComponents: Components, userComponents?: Components): Components;
|
|
32
|
-
export type { DataPointDate } from '@automattic/charts';
|
|
33
|
-
export type { ChartData, ChartExtensionConfig, ChartSeries, MarkdownExtensionConfigBase, MarkdownExtensions, } from './types';
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown-extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,UAAU,CAAC,EAAE,kBAAkB,GAC7B,2BAA2B,CAe7B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,mBAAmB,EAAE,UAAU,EAC/B,cAAc,GAAE,UAAe,GAC7B,UAAU,CAKZ;AAGD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EACX,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,2BAA2B,EAC3B,kBAAkB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions for markdown extensions
|
|
3
|
-
*/
|
|
4
|
-
import type { CurrencyOptions } from './charts/BaseChart';
|
|
5
|
-
/**
|
|
6
|
-
* Base interface for all markdown extension configurations
|
|
7
|
-
* All extensionshave an enabled flag and can add specific configuration options
|
|
8
|
-
* in their respective interfaces.
|
|
9
|
-
*/
|
|
10
|
-
export interface MarkdownExtensionConfigBase {
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for chart extension
|
|
15
|
-
*/
|
|
16
|
-
export interface ChartExtensionConfig extends MarkdownExtensionConfigBase {
|
|
17
|
-
config?: {};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Configuration for GitHub Flavored Markdown extension
|
|
21
|
-
* Enables tables, strikethrough, task lists, and other GFM features
|
|
22
|
-
*/
|
|
23
|
-
export interface GfmExtensionConfig extends MarkdownExtensionConfigBase {
|
|
24
|
-
config?: {};
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Configuration for all available markdown extensions
|
|
28
|
-
*/
|
|
29
|
-
export interface MarkdownExtensions {
|
|
30
|
-
charts?: ChartExtensionConfig;
|
|
31
|
-
gfm?: GfmExtensionConfig;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Chart data structures as provided in JSON format
|
|
35
|
-
*/
|
|
36
|
-
export interface ChartDataPoint {
|
|
37
|
-
date?: string;
|
|
38
|
-
label?: string;
|
|
39
|
-
value: number;
|
|
40
|
-
}
|
|
41
|
-
export interface ChartSeries {
|
|
42
|
-
label: string;
|
|
43
|
-
data: ChartDataPoint[];
|
|
44
|
-
}
|
|
45
|
-
export interface ChartData {
|
|
46
|
-
chartType: 'line' | 'bar';
|
|
47
|
-
title?: string;
|
|
48
|
-
data: ChartSeries[];
|
|
49
|
-
currency?: CurrencyOptions;
|
|
50
|
-
mode?: 'time-comparison' | 'item-comparison';
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/markdown-extensions/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC3C,OAAO,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,2BAA2B;IACxE,MAAM,CAAC,EAAE,EAER,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,2BAA2B;IACtE,MAAM,CAAC,EAAE,EAER,CAAC;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,GAAG,CAAC,EAAE,kBAAkB,CAAC;CAEzB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACzB,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,IAAI,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;CAC7C"}
|