@fileverse-dev/ddoc 3.3.8-searchreplace-6 → 3.4.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.3.8-searchreplace-6",
5
+ "version": "3.4.0",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -122,12 +122,12 @@
122
122
  "@dnd-kit/sortable": ">=10.0.0",
123
123
  "@dnd-kit/utilities": ">=3.2.2",
124
124
  "@fileverse/crypto": ">=0.0.21",
125
+ "@fileverse/ens": "0.0.3",
125
126
  "@fileverse/ui": ">=5.1.8",
126
127
  "framer-motion": ">=11.2.10",
127
128
  "frimousse": ">=0.3.0",
128
- "viem": ">=2.13.8",
129
- "@fileverse/ens": "0.0.3",
130
- "mermaid": "11.14.0"
129
+ "mermaid": "11.14.0",
130
+ "viem": ">=2.13.8"
131
131
  },
132
132
  "devDependencies": {
133
133
  "@types/dompurify": "^3.0.5",
@@ -151,7 +151,6 @@
151
151
  "lint-staged": "^15.2.10",
152
152
  "postcss": "^8.4.38",
153
153
  "prettier": "^3.4.2",
154
- "sass": "^1.77.2",
155
154
  "tailwindcss": "^3.4.3",
156
155
  "typescript": "^5.2.2",
157
156
  "vite": "^5.0.0"
@@ -1,7 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
-
3
- declare const SearchReplace: ({ editor, viewerMode, }: {
4
- editor: Editor | null;
5
- viewerMode?: "suggest" | "view-only";
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export default SearchReplace;
@@ -1,63 +0,0 @@
1
- import { Range, Extension } from '@tiptap/core';
2
- import { PluginKey } from '@tiptap/pm/state';
3
-
4
- export interface SearchAndReplaceOptions {
5
- searchResultClass: string;
6
- disableRegex: boolean;
7
- }
8
- export interface SearchAndReplaceStorage {
9
- searchTerm: string;
10
- replaceTerm: string;
11
- results: Range[];
12
- lastSearchTerm: string;
13
- caseSensitive: boolean;
14
- lastCaseSensitive: boolean;
15
- resultIndex: number;
16
- lastResultIndex: number;
17
- }
18
- declare module '@tiptap/core' {
19
- interface Commands<ReturnType> {
20
- search: {
21
- /**
22
- * @description Set search term in extension.
23
- */
24
- setSearchTerm: (searchTerm: string) => ReturnType;
25
- /**
26
- * @description Set replace term in extension.
27
- */
28
- setReplaceTerm: (replaceTerm: string) => ReturnType;
29
- /**
30
- * @description Set case sensitivity in extension.
31
- */
32
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
33
- /**
34
- * @description Reset current search result to first instance.
35
- */
36
- resetIndex: () => ReturnType;
37
- /**
38
- * @description Find next instance of search result.
39
- */
40
- nextSearchResult: () => ReturnType;
41
- /**
42
- * @description Find previous instance of search result.
43
- */
44
- previousSearchResult: () => ReturnType;
45
- /**
46
- * @description Replace first instance of search result with given replace term.
47
- */
48
- replace: () => ReturnType;
49
- /**
50
- * @description Replace all instances of search result with given replace term.
51
- */
52
- replaceAll: () => ReturnType;
53
- };
54
- }
55
- }
56
- declare module '@tiptap/core' {
57
- interface Storage {
58
- searchAndReplace: SearchAndReplaceStorage;
59
- }
60
- }
61
- export declare const searchAndReplacePluginKey: PluginKey<any>;
62
- export declare const SearchAndReplace: Extension<SearchAndReplaceOptions, SearchAndReplaceStorage>;
63
- export default SearchAndReplace;
@@ -1,3 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
-
3
- export declare function setShowReplacePopoverWithData(editor: Editor): void;
@@ -1,14 +0,0 @@
1
- type StoreActions = {
2
- setSearchTerm: (val: string) => void;
3
- setReplaceTerm: (val: string) => void;
4
- setShowReplacePopover: (val: boolean) => void;
5
- toggleShowReplacePopover: () => void;
6
- };
7
- type Store = {
8
- showSearchReplacePopover: boolean;
9
- searchTerm: string;
10
- replaceTerm: string;
11
- actions: StoreActions;
12
- };
13
- export declare const useSearchReplaceStore: import('zustand').UseBoundStore<import('zustand').StoreApi<Store>>;
14
- export {};