@crewlethq/ui 0.34.2 → 0.35.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/README.md +47 -0
- package/dist/AppShell/index.js +2 -2
- package/dist/ArtifactBar/ArtifactBar.d.ts +6 -0
- package/dist/ArtifactBar/index.d.ts +1 -0
- package/dist/ArtifactBar/index.js +2 -2
- package/dist/{ArtifactBar-C462VD4C.css → ArtifactBar-HV5AT4RG.css} +39 -2
- package/dist/ArtifactCard/index.d.ts +1 -0
- package/dist/ArtifactCard/index.js +2 -2
- package/dist/{ArtifactCard-XHRLAL7C.css → ArtifactCard-OGTMO2KI.css} +15 -16
- package/dist/ArtifactKindIllustration/ArtifactKindIllustration.d.ts +14 -1
- package/dist/ArtifactKindIllustration/index.d.ts +1 -0
- package/dist/ArtifactKindIllustration/index.js +1 -1
- package/dist/{ArtifactKindIllustration-4NG6IE3C.css → ArtifactKindIllustration-5FPRJQ3P.css} +32 -26
- package/dist/ArtifactKinds-CVD3FCYO.css +15 -0
- package/dist/AvatarPicker/index.js +2 -2
- package/dist/CanvasBoard/CanvasBoard.d.ts +30 -12
- package/dist/CanvasBoard/index.js +1 -1
- package/dist/ChangeMark/index.js +2 -2
- package/dist/ChoiceList/ChoiceList.d.ts +7 -1
- package/dist/ChoiceList/index.js +1 -1
- package/dist/{ChoiceList-2PQJS4DX.css → ChoiceList-RBL7FNQL.css} +39 -0
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/{Editor-JMRD6AZW.js → Editor-BVQHBF7L.js} +4 -4
- package/dist/FileDrop/FileDrop.d.ts +64 -0
- package/dist/FileDrop/index.d.ts +3 -0
- package/dist/FileDrop/index.js +4 -0
- package/dist/FileDrop-WE7BNZGV.css +80 -0
- package/dist/FindingList/FindingList.d.ts +35 -0
- package/dist/FindingList/index.d.ts +3 -0
- package/dist/FindingList/index.js +3 -0
- package/dist/FindingList-PMYA2R6Q.css +71 -0
- package/dist/HuePicker/HuePicker.d.ts +9 -0
- package/dist/HuePicker/index.d.ts +1 -1
- package/dist/HuePicker/index.js +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/Menu/Menu.d.ts +6 -1
- package/dist/Menu/index.js +1 -1
- package/dist/RichEditor/index.js +3 -3
- package/dist/RichEditorMarkdown/index.js +3 -3
- package/dist/SheetColumnEditor/SheetColumnEditor.d.ts +94 -0
- package/dist/SheetColumnEditor/index.d.ts +3 -0
- package/dist/SheetColumnEditor/index.js +23 -0
- package/dist/SheetColumnEditor-BO2HKFRB.css +73 -0
- package/dist/SheetGrid/SheetGrid.d.ts +19 -1
- package/dist/SheetGrid/index.js +5 -4
- package/dist/{SheetGrid-GDPCCZ4V.css → SheetGrid-YRDXTIIZ.css} +48 -0
- package/dist/SheetModel/index.js +1 -1
- package/dist/SheetModel/labels.d.ts +6 -0
- package/dist/SlideFilmstrip/SlideFilmstrip.d.ts +30 -1
- package/dist/SlideFilmstrip/index.js +5 -1
- package/dist/{SlideFilmstrip-5U6Z55GS.css → SlideFilmstrip-4ITZLMO4.css} +49 -0
- package/dist/SourceEditor/SourceEditor.d.ts +62 -0
- package/dist/SourceEditor/index.d.ts +3 -0
- package/dist/SourceEditor/index.js +3 -0
- package/dist/SourceEditor-G2C3STPX.css +160 -0
- package/dist/ThemeGallery/ThemeGallery.d.ts +10 -3
- package/dist/ThemeGallery/index.js +1 -1
- package/dist/{ThemeGallery-NITASULQ.css → ThemeGallery-HSUKBDWY.css} +9 -0
- package/dist/{chunk-UXXJDIYE.js → chunk-22CQQDFW.js} +1 -1
- package/dist/{chunk-EQ7P7DGN.js → chunk-3VD3G3IL.js} +2 -2
- package/dist/{chunk-EWAFN2IU.js → chunk-5VCG26CV.js} +281 -234
- package/dist/{chunk-7T5LSYZ2.js → chunk-7UYONN6K.js} +4 -3
- package/dist/{chunk-KK5OYNAF.js → chunk-BAKPMH3S.js} +8 -4
- package/dist/{chunk-3EB2AV3H.js → chunk-BUVCV3WI.js} +1 -1
- package/dist/{chunk-4B6LSFDS.js → chunk-CSQTDGTS.js} +1 -1
- package/dist/{chunk-WPX6A5BV.js → chunk-E35CMI5D.js} +22 -6
- package/dist/{chunk-OMLACFPP.js → chunk-FJJHD73S.js} +1 -1
- package/dist/{chunk-SGHIAGPR.js → chunk-HAKTRTRP.js} +1 -1
- package/dist/chunk-MAD6WPER.js +342 -0
- package/dist/{chunk-ZADVT7IL.js → chunk-NKZCJRKO.js} +9 -4
- package/dist/chunk-NTB5LRRD.js +52 -0
- package/dist/{chunk-VI5FWDZW.js → chunk-OOMXLJ3S.js} +4 -1
- package/dist/{chunk-UOR7TOAU.js → chunk-OSFA5ROT.js} +86 -1
- package/dist/{chunk-T46NR3WP.js → chunk-PGZ2R3ON.js} +1 -1
- package/dist/chunk-PI7HKLIT.js +245 -0
- package/dist/{chunk-YZFLH463.js → chunk-QEFHYUCY.js} +1 -1
- package/dist/{chunk-NPQWKZTB.js → chunk-QFNWMWWY.js} +2 -2
- package/dist/{chunk-C7DKX453.js → chunk-QH6VYJ3X.js} +1 -1
- package/dist/{chunk-XV32RKQZ.js → chunk-QIXMNOBD.js} +67 -6
- package/dist/{chunk-GPHWCK7M.js → chunk-SUXP4OBT.js} +6 -3
- package/dist/{chunk-TRQCHF2F.js → chunk-SWD4QBL6.js} +1 -1
- package/dist/chunk-THDGBD6Y.js +154 -0
- package/dist/{chunk-C2FRTWKO.js → chunk-W3UVOZKL.js} +3 -2
- package/dist/{chunk-UDQW6UK7.js → chunk-W7QBBKUE.js} +34 -7
- package/dist/{chunk-QBXZLGK2.js → chunk-ZU3DUXD2.js} +3 -2
- package/dist/generated/index.d.ts +4 -0
- package/dist/generated/index.js +56 -52
- package/dist/index.js +56 -52
- package/dist/styles.css +652 -51
- package/dist/utils/csv.d.ts +35 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- /package/dist/{chunk-VFRSSP3W.js → chunk-3WCNHYXE.js} +0 -0
package/dist/utils/csv.d.ts
CHANGED
|
@@ -16,3 +16,38 @@
|
|
|
16
16
|
* "this is text". A NUMBER is never prefixed: `-3` is a value, and stays one.
|
|
17
17
|
*/
|
|
18
18
|
export declare function toCsv(header: readonly string[], rows: readonly (readonly unknown[])[]): string;
|
|
19
|
+
/** The separators `parseCsv` reads: a comma, a semicolon (a European spreadsheet's CSV) and a tab (a copied range). */
|
|
20
|
+
export type CsvDelimiter = ',' | ';' | '\t';
|
|
21
|
+
export interface ParseCsvOptions {
|
|
22
|
+
/** The separator. Without it, the one the first record uses most outside quotes, a comma when none. */
|
|
23
|
+
delimiter?: CsvDelimiter | undefined;
|
|
24
|
+
/** The most records read, the header included. One more is `too_many_rows` rather than a silent cut. */
|
|
25
|
+
maxRows?: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
/** Why a text could not be read as CSV: an opened quote never closed, or more records than allowed. */
|
|
28
|
+
export type CsvProblem = 'unterminated_quote' | 'too_many_rows';
|
|
29
|
+
export type ParseCsvResult = {
|
|
30
|
+
ok: true;
|
|
31
|
+
rows: string[][];
|
|
32
|
+
delimiter: CsvDelimiter;
|
|
33
|
+
} | {
|
|
34
|
+
ok: false;
|
|
35
|
+
problem: CsvProblem;
|
|
36
|
+
/** The 1-based line the problem starts on. */
|
|
37
|
+
line: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* A CSV text as its records, each a list of field texts, as RFC 4180 reads
|
|
41
|
+
* it and as spreadsheets write it in practice: CRLF, LF or a lone CR ends a
|
|
42
|
+
* record, a quoted field may hold the separator, quotes (doubled) and line
|
|
43
|
+
* breaks, a UTF-8 byte order mark is dropped, and the blank line after the
|
|
44
|
+
* last record is not a record. A quote inside an unquoted field is kept as
|
|
45
|
+
* text. Records may differ in length; the caller decides what a short one
|
|
46
|
+
* means.
|
|
47
|
+
*
|
|
48
|
+
* IT READS BACK WHAT `toCsv` WRITES. A text field `toCsv` defused with a
|
|
49
|
+
* leading apostrophe (`'=SUM(A1)`) reads as the text it was (`=SUM(A1)`), so
|
|
50
|
+
* an export imported again is the same table. Every value stays text: the
|
|
51
|
+
* caller types it, and no value is ever evaluated.
|
|
52
|
+
*/
|
|
53
|
+
export declare function parseCsv(text: string, options?: ParseCsvOptions): ParseCsvResult;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export type { Clipboard, ClipboardOptions, ClipboardState } from './useClipboard
|
|
|
4
4
|
export { useOutcome } from './useOutcome.js';
|
|
5
5
|
export type { Outcome, OutcomeOptions, OutcomeState } from './useOutcome.js';
|
|
6
6
|
export { downloadBlob, downloadText, safeFilename, useDownload } from './useDownload.js';
|
|
7
|
-
export { toCsv } from './csv.js';
|
|
7
|
+
export { parseCsv, toCsv } from './csv.js';
|
|
8
|
+
export type { CsvDelimiter, CsvProblem, ParseCsvOptions, ParseCsvResult } from './csv.js';
|
|
8
9
|
export { ElementToPngError, elementToPng, serializeElement } from './elementToPng.js';
|
|
9
10
|
export type { ElementToPngOptions, ElementToPngReason } from './elementToPng.js';
|
|
10
11
|
export type { Download, DownloadState } from './useDownload.js';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ElementToPngError, elementToPng, serializeElement, toCsv } from '../chunk-
|
|
1
|
+
export { ElementToPngError, elementToPng, parseCsv, serializeElement, toCsv } from '../chunk-OSFA5ROT.js';
|
|
2
2
|
export { downloadBlob, downloadText, safeFilename, useDownload } from '../chunk-IW55G7XG.js';
|
|
3
3
|
export { useClipboard, writeClipboard } from '../chunk-STJ7QBC3.js';
|
|
4
4
|
export { useOutcome } from '../chunk-DTIW4CHZ.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.35.0",
|
|
46
|
+
"@crewlethq/tokens": "0.35.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
File without changes
|