@epam/ai-dial-attachment-input 1.0.0-dev.484 → 1.0.0-dev.489
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/components/AttachmentCard/AttachmentCard.d.ts +2 -1
- package/components/AttachmentCard/AttachmentCard.d.ts.map +1 -1
- package/components/AttachmentFileRow/AttachmentFileRow.d.ts +1 -1
- package/components/AttachmentFileRow/AttachmentFileRow.d.ts.map +1 -1
- package/components/AttachmentGroup/AttachmentGroup.d.ts +1 -1
- package/components/AttachmentGroup/AttachmentGroup.d.ts.map +1 -1
- package/components/AttachmentMoreTile/AttachmentMoreTile.d.ts +1 -1
- package/components/AttachmentMoreTile/AttachmentMoreTile.d.ts.map +1 -1
- package/components/AttachmentTray/AttachmentTray.d.ts +2 -1
- package/components/AttachmentTray/AttachmentTray.d.ts.map +1 -1
- package/components/FileDndOverlay/FileDndOverlay.d.ts +2 -1
- package/components/FileDndOverlay/FileDndOverlay.d.ts.map +1 -1
- package/constants/attachment-group.d.ts +5 -0
- package/constants/attachment-group.d.ts.map +1 -0
- package/constants/upload.d.ts +1 -0
- package/constants/upload.d.ts.map +1 -1
- package/hooks/useClipboardPaste.d.ts +9 -1
- package/hooks/useClipboardPaste.d.ts.map +1 -1
- package/hooks/useLazyImageLoad.d.ts +5 -0
- package/hooks/useLazyImageLoad.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +9 -15
- package/index.d.ts.map +1 -1
- package/index.js +391 -340
- package/models/attachment-card.d.ts +111 -0
- package/models/attachment-card.d.ts.map +1 -0
- package/models/attachment-file-row.d.ts +47 -0
- package/models/attachment-file-row.d.ts.map +1 -0
- package/models/{AttachmentGroup.d.ts → attachment-group.d.ts} +50 -11
- package/models/attachment-group.d.ts.map +1 -0
- package/models/{AttachmentMoreTile.d.ts → attachment-more-tile.d.ts} +3 -1
- package/models/attachment-more-tile.d.ts.map +1 -0
- package/models/{AttachmentTray.d.ts → attachment-tray.d.ts} +14 -9
- package/models/attachment-tray.d.ts.map +1 -0
- package/models/file-dnd-overlay.d.ts +41 -0
- package/models/file-dnd-overlay.d.ts.map +1 -0
- package/package.json +2 -2
- package/utils/attachment.d.ts +49 -0
- package/utils/attachment.d.ts.map +1 -0
- package/models/AttachmentCard.d.ts +0 -61
- package/models/AttachmentCard.d.ts.map +0 -1
- package/models/AttachmentFileRow.d.ts +0 -24
- package/models/AttachmentFileRow.d.ts.map +0 -1
- package/models/AttachmentGroup.d.ts.map +0 -1
- package/models/AttachmentMoreTile.d.ts.map +0 -1
- package/models/AttachmentTray.d.ts.map +0 -1
- package/models/FileDndOverlay.d.ts +0 -24
- package/models/FileDndOverlay.d.ts.map +0 -1
- package/utils/attachment-mime.d.ts +0 -20
- package/utils/attachment-mime.d.ts.map +0 -1
- package/utils/generateAttachmentId.d.ts +0 -6
- package/utils/generateAttachmentId.d.ts.map +0 -1
- package/utils/getAttachmentCardState.d.ts +0 -17
- package/utils/getAttachmentCardState.d.ts.map +0 -1
- package/utils/getAttachmentGroupLayout.d.ts +0 -23
- package/utils/getAttachmentGroupLayout.d.ts.map +0 -1
- package/utils/getAttachmentIcon.d.ts +0 -8
- package/utils/getAttachmentIcon.d.ts.map +0 -1
- package/utils/getNameWithoutExtension.d.ts +0 -5
- package/utils/getNameWithoutExtension.d.ts.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { AttachmentCardProps } from '../../models/
|
|
2
|
+
import { AttachmentCardProps } from '../../models/attachment-card';
|
|
3
|
+
/** Square tile for a single attachment (image, audio, file, or pasted-text card) inside the composer tray. */
|
|
3
4
|
export declare const AttachmentCard: FC<AttachmentCardProps>;
|
|
4
5
|
//# sourceMappingURL=AttachmentCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentCard.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCard/AttachmentCard.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAK9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AttachmentCard.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentCard/AttachmentCard.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,EAAE,EAAgD,MAAM,OAAO,CAAC;AAK9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAOxE,8GAA8G;AAC9G,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAsXlD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { AttachmentFileRowProps } from '../../models/
|
|
2
|
+
import { AttachmentFileRowProps } from '../../models/attachment-file-row';
|
|
3
3
|
/**
|
|
4
4
|
* Non-previewable attachment tile: a uniform neutral square holding the
|
|
5
5
|
* glyph, extension label, and filename together (no external caption, no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentFileRow.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentFileRow/AttachmentFileRow.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AttachmentFileRow.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentFileRow/AttachmentFileRow.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,EAAE,EAA8C,MAAM,OAAO,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAU/E;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAkNxD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { AttachmentGroupProps } from '../../models/
|
|
2
|
+
import { AttachmentGroupProps } from '../../models/attachment-group';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptive attachment group for an already-sent message: every attachment —
|
|
5
5
|
* image or file — renders as one uniform 84x84 rounded-square tile, wrapped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentGroup/AttachmentGroup.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,EAAE,EAAqB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentGroup/AttachmentGroup.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,EAAE,EAAqB,MAAM,OAAO,CAAC;AAEnD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAUvC;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAkKpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { AttachmentMoreTileProps } from '../../models/
|
|
2
|
+
import { AttachmentMoreTileProps } from '../../models/attachment-more-tile';
|
|
3
3
|
/**
|
|
4
4
|
* Square placeholder tile shown in the attachment grid: a "+N" tile when
|
|
5
5
|
* collapsed (activating it expands the group), or — via `children` — a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentMoreTile.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentMoreTile/AttachmentMoreTile.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AttachmentMoreTile.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentMoreTile/AttachmentMoreTile.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAGjF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAqB1D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { AttachmentTrayProps } from '../../models/
|
|
2
|
+
import { AttachmentTrayProps } from '../../models/attachment-tray';
|
|
3
|
+
/** Horizontal scrollable row of attachment cards for the message composer, with remove/retry/expand actions. */
|
|
3
4
|
export declare const AttachmentTray: FC<AttachmentTrayProps>;
|
|
4
5
|
//# sourceMappingURL=AttachmentTray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentTray.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentTray/AttachmentTray.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AttachmentTray.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentTray/AttachmentTray.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,gHAAgH;AAChH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA6ClD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { FileDndOverlayProps } from '../../models/
|
|
2
|
+
import { FileDndOverlayProps } from '../../models/file-dnd-overlay';
|
|
3
|
+
/** Full-screen drag-and-drop overlay shown while files are dragged over the app, allowed or denied. */
|
|
3
4
|
export declare const FileDndOverlay: FC<FileDndOverlayProps>;
|
|
4
5
|
//# sourceMappingURL=FileDndOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDndOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FileDndOverlay/FileDndOverlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FileDndOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/FileDndOverlay/FileDndOverlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,uGAAuG;AACvG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgElD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Total attachment count at/above which the grid collapses behind a "+N" tile by default. */
|
|
2
|
+
export declare const ATTACHMENT_COLLAPSE_THRESHOLD = 5;
|
|
3
|
+
/** Number of tiles shown before the "+N" tile while collapsed. */
|
|
4
|
+
export declare const ATTACHMENT_COLLAPSED_VISIBLE_COUNT = 4;
|
|
5
|
+
//# sourceMappingURL=attachment-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment-group.d.ts","sourceRoot":"","sources":["../../src/constants/attachment-group.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,kEAAkE;AAClE,eAAO,MAAM,kCAAkC,IAAI,CAAC"}
|
package/constants/upload.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/constants/upload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/constants/upload.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,MAAM,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Attachment } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { ClipboardEventHandler } from 'react';
|
|
3
|
+
/** Localised default file names used by `useClipboardPaste` for pasted content. */
|
|
4
|
+
export interface UseClipboardPasteLabels {
|
|
5
|
+
/** Default file name given to a pasted image. Defaults to `'Screenshot.png'`. */
|
|
6
|
+
screenshotName?: string;
|
|
7
|
+
/** Default file name given to pasted plain text when it has no usable preview. Defaults to `'Pasted text'`. */
|
|
8
|
+
pastedTextName?: string;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* Returns a `handlePaste` handler for a textarea that intercepts clipboard
|
|
5
12
|
* events and converts image items or long plain-text strings into
|
|
@@ -9,8 +16,9 @@ import { ClipboardEventHandler } from 'react';
|
|
|
9
16
|
* intercepted.
|
|
10
17
|
* @param threshold - Plain-text pastes longer than this many characters are
|
|
11
18
|
* converted to a file attachment instead of being inserted inline.
|
|
19
|
+
* @param labels - Localised default file names for pasted content.
|
|
12
20
|
*/
|
|
13
|
-
export declare const useClipboardPaste: (onAttachments: (attachments: Attachment[]) => void, threshold: number) => {
|
|
21
|
+
export declare const useClipboardPaste: (onAttachments: (attachments: Attachment[]) => void, threshold: number, labels?: UseClipboardPasteLabels) => {
|
|
14
22
|
handlePaste: ClipboardEventHandler<HTMLTextAreaElement>;
|
|
15
23
|
};
|
|
16
24
|
//# sourceMappingURL=useClipboardPaste.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClipboardPaste.d.ts","sourceRoot":"","sources":["../../src/hooks/useClipboardPaste.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAe,MAAM,OAAO,CAAC;AAG3D
|
|
1
|
+
{"version":3,"file":"useClipboardPaste.d.ts","sourceRoot":"","sources":["../../src/hooks/useClipboardPaste.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAe,MAAM,OAAO,CAAC;AAG3D,mFAAmF;AACnF,MAAM,WAAW,uBAAuB;IACtC,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,EAClD,WAAW,MAAM,EACjB,SAAQ,uBAA4B,KACnC;IAAE,WAAW,EAAE,qBAAqB,CAAC,mBAAmB,CAAC,CAAA;CAkE3D,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
/** Lazy-image load lifecycle. */
|
|
2
3
|
export declare enum LazyImageLoadStatus {
|
|
4
|
+
/** Not yet requested to load. */
|
|
3
5
|
Idle = "idle",
|
|
6
|
+
/** Image request is in flight; skeleton should stay visible. */
|
|
4
7
|
Loading = "loading",
|
|
8
|
+
/** Image loaded successfully and can be shown. */
|
|
5
9
|
Loaded = "loaded",
|
|
10
|
+
/** The image failed to load. */
|
|
6
11
|
Error = "error"
|
|
7
12
|
}
|
|
8
13
|
interface UseLazyImageLoadParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLazyImageLoad.d.ts","sourceRoot":"","sources":["../../src/hooks/useLazyImageLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,mBAG9B,sBAAsB,KAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,eAAe,EAAE,mBAAmB,CAAC;CA0CtC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useLazyImageLoad.d.ts","sourceRoot":"","sources":["../../src/hooks/useLazyImageLoad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,iCAAiC;AACjC,oBAAY,mBAAmB;IAC7B,iCAAiC;IACjC,IAAI,SAAS;IACb,gEAAgE;IAChE,OAAO,YAAY;IACnB,kDAAkD;IAClD,MAAM,WAAW;IACjB,gCAAgC;IAChC,KAAK,UAAU;CAChB;AAED,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,mBAG9B,sBAAsB,KAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,eAAe,EAAE,mBAAmB,CAAC;CA0CtC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
1
|
+
._card_ywrb5_1{border-color:var(--ci-card-border,var(--stroke-secondary,#d1dbea));background:var(--ci-card-bg,var(--bg-layer-0,#fcfcfc))}._cardError_ywrb5_6{border-color:var(--ci-card-border-error,var(--stroke-error,#ae2f2f))}._cardSelected_ywrb5_10{background:var(--ci-card-bg-selected,var(--bg-accent-primary-alpha,#7da4ff2e));border-color:var(--ci-card-border-selected,var(--stroke-accent-primary,#124ace))}._cardPrompt_ywrb5_15:hover,._cardPasted_ywrb5_16:hover{background:var(--ci-card-bg-hover,var(--controls-bg-neutral-hover,#d1dbea))}._name_ywrb5_20{color:var(--ci-card-name,var(--text-primary,#161b2d))}._meta_ywrb5_24{color:var(--ci-card-meta,var(--text-secondary,#575f73))}._loadingOverlay_ywrb5_28{background:var(--ci-loading-overlay-bg,var(--bg-blackout,#0c101d4d))}._actionBtn_ywrb5_32{color:var(--ci-card-action-color,var(--text-primary,#161b2d))}._actionBtn_ywrb5_32:hover{background:var(--ci-card-remove-bg-hover,var(--bg-layer-3,#fcfcfc))}._card_ywrb5_1:focus-within{outline-color:var(--ci-card-focus-outline,var(--controls-stroke-focus,#eef1f7))}._removeBtnImage_ywrb5_43{background:var(--ci-card-remove-bg,var(--bg-layer-2,#eef1f7));color:var(--ci-card-remove-color,var(--text-primary,#161b2d))}._removeBtnImage_ywrb5_43:hover{background:var(--ci-card-remove-bg-hover,var(--bg-layer-3,#fcfcfc))}._hoverDownloadIcon_ywrb5_51{background:var(--ci-card-hover-icon-bg,var(--bg-layer-2,#eef1f7));color:var(--ci-card-hover-icon-color,var(--text-primary,#161b2d))}._tile_488nu_1{background:var(--ci-tile-bg,var(--bg-layer-3,#fcfcfc));border-color:var(--ci-tile-border,var(--stroke-secondary,#d1dbea))}._tile_488nu_1:hover{border-color:var(--ci-tile-border-hover,var(--stroke-hover-tint,#0000001f))}._tile_488nu_1:focus-visible{outline-color:var(--ci-tile-focus-outline,var(--controls-stroke-focus,#eef1f7))}._tileLight_488nu_12{background:var(--ci-tile-bg,var(--bg-layer-6,#f8fafc))}._tileError_488nu_16{background:var(--ci-tile-bg-error,var(--bg-error,#f3d6d8));border-color:var(--ci-tile-border-error,var(--stroke-error,#ae2f2f))}._tileError_488nu_16:hover{border-color:var(--ci-tile-border-error,var(--stroke-error,#ae2f2f))}._tileError_488nu_16 ._nameText_488nu_23,._tileError_488nu_16 ._typeText_488nu_24{color:var(--ci-tile-error-text,var(--text-error,#ae2f2f))}._nameText_488nu_23{color:var(--ci-tile-name-text,var(--text-primary,#161b2d))}._typeText_488nu_24{color:var(--ci-tile-type-text,var(--text-secondary,#575f73))}._retryIcon_488nu_36{color:var(--ci-tile-error-text,var(--text-error,#ae2f2f))}._hoverIcon_488nu_40{background:var(--ci-tile-hover-icon-bg,var(--bg-layer-2,#eef1f7));color:var(--ci-tile-hover-icon-color,var(--text-primary,#161b2d))}._track_488nu_45{background:var(--ci-tile-track-bg,var(--bg-layer-1,#e0e6f0))}._indeterminateFill_488nu_49{background:var(--ci-tile-fill-bg,var(--bg-accent-primary,#5c8dea));animation:1.2s ease-in-out infinite _attachment-tile-indeterminate_488nu_1}@media (prefers-reduced-motion:reduce){._indeterminateFill_488nu_49{animation:none}}@keyframes _attachment-tile-indeterminate_488nu_1{0%{transform:translate(-100%)}to{transform:translate(300%)}}._tile_1s4d7_1{background:var(--ci-more-tile-bg,var(--bg-layer-2,#eef1f7));border-color:var(--ci-more-tile-border,var(--stroke-secondary,#d1dbea));color:var(--ci-more-tile-color,var(--text-secondary,#575f73))}._tile_1s4d7_1:hover{background:var(--ci-more-tile-bg-hover,var(--bg-accent-primary-alpha,#7da4ff2e));color:var(--ci-more-tile-color-hover,var(--text-accent-primary-hover,#2764d9));border-color:var(--ci-more-tile-border-hover,color-mix(in srgb, var(--stroke-accent-primary-hover,#7da4ff) 50%, transparent))}._tile_1s4d7_1:focus-visible{outline-color:var(--ci-more-tile-focus-outline,var(--controls-stroke-focus,#eef1f7))}._container_7fktb_1{background:var(--ci-group-bg,var(--bg-layer-2,#eef1f7));border-color:var(--ci-group-border,var(--stroke-secondary,#d1dbea))}._headerIcon_7fktb_6,._headerLabel_7fktb_7,._downloadAllButton_7fktb_8{color:var(--ci-group-text,var(--text-secondary,#575f73))}._imageTile_7fktb_12{--ci-card-bg:var(--bg-layer-3,#fcfcfc)}._overlay_wr7ez_1{background:var(--fd-bg,var(--bg-blackout,#0c101d4d))}._icon_wr7ez_5{color:var(--fd-icon,var(--text-accent-primary,#124ace))}._deniedIcon_wr7ez_9{color:var(--fd-denied-icon,var(--text-error,#ae2f2f))}
|
|
2
2
|
/*$vite$:1*/
|
package/index.d.ts
CHANGED
|
@@ -4,21 +4,15 @@ export { AttachmentGroup } from './components/AttachmentGroup/AttachmentGroup';
|
|
|
4
4
|
export { AttachmentFileRow } from './components/AttachmentFileRow/AttachmentFileRow';
|
|
5
5
|
export { AttachmentMoreTile } from './components/AttachmentMoreTile/AttachmentMoreTile';
|
|
6
6
|
export { FileDndOverlay } from './components/FileDndOverlay/FileDndOverlay';
|
|
7
|
-
export type { AttachmentCardProps, AttachmentCardColors, AttachmentCardTypography, } from './models/
|
|
8
|
-
export type { AttachmentTrayProps } from './models/
|
|
9
|
-
export type
|
|
10
|
-
export type { AttachmentFileRowProps } from './models/
|
|
11
|
-
export type { AttachmentMoreTileProps } from './models/
|
|
12
|
-
export type { FileDndOverlayProps } from './models/
|
|
13
|
-
export { useClipboardPaste } from './hooks/useClipboardPaste';
|
|
7
|
+
export type { AttachmentCardProps, AttachmentCardColors, AttachmentCardTypography, AttachmentCardStyles, AttachmentCardLabels, AttachmentCardState, AttachmentTypeLabels, } from './models/attachment-card';
|
|
8
|
+
export type { AttachmentTrayProps, AttachmentTrayLabels, } from './models/attachment-tray';
|
|
9
|
+
export { AttachmentTilesLayout, type AttachmentGroupProps, type AttachmentGroupLabels, type AttachmentGroupStyles, type AttachmentTilesPlan, } from './models/attachment-group';
|
|
10
|
+
export type { AttachmentFileRowProps, AttachmentFileRowLabels, AttachmentFileRowStyles, } from './models/attachment-file-row';
|
|
11
|
+
export type { AttachmentMoreTileProps } from './models/attachment-more-tile';
|
|
12
|
+
export type { FileDndOverlayProps, FileDndOverlayStyles, } from './models/file-dnd-overlay';
|
|
13
|
+
export { useClipboardPaste, type UseClipboardPasteLabels, } from './hooks/useClipboardPaste';
|
|
14
14
|
export { useLazyImageLoad, LazyImageLoadStatus, } from './hooks/useLazyImageLoad';
|
|
15
|
-
export { generateAttachmentId } from './utils/
|
|
16
|
-
export {
|
|
17
|
-
export type { AttachmentCardState } from './utils/getAttachmentCardState';
|
|
18
|
-
export { getAttachmentIcon } from './utils/getAttachmentIcon';
|
|
19
|
-
export { getAttachmentTilesPlan, AttachmentTilesLayout, ATTACHMENT_COLLAPSE_THRESHOLD, ATTACHMENT_COLLAPSED_VISIBLE_COUNT, } from './utils/getAttachmentGroupLayout';
|
|
20
|
-
export type { AttachmentTilesPlan } from './utils/getAttachmentGroupLayout';
|
|
21
|
-
export { getNameWithoutExtension } from './utils/getNameWithoutExtension';
|
|
22
|
-
export { mimeTypesToExtensionLabels, isMimeTypeAllowed, } from './utils/attachment-mime';
|
|
15
|
+
export { generateAttachmentId, getAttachmentCardState, getExtFromContentType, getAttachmentIcon, getAttachmentTilesPlan, getNameWithoutExtension, mimeTypesToExtensionLabels, isMimeTypeAllowed, } from './utils/attachment';
|
|
16
|
+
export { ATTACHMENT_COLLAPSE_THRESHOLD, ATTACHMENT_COLLAPSED_VISIBLE_COUNT, } from './constants/attachment-group';
|
|
23
17
|
export { MAX_UPLOADS_PER_MINUTE } from './constants/upload';
|
|
24
18
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAE5E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAE5E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
|