@particle-academy/react-fancy 5.65.0 → 5.66.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/CHANGELOG.md +22 -0
- package/dist/{PastePills.types-CDyotkUb.d.cts → PastePills.types-CpXzsuwJ.d.cts} +2 -0
- package/dist/{PastePills.types-CDyotkUb.d.ts → PastePills.types-CpXzsuwJ.d.ts} +2 -0
- package/dist/{PastedFilesInput-CrgNoEBd.d.ts → PastedFilesInput-Bt3KSTVN.d.ts} +1 -1
- package/dist/{PastedFilesInput-DQ1eZaHk.d.cts → PastedFilesInput-CUQeOeOA.d.cts} +1 -1
- package/dist/{chunk-SZH7TFME.js → chunk-4EUDW2WU.js} +3 -3
- package/dist/{chunk-SZH7TFME.js.map → chunk-4EUDW2WU.js.map} +1 -1
- package/dist/{chunk-CMC2TOEQ.cjs → chunk-6CAXLP7D.cjs} +6 -6
- package/dist/{chunk-CMC2TOEQ.cjs.map → chunk-6CAXLP7D.cjs.map} +1 -1
- package/dist/{chunk-TQGRXJ74.cjs → chunk-7FYRFNPX.cjs} +9 -9
- package/dist/{chunk-TQGRXJ74.cjs.map → chunk-7FYRFNPX.cjs.map} +1 -1
- package/dist/{chunk-4XHG6Q42.cjs → chunk-7HXFEYOV.cjs} +8 -8
- package/dist/{chunk-4XHG6Q42.cjs.map → chunk-7HXFEYOV.cjs.map} +1 -1
- package/dist/{chunk-MVVHUTXA.js → chunk-B4LVQ4QI.js} +3 -3
- package/dist/{chunk-MVVHUTXA.js.map → chunk-B4LVQ4QI.js.map} +1 -1
- package/dist/{chunk-QNQNGARW.cjs → chunk-HFK5SBNM.cjs} +27 -9
- package/dist/chunk-HFK5SBNM.cjs.map +1 -0
- package/dist/{chunk-COXHFZR6.js → chunk-J44EV6SP.js} +13 -7
- package/dist/chunk-J44EV6SP.js.map +1 -0
- package/dist/{chunk-C463C4MM.cjs → chunk-MCQWTOTV.cjs} +18 -12
- package/dist/chunk-MCQWTOTV.cjs.map +1 -0
- package/dist/{chunk-ELFTEJBT.js → chunk-QSGAFKK2.js} +3 -3
- package/dist/{chunk-ELFTEJBT.js.map → chunk-QSGAFKK2.js.map} +1 -1
- package/dist/{chunk-NILA2LZY.js → chunk-YIKXJWO4.js} +27 -9
- package/dist/chunk-YIKXJWO4.js.map +1 -0
- package/dist/composer.cjs +4 -4
- package/dist/composer.d.cts +2 -2
- package/dist/composer.d.ts +2 -2
- package/dist/composer.js +2 -2
- package/dist/{index-DRlltbdV.d.ts → index-DWtSViJ3.d.cts} +7 -1
- package/dist/{index-CCJVT9Hu.d.cts → index-XR5t8bTq.d.ts} +7 -1
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/input.cjs +3 -3
- package/dist/input.d.cts +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.js +2 -2
- package/dist/inputs.cjs +3 -3
- package/dist/inputs.d.cts +1 -1
- package/dist/inputs.d.ts +1 -1
- package/dist/inputs.js +2 -2
- package/dist/json-editor.cjs +14 -14
- package/dist/json-editor.js +3 -3
- package/dist/paste-pills.cjs +14 -14
- package/dist/paste-pills.d.cts +3 -3
- package/dist/paste-pills.d.ts +3 -3
- package/dist/paste-pills.js +1 -1
- package/dist/prompt-input.cjs +5 -5
- package/dist/prompt-input.d.cts +2 -2
- package/dist/prompt-input.d.ts +2 -2
- package/dist/prompt-input.js +2 -2
- package/docs/PromptInput.md +24 -1
- package/package.json +1 -1
- package/dist/chunk-C463C4MM.cjs.map +0 -1
- package/dist/chunk-COXHFZR6.js.map +0 -1
- package/dist/chunk-NILA2LZY.js.map +0 -1
- package/dist/chunk-QNQNGARW.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -73,8 +73,8 @@ export { FileUpload, FileUploadContextValue, FileUploadDropzoneProps, FileUpload
|
|
|
73
73
|
export { TimePicker, TimePickerProps } from './time-picker.js';
|
|
74
74
|
export { Calendar, CalendarDayContext, CalendarMode, CalendarProps, DateRange } from './calendar.js';
|
|
75
75
|
export { Composer, ComposerProps, ComposerSubmitExtras } from './composer.js';
|
|
76
|
-
export { a as ComposerPasteClassNames, C as ComposerPastePreview, H as HeldImage, b as HeldPaste, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, p as pasteMarker, u as usePastePills } from './PastePills.types-
|
|
77
|
-
export { I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-
|
|
76
|
+
export { a as ComposerPasteClassNames, C as ComposerPastePreview, H as HeldImage, b as HeldPaste, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, p as pasteMarker, u as usePastePills } from './PastePills.types-CpXzsuwJ.js';
|
|
77
|
+
export { I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-Bt3KSTVN.js';
|
|
78
78
|
export { Chart, ChartAreaProps, ChartBarData, ChartBarProps, ChartCommonProps, ChartDonutData, ChartDonutProps, ChartHorizontalBarProps, ChartLineProps, ChartPieData, ChartPieProps, ChartSeries, ChartSparklineProps, ChartStackedBarProps } from './chart.js';
|
|
79
79
|
export { Editor, EditorAction, EditorContentProps, EditorContextValue, EditorFullScreenToggleProps, EditorProps, EditorSourceToggleProps, EditorToolbarProps, useEditor } from './editor.js';
|
|
80
80
|
export { CodeView, CodeViewProps } from './code-view.js';
|
|
@@ -87,7 +87,7 @@ export { Kanban, KanbanCardMoveHandler, KanbanCardProps, KanbanColumnHandleProps
|
|
|
87
87
|
export { DropPosition, TreeNav, TreeNavContextValue, TreeNavProps, TreeNodeData, TreeNodeProps, useTreeNav } from './tree-nav.js';
|
|
88
88
|
export { FileBrowser, FileBrowserContextValue, FileBrowserNewFolder, FileBrowserNodeProps, FileBrowserPathBarProps, FileBrowserProps, FileBrowserProvider, FileBrowserRow, FileBrowserToolbarProps, FileBrowserTreeProps, FileEntry, FileKind, FileLoadStatus, FileSelectMode, FileSnapshotNode, FileSort, FileSortDirection, FileSortField, useFileBrowser, validateFolderName } from './file-browser.js';
|
|
89
89
|
export { M as MediaKind, a as MediaViewer, b as MediaViewerProps, R as ResolveMediaTypeInput, r as resolveMediaType } from './index-BiyyxWtb.js';
|
|
90
|
-
export { F as FancyPlatform, P as PlatformHints, a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, k as browserPlatformHints, l as detectPlatform, m as modifierKeyLabel, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-
|
|
90
|
+
export { F as FancyPlatform, P as PlatformHints, a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, k as browserPlatformHints, l as detectPlatform, m as modifierKeyLabel, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-XR5t8bTq.js';
|
|
91
91
|
import { P as Placement } from './types-DJI492iY.js';
|
|
92
92
|
export { A as ActionColor, B as ButtonColor, C as Color, S as Size, V as Variant } from './types-DJI492iY.js';
|
|
93
93
|
import { RefObject } from 'react';
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export { Sidebar, useSidebar } from './chunk-YJHP5FVA.js';
|
|
|
34
34
|
export { Pillbox } from './chunk-G35XN5WV.js';
|
|
35
35
|
export { Profile } from './chunk-GOE36IXL.js';
|
|
36
36
|
export { Progress } from './chunk-UE3QO7R3.js';
|
|
37
|
-
export { PromptInput, browserPlatformHints, detectPlatform, modifierKeyLabel, promptDataUrlToFile, promptFileToDataUrl } from './chunk-
|
|
37
|
+
export { PromptInput, browserPlatformHints, detectPlatform, modifierKeyLabel, promptDataUrlToFile, promptFileToDataUrl } from './chunk-J44EV6SP.js';
|
|
38
38
|
export { Tooltip } from './chunk-GR2WKBER.js';
|
|
39
39
|
import './chunk-SV5BW3IA.js';
|
|
40
40
|
export { MediaViewer, resolveMediaType } from './chunk-5PHPJL7Z.js';
|
|
@@ -50,10 +50,10 @@ export { Pagination } from './chunk-LKN7FYW6.js';
|
|
|
50
50
|
export { ImageViewer } from './chunk-ICMLLZKZ.js';
|
|
51
51
|
export { IndexList } from './chunk-BLOX7MRO.js';
|
|
52
52
|
export { InputTag, contentEditableAdapter, controlledAdapter, inputAdapter, textareaAdapter } from './chunk-BX7EDTL4.js';
|
|
53
|
-
export { JSON_FIELD_TYPES, JsonEditor, applyJsonEdit, describeEdit, findJsonConflicts, getAtPath, inferType, parseKeyMap, parsePath, pathToString, resolveKeyRule, typeMatches } from './chunk-
|
|
53
|
+
export { JSON_FIELD_TYPES, JsonEditor, applyJsonEdit, describeEdit, findJsonConflicts, getAtPath, inferType, parseKeyMap, parsePath, pathToString, resolveKeyRule, typeMatches } from './chunk-4EUDW2WU.js';
|
|
54
54
|
export { Switch } from './chunk-DXZCKDYS.js';
|
|
55
55
|
export { DatePicker } from './chunk-2UTN3EFK.js';
|
|
56
|
-
export { Input } from './chunk-
|
|
56
|
+
export { Input } from './chunk-B4LVQ4QI.js';
|
|
57
57
|
export { Select } from './chunk-FVI4JDLA.js';
|
|
58
58
|
export { Kanban, useKanban } from './chunk-2HPADT4X.js';
|
|
59
59
|
export { Kbd } from './chunk-OTSVOPKP.js';
|
|
@@ -97,8 +97,8 @@ export { ColorPicker } from './chunk-SVSQXKFL.js';
|
|
|
97
97
|
export { Command, useCommand } from './chunk-ARO2DNGS.js';
|
|
98
98
|
export { useFocusTrap } from './chunk-5U2DZ7AV.js';
|
|
99
99
|
export { useAnimation } from './chunk-3K2CEAI7.js';
|
|
100
|
-
export { Composer } from './chunk-
|
|
101
|
-
export { InlinePasteEditor, PastedFilesInput, pasteMarker, useInlinePaste, usePastePills } from './chunk-
|
|
100
|
+
export { Composer } from './chunk-QSGAFKK2.js';
|
|
101
|
+
export { InlinePasteEditor, PastedFilesInput, pasteMarker, useInlinePaste, usePastePills } from './chunk-YIKXJWO4.js';
|
|
102
102
|
export { Popover, usePopover } from './chunk-QTS4Q2NK.js';
|
|
103
103
|
export { Autocomplete } from './chunk-VZNBTCGA.js';
|
|
104
104
|
import './chunk-OL53XYHF.js';
|
package/dist/input.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-QGPMVFZJ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk6CAXLP7D_cjs = require('./chunk-6CAXLP7D.cjs');
|
|
5
5
|
require('./chunk-MRZXTL46.cjs');
|
|
6
6
|
require('./chunk-P53432AK.cjs');
|
|
7
7
|
require('./chunk-QF7CD4JH.cjs');
|
|
8
8
|
require('./chunk-O3F6DYWR.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-HFK5SBNM.cjs');
|
|
10
10
|
require('./chunk-MKGWHSNV.cjs');
|
|
11
11
|
require('./chunk-KJ22KE56.cjs');
|
|
12
12
|
require('./chunk-L3V3BYVS.cjs');
|
|
@@ -22,7 +22,7 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "Input", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk6CAXLP7D_cjs.Input; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=input.cjs.map
|
|
28
28
|
//# sourceMappingURL=input.cjs.map
|
package/dist/input.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { a as InputBaseProps, I as InputAffixProps } from './inputs.types-duxPKadC.cjs';
|
|
4
|
-
import { C as ComposerPastePreview, a as ComposerPasteClassNames, b as HeldPaste, H as HeldImage } from './PastePills.types-
|
|
4
|
+
import { C as ComposerPastePreview, a as ComposerPasteClassNames, b as HeldPaste, H as HeldImage } from './PastePills.types-CpXzsuwJ.cjs';
|
|
5
5
|
import './types-DJI492iY.cjs';
|
|
6
6
|
|
|
7
7
|
interface InputProps extends InputBaseProps, InputAffixProps, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix"> {
|
package/dist/input.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { a as InputBaseProps, I as InputAffixProps } from './inputs.types-DzGcqcPf.js';
|
|
4
|
-
import { C as ComposerPastePreview, a as ComposerPasteClassNames, b as HeldPaste, H as HeldImage } from './PastePills.types-
|
|
4
|
+
import { C as ComposerPastePreview, a as ComposerPasteClassNames, b as HeldPaste, H as HeldImage } from './PastePills.types-CpXzsuwJ.js';
|
|
5
5
|
import './types-DJI492iY.js';
|
|
6
6
|
|
|
7
7
|
interface InputProps extends InputBaseProps, InputAffixProps, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix"> {
|
package/dist/input.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './chunk-SHDSKHCC.js';
|
|
2
|
-
export { Input } from './chunk-
|
|
2
|
+
export { Input } from './chunk-B4LVQ4QI.js';
|
|
3
3
|
import './chunk-KXYMMNNV.js';
|
|
4
4
|
import './chunk-WX5XYDVN.js';
|
|
5
5
|
import './chunk-5WQ6FPSP.js';
|
|
6
6
|
import './chunk-USWQAMI3.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-YIKXJWO4.js';
|
|
8
8
|
import './chunk-QTS4Q2NK.js';
|
|
9
9
|
import './chunk-OL53XYHF.js';
|
|
10
10
|
import './chunk-NRXK42LO.js';
|
package/dist/inputs.cjs
CHANGED
|
@@ -15,14 +15,14 @@ require('./chunk-HXLSEBAL.cjs');
|
|
|
15
15
|
require('./chunk-I27K6NLX.cjs');
|
|
16
16
|
var chunk2O5UXH5R_cjs = require('./chunk-2O5UXH5R.cjs');
|
|
17
17
|
var chunkTLRFXSPA_cjs = require('./chunk-TLRFXSPA.cjs');
|
|
18
|
-
var
|
|
18
|
+
var chunk6CAXLP7D_cjs = require('./chunk-6CAXLP7D.cjs');
|
|
19
19
|
var chunkWKPBCB67_cjs = require('./chunk-WKPBCB67.cjs');
|
|
20
20
|
var chunkMAZEX4EZ_cjs = require('./chunk-MAZEX4EZ.cjs');
|
|
21
21
|
require('./chunk-MRZXTL46.cjs');
|
|
22
22
|
var chunkP53432AK_cjs = require('./chunk-P53432AK.cjs');
|
|
23
23
|
var chunkQF7CD4JH_cjs = require('./chunk-QF7CD4JH.cjs');
|
|
24
24
|
require('./chunk-O3F6DYWR.cjs');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-HFK5SBNM.cjs');
|
|
26
26
|
require('./chunk-MKGWHSNV.cjs');
|
|
27
27
|
var chunkKJ22KE56_cjs = require('./chunk-KJ22KE56.cjs');
|
|
28
28
|
var chunkL3V3BYVS_cjs = require('./chunk-L3V3BYVS.cjs');
|
|
@@ -74,7 +74,7 @@ Object.defineProperty(exports, "DatePicker", {
|
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "Input", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk6CAXLP7D_cjs.Input; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "Select", {
|
|
80
80
|
enumerable: true,
|
package/dist/inputs.d.cts
CHANGED
|
@@ -14,4 +14,4 @@ export { D as DisplayValue, a as DisplayValueProps, F as FieldModeContext, b as
|
|
|
14
14
|
export { InlineEdit, useInlineEdit } from './mode.cjs';
|
|
15
15
|
import 'react';
|
|
16
16
|
import './types-DJI492iY.cjs';
|
|
17
|
-
import './PastePills.types-
|
|
17
|
+
import './PastePills.types-CpXzsuwJ.cjs';
|
package/dist/inputs.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export { D as DisplayValue, a as DisplayValueProps, F as FieldModeContext, b as
|
|
|
14
14
|
export { InlineEdit, useInlineEdit } from './mode.js';
|
|
15
15
|
import 'react';
|
|
16
16
|
import './types-DJI492iY.js';
|
|
17
|
-
import './PastePills.types-
|
|
17
|
+
import './PastePills.types-CpXzsuwJ.js';
|
package/dist/inputs.js
CHANGED
|
@@ -13,14 +13,14 @@ import './chunk-GNHQVPZP.js';
|
|
|
13
13
|
import './chunk-SV5BW3IA.js';
|
|
14
14
|
export { Switch } from './chunk-DXZCKDYS.js';
|
|
15
15
|
export { DatePicker } from './chunk-2UTN3EFK.js';
|
|
16
|
-
export { Input } from './chunk-
|
|
16
|
+
export { Input } from './chunk-B4LVQ4QI.js';
|
|
17
17
|
export { Select } from './chunk-FVI4JDLA.js';
|
|
18
18
|
export { Textarea } from './chunk-UVUBV4VZ.js';
|
|
19
19
|
import './chunk-KXYMMNNV.js';
|
|
20
20
|
export { DisplayValue } from './chunk-WX5XYDVN.js';
|
|
21
21
|
export { Field } from './chunk-5WQ6FPSP.js';
|
|
22
22
|
import './chunk-USWQAMI3.js';
|
|
23
|
-
import './chunk-
|
|
23
|
+
import './chunk-YIKXJWO4.js';
|
|
24
24
|
import './chunk-QTS4Q2NK.js';
|
|
25
25
|
export { useInlineEdit } from './chunk-OL53XYHF.js';
|
|
26
26
|
export { FieldModeContext, useFieldMode } from './chunk-NRXK42LO.js';
|
package/dist/json-editor.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7HXFEYOV_cjs = require('./chunk-7HXFEYOV.cjs');
|
|
4
4
|
require('./chunk-2O5UXH5R.cjs');
|
|
5
5
|
require('./chunk-TLRFXSPA.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-6CAXLP7D.cjs');
|
|
7
7
|
require('./chunk-WKPBCB67.cjs');
|
|
8
8
|
require('./chunk-MAZEX4EZ.cjs');
|
|
9
9
|
require('./chunk-MRZXTL46.cjs');
|
|
@@ -12,7 +12,7 @@ require('./chunk-QF7CD4JH.cjs');
|
|
|
12
12
|
require('./chunk-O3F6DYWR.cjs');
|
|
13
13
|
require('./chunk-4XMBXG4K.cjs');
|
|
14
14
|
require('./chunk-GKLETY7D.cjs');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-HFK5SBNM.cjs');
|
|
16
16
|
require('./chunk-MKGWHSNV.cjs');
|
|
17
17
|
require('./chunk-KJ22KE56.cjs');
|
|
18
18
|
require('./chunk-L3V3BYVS.cjs');
|
|
@@ -34,47 +34,47 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "JsonEditor", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7HXFEYOV_cjs.JsonEditor; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "applyJsonEdit", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk7HXFEYOV_cjs.applyJsonEdit; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "describeEdit", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk7HXFEYOV_cjs.describeEdit; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "findJsonConflicts", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk7HXFEYOV_cjs.findJsonConflicts; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "getAtPath", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk7HXFEYOV_cjs.getAtPath; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "inferType", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk7HXFEYOV_cjs.inferType; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "parseKeyMap", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk7HXFEYOV_cjs.parseKeyMap; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "parsePath", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk7HXFEYOV_cjs.parsePath; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "pathToString", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk7HXFEYOV_cjs.pathToString; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "resolveKeyRule", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk7HXFEYOV_cjs.resolveKeyRule; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "typeMatches", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk7HXFEYOV_cjs.typeMatches; }
|
|
78
78
|
});
|
|
79
79
|
//# sourceMappingURL=json-editor.cjs.map
|
|
80
80
|
//# sourceMappingURL=json-editor.cjs.map
|
package/dist/json-editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { JsonEditor, applyJsonEdit, describeEdit, findJsonConflicts, getAtPath, inferType, parseKeyMap, parsePath, pathToString, resolveKeyRule, typeMatches } from './chunk-
|
|
1
|
+
export { JsonEditor, applyJsonEdit, describeEdit, findJsonConflicts, getAtPath, inferType, parseKeyMap, parsePath, pathToString, resolveKeyRule, typeMatches } from './chunk-4EUDW2WU.js';
|
|
2
2
|
import './chunk-DXZCKDYS.js';
|
|
3
3
|
import './chunk-2UTN3EFK.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-B4LVQ4QI.js';
|
|
5
5
|
import './chunk-FVI4JDLA.js';
|
|
6
6
|
import './chunk-UVUBV4VZ.js';
|
|
7
7
|
import './chunk-KXYMMNNV.js';
|
|
@@ -10,7 +10,7 @@ import './chunk-5WQ6FPSP.js';
|
|
|
10
10
|
import './chunk-USWQAMI3.js';
|
|
11
11
|
import './chunk-XM3V3RSU.js';
|
|
12
12
|
import './chunk-SVSQXKFL.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-YIKXJWO4.js';
|
|
14
14
|
import './chunk-QTS4Q2NK.js';
|
|
15
15
|
import './chunk-OL53XYHF.js';
|
|
16
16
|
import './chunk-NRXK42LO.js';
|
package/dist/paste-pills.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHFK5SBNM_cjs = require('./chunk-HFK5SBNM.cjs');
|
|
4
4
|
require('./chunk-MKGWHSNV.cjs');
|
|
5
5
|
require('./chunk-J2DI6RMR.cjs');
|
|
6
6
|
require('./chunk-MKHYENKR.cjs');
|
|
@@ -14,55 +14,55 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "HOST_ATTR", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHFK5SBNM_cjs.HOST_ATTR; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "InlinePasteEditor", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHFK5SBNM_cjs.InlinePasteEditor; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "InlinePill", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHFK5SBNM_cjs.InlinePill; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "PILL_MARK", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHFK5SBNM_cjs.PILL_MARK; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "PastedFilesInput", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHFK5SBNM_cjs.PastedFilesInput; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "endsOf", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHFK5SBNM_cjs.endsOf; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "expandMarkers", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkHFK5SBNM_cjs.expandMarkers; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "markedIds", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkHFK5SBNM_cjs.markedIds; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "pasteMarker", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkHFK5SBNM_cjs.pasteMarker; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "segmentValue", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkHFK5SBNM_cjs.segmentValue; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "useInlinePaste", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHFK5SBNM_cjs.useInlinePaste; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "usePastePills", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkHFK5SBNM_cjs.usePastePills; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "withSeparators", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkHFK5SBNM_cjs.withSeparators; }
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=paste-pills.cjs.map
|
|
68
68
|
//# sourceMappingURL=paste-pills.cjs.map
|
package/dist/paste-pills.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ComposerPastePreview, a as ComposerPasteClassNames } from './PastePills.types-
|
|
2
|
-
export { H as HeldImage, b as HeldPaste, P as PILL_MARK, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, V as ValueSegment, g as expandMarkers, m as markedIds, p as pasteMarker, s as segmentValue, u as usePastePills } from './PastePills.types-
|
|
3
|
-
export { H as HOST_ATTR, I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, c as PillToInsert, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-
|
|
1
|
+
import { C as ComposerPastePreview, a as ComposerPasteClassNames } from './PastePills.types-CpXzsuwJ.cjs';
|
|
2
|
+
export { H as HeldImage, b as HeldPaste, P as PILL_MARK, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, V as ValueSegment, g as expandMarkers, m as markedIds, p as pasteMarker, s as segmentValue, u as usePastePills } from './PastePills.types-CpXzsuwJ.cjs';
|
|
3
|
+
export { H as HOST_ATTR, I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, c as PillToInsert, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-CUQeOeOA.cjs';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
package/dist/paste-pills.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ComposerPastePreview, a as ComposerPasteClassNames } from './PastePills.types-
|
|
2
|
-
export { H as HeldImage, b as HeldPaste, P as PILL_MARK, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, V as ValueSegment, g as expandMarkers, m as markedIds, p as pasteMarker, s as segmentValue, u as usePastePills } from './PastePills.types-
|
|
3
|
-
export { H as HOST_ATTR, I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, c as PillToInsert, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-
|
|
1
|
+
import { C as ComposerPastePreview, a as ComposerPasteClassNames } from './PastePills.types-CpXzsuwJ.js';
|
|
2
|
+
export { H as HeldImage, b as HeldPaste, P as PILL_MARK, c as PasteClassNames, d as PasteEventLike, e as PastePreview, U as UsePastePillsOptions, f as UsePastePillsResult, V as ValueSegment, g as expandMarkers, m as markedIds, p as pasteMarker, s as segmentValue, u as usePastePills } from './PastePills.types-CpXzsuwJ.js';
|
|
3
|
+
export { H as HOST_ATTR, I as InlinePasteEditor, a as InlinePasteEditorHandle, P as PastedFilesInput, b as PastedFilesInputProps, c as PillToInsert, U as UseInlinePasteOptions, u as useInlinePaste } from './PastedFilesInput-Bt3KSTVN.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
package/dist/paste-pills.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { HOST_ATTR, InlinePasteEditor, InlinePill, PILL_MARK, PastedFilesInput, endsOf, expandMarkers, markedIds, pasteMarker, segmentValue, useInlinePaste, usePastePills, withSeparators } from './chunk-
|
|
1
|
+
export { HOST_ATTR, InlinePasteEditor, InlinePill, PILL_MARK, PastedFilesInput, endsOf, expandMarkers, markedIds, pasteMarker, segmentValue, useInlinePaste, usePastePills, withSeparators } from './chunk-YIKXJWO4.js';
|
|
2
2
|
import './chunk-QTS4Q2NK.js';
|
|
3
3
|
import './chunk-MQ6VGG62.js';
|
|
4
4
|
import './chunk-5VMILVWD.js';
|
package/dist/prompt-input.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMCQWTOTV_cjs = require('./chunk-MCQWTOTV.cjs');
|
|
4
4
|
require('./chunk-OASSZI6M.cjs');
|
|
5
5
|
require('./chunk-I27K6NLX.cjs');
|
|
6
6
|
require('./chunk-AIA5UNQ5.cjs');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-HFK5SBNM.cjs');
|
|
8
8
|
require('./chunk-MKGWHSNV.cjs');
|
|
9
9
|
require('./chunk-J2DI6RMR.cjs');
|
|
10
10
|
require('./chunk-MKHYENKR.cjs');
|
|
@@ -23,15 +23,15 @@ require('./chunk-ZU5Q77OT.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "PromptInput", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkMCQWTOTV_cjs.PromptInput; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "promptDataUrlToFile", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkMCQWTOTV_cjs.promptDataUrlToFile; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "promptFileToDataUrl", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkMCQWTOTV_cjs.promptFileToDataUrl; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=prompt-input.cjs.map
|
|
37
37
|
//# sourceMappingURL=prompt-input.cjs.map
|
package/dist/prompt-input.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-
|
|
1
|
+
export { a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-DWtSViJ3.cjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './PastePills.types-
|
|
3
|
+
import './PastePills.types-CpXzsuwJ.cjs';
|
package/dist/prompt-input.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-
|
|
1
|
+
export { a as PromptAttachment, b as PromptCmd, c as PromptDraft, d as PromptDraftFile, e as PromptDraftPill, f as PromptInput, g as PromptInputHandle, h as PromptInputProps, i as PromptMention, j as PromptSetDraftOptions, p as promptDataUrlToFile, n as promptFileToDataUrl } from './index-XR5t8bTq.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './PastePills.types-
|
|
3
|
+
import './PastePills.types-CpXzsuwJ.js';
|
package/dist/prompt-input.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { PromptInput, promptDataUrlToFile, promptFileToDataUrl } from './chunk-
|
|
1
|
+
export { PromptInput, promptDataUrlToFile, promptFileToDataUrl } from './chunk-J44EV6SP.js';
|
|
2
2
|
import './chunk-GR2WKBER.js';
|
|
3
3
|
import './chunk-SV5BW3IA.js';
|
|
4
4
|
import './chunk-TJ66S5K6.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-YIKXJWO4.js';
|
|
6
6
|
import './chunk-QTS4Q2NK.js';
|
|
7
7
|
import './chunk-MQ6VGG62.js';
|
|
8
8
|
import './chunk-5VMILVWD.js';
|
package/docs/PromptInput.md
CHANGED
|
@@ -86,6 +86,29 @@ if (saved) composer.current!.setDraft(JSON.parse(saved));
|
|
|
86
86
|
- `setDraft` does not call `onChange` / `onDraftChange`. You set the draft yourself, so you already have it.
|
|
87
87
|
- A draft with an unknown `v` is refused with a console warning.
|
|
88
88
|
|
|
89
|
+
### Labelled text pills
|
|
90
|
+
|
|
91
|
+
A text pill normally reads `Pasted text · N characters`. Give it a `label` and
|
|
92
|
+
the pill shows that instead. Use this when the host puts the pill there itself,
|
|
93
|
+
for example a plan step sent into the chat:
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
composer.current!.setDraft({
|
|
97
|
+
v: 1,
|
|
98
|
+
text: `Do this next: ${pasteMarker("step-3")}`,
|
|
99
|
+
pills: [{ kind: "text", id: "step-3", text: fullStep, label: "Step 3: migrate the billing tables" }],
|
|
100
|
+
attachments: [],
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
- The label is for display only. Sending still expands the pill to the full `text`.
|
|
105
|
+
- Its accessible name is `Insert this pasted text: <label>, N characters`.
|
|
106
|
+
- It is plain text and is never parsed as HTML. Line breaks, control characters
|
|
107
|
+
and U+FFFC become single spaces, and anything past 80 characters is cut with
|
|
108
|
+
`…`. If the label is blank or not a string, the generic text is shown.
|
|
109
|
+
- `label` round-trips through `getDraft`, `setDraft`, `defaultDraft`, `draft`
|
|
110
|
+
and `onDraftChange`.
|
|
111
|
+
|
|
89
112
|
### Attachments: where the bytes go
|
|
90
113
|
|
|
91
114
|
A `File` cannot be stored as JSON, and by default a draft does not carry the
|
|
@@ -122,7 +145,7 @@ type PromptAttachment = { id: string; name: string; bytes: number; file?: File;
|
|
|
122
145
|
|
|
123
146
|
interface PromptDraftFile { id: string; name: string; type: string; bytes: number; ref?: string }
|
|
124
147
|
type PromptDraftPill =
|
|
125
|
-
| { kind: "text"; id: string; text: string }
|
|
148
|
+
| { kind: "text"; id: string; text: string; label?: string }
|
|
126
149
|
| { kind: "image"; id: string; label: string; file: PromptDraftFile };
|
|
127
150
|
interface PromptDraft { v: 1; text: string; pills: PromptDraftPill[]; attachments: PromptDraftFile[] }
|
|
128
151
|
|