@shapesos/clay 0.16.0 → 0.18.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/ai-elements.cjs +3 -1
- package/dist/ai-elements.cjs.map +1 -1
- package/dist/ai-elements.js +4 -4
- package/dist/artifacts.cjs +976 -69
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +20 -3
- package/dist/artifacts.d.ts +20 -3
- package/dist/artifacts.js +13 -5
- package/dist/blocks.cjs +690 -85
- package/dist/blocks.cjs.map +1 -1
- package/dist/blocks.css +1 -1
- package/dist/blocks.d.cts +3 -3
- package/dist/blocks.d.ts +3 -3
- package/dist/blocks.js +5 -5
- package/dist/button.cjs +3 -1
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +2 -2
- package/dist/capture.cjs +3 -1
- package/dist/capture.cjs.map +1 -1
- package/dist/capture.js +2 -2
- package/dist/chart.cjs +16 -36
- package/dist/chart.cjs.map +1 -1
- package/dist/chart.d.cts +3 -11
- package/dist/chart.d.ts +3 -11
- package/dist/chart.js +2 -2
- package/dist/chat.cjs +714 -109
- package/dist/chat.cjs.map +1 -1
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +6 -6
- package/dist/{chunk-UZKNSAAD.js → chunk-7MY4X4YL.js} +3 -3
- package/dist/chunk-BHHJOG5X.js +1 -0
- package/dist/{chunk-GAZRZZRF.js → chunk-CATIRDZP.js} +5 -5
- package/dist/{chunk-B4U37WIH.js → chunk-CFCLVJIO.js} +2 -2
- package/dist/{chunk-PYDVANWI.js → chunk-E36VI2HA.js} +2 -2
- package/dist/{chunk-U3IXCSV6.js → chunk-G4NXVFXU.js} +18 -40
- package/dist/chunk-G4NXVFXU.js.map +1 -0
- package/dist/{chunk-JAGNXEWK.js → chunk-GK4XW4BC.js} +2 -2
- package/dist/{chunk-4VE6ZXXW.js → chunk-MQP57DOP.js} +3 -3
- package/dist/{chunk-2YCBDSPK.js → chunk-QR4VBGK4.js} +673 -42
- package/dist/chunk-QR4VBGK4.js.map +1 -0
- package/dist/{chunk-JF3P66JF.js → chunk-SN3ORQSJ.js} +4 -2
- package/dist/{chunk-JF3P66JF.js.map → chunk-SN3ORQSJ.js.map} +1 -1
- package/dist/{chunk-PGR2MDDU.js → chunk-W66OJM55.js} +2 -2
- package/dist/{chunk-7OYIDM42.js → chunk-XKURJ72I.js} +2 -2
- package/dist/{dom-to-image-NATF3446.js → dom-to-image-QB7KMTAE.js} +3 -3
- package/dist/icon.cjs +3 -1
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.js +2 -2
- package/dist/index.cjs +780 -167
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -11
- package/dist/keyboard-shortcut.cjs +3 -1
- package/dist/keyboard-shortcut.cjs.map +1 -1
- package/dist/keyboard-shortcut.js +2 -2
- package/dist/text-area.cjs +3 -1
- package/dist/text-area.cjs.map +1 -1
- package/dist/text-area.js +2 -2
- package/dist/tokens.cjs +3 -1
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.d.cts +1 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.js +1 -1
- package/dist/{types-CW45GBXl.d.cts → types-BDYPVP2N.d.cts} +1 -1
- package/dist/{types-D1b8v7EY.d.ts → types-BMwa4bPW.d.ts} +1 -1
- package/dist/{types-GCkXbyFm.d.ts → types-C8JtnwNY.d.ts} +200 -4
- package/dist/{types-BzXPBy6s.d.cts → types-DTdDFU3O.d.cts} +200 -4
- package/package.json +1 -1
- package/dist/chunk-2YCBDSPK.js.map +0 -1
- package/dist/chunk-RSRNSWJN.js +0 -1
- package/dist/chunk-U3IXCSV6.js.map +0 -1
- /package/dist/{chunk-UZKNSAAD.js.map → chunk-7MY4X4YL.js.map} +0 -0
- /package/dist/{chunk-RSRNSWJN.js.map → chunk-BHHJOG5X.js.map} +0 -0
- /package/dist/{chunk-GAZRZZRF.js.map → chunk-CATIRDZP.js.map} +0 -0
- /package/dist/{chunk-B4U37WIH.js.map → chunk-CFCLVJIO.js.map} +0 -0
- /package/dist/{chunk-PYDVANWI.js.map → chunk-E36VI2HA.js.map} +0 -0
- /package/dist/{chunk-JAGNXEWK.js.map → chunk-GK4XW4BC.js.map} +0 -0
- /package/dist/{chunk-4VE6ZXXW.js.map → chunk-MQP57DOP.js.map} +0 -0
- /package/dist/{chunk-PGR2MDDU.js.map → chunk-W66OJM55.js.map} +0 -0
- /package/dist/{chunk-7OYIDM42.js.map → chunk-XKURJ72I.js.map} +0 -0
- /package/dist/{dom-to-image-NATF3446.js.map → dom-to-image-QB7KMTAE.js.map} +0 -0
package/dist/artifacts.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as ArtifactType, d as ArtifactService, c as ArtifactRecord, e as ArtifactServiceProps,
|
|
2
|
-
export { A as ArtifactCallbacksOf, a as ArtifactDataRow, b as ArtifactLabelsOf, B as BarChartConfig, C as ChartArtifactLabels, h as ChartConfig, i as ChartStats, D as DEFAULT_CHART_ARTIFACT_LABELS, j as DEFAULT_TABLE_ARTIFACT_LABELS, L as LineChartConfig, P as PieChartConfig, T as TableArtifactLabels,
|
|
1
|
+
import { f as ArtifactType, d as ArtifactService, c as ArtifactRecord, e as ArtifactServiceProps, x as TableArtifactRecord, g as ChartArtifactRecord, n as DeckArtifactRecord } from './types-DTdDFU3O.cjs';
|
|
2
|
+
export { A as ArtifactCallbacksOf, a as ArtifactDataRow, b as ArtifactLabelsOf, B as BarChartConfig, C as ChartArtifactLabels, h as ChartConfig, i as ChartStats, D as DEFAULT_CHART_ARTIFACT_LABELS, j as DEFAULT_DECK_ARTIFACT_LABELS, k as DEFAULT_TABLE_ARTIFACT_LABELS, l as DeckArtifactCallbacks, m as DeckArtifactLabels, o as DeckBlock, p as DeckChartBlock, q as DeckConfig, r as DeckMeta, s as DeckSlide, t as DeckSlideKind, u as DeckStats, v as DeckTableBlock, w as DeckTextBlock, L as LineChartConfig, P as PieChartConfig, T as TableArtifactLabels, y as TableColumn, z as TableConfig, E as TableRow, F as TableStats, G as artifactTypes, H as deckBlockTypes, I as deckSlideKinds } from './types-DTdDFU3O.cjs';
|
|
3
3
|
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
export { C as ChartSeries, a as ChartVariant } from './types-B2aYk82c.cjs';
|
|
5
5
|
|
|
@@ -214,4 +214,21 @@ declare function TableArtifact({ artifact, labels, callbacks }: ArtifactServiceP
|
|
|
214
214
|
*/
|
|
215
215
|
declare function ChartArtifact({ artifact, labels, callbacks }: ArtifactServiceProps<ChartArtifactRecord>): ReactNode;
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Orchestrator for the `DECK`-typed artifact.
|
|
219
|
+
*
|
|
220
|
+
* Composes the ai-elements chrome primitives (`Artifact`, `ArtifactHeader`, `ArtifactTitle`,
|
|
221
|
+
* `ArtifactActions`, `ArtifactContent`) directly around the slide navigator (`DeckArtifactContent`).
|
|
222
|
+
*
|
|
223
|
+
* Render and download are two independent paths. Slides render inline from `artifact.config` after
|
|
224
|
+
* validation — no fetch. Download, when available, points at a `.pptx` export via
|
|
225
|
+
* `protectedAsset.presignedUrl`; the button is gated on a *safe* `http(s)` URL (mirrors
|
|
226
|
+
* `TableArtifact` / `ChartArtifact`).
|
|
227
|
+
*
|
|
228
|
+
* Fullscreen: clicking the expand button opens a React portal overlay (`createPortal` to
|
|
229
|
+
* `document.body`) at 100vw×100vh. Portal is used instead of the browser Fullscreen API because
|
|
230
|
+
* the chat may run in a sandboxed iframe where `requestFullscreen` is blocked.
|
|
231
|
+
*/
|
|
232
|
+
declare function DeckArtifact({ artifact, labels, callbacks }: ArtifactServiceProps<DeckArtifactRecord>): ReactNode;
|
|
233
|
+
|
|
234
|
+
export { ArtifactCopyAsImageButton, type ArtifactCopyAsImageButtonProps, ArtifactDownloadButton, type ArtifactDownloadButtonProps, ArtifactDownloadMenu, type ArtifactDownloadMenuCsvAction, type ArtifactDownloadMenuPngAction, type ArtifactDownloadMenuProps, ArtifactRecord, ArtifactService, ArtifactServiceProps, ArtifactServices, ArtifactType, ChartArtifact, ChartArtifactRecord, DeckArtifact, DeckArtifactRecord, TableArtifact, TableArtifactRecord, artifactToClipboardText, isSafeDownloadUrl };
|
package/dist/artifacts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as ArtifactType, d as ArtifactService, c as ArtifactRecord, e as ArtifactServiceProps,
|
|
2
|
-
export { A as ArtifactCallbacksOf, a as ArtifactDataRow, b as ArtifactLabelsOf, B as BarChartConfig, C as ChartArtifactLabels, h as ChartConfig, i as ChartStats, D as DEFAULT_CHART_ARTIFACT_LABELS, j as DEFAULT_TABLE_ARTIFACT_LABELS, L as LineChartConfig, P as PieChartConfig, T as TableArtifactLabels,
|
|
1
|
+
import { f as ArtifactType, d as ArtifactService, c as ArtifactRecord, e as ArtifactServiceProps, x as TableArtifactRecord, g as ChartArtifactRecord, n as DeckArtifactRecord } from './types-C8JtnwNY.js';
|
|
2
|
+
export { A as ArtifactCallbacksOf, a as ArtifactDataRow, b as ArtifactLabelsOf, B as BarChartConfig, C as ChartArtifactLabels, h as ChartConfig, i as ChartStats, D as DEFAULT_CHART_ARTIFACT_LABELS, j as DEFAULT_DECK_ARTIFACT_LABELS, k as DEFAULT_TABLE_ARTIFACT_LABELS, l as DeckArtifactCallbacks, m as DeckArtifactLabels, o as DeckBlock, p as DeckChartBlock, q as DeckConfig, r as DeckMeta, s as DeckSlide, t as DeckSlideKind, u as DeckStats, v as DeckTableBlock, w as DeckTextBlock, L as LineChartConfig, P as PieChartConfig, T as TableArtifactLabels, y as TableColumn, z as TableConfig, E as TableRow, F as TableStats, G as artifactTypes, H as deckBlockTypes, I as deckSlideKinds } from './types-C8JtnwNY.js';
|
|
3
3
|
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
export { C as ChartSeries, a as ChartVariant } from './types-B2aYk82c.js';
|
|
5
5
|
|
|
@@ -214,4 +214,21 @@ declare function TableArtifact({ artifact, labels, callbacks }: ArtifactServiceP
|
|
|
214
214
|
*/
|
|
215
215
|
declare function ChartArtifact({ artifact, labels, callbacks }: ArtifactServiceProps<ChartArtifactRecord>): ReactNode;
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Orchestrator for the `DECK`-typed artifact.
|
|
219
|
+
*
|
|
220
|
+
* Composes the ai-elements chrome primitives (`Artifact`, `ArtifactHeader`, `ArtifactTitle`,
|
|
221
|
+
* `ArtifactActions`, `ArtifactContent`) directly around the slide navigator (`DeckArtifactContent`).
|
|
222
|
+
*
|
|
223
|
+
* Render and download are two independent paths. Slides render inline from `artifact.config` after
|
|
224
|
+
* validation — no fetch. Download, when available, points at a `.pptx` export via
|
|
225
|
+
* `protectedAsset.presignedUrl`; the button is gated on a *safe* `http(s)` URL (mirrors
|
|
226
|
+
* `TableArtifact` / `ChartArtifact`).
|
|
227
|
+
*
|
|
228
|
+
* Fullscreen: clicking the expand button opens a React portal overlay (`createPortal` to
|
|
229
|
+
* `document.body`) at 100vw×100vh. Portal is used instead of the browser Fullscreen API because
|
|
230
|
+
* the chat may run in a sandboxed iframe where `requestFullscreen` is blocked.
|
|
231
|
+
*/
|
|
232
|
+
declare function DeckArtifact({ artifact, labels, callbacks }: ArtifactServiceProps<DeckArtifactRecord>): ReactNode;
|
|
233
|
+
|
|
234
|
+
export { ArtifactCopyAsImageButton, type ArtifactCopyAsImageButtonProps, ArtifactDownloadButton, type ArtifactDownloadButtonProps, ArtifactDownloadMenu, type ArtifactDownloadMenuCsvAction, type ArtifactDownloadMenuPngAction, type ArtifactDownloadMenuProps, ArtifactRecord, ArtifactService, ArtifactServiceProps, ArtifactServices, ArtifactType, ChartArtifact, ChartArtifactRecord, DeckArtifact, DeckArtifactRecord, TableArtifact, TableArtifactRecord, artifactToClipboardText, isSafeDownloadUrl };
|
package/dist/artifacts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BHHJOG5X.js";
|
|
2
2
|
import {
|
|
3
3
|
ArtifactCopyAsImageButton,
|
|
4
4
|
ArtifactDownloadButton,
|
|
@@ -6,19 +6,23 @@ import {
|
|
|
6
6
|
ArtifactServices,
|
|
7
7
|
ChartArtifact,
|
|
8
8
|
DEFAULT_CHART_ARTIFACT_LABELS,
|
|
9
|
+
DEFAULT_DECK_ARTIFACT_LABELS,
|
|
9
10
|
DEFAULT_TABLE_ARTIFACT_LABELS,
|
|
11
|
+
DeckArtifact,
|
|
10
12
|
TableArtifact,
|
|
11
13
|
artifactToClipboardText,
|
|
12
14
|
artifactTypes,
|
|
15
|
+
deckBlockTypes,
|
|
16
|
+
deckSlideKinds,
|
|
13
17
|
isSafeDownloadUrl
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-QR4VBGK4.js";
|
|
19
|
+
import "./chunk-E36VI2HA.js";
|
|
16
20
|
import "./chunk-LXYCT4YO.js";
|
|
17
21
|
import "./chunk-OLJIJYB5.js";
|
|
18
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-G4NXVFXU.js";
|
|
19
23
|
import "./chunk-C77QMQNT.js";
|
|
20
24
|
import "./chunk-UXT2H3FM.js";
|
|
21
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-SN3ORQSJ.js";
|
|
22
26
|
import "./chunk-4MZZH3WX.js";
|
|
23
27
|
import "./chunk-P6GUNIAE.js";
|
|
24
28
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -29,10 +33,14 @@ export {
|
|
|
29
33
|
ArtifactServices,
|
|
30
34
|
ChartArtifact,
|
|
31
35
|
DEFAULT_CHART_ARTIFACT_LABELS,
|
|
36
|
+
DEFAULT_DECK_ARTIFACT_LABELS,
|
|
32
37
|
DEFAULT_TABLE_ARTIFACT_LABELS,
|
|
38
|
+
DeckArtifact,
|
|
33
39
|
TableArtifact,
|
|
34
40
|
artifactToClipboardText,
|
|
35
41
|
artifactTypes,
|
|
42
|
+
deckBlockTypes,
|
|
43
|
+
deckSlideKinds,
|
|
36
44
|
isSafeDownloadUrl
|
|
37
45
|
};
|
|
38
46
|
//# sourceMappingURL=artifacts.js.map
|