@bendyline/docblocks-react 1.1.2 → 2.0.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/README.md +31 -5
- package/dist/AppMenu/AppMenu.d.ts +29 -2
- package/dist/AppMenu/AppMenu.d.ts.map +1 -1
- package/dist/AppMenu/AppMenu.js +41 -2
- package/dist/AppMenu/AppMenu.js.map +1 -1
- package/dist/AppMenu/index.d.ts +1 -1
- package/dist/AppMenu/index.d.ts.map +1 -1
- package/dist/DocBlocksShell/DocBlocksShell.d.ts +15 -2
- package/dist/DocBlocksShell/DocBlocksShell.d.ts.map +1 -1
- package/dist/DocBlocksShell/DocBlocksShell.js +1677 -298
- package/dist/DocBlocksShell/DocBlocksShell.js.map +1 -1
- package/dist/DocBlocksShell/LazyEditorShell.d.ts +3 -0
- package/dist/DocBlocksShell/LazyEditorShell.d.ts.map +1 -0
- package/dist/DocBlocksShell/LazyEditorShell.js +3 -0
- package/dist/DocBlocksShell/LazyEditorShell.js.map +1 -0
- package/dist/DocBlocksShell/UpdateAvailableNotice.d.ts +13 -0
- package/dist/DocBlocksShell/UpdateAvailableNotice.d.ts.map +1 -0
- package/dist/DocBlocksShell/UpdateAvailableNotice.js +16 -0
- package/dist/DocBlocksShell/UpdateAvailableNotice.js.map +1 -0
- package/dist/DocBlocksShell/document-title.d.ts +3 -0
- package/dist/DocBlocksShell/document-title.d.ts.map +1 -0
- package/dist/DocBlocksShell/document-title.js +17 -0
- package/dist/DocBlocksShell/document-title.js.map +1 -0
- package/dist/DocBlocksShell/workspace-authority-barrier.d.ts +14 -0
- package/dist/DocBlocksShell/workspace-authority-barrier.d.ts.map +1 -0
- package/dist/DocBlocksShell/workspace-authority-barrier.js +23 -0
- package/dist/DocBlocksShell/workspace-authority-barrier.js.map +1 -0
- package/dist/Export/DeferredExportToolbarControls.d.ts +5 -0
- package/dist/Export/DeferredExportToolbarControls.d.ts.map +1 -0
- package/dist/Export/DeferredExportToolbarControls.js +10 -0
- package/dist/Export/DeferredExportToolbarControls.js.map +1 -0
- package/dist/Export/ExportDialog.d.ts +10 -1
- package/dist/Export/ExportDialog.d.ts.map +1 -1
- package/dist/Export/ExportDialog.js +20 -18
- package/dist/Export/ExportDialog.js.map +1 -1
- package/dist/Export/ExportToolbarControls.d.ts +21 -1
- package/dist/Export/ExportToolbarControls.d.ts.map +1 -1
- package/dist/Export/ExportToolbarControls.js +96 -11
- package/dist/Export/ExportToolbarControls.js.map +1 -1
- package/dist/Export/export-destination.d.ts +3 -0
- package/dist/Export/export-destination.d.ts.map +1 -0
- package/dist/Export/export-destination.js +32 -0
- package/dist/Export/export-destination.js.map +1 -0
- package/dist/Export/index.d.ts +8 -4
- package/dist/Export/index.d.ts.map +1 -1
- package/dist/Export/index.js +4 -1
- package/dist/Export/index.js.map +1 -1
- package/dist/Export/public-api.d.ts +12 -0
- package/dist/Export/public-api.d.ts.map +1 -0
- package/dist/Export/public-api.js +9 -0
- package/dist/Export/public-api.js.map +1 -0
- package/dist/Export/run-export.d.ts +3 -1
- package/dist/Export/run-export.d.ts.map +1 -1
- package/dist/Export/run-export.js +30 -13
- package/dist/Export/run-export.js.map +1 -1
- package/dist/ExportDialog-MEUISWZX.js +9 -0
- package/dist/ExportDialog-MEUISWZX.js.map +1 -0
- package/dist/ExportToolbarControls-D2YDWOXW.js +373 -0
- package/dist/ExportToolbarControls-D2YDWOXW.js.map +1 -0
- package/dist/FileExplorer/FileExplorer.d.ts +26 -4
- package/dist/FileExplorer/FileExplorer.d.ts.map +1 -1
- package/dist/FileExplorer/FileExplorer.js +204 -29
- package/dist/FileExplorer/FileExplorer.js.map +1 -1
- package/dist/FileExplorer/FileTreeNode.d.ts +24 -3
- package/dist/FileExplorer/FileTreeNode.d.ts.map +1 -1
- package/dist/FileExplorer/FileTreeNode.js +27 -8
- package/dist/FileExplorer/FileTreeNode.js.map +1 -1
- package/dist/FileExplorer/index.d.ts +1 -1
- package/dist/FileExplorer/index.d.ts.map +1 -1
- package/dist/FileExplorer/useFileTree.d.ts +5 -3
- package/dist/FileExplorer/useFileTree.d.ts.map +1 -1
- package/dist/FileExplorer/useFileTree.js +173 -13
- package/dist/FileExplorer/useFileTree.js.map +1 -1
- package/dist/Git/GitAuthGuidanceDialog.d.ts +18 -0
- package/dist/Git/GitAuthGuidanceDialog.d.ts.map +1 -0
- package/dist/Git/GitAuthGuidanceDialog.js +27 -0
- package/dist/Git/GitAuthGuidanceDialog.js.map +1 -0
- package/dist/Git/GitBranchesDialog.d.ts +13 -0
- package/dist/Git/GitBranchesDialog.d.ts.map +1 -0
- package/dist/Git/GitBranchesDialog.js +59 -0
- package/dist/Git/GitBranchesDialog.js.map +1 -0
- package/dist/Git/GitCloneDialog.d.ts +14 -0
- package/dist/Git/GitCloneDialog.d.ts.map +1 -0
- package/dist/Git/GitCloneDialog.js +79 -0
- package/dist/Git/GitCloneDialog.js.map +1 -0
- package/dist/Git/GitCommitDialog.d.ts +12 -0
- package/dist/Git/GitCommitDialog.d.ts.map +1 -0
- package/dist/Git/GitCommitDialog.js +38 -0
- package/dist/Git/GitCommitDialog.js.map +1 -0
- package/dist/Git/GitConflictsDialog.d.ts +12 -0
- package/dist/Git/GitConflictsDialog.d.ts.map +1 -0
- package/dist/Git/GitConflictsDialog.js +17 -0
- package/dist/Git/GitConflictsDialog.js.map +1 -0
- package/dist/Git/GitContext.d.ts +89 -0
- package/dist/Git/GitContext.d.ts.map +1 -0
- package/dist/Git/GitContext.js +15 -0
- package/dist/Git/GitContext.js.map +1 -0
- package/dist/Git/GitDiffDialog.d.ts +20 -0
- package/dist/Git/GitDiffDialog.d.ts.map +1 -0
- package/dist/Git/GitDiffDialog.js +100 -0
- package/dist/Git/GitDiffDialog.js.map +1 -0
- package/dist/Git/GitDiffView.d.ts +23 -0
- package/dist/Git/GitDiffView.d.ts.map +1 -0
- package/dist/Git/GitDiffView.js +77 -0
- package/dist/Git/GitDiffView.js.map +1 -0
- package/dist/Git/GitHistoryDialog.d.ts +15 -0
- package/dist/Git/GitHistoryDialog.d.ts.map +1 -0
- package/dist/Git/GitHistoryDialog.js +107 -0
- package/dist/Git/GitHistoryDialog.js.map +1 -0
- package/dist/Git/GitStatusBar.d.ts +8 -0
- package/dist/Git/GitStatusBar.d.ts.map +1 -0
- package/dist/Git/GitStatusBar.js +49 -0
- package/dist/Git/GitStatusBar.js.map +1 -0
- package/dist/Git/GitToolbarControl.d.ts +15 -0
- package/dist/Git/GitToolbarControl.d.ts.map +1 -0
- package/dist/Git/GitToolbarControl.js +51 -0
- package/dist/Git/GitToolbarControl.js.map +1 -0
- package/dist/Git/GitUI.d.ts +14 -0
- package/dist/Git/GitUI.d.ts.map +1 -0
- package/dist/Git/GitUI.js +21 -0
- package/dist/Git/GitUI.js.map +1 -0
- package/dist/Git/commit-selection.d.ts +22 -0
- package/dist/Git/commit-selection.d.ts.map +1 -0
- package/dist/Git/commit-selection.js +47 -0
- package/dist/Git/commit-selection.js.map +1 -0
- package/dist/Git/git-clone-utils.d.ts +8 -0
- package/dist/Git/git-clone-utils.d.ts.map +1 -0
- package/dist/Git/git-clone-utils.js +26 -0
- package/dist/Git/git-clone-utils.js.map +1 -0
- package/dist/Git/git-status.d.ts +24 -0
- package/dist/Git/git-status.d.ts.map +1 -0
- package/dist/Git/git-status.js +105 -0
- package/dist/Git/git-status.js.map +1 -0
- package/dist/Git/useGit.d.ts +15 -0
- package/dist/Git/useGit.d.ts.map +1 -0
- package/dist/Git/useGit.js +206 -0
- package/dist/Git/useGit.js.map +1 -0
- package/dist/Git/useGitStatus.d.ts +17 -0
- package/dist/Git/useGitStatus.d.ts.map +1 -0
- package/dist/Git/useGitStatus.js +63 -0
- package/dist/Git/useGitStatus.js.map +1 -0
- package/dist/GitToolbarControl-LMIR4R7I.js +117 -0
- package/dist/GitToolbarControl-LMIR4R7I.js.map +1 -0
- package/dist/GitUI-KGF5MSNV.js +1048 -0
- package/dist/GitUI-KGF5MSNV.js.map +1 -0
- package/dist/LazyEditorShell-EF2BWRXU.js +6 -0
- package/dist/LazyEditorShell-EF2BWRXU.js.map +1 -0
- package/dist/Settings/Settings.d.ts +23 -0
- package/dist/Settings/Settings.d.ts.map +1 -0
- package/dist/Settings/Settings.js +22 -0
- package/dist/Settings/Settings.js.map +1 -0
- package/dist/Settings/public-api.d.ts +3 -0
- package/dist/Settings/public-api.d.ts.map +1 -0
- package/dist/Settings/public-api.js +2 -0
- package/dist/Settings/public-api.js.map +1 -0
- package/dist/WorkspacePicker/WorkspacePicker.d.ts +6 -1
- package/dist/WorkspacePicker/WorkspacePicker.d.ts.map +1 -1
- package/dist/WorkspacePicker/WorkspacePicker.js +16 -5
- package/dist/WorkspacePicker/WorkspacePicker.js.map +1 -1
- package/dist/chunk-3SAXDU2U.js +157 -0
- package/dist/chunk-3SAXDU2U.js.map +1 -0
- package/dist/chunk-4XXSWN3T.js +13 -0
- package/dist/chunk-4XXSWN3T.js.map +1 -0
- package/dist/chunk-5A4KEWKT.js +97 -0
- package/dist/chunk-5A4KEWKT.js.map +1 -0
- package/dist/chunk-AOVTHZU7.js +321 -0
- package/dist/chunk-AOVTHZU7.js.map +1 -0
- package/dist/chunk-DD4VFJQI.js +51 -0
- package/dist/chunk-DD4VFJQI.js.map +1 -0
- package/dist/chunk-GSNZSCIK.js +55 -0
- package/dist/chunk-GSNZSCIK.js.map +1 -0
- package/dist/chunk-VHDP4IPL.js +70 -0
- package/dist/chunk-VHDP4IPL.js.map +1 -0
- package/dist/chunk-ZI56BNB7.js +270 -0
- package/dist/chunk-ZI56BNB7.js.map +1 -0
- package/dist/components/Dialog.d.ts +22 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog.js +33 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/editor.d.ts +10 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +70 -0
- package/dist/editor.js.map +1 -0
- package/dist/export/index.d.ts +87 -0
- package/dist/export/index.js +26 -0
- package/dist/export/index.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useDocumentSession.d.ts +16 -0
- package/dist/hooks/useDocumentSession.d.ts.map +1 -0
- package/dist/hooks/useDocumentSession.js +18 -0
- package/dist/hooks/useDocumentSession.js.map +1 -0
- package/dist/icons.d.ts +11 -6
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +21 -20
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/preferences/theme.d.ts +18 -0
- package/dist/preferences/theme.d.ts.map +1 -0
- package/dist/preferences/theme.js +63 -0
- package/dist/preferences/theme.js.map +1 -0
- package/dist/provider-lease.d.ts +10 -0
- package/dist/provider-lease.d.ts.map +1 -0
- package/dist/provider-lease.js +42 -0
- package/dist/provider-lease.js.map +1 -0
- package/dist/run-export-ICTZITXC.js +10 -0
- package/dist/run-export-ICTZITXC.js.map +1 -0
- package/dist/settings/index.d.ts +28 -0
- package/dist/settings/index.js +12 -0
- package/dist/settings/index.js.map +1 -0
- package/package.json +24 -9
- package/src/AppMenu/AppMenu.tsx +169 -99
- package/src/AppMenu/index.ts +1 -1
- package/src/DocBlocksShell/DocBlocksShell.tsx +2157 -537
- package/src/DocBlocksShell/LazyEditorShell.ts +2 -0
- package/src/DocBlocksShell/UpdateAvailableNotice.tsx +60 -0
- package/src/DocBlocksShell/document-title.ts +19 -0
- package/src/DocBlocksShell/workspace-authority-barrier.ts +26 -0
- package/src/Export/DeferredExportToolbarControls.tsx +23 -0
- package/src/Export/ExportDialog.tsx +74 -20
- package/src/Export/ExportToolbarControls.tsx +238 -40
- package/src/Export/export-destination.ts +30 -0
- package/src/Export/index.ts +18 -4
- package/src/Export/public-api.ts +17 -0
- package/src/Export/run-export.ts +36 -11
- package/src/FileExplorer/FileExplorer.tsx +284 -38
- package/src/FileExplorer/FileTreeNode.tsx +100 -8
- package/src/FileExplorer/index.ts +1 -1
- package/src/FileExplorer/useFileTree.ts +190 -16
- package/src/Git/GitAuthGuidanceDialog.tsx +84 -0
- package/src/Git/GitBranchesDialog.tsx +144 -0
- package/src/Git/GitCloneDialog.tsx +200 -0
- package/src/Git/GitCommitDialog.tsx +119 -0
- package/src/Git/GitConflictsDialog.tsx +62 -0
- package/src/Git/GitContext.tsx +88 -0
- package/src/Git/GitDiffDialog.tsx +147 -0
- package/src/Git/GitDiffView.tsx +105 -0
- package/src/Git/GitHistoryDialog.tsx +195 -0
- package/src/Git/GitStatusBar.tsx +157 -0
- package/src/Git/GitToolbarControl.tsx +123 -0
- package/src/Git/GitUI.tsx +68 -0
- package/src/Git/commit-selection.ts +63 -0
- package/src/Git/git-clone-utils.ts +23 -0
- package/src/Git/git-status.ts +113 -0
- package/src/Git/useGit.ts +279 -0
- package/src/Git/useGitStatus.ts +78 -0
- package/src/Settings/Settings.tsx +118 -0
- package/src/Settings/public-api.ts +8 -0
- package/src/WorkspacePicker/WorkspacePicker.tsx +62 -8
- package/src/components/Dialog.tsx +81 -0
- package/src/editor.ts +72 -0
- package/src/hooks/index.ts +2 -1
- package/src/hooks/useDocumentSession.ts +37 -0
- package/src/icons.tsx +33 -55
- package/src/index.ts +35 -5
- package/src/preferences/theme.ts +67 -0
- package/src/provider-lease.ts +52 -0
- package/src/styles/docblocks.css +2174 -79
- package/src/types/pwa-dom.d.ts +31 -0
- package/dist/hooks/useAutoSave.d.ts +0 -15
- package/dist/hooks/useAutoSave.d.ts.map +0 -1
- package/dist/hooks/useAutoSave.js +0 -83
- package/dist/hooks/useAutoSave.js.map +0 -1
- package/dist/monaco-slim.d.ts +0 -19
- package/dist/monaco-slim.d.ts.map +0 -1
- package/dist/monaco-slim.js +0 -19
- package/dist/monaco-slim.js.map +0 -1
- package/src/fonts/fonts.css +0 -362
- package/src/fonts/licenses/LICENSE-cormorant-garamond.txt +0 -93
- package/src/fonts/licenses/LICENSE-crimson-text.txt +0 -93
- package/src/fonts/licenses/LICENSE-dm-sans.txt +0 -93
- package/src/fonts/licenses/LICENSE-dm-serif-display.txt +0 -93
- package/src/fonts/licenses/LICENSE-hanken-grotesk.txt +0 -94
- package/src/fonts/licenses/LICENSE-ibm-plex-sans.txt +0 -93
- package/src/fonts/licenses/LICENSE-inter.txt +0 -93
- package/src/fonts/licenses/LICENSE-jetbrains-mono.txt +0 -93
- package/src/fonts/licenses/LICENSE-lora.txt +0 -93
- package/src/fonts/licenses/LICENSE-merriweather.txt +0 -93
- package/src/fonts/licenses/LICENSE-oswald.txt +0 -93
- package/src/fonts/licenses/LICENSE-playfair-display.txt +0 -93
- package/src/fonts/licenses/LICENSE-pt-serif.txt +0 -93
- package/src/fonts/licenses/LICENSE-roboto.txt +0 -93
- package/src/fonts/licenses/LICENSE-source-serif-4.txt +0 -93
- package/src/fonts/woff2/cormorant-garamond-400.woff2 +0 -0
- package/src/fonts/woff2/cormorant-garamond-700.woff2 +0 -0
- package/src/fonts/woff2/crimson-text-400.woff2 +0 -0
- package/src/fonts/woff2/crimson-text-400i.woff2 +0 -0
- package/src/fonts/woff2/crimson-text-700.woff2 +0 -0
- package/src/fonts/woff2/dm-sans-400.woff2 +0 -0
- package/src/fonts/woff2/dm-sans-400i.woff2 +0 -0
- package/src/fonts/woff2/dm-sans-500.woff2 +0 -0
- package/src/fonts/woff2/dm-sans-700.woff2 +0 -0
- package/src/fonts/woff2/dm-serif-display-400.woff2 +0 -0
- package/src/fonts/woff2/hanken-grotesk-400.woff2 +0 -0
- package/src/fonts/woff2/hanken-grotesk-400i.woff2 +0 -0
- package/src/fonts/woff2/hanken-grotesk-500.woff2 +0 -0
- package/src/fonts/woff2/hanken-grotesk-600.woff2 +0 -0
- package/src/fonts/woff2/hanken-grotesk-700.woff2 +0 -0
- package/src/fonts/woff2/ibm-plex-sans-400.woff2 +0 -0
- package/src/fonts/woff2/ibm-plex-sans-400i.woff2 +0 -0
- package/src/fonts/woff2/ibm-plex-sans-500.woff2 +0 -0
- package/src/fonts/woff2/ibm-plex-sans-600.woff2 +0 -0
- package/src/fonts/woff2/ibm-plex-sans-700.woff2 +0 -0
- package/src/fonts/woff2/inter-400.woff2 +0 -0
- package/src/fonts/woff2/inter-400i.woff2 +0 -0
- package/src/fonts/woff2/inter-500.woff2 +0 -0
- package/src/fonts/woff2/inter-600.woff2 +0 -0
- package/src/fonts/woff2/inter-700.woff2 +0 -0
- package/src/fonts/woff2/jetbrains-mono-400.woff2 +0 -0
- package/src/fonts/woff2/jetbrains-mono-400i.woff2 +0 -0
- package/src/fonts/woff2/jetbrains-mono-700.woff2 +0 -0
- package/src/fonts/woff2/lora-400.woff2 +0 -0
- package/src/fonts/woff2/lora-400i.woff2 +0 -0
- package/src/fonts/woff2/lora-700.woff2 +0 -0
- package/src/fonts/woff2/merriweather-400.woff2 +0 -0
- package/src/fonts/woff2/merriweather-700.woff2 +0 -0
- package/src/fonts/woff2/oswald-400.woff2 +0 -0
- package/src/fonts/woff2/oswald-700.woff2 +0 -0
- package/src/fonts/woff2/playfair-display-400.woff2 +0 -0
- package/src/fonts/woff2/playfair-display-700.woff2 +0 -0
- package/src/fonts/woff2/pt-serif-400.woff2 +0 -0
- package/src/fonts/woff2/pt-serif-700.woff2 +0 -0
- package/src/fonts/woff2/roboto-400.woff2 +0 -0
- package/src/fonts/woff2/roboto-400i.woff2 +0 -0
- package/src/fonts/woff2/roboto-700.woff2 +0 -0
- package/src/fonts/woff2/source-serif-4-400.woff2 +0 -0
- package/src/fonts/woff2/source-serif-4-400i.woff2 +0 -0
- package/src/fonts/woff2/source-serif-4-700.woff2 +0 -0
- package/src/hooks/useAutoSave.ts +0 -116
- package/src/monaco-slim.ts +0 -20
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ambient declarations for PWA browser APIs that TypeScript's lib.dom does
|
|
3
|
+
* not ship yet: the Chromium install-prompt event and the launchQueue
|
|
4
|
+
* file-handling API. Both are Chromium-only — always feature-detect before
|
|
5
|
+
* use; on other engines the events simply never fire and `launchQueue` is
|
|
6
|
+
* undefined.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
interface BeforeInstallPromptEvent extends Event {
|
|
10
|
+
/** Shows the browser install prompt. Callable at most once per event. */
|
|
11
|
+
prompt(): Promise<void>;
|
|
12
|
+
readonly userChoice: Promise<{ outcome: 'accepted' | 'dismissed'; platform: string }>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface LaunchParams {
|
|
16
|
+
readonly files: ReadonlyArray<FileSystemFileHandle>;
|
|
17
|
+
readonly targetURL?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface LaunchQueue {
|
|
21
|
+
setConsumer(consumer: (params: LaunchParams) => void): void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface Window {
|
|
25
|
+
launchQueue?: LaunchQueue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface WindowEventMap {
|
|
29
|
+
beforeinstallprompt: BeforeInstallPromptEvent;
|
|
30
|
+
appinstalled: Event;
|
|
31
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useAutoSave — debounced auto-save hook.
|
|
3
|
-
*
|
|
4
|
-
* Writes content to the FileSystemProvider after a delay
|
|
5
|
-
* whenever the content changes. Returns a `flush` function so callers
|
|
6
|
-
* (e.g. an explicit Ctrl/Cmd+S handler) can force an immediate write
|
|
7
|
-
* and await its completion.
|
|
8
|
-
*/
|
|
9
|
-
import type { FileSystemProvider } from '@bendyline/docblocks/filesystem';
|
|
10
|
-
export interface UseAutoSaveResult {
|
|
11
|
-
/** Cancel any pending debounce and write the current content immediately. */
|
|
12
|
-
flush: () => Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare function useAutoSave(provider: FileSystemProvider | null, filePath: string | null, content: string, delayMs?: number, onSaved?: (filePath: string, content: string) => void): UseAutoSaveResult;
|
|
15
|
-
//# sourceMappingURL=useAutoSave.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoSave.d.ts","sourceRoot":"","sources":["../../src/hooks/useAutoSave.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,iBAAiB;IAChC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,kBAAkB,GAAG,IAAI,EACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,SAAM,EACb,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GACpD,iBAAiB,CA4FnB"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useAutoSave — debounced auto-save hook.
|
|
3
|
-
*
|
|
4
|
-
* Writes content to the FileSystemProvider after a delay
|
|
5
|
-
* whenever the content changes. Returns a `flush` function so callers
|
|
6
|
-
* (e.g. an explicit Ctrl/Cmd+S handler) can force an immediate write
|
|
7
|
-
* and await its completion.
|
|
8
|
-
*/
|
|
9
|
-
import { useEffect, useRef, useCallback } from 'react';
|
|
10
|
-
export function useAutoSave(provider, filePath, content, delayMs = 500, onSaved) {
|
|
11
|
-
const timerRef = useRef(null);
|
|
12
|
-
const contentRef = useRef(content);
|
|
13
|
-
const onSavedRef = useRef(onSaved);
|
|
14
|
-
const targetRef = useRef(null);
|
|
15
|
-
const clearTimer = useCallback(() => {
|
|
16
|
-
if (timerRef.current) {
|
|
17
|
-
clearTimeout(timerRef.current);
|
|
18
|
-
timerRef.current = null;
|
|
19
|
-
}
|
|
20
|
-
}, []);
|
|
21
|
-
const flushTarget = useCallback(async (target, nextContent) => {
|
|
22
|
-
if (nextContent === target.lastSaved)
|
|
23
|
-
return;
|
|
24
|
-
const previous = target.lastSaved;
|
|
25
|
-
target.lastSaved = nextContent;
|
|
26
|
-
try {
|
|
27
|
-
await target.provider.writeFile(target.filePath, nextContent);
|
|
28
|
-
onSavedRef.current?.(target.filePath, nextContent);
|
|
29
|
-
}
|
|
30
|
-
catch (err) {
|
|
31
|
-
target.lastSaved = previous;
|
|
32
|
-
throw err;
|
|
33
|
-
}
|
|
34
|
-
}, []);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
onSavedRef.current = onSaved;
|
|
37
|
-
}, [onSaved]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
contentRef.current = content;
|
|
40
|
-
}, [content]);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
clearTimer();
|
|
43
|
-
targetRef.current = provider && filePath ? { provider, filePath, lastSaved: content } : null;
|
|
44
|
-
contentRef.current = content;
|
|
45
|
-
return () => {
|
|
46
|
-
clearTimer();
|
|
47
|
-
const target = targetRef.current;
|
|
48
|
-
if (target) {
|
|
49
|
-
void flushTarget(target, contentRef.current).catch(() => undefined);
|
|
50
|
-
}
|
|
51
|
-
targetRef.current = null;
|
|
52
|
-
};
|
|
53
|
-
// `content` is intentionally captured only when the save target changes.
|
|
54
|
-
// Content edits are handled by the debounced effect below.
|
|
55
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
|
-
}, [provider, filePath, clearTimer, flushTarget]);
|
|
57
|
-
useEffect(() => {
|
|
58
|
-
const target = targetRef.current;
|
|
59
|
-
if (!target)
|
|
60
|
-
return;
|
|
61
|
-
clearTimer();
|
|
62
|
-
if (content !== target.lastSaved) {
|
|
63
|
-
timerRef.current = setTimeout(() => {
|
|
64
|
-
const currentTarget = targetRef.current;
|
|
65
|
-
if (!currentTarget)
|
|
66
|
-
return;
|
|
67
|
-
void flushTarget(currentTarget, contentRef.current).catch(() => undefined);
|
|
68
|
-
}, delayMs);
|
|
69
|
-
}
|
|
70
|
-
return () => {
|
|
71
|
-
clearTimer();
|
|
72
|
-
};
|
|
73
|
-
}, [content, delayMs, clearTimer, flushTarget]);
|
|
74
|
-
const flush = useCallback(async () => {
|
|
75
|
-
clearTimer();
|
|
76
|
-
const target = targetRef.current;
|
|
77
|
-
if (!target)
|
|
78
|
-
return;
|
|
79
|
-
await flushTarget(target, contentRef.current);
|
|
80
|
-
}, [clearTimer, flushTarget]);
|
|
81
|
-
return { flush };
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=useAutoSave.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoSave.js","sourceRoot":"","sources":["../../src/hooks/useAutoSave.ts"],"names":[],"mappings":"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"}
|
package/dist/monaco-slim.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slim Monaco editor bundle for DocBlocks browser surfaces.
|
|
3
|
-
*
|
|
4
|
-
* Squisq's raw editor lazy-loads `monaco-editor/esm/vs/editor/editor.main.js`
|
|
5
|
-
* so syntax highlighting works in raw mode. Alias both that subpath and the
|
|
6
|
-
* bare `monaco-editor` specifier to this file to keep the lazy chunk focused
|
|
7
|
-
* on markdown plus the languages users most often place in fenced blocks.
|
|
8
|
-
*/
|
|
9
|
-
export * from 'monaco-editor/esm/vs/editor/editor.api';
|
|
10
|
-
import 'monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution';
|
|
11
|
-
import 'monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution';
|
|
12
|
-
import 'monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution';
|
|
13
|
-
import 'monaco-editor/esm/vs/basic-languages/html/html.contribution';
|
|
14
|
-
import 'monaco-editor/esm/vs/basic-languages/css/css.contribution';
|
|
15
|
-
import 'monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution';
|
|
16
|
-
import 'monaco-editor/esm/vs/basic-languages/python/python.contribution';
|
|
17
|
-
import 'monaco-editor/esm/vs/basic-languages/shell/shell.contribution';
|
|
18
|
-
import 'monaco-editor/esm/vs/basic-languages/xml/xml.contribution';
|
|
19
|
-
//# sourceMappingURL=monaco-slim.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-slim.d.ts","sourceRoot":"","sources":["../src/monaco-slim.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,wCAAwC,CAAC;AAEvD,OAAO,qEAAqE,CAAC;AAC7E,OAAO,yEAAyE,CAAC;AACjF,OAAO,yEAAyE,CAAC;AACjF,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AACnE,OAAO,6DAA6D,CAAC;AACrE,OAAO,iEAAiE,CAAC;AACzE,OAAO,+DAA+D,CAAC;AACvE,OAAO,2DAA2D,CAAC"}
|
package/dist/monaco-slim.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slim Monaco editor bundle for DocBlocks browser surfaces.
|
|
3
|
-
*
|
|
4
|
-
* Squisq's raw editor lazy-loads `monaco-editor/esm/vs/editor/editor.main.js`
|
|
5
|
-
* so syntax highlighting works in raw mode. Alias both that subpath and the
|
|
6
|
-
* bare `monaco-editor` specifier to this file to keep the lazy chunk focused
|
|
7
|
-
* on markdown plus the languages users most often place in fenced blocks.
|
|
8
|
-
*/
|
|
9
|
-
export * from 'monaco-editor/esm/vs/editor/editor.api';
|
|
10
|
-
import 'monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution';
|
|
11
|
-
import 'monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution';
|
|
12
|
-
import 'monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution';
|
|
13
|
-
import 'monaco-editor/esm/vs/basic-languages/html/html.contribution';
|
|
14
|
-
import 'monaco-editor/esm/vs/basic-languages/css/css.contribution';
|
|
15
|
-
import 'monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution';
|
|
16
|
-
import 'monaco-editor/esm/vs/basic-languages/python/python.contribution';
|
|
17
|
-
import 'monaco-editor/esm/vs/basic-languages/shell/shell.contribution';
|
|
18
|
-
import 'monaco-editor/esm/vs/basic-languages/xml/xml.contribution';
|
|
19
|
-
//# sourceMappingURL=monaco-slim.js.map
|
package/dist/monaco-slim.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-slim.js","sourceRoot":"","sources":["../src/monaco-slim.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,wCAAwC,CAAC;AAEvD,OAAO,qEAAqE,CAAC;AAC7E,OAAO,yEAAyE,CAAC;AACjF,OAAO,yEAAyE,CAAC;AACjF,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AACnE,OAAO,6DAA6D,CAAC;AACrE,OAAO,iEAAiE,CAAC;AACzE,OAAO,+DAA+D,CAAC;AACvE,OAAO,2DAA2D,CAAC"}
|
package/src/fonts/fonts.css
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
/* Google Fonts - Latin subset, self-hosted WOFF2 */
|
|
2
|
-
/* See licenses/ directory for individual font licenses */
|
|
3
|
-
|
|
4
|
-
@font-face {
|
|
5
|
-
font-family: 'Playfair Display';
|
|
6
|
-
font-style: normal;
|
|
7
|
-
font-weight: 400;
|
|
8
|
-
font-display: swap;
|
|
9
|
-
src: url('./woff2/playfair-display-400.woff2') format('woff2');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@font-face {
|
|
13
|
-
font-family: 'Playfair Display';
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: 700;
|
|
16
|
-
font-display: swap;
|
|
17
|
-
src: url('./woff2/playfair-display-700.woff2') format('woff2');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: 'Oswald';
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
font-display: swap;
|
|
25
|
-
src: url('./woff2/oswald-400.woff2') format('woff2');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@font-face {
|
|
29
|
-
font-family: 'Oswald';
|
|
30
|
-
font-style: normal;
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
font-display: swap;
|
|
33
|
-
src: url('./woff2/oswald-700.woff2') format('woff2');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@font-face {
|
|
37
|
-
font-family: 'Merriweather';
|
|
38
|
-
font-style: normal;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
font-display: swap;
|
|
41
|
-
src: url('./woff2/merriweather-400.woff2') format('woff2');
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@font-face {
|
|
45
|
-
font-family: 'Merriweather';
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-weight: 700;
|
|
48
|
-
font-display: swap;
|
|
49
|
-
src: url('./woff2/merriweather-700.woff2') format('woff2');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@font-face {
|
|
53
|
-
font-family: 'DM Serif Display';
|
|
54
|
-
font-style: normal;
|
|
55
|
-
font-weight: 400;
|
|
56
|
-
font-display: swap;
|
|
57
|
-
src: url('./woff2/dm-serif-display-400.woff2') format('woff2');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@font-face {
|
|
61
|
-
font-family: 'Cormorant Garamond';
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-weight: 400;
|
|
64
|
-
font-display: swap;
|
|
65
|
-
src: url('./woff2/cormorant-garamond-400.woff2') format('woff2');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@font-face {
|
|
69
|
-
font-family: 'Cormorant Garamond';
|
|
70
|
-
font-style: normal;
|
|
71
|
-
font-weight: 700;
|
|
72
|
-
font-display: swap;
|
|
73
|
-
src: url('./woff2/cormorant-garamond-700.woff2') format('woff2');
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@font-face {
|
|
77
|
-
font-family: 'PT Serif';
|
|
78
|
-
font-style: normal;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
font-display: swap;
|
|
81
|
-
src: url('./woff2/pt-serif-400.woff2') format('woff2');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@font-face {
|
|
85
|
-
font-family: 'PT Serif';
|
|
86
|
-
font-style: normal;
|
|
87
|
-
font-weight: 700;
|
|
88
|
-
font-display: swap;
|
|
89
|
-
src: url('./woff2/pt-serif-700.woff2') format('woff2');
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@font-face {
|
|
93
|
-
font-family: 'Source Serif 4';
|
|
94
|
-
font-style: italic;
|
|
95
|
-
font-weight: 400;
|
|
96
|
-
font-display: swap;
|
|
97
|
-
src: url('./woff2/source-serif-4-400i.woff2') format('woff2');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@font-face {
|
|
101
|
-
font-family: 'Source Serif 4';
|
|
102
|
-
font-style: normal;
|
|
103
|
-
font-weight: 400;
|
|
104
|
-
font-display: swap;
|
|
105
|
-
src: url('./woff2/source-serif-4-400.woff2') format('woff2');
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@font-face {
|
|
109
|
-
font-family: 'Source Serif 4';
|
|
110
|
-
font-style: normal;
|
|
111
|
-
font-weight: 700;
|
|
112
|
-
font-display: swap;
|
|
113
|
-
src: url('./woff2/source-serif-4-700.woff2') format('woff2');
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@font-face {
|
|
117
|
-
font-family: 'Roboto';
|
|
118
|
-
font-style: italic;
|
|
119
|
-
font-weight: 400;
|
|
120
|
-
font-display: swap;
|
|
121
|
-
src: url('./woff2/roboto-400i.woff2') format('woff2');
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@font-face {
|
|
125
|
-
font-family: 'Roboto';
|
|
126
|
-
font-style: normal;
|
|
127
|
-
font-weight: 400;
|
|
128
|
-
font-display: swap;
|
|
129
|
-
src: url('./woff2/roboto-400.woff2') format('woff2');
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@font-face {
|
|
133
|
-
font-family: 'Roboto';
|
|
134
|
-
font-style: normal;
|
|
135
|
-
font-weight: 700;
|
|
136
|
-
font-display: swap;
|
|
137
|
-
src: url('./woff2/roboto-700.woff2') format('woff2');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@font-face {
|
|
141
|
-
font-family: 'Lora';
|
|
142
|
-
font-style: italic;
|
|
143
|
-
font-weight: 400;
|
|
144
|
-
font-display: swap;
|
|
145
|
-
src: url('./woff2/lora-400i.woff2') format('woff2');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@font-face {
|
|
149
|
-
font-family: 'Lora';
|
|
150
|
-
font-style: normal;
|
|
151
|
-
font-weight: 400;
|
|
152
|
-
font-display: swap;
|
|
153
|
-
src: url('./woff2/lora-400.woff2') format('woff2');
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@font-face {
|
|
157
|
-
font-family: 'Lora';
|
|
158
|
-
font-style: normal;
|
|
159
|
-
font-weight: 700;
|
|
160
|
-
font-display: swap;
|
|
161
|
-
src: url('./woff2/lora-700.woff2') format('woff2');
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@font-face {
|
|
165
|
-
font-family: 'IBM Plex Sans';
|
|
166
|
-
font-style: italic;
|
|
167
|
-
font-weight: 400;
|
|
168
|
-
font-display: swap;
|
|
169
|
-
src: url('./woff2/ibm-plex-sans-400i.woff2') format('woff2');
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@font-face {
|
|
173
|
-
font-family: 'IBM Plex Sans';
|
|
174
|
-
font-style: normal;
|
|
175
|
-
font-weight: 400;
|
|
176
|
-
font-display: swap;
|
|
177
|
-
src: url('./woff2/ibm-plex-sans-400.woff2') format('woff2');
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@font-face {
|
|
181
|
-
font-family: 'IBM Plex Sans';
|
|
182
|
-
font-style: normal;
|
|
183
|
-
font-weight: 500;
|
|
184
|
-
font-display: swap;
|
|
185
|
-
src: url('./woff2/ibm-plex-sans-500.woff2') format('woff2');
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@font-face {
|
|
189
|
-
font-family: 'IBM Plex Sans';
|
|
190
|
-
font-style: normal;
|
|
191
|
-
font-weight: 600;
|
|
192
|
-
font-display: swap;
|
|
193
|
-
src: url('./woff2/ibm-plex-sans-600.woff2') format('woff2');
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
@font-face {
|
|
197
|
-
font-family: 'IBM Plex Sans';
|
|
198
|
-
font-style: normal;
|
|
199
|
-
font-weight: 700;
|
|
200
|
-
font-display: swap;
|
|
201
|
-
src: url('./woff2/ibm-plex-sans-700.woff2') format('woff2');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@font-face {
|
|
205
|
-
font-family: 'DM Sans';
|
|
206
|
-
font-style: italic;
|
|
207
|
-
font-weight: 400;
|
|
208
|
-
font-display: swap;
|
|
209
|
-
src: url('./woff2/dm-sans-400i.woff2') format('woff2');
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
@font-face {
|
|
213
|
-
font-family: 'DM Sans';
|
|
214
|
-
font-style: normal;
|
|
215
|
-
font-weight: 400;
|
|
216
|
-
font-display: swap;
|
|
217
|
-
src: url('./woff2/dm-sans-400.woff2') format('woff2');
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@font-face {
|
|
221
|
-
font-family: 'DM Sans';
|
|
222
|
-
font-style: normal;
|
|
223
|
-
font-weight: 500;
|
|
224
|
-
font-display: swap;
|
|
225
|
-
src: url('./woff2/dm-sans-500.woff2') format('woff2');
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
@font-face {
|
|
229
|
-
font-family: 'DM Sans';
|
|
230
|
-
font-style: normal;
|
|
231
|
-
font-weight: 700;
|
|
232
|
-
font-display: swap;
|
|
233
|
-
src: url('./woff2/dm-sans-700.woff2') format('woff2');
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@font-face {
|
|
237
|
-
font-family: 'Crimson Text';
|
|
238
|
-
font-style: italic;
|
|
239
|
-
font-weight: 400;
|
|
240
|
-
font-display: swap;
|
|
241
|
-
src: url('./woff2/crimson-text-400i.woff2') format('woff2');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@font-face {
|
|
245
|
-
font-family: 'Crimson Text';
|
|
246
|
-
font-style: normal;
|
|
247
|
-
font-weight: 400;
|
|
248
|
-
font-display: swap;
|
|
249
|
-
src: url('./woff2/crimson-text-400.woff2') format('woff2');
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
@font-face {
|
|
253
|
-
font-family: 'Crimson Text';
|
|
254
|
-
font-style: normal;
|
|
255
|
-
font-weight: 700;
|
|
256
|
-
font-display: swap;
|
|
257
|
-
src: url('./woff2/crimson-text-700.woff2') format('woff2');
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@font-face {
|
|
261
|
-
font-family: 'Hanken Grotesk';
|
|
262
|
-
font-style: italic;
|
|
263
|
-
font-weight: 400;
|
|
264
|
-
font-display: swap;
|
|
265
|
-
src: url('./woff2/hanken-grotesk-400i.woff2') format('woff2');
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@font-face {
|
|
269
|
-
font-family: 'Hanken Grotesk';
|
|
270
|
-
font-style: normal;
|
|
271
|
-
font-weight: 400;
|
|
272
|
-
font-display: swap;
|
|
273
|
-
src: url('./woff2/hanken-grotesk-400.woff2') format('woff2');
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
@font-face {
|
|
277
|
-
font-family: 'Hanken Grotesk';
|
|
278
|
-
font-style: normal;
|
|
279
|
-
font-weight: 500;
|
|
280
|
-
font-display: swap;
|
|
281
|
-
src: url('./woff2/hanken-grotesk-500.woff2') format('woff2');
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
@font-face {
|
|
285
|
-
font-family: 'Hanken Grotesk';
|
|
286
|
-
font-style: normal;
|
|
287
|
-
font-weight: 600;
|
|
288
|
-
font-display: swap;
|
|
289
|
-
src: url('./woff2/hanken-grotesk-600.woff2') format('woff2');
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
@font-face {
|
|
293
|
-
font-family: 'Hanken Grotesk';
|
|
294
|
-
font-style: normal;
|
|
295
|
-
font-weight: 700;
|
|
296
|
-
font-display: swap;
|
|
297
|
-
src: url('./woff2/hanken-grotesk-700.woff2') format('woff2');
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
@font-face {
|
|
301
|
-
font-family: 'Inter';
|
|
302
|
-
font-style: italic;
|
|
303
|
-
font-weight: 400;
|
|
304
|
-
font-display: swap;
|
|
305
|
-
src: url('./woff2/inter-400i.woff2') format('woff2');
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
@font-face {
|
|
309
|
-
font-family: 'Inter';
|
|
310
|
-
font-style: normal;
|
|
311
|
-
font-weight: 400;
|
|
312
|
-
font-display: swap;
|
|
313
|
-
src: url('./woff2/inter-400.woff2') format('woff2');
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
@font-face {
|
|
317
|
-
font-family: 'Inter';
|
|
318
|
-
font-style: normal;
|
|
319
|
-
font-weight: 500;
|
|
320
|
-
font-display: swap;
|
|
321
|
-
src: url('./woff2/inter-500.woff2') format('woff2');
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
@font-face {
|
|
325
|
-
font-family: 'Inter';
|
|
326
|
-
font-style: normal;
|
|
327
|
-
font-weight: 600;
|
|
328
|
-
font-display: swap;
|
|
329
|
-
src: url('./woff2/inter-600.woff2') format('woff2');
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
@font-face {
|
|
333
|
-
font-family: 'Inter';
|
|
334
|
-
font-style: normal;
|
|
335
|
-
font-weight: 700;
|
|
336
|
-
font-display: swap;
|
|
337
|
-
src: url('./woff2/inter-700.woff2') format('woff2');
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
@font-face {
|
|
341
|
-
font-family: 'JetBrains Mono';
|
|
342
|
-
font-style: italic;
|
|
343
|
-
font-weight: 400;
|
|
344
|
-
font-display: swap;
|
|
345
|
-
src: url('./woff2/jetbrains-mono-400i.woff2') format('woff2');
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
@font-face {
|
|
349
|
-
font-family: 'JetBrains Mono';
|
|
350
|
-
font-style: normal;
|
|
351
|
-
font-weight: 400;
|
|
352
|
-
font-display: swap;
|
|
353
|
-
src: url('./woff2/jetbrains-mono-400.woff2') format('woff2');
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
@font-face {
|
|
357
|
-
font-family: 'JetBrains Mono';
|
|
358
|
-
font-style: normal;
|
|
359
|
-
font-weight: 700;
|
|
360
|
-
font-display: swap;
|
|
361
|
-
src: url('./woff2/jetbrains-mono-700.woff2') format('woff2');
|
|
362
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Copyright 2015 the Cormorant Project Authors (github.com/CatharsisFonts/Cormorant)
|
|
2
|
-
|
|
3
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
This license is copied below, and is also available with a FAQ at:
|
|
5
|
-
https://scripts.sil.org/OFL
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-----------------------------------------------------------
|
|
9
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
-
-----------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
PREAMBLE
|
|
13
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
-
development of collaborative font projects, to support the font creation
|
|
15
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
-
open framework in which fonts may be shared and improved in partnership
|
|
17
|
-
with others.
|
|
18
|
-
|
|
19
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
-
redistributed and/or sold with any software provided that any reserved
|
|
23
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
-
however, cannot be released under any other type of license. The
|
|
25
|
-
requirement for fonts to remain under this license does not apply
|
|
26
|
-
to any document created using the fonts or their derivatives.
|
|
27
|
-
|
|
28
|
-
DEFINITIONS
|
|
29
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
-
include source files, build scripts and documentation.
|
|
32
|
-
|
|
33
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
-
copyright statement(s).
|
|
35
|
-
|
|
36
|
-
"Original Version" refers to the collection of Font Software components as
|
|
37
|
-
distributed by the Copyright Holder(s).
|
|
38
|
-
|
|
39
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
-
new environment.
|
|
43
|
-
|
|
44
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
-
writer or other person who contributed to the Font Software.
|
|
46
|
-
|
|
47
|
-
PERMISSION & CONDITIONS
|
|
48
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
-
Software, subject to the following conditions:
|
|
52
|
-
|
|
53
|
-
1) Neither the Font Software nor any of its individual components,
|
|
54
|
-
in Original or Modified Versions, may be sold by itself.
|
|
55
|
-
|
|
56
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
-
redistributed and/or sold with any software, provided that each copy
|
|
58
|
-
contains the above copyright notice and this license. These can be
|
|
59
|
-
included either as stand-alone text files, human-readable headers or
|
|
60
|
-
in the appropriate machine-readable metadata fields within text or
|
|
61
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
-
|
|
63
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
-
presented to the users.
|
|
67
|
-
|
|
68
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
-
Software shall not be used to promote, endorse or advertise any
|
|
70
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
-
permission.
|
|
73
|
-
|
|
74
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
-
must be distributed entirely under this license, and must not be
|
|
76
|
-
distributed under any other license. The requirement for fonts to
|
|
77
|
-
remain under this license does not apply to any document created
|
|
78
|
-
using the Font Software.
|
|
79
|
-
|
|
80
|
-
TERMINATION
|
|
81
|
-
This license becomes null and void if any of the above conditions are
|
|
82
|
-
not met.
|
|
83
|
-
|
|
84
|
-
DISCLAIMER
|
|
85
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|