@nkzw/codiff-core 1.8.1
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/SharedPlanApp.d.ts +32 -0
- package/dist/SharedWalkthroughApp.d.ts +40 -0
- package/dist/app/components/Avatar.d.ts +6 -0
- package/dist/app/components/Button.d.ts +12 -0
- package/dist/app/components/CommandBar.d.ts +8 -0
- package/dist/app/components/FileTree.d.ts +10 -0
- package/dist/app/components/KeyboardShortcutsHelp.d.ts +5 -0
- package/dist/app/components/MarkdownDocumentEditor.d.ts +26 -0
- package/dist/app/components/Panels.d.ts +71 -0
- package/dist/app/components/PlanEditorView.d.ts +18 -0
- package/dist/app/components/ReadOnlyMarkdownView.d.ts +16 -0
- package/dist/app/components/ReviewCodeView.d.ts +103 -0
- package/dist/app/components/Sidebar.d.ts +48 -0
- package/dist/app/components/WalkthroughFileError.d.ts +4 -0
- package/dist/app/components/merge-request/GeneralComments.d.ts +49 -0
- package/dist/app/components/useCopiedState.d.ts +1 -0
- package/dist/app/components/walkthrough/CommitView.d.ts +23 -0
- package/dist/app/components/walkthrough/NarrativeSidebar.d.ts +12 -0
- package/dist/app/components/walkthrough/NarrativeWalkthroughView.d.ts +44 -0
- package/dist/app/components/walkthrough/WalkthroughDiffSurface.d.ts +16 -0
- package/dist/app/components/walkthrough/WalkthroughProgress.d.ts +8 -0
- package/dist/app/components/walkthrough/parts.d.ts +15 -0
- package/dist/app/components/walkthrough/useNarrativeNavigation.d.ts +34 -0
- package/dist/app/hooks/useAppCommands.d.ts +22 -0
- package/dist/app/hooks/useAppKeyboardShortcuts.d.ts +18 -0
- package/dist/app/hooks/useAppReviewComments.d.ts +38 -0
- package/dist/app/hooks/useAppWalkthrough.d.ts +96 -0
- package/dist/app/hooks/useDiffSearch.d.ts +24 -0
- package/dist/app/hooks/useDocumentAppearance.d.ts +10 -0
- package/dist/app/hooks/useResizableSidebar.d.ts +12 -0
- package/dist/app/hooks/useReviewCommentDrafts.d.ts +23 -0
- package/dist/app/hooks/useReviewState.d.ts +22 -0
- package/dist/config/defaults.d.ts +4 -0
- package/dist/config/keymap.d.ts +3 -0
- package/dist/config/types.d.ts +44 -0
- package/dist/defaults.d.ts +2 -0
- package/dist/fonts/firacode/FiraCode-Regular.woff2 +0 -0
- package/dist/fonts/firacode/FiraCode-SemiBold.woff2 +0 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +12 -0
- package/dist/lib/app-constants.d.ts +7 -0
- package/dist/lib/app-types.d.ts +137 -0
- package/dist/lib/code-view-options.d.ts +26 -0
- package/dist/lib/command-registry.d.ts +14 -0
- package/dist/lib/diff-search.d.ts +3 -0
- package/dist/lib/diff.d.ts +35 -0
- package/dist/lib/files.d.ts +14 -0
- package/dist/lib/item-version.d.ts +1 -0
- package/dist/lib/keyboard.d.ts +2 -0
- package/dist/lib/markdown.d.ts +3 -0
- package/dist/lib/narrative-walkthrough-diff.d.ts +113 -0
- package/dist/lib/narrative-walkthrough-diff.mjs +257 -0
- package/dist/lib/narrative-walkthrough.d.ts +108 -0
- package/dist/lib/reload-selection.d.ts +23 -0
- package/dist/lib/review-command-target.d.ts +15 -0
- package/dist/lib/review-comments.d.ts +29 -0
- package/dist/lib/review-identity.d.ts +7 -0
- package/dist/lib/review-scroll.d.ts +5 -0
- package/dist/lib/search-highlights.d.ts +5 -0
- package/dist/lib/sidebar-width.d.ts +9 -0
- package/dist/lib/source.d.ts +18 -0
- package/dist/lib/viewed.d.ts +2 -0
- package/dist/react.d.ts +3 -0
- package/dist/react.mjs +9355 -0
- package/dist/share.d.ts +301 -0
- package/dist/share.mjs +103 -0
- package/dist/style.css +9142 -0
- package/dist/styles.css.d.ts +2 -0
- package/dist/types.d.ts +702 -0
- package/package.json +71 -0
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nkzw/codiff-core",
|
|
3
|
+
"version": "1.8.1",
|
|
4
|
+
"description": "A fast diff viewer.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Christoph Nakazawa",
|
|
8
|
+
"email": "christoph.pojer@gmail.com"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/nkzw-tech/codiff.git",
|
|
13
|
+
"directory": "core"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"./App.css",
|
|
21
|
+
"./dist/*.css"
|
|
22
|
+
],
|
|
23
|
+
"main": "./dist/index.mjs",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"@nkzw/source": "./index.ts",
|
|
29
|
+
"default": "./dist/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./react": {
|
|
32
|
+
"types": "./dist/react.d.ts",
|
|
33
|
+
"@nkzw/source": "./react.ts",
|
|
34
|
+
"default": "./dist/react.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./share": {
|
|
37
|
+
"types": "./dist/share.d.ts",
|
|
38
|
+
"@nkzw/source": "./share.ts",
|
|
39
|
+
"default": "./dist/share.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./styles.css": {
|
|
42
|
+
"types": "./dist/styles.css.d.ts",
|
|
43
|
+
"@nkzw/source": "./App.css",
|
|
44
|
+
"default": "./dist/style.css"
|
|
45
|
+
},
|
|
46
|
+
"./walkthrough": {
|
|
47
|
+
"types": "./dist/lib/narrative-walkthrough-diff.d.ts",
|
|
48
|
+
"@nkzw/source": "./lib/narrative-walkthrough-diff.js",
|
|
49
|
+
"default": "./dist/lib/narrative-walkthrough-diff.mjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@nkzw/mdx-editor": "^0.2.2",
|
|
54
|
+
"@nkzw/use-relative-time": "^1.2.3",
|
|
55
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
56
|
+
"@pierre/diffs": "1.3.0-beta.9",
|
|
57
|
+
"@pierre/trees": "1.0.0-beta.5",
|
|
58
|
+
"@radix-ui/react-slot": "^1.3.0",
|
|
59
|
+
"class-variance-authority": "^0.7.1",
|
|
60
|
+
"ghostty-web": "^0.4.0",
|
|
61
|
+
"lucide-react": "^1.24.0",
|
|
62
|
+
"valibot": "^1.4.2"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"react": "^19.2.0",
|
|
66
|
+
"react-dom": "^19.2.0"
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "rm -rf dist && vp pack -d dist --target=node24 index.ts react.ts share.ts lib/narrative-walkthrough-diff.js App.css && vp exec tsc -p tsconfig.build.json"
|
|
70
|
+
}
|
|
71
|
+
}
|