@emailmaker/filemanager 0.10.78 → 0.10.79

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.
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
2
  export interface IconsControlsProps {
3
- mode: 'global' | 'family';
4
- familySlug: string | null;
5
- categoryName?: string | null;
6
3
  colorHex: string;
7
4
  setColorHex: (v: string) => void;
8
5
  colorHex2: string;
@@ -13,14 +10,8 @@ export interface IconsControlsProps {
13
10
  setSizePx: (v: number) => void;
14
11
  strokeWidth: number | undefined;
15
12
  setStrokeWidth: (v: number | undefined) => void;
16
- responsiveSvg: boolean;
17
- setResponsiveSvg: (v: boolean) => void;
18
- useCssColor: boolean;
19
- setUseCssColor: (v: boolean) => void;
20
13
  showSecondColor: boolean;
21
14
  showThirdColor: boolean;
22
- styleFilter?: string | null;
23
- onBack: () => void;
24
15
  }
25
16
  export declare const IconsControls: React.FC<IconsControlsProps>;
26
17
  export default IconsControls;
@@ -6,7 +6,6 @@ export interface IconsGridProps {
6
6
  isCollectingResults?: boolean;
7
7
  hasMore?: boolean;
8
8
  hasQuery: boolean;
9
- mode: 'global' | 'family';
10
9
  selectedHash: string | null;
11
10
  onItemClick: (item: StreamlineSearchItem) => void;
12
11
  onInsert: (item: StreamlineSearchItem) => void;
@@ -18,7 +17,6 @@ export interface IconsGridProps {
18
17
  };
19
18
  svgTextMap: Record<string, string>;
20
19
  previewSize?: number;
21
- isFamilyLoading?: boolean;
22
20
  selectedHashes?: Set<string>;
23
21
  onToggleSelect?: (hash: string) => void;
24
22
  }
@@ -4,8 +4,6 @@ export interface IconsSearchFormProps {
4
4
  query: string;
5
5
  onQueryChange: (value: string) => void;
6
6
  onSubmit: () => void;
7
- styleFilter: string | null;
8
- onStyleChange: (value: string | null) => void;
9
7
  hasResults?: boolean;
10
8
  inputRef?: React.RefObject<InputRef>;
11
9
  }
@@ -0,0 +1,8 @@
1
+ import type { Config } from '../../types';
2
+ export declare function createIconStockTranslateFetch(url: string): (input: string, opts: {
3
+ locale?: string;
4
+ }) => Promise<string>;
5
+ /** `handleTranslate` имеет приоритет; иначе при непустом `iconStockTranslateUrl` — POST с телом `{ text, locale? }`. */
6
+ export declare function resolveIconStockTranslate(config: Config | undefined): ((input: string, opts: {
7
+ locale?: string;
8
+ }) => Promise<string>) | undefined;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * RU → подстроки в slug / словах из имён Lucide и Tabler Icons.
3
+ */
4
+ export declare const RU_ICON_TERMS: Readonly<Record<string, readonly string[]>>;
5
+ /** Группы для AND: в каждой — OR по англ. подстрокам. */
6
+ export declare function buildRuExpandedGroups(query: string): string[][];
7
+ export declare function buildSearchNeedles(query: string): {
8
+ direct: string;
9
+ groups: string[][];
10
+ };
11
+ export declare function haystackMatchesRuAware(haystack: string, direct: string, groups: string[][]): boolean;
@@ -0,0 +1,6 @@
1
+ import type { StreamlineSearchItem } from '../../types';
2
+ /** Стабильный id вида `prefix:icon-name` для кэша и `StreamlineSearchItem.hash`. */
3
+ export declare function listMatchingStockIconIds(query: string): string[];
4
+ /** Сохраняет порядок `primary`, в конец добавляет id из `secondary`, которых ещё не было. */
5
+ export declare function mergeStockIconIdsOrdered(primary: string[], secondary: string[]): string[];
6
+ export declare function stockIconIdToItem(fullId: string): StreamlineSearchItem;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Prepares SVG for tinting via CSS variables in the grid / preview (Lucide + Tabler / Iconify).
3
+ */
4
+ export declare function normalizeSvgForCss(text: string, opts?: {
5
+ strokeWidth?: number;
6
+ }): string;
@@ -0,0 +1,19 @@
1
+ import { type SvgColorOptions } from '../../utils/svgToPng';
2
+ import { normalizeSvgForCss } from './normalizeSvgForCss';
3
+ type SvgCacheValue = {
4
+ text: string;
5
+ url: string;
6
+ original: string;
7
+ };
8
+ export declare function useIconifyStock(useCssColor: boolean): {
9
+ fetchSvgDataUrl: (iconId: string, options?: {
10
+ size?: number;
11
+ responsive?: boolean;
12
+ strokeWidth?: number;
13
+ signal?: AbortSignal;
14
+ inlineColors?: SvgColorOptions;
15
+ }) => Promise<SvgCacheValue>;
16
+ normalizeSvgForCss: typeof normalizeSvgForCss;
17
+ };
18
+ export type UseIconifyStockReturn = ReturnType<typeof useIconifyStock>;
19
+ export {};
@@ -6,4 +6,3 @@ export { FileModals } from './FileModals/FileModals';
6
6
  export { SearchInput } from './SearchInput';
7
7
  export { CustomUploadIcon } from './CustomUploadIcon/';
8
8
  export { SafeImage } from './SafeImage';
9
- export { default as IconsTab } from './ImageIcons/IconsTab';