@bendyline/squisq-editor-react 2.11.23 → 2.11.24
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/dist/{chunk-JGIETDY5.js → chunk-E7JVS6N5.js} +1 -1
- package/dist/{chunk-SAKLIEOX.js → chunk-VRRT4WP4.js} +3 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/proofing/index.d.ts +2 -2
- package/dist/proofing/index.js +1 -1
- package/dist/review/index.d.ts +1 -1
- package/dist/shell/index.d.ts +2 -2
- package/dist/shell/index.js +1 -1
- package/dist/{shell-BVxeKlCx.d.ts → shell-Cg6Px8fs.d.ts} +1 -1
- package/dist/{types-De4z-gGb.d.ts → types-qxwhho3e.d.ts} +6 -0
- package/package.json +4 -4
|
@@ -4507,7 +4507,7 @@ function collectTextblockRuns(doc) {
|
|
|
4507
4507
|
node2.descendants((child, offset) => {
|
|
4508
4508
|
if (child.isText && child.text) {
|
|
4509
4509
|
if (child.marks.some((mark) => mark.type.name === "code")) {
|
|
4510
|
-
text += "
|
|
4510
|
+
text += "\0".repeat(child.text.length);
|
|
4511
4511
|
return true;
|
|
4512
4512
|
}
|
|
4513
4513
|
const from = text.length;
|
|
@@ -24,6 +24,9 @@ function createHarperProofingProvider(config = {}) {
|
|
|
24
24
|
const init = { binary, dialect };
|
|
25
25
|
const linter = typeof Worker !== "undefined" ? new harper.WorkerLinter(init) : new harper.LocalLinter(init);
|
|
26
26
|
await linter.setup();
|
|
27
|
+
if (config.lintConfig) {
|
|
28
|
+
await linter.setLintConfig({ ...await linter.getLintConfig(), ...config.lintConfig });
|
|
29
|
+
}
|
|
27
30
|
if (words.size > 0) await linter.importWords([...words]);
|
|
28
31
|
return { harper, linter };
|
|
29
32
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CodeContext, E as EditorHostMode, S as SceneTextChannel, a as CalcEngineFactory, b as EditorView$1, c as CsvSourceMeta, X as XlsxSourceMeta, F as FormulaEditRecord } from './shell-
|
|
2
|
-
export { A as ApplySourceEditsOptions, B as BlockInsertionBuilder, d as BlockInsertionContext, e as BlockPlacement, f as BlockRange, g as BlockSlice, h as BlockTagVisibility, i as CodeContextSection, j as CoverImageSaveOutput, D as DashboardImageSaveOutput, k as DocumentLinkCandidate, l as DocumentLinkProvider, m as EditorActions, n as EditorColorScheme, o as EditorContextMenuContext, p as EditorContextMenuItem, q as EditorContextMenuItemVisibility, r as EditorContextMenuProvider, s as EditorContextMenuProviderProps, t as EditorContextValue, u as EditorInsertMenuItem, v as EditorMode, w as EditorProvider, x as EditorProviderProps, y as EditorSelectionInfo, z as EditorShell, G as EditorShellProps, H as EditorState, I as FindOptions, J as FindRequest, K as FormulaSessionOptions, L as ImageDisplayMode, M as IngestedSidecar, N as InsertBlockOptions, O as LayoutMode, P as MentionCandidate, Q as MentionProvider, R as OutlineBlock, T as OutlineInsertion, U as PreviewPanel, V as PreviewPanelProps, W as RawEditor, Y as RawEditorProps, Z as ThemeInheritance, _ as ViewPreferences, $ as WriteCanvasSettings, a0 as WysiwygEditor, a1 as WysiwygEditorProps, a2 as XLSX_LOCKED_REASON, a3 as XlsxFormulaSession, a4 as applySourceEditsToText, a5 as blockInsertionPoint, a6 as createXlsxFormulaSession, a7 as getBlockSlices, a8 as headingDepthForInsertion, a9 as ingestSidecarBytes, aa as joinBlockAt, ab as lineToOffset, ac as minimalReplaceEdit, ad as normalizeSourceEdits, ae as offsetToLine, af as resolveOutlineInsertion, ag as sliceIndexAtOffset, ah as sourceOutline, ai as spliceBlock, aj as useEditorContext, ak as useEditorContextMenuItems, al as useEditorInsertMenuItems } from './shell-
|
|
1
|
+
import { C as CodeContext, E as EditorHostMode, S as SceneTextChannel, a as CalcEngineFactory, b as EditorView$1, c as CsvSourceMeta, X as XlsxSourceMeta, F as FormulaEditRecord } from './shell-Cg6Px8fs.js';
|
|
2
|
+
export { A as ApplySourceEditsOptions, B as BlockInsertionBuilder, d as BlockInsertionContext, e as BlockPlacement, f as BlockRange, g as BlockSlice, h as BlockTagVisibility, i as CodeContextSection, j as CoverImageSaveOutput, D as DashboardImageSaveOutput, k as DocumentLinkCandidate, l as DocumentLinkProvider, m as EditorActions, n as EditorColorScheme, o as EditorContextMenuContext, p as EditorContextMenuItem, q as EditorContextMenuItemVisibility, r as EditorContextMenuProvider, s as EditorContextMenuProviderProps, t as EditorContextValue, u as EditorInsertMenuItem, v as EditorMode, w as EditorProvider, x as EditorProviderProps, y as EditorSelectionInfo, z as EditorShell, G as EditorShellProps, H as EditorState, I as FindOptions, J as FindRequest, K as FormulaSessionOptions, L as ImageDisplayMode, M as IngestedSidecar, N as InsertBlockOptions, O as LayoutMode, P as MentionCandidate, Q as MentionProvider, R as OutlineBlock, T as OutlineInsertion, U as PreviewPanel, V as PreviewPanelProps, W as RawEditor, Y as RawEditorProps, Z as ThemeInheritance, _ as ViewPreferences, $ as WriteCanvasSettings, a0 as WysiwygEditor, a1 as WysiwygEditorProps, a2 as XLSX_LOCKED_REASON, a3 as XlsxFormulaSession, a4 as applySourceEditsToText, a5 as blockInsertionPoint, a6 as createXlsxFormulaSession, a7 as getBlockSlices, a8 as headingDepthForInsertion, a9 as ingestSidecarBytes, aa as joinBlockAt, ab as lineToOffset, ac as minimalReplaceEdit, ad as normalizeSourceEdits, ae as offsetToLine, af as resolveOutlineInsertion, ag as sliceIndexAtOffset, ah as sourceOutline, ai as spliceBlock, aj as useEditorContext, ak as useEditorContextMenuItems, al as useEditorInsertMenuItems } from './shell-Cg6Px8fs.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, CSSProperties, ReactElement } from 'react';
|
|
5
5
|
import { Doc, ScheduledClip, VideoPlacement, VideoPipSize, VideoPipShape, VideoPipPosition, MediaEdits, MediaProvider, Theme, CustomTemplateDefinition, ThemeSeedColors, ViewportPreset, ViewportConfig, Block, MediaEntry, DiagramEdgeAnchor } from '@bendyline/squisq/schemas';
|
|
@@ -32,7 +32,7 @@ import { R as RecorderState } from './useNarrationStage-DlighI1z.js';
|
|
|
32
32
|
export { C as CanvasSink, a as CaptureKind, D as DEFAULT_TELEPROMPTER_PREFS, F as FloatOpenOptions, b as FloatTier, c as FloatingWindowHandle, d as FloatingWindowManager, M as MicAnalysisHandle, e as MicAnalysisStatus, N as NarrationRecorderController, f as NarrationRecorderState, g as NarrationStageHandle, h as NarrationTake, P as PrompterTransport, i as RecorderAudioBitrateMode, j as RecorderCameraLane, k as RecorderExtendedMediaOptions, l as RecorderSource, m as ResolvedFormat, T as TeleprompterController, n as TeleprompterPrefs, o as TeleprompterRecordingDeps, U as UseMediaRecorderOptions, p as UseMediaRecorderResult, q as UseNarrationStageOptions, r as buildFilename, s as createFloatingWindowManager, t as detectFloatTiers, u as getCaptureKind, v as resolveFormat, w as supportsDisplayMedia, x as supportsMediaRecorder, y as supportsUserMedia, z as useFloatingWindow, A as useMediaRecorder, B as useMicAnalysis, E as useNarrationRecorder, G as useNarrationStage, H as useTeleprompter, I as vadConfigForSensitivity } from './useNarrationStage-DlighI1z.js';
|
|
33
33
|
export { D as DEFAULT_RECORDER_DEVICE_SETTINGS, a as RecorderAudioDeviceSettings, b as RecorderCameraDeviceSettings, c as RecorderConstraintMode, R as RecorderDeviceSettings, d as RecorderEncodingSettings, e as RecorderScreenAudioSettings, f as RecorderScreenDeviceSettings, g as buildRecorderAudioConstraints, h as buildRecorderCameraConstraints, i as buildRecorderScreenAudioConstraints, j as buildRecorderScreenConstraints, r as recorderBitsPerSecond } from './deviceSettings-BSkIQncC.js';
|
|
34
34
|
export { EYE_LINE_FRACTION, ExecuteNarrationSaveDeps, NarrationSavePlan, NarrationSavePlanArgs, NarrationSaveProgress, NarrationSaveResult, NarrationStage, NarrationStageProps, PCM_WORKLET_NAME, PCM_WORKLET_SOURCE, TELEPROMPTER_CSS, TeleprompterControls, TeleprompterControlsProps, TeleprompterSurface, TeleprompterSurfaceProps, TeleprompterView, TeleprompterViewProps, TokenLineMap, buildNarrationSavePlan, cameraVideoLine, ensureTeleprompterStyles, executeNarrationSave, insertNarrationPreamble, measureTokenLines, narrationAnnotationLine, prompterVarsFromTheme, registerPcmWorklet, stepScroll, targetOffsetFor } from './teleprompter/index.js';
|
|
35
|
-
export { H as HarperProofingConfig, a as ProofingCapability, b as ProofingDocumentRef, c as ProofingIgnoreStore, d as ProofingLanguage, e as ProofingLintOptions, P as ProofingProvider, f as ProofingProviderFactory } from './types-
|
|
35
|
+
export { H as HarperProofingConfig, a as ProofingCapability, b as ProofingDocumentRef, c as ProofingIgnoreStore, d as ProofingLanguage, e as ProofingLintOptions, P as ProofingProvider, f as ProofingProviderFactory } from './types-qxwhho3e.js';
|
|
36
36
|
export { createHarperProofingProvider } from './proofing/index.js';
|
|
37
37
|
export { PROOF_DIALECTS, PROOF_FRONTMATTER_KEYS, ProofCategory, ProofDialect, ProofFinding, ProofRange, ProofSuggestion, ProofSuggestionKind } from '@bendyline/squisq/proof';
|
|
38
38
|
export { D as DictationControl, a as SPEECH_INPUT_SAMPLE_RATE, b as SpeechInputCapability, S as SpeechInputProvider, c as SpeechInputProviderFactory, d as SpeechInputReadiness, e as SpeechInputReadinessState, f as SpeechInputTranscribeOptions, g as SpeechInputTranscript, i as isSpeechInputProviderFactory, r as resolveSpeechInputProvider } from './types-Bi4ZVKvN.js';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PROOF_DIALECTS,
|
|
3
3
|
PROOF_FRONTMATTER_KEYS,
|
|
4
4
|
createHarperProofingProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VRRT4WP4.js";
|
|
6
6
|
import "./chunk-2MP7QE7O.js";
|
|
7
7
|
import {
|
|
8
8
|
configureMonacoWorkers
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
videoEmbedParagraphJson,
|
|
233
233
|
viewStateFromBinding,
|
|
234
234
|
writeHeadingViewState
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-E7JVS6N5.js";
|
|
236
236
|
import {
|
|
237
237
|
EditorProvider,
|
|
238
238
|
applySourceEditsToText,
|
package/dist/proofing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HarperProofingConfig, P as ProofingProvider } from '../types-
|
|
2
|
-
export { a as ProofingCapability, b as ProofingDocumentRef, c as ProofingIgnoreStore, d as ProofingLanguage, e as ProofingLintOptions, f as ProofingProviderFactory } from '../types-
|
|
1
|
+
import { H as HarperProofingConfig, P as ProofingProvider } from '../types-qxwhho3e.js';
|
|
2
|
+
export { a as ProofingCapability, b as ProofingDocumentRef, c as ProofingIgnoreStore, d as ProofingLanguage, e as ProofingLintOptions, f as ProofingProviderFactory } from '../types-qxwhho3e.js';
|
|
3
3
|
export { PROOF_DIALECTS, PROOF_FRONTMATTER_KEYS, ProofCategory, ProofDialect, ProofFinding, ProofRange, ProofSuggestion, ProofSuggestionKind } from '@bendyline/squisq/proof';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/proofing/index.js
CHANGED
package/dist/review/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Extension, Editor } from '@tiptap/core';
|
|
|
7
7
|
import { EditorState } from '@tiptap/pm/state';
|
|
8
8
|
import { Node } from '@tiptap/pm/model';
|
|
9
9
|
import { editor } from 'monaco-editor';
|
|
10
|
-
import { P as ProofingProvider } from '../types-
|
|
10
|
+
import { P as ProofingProvider } from '../types-qxwhho3e.js';
|
|
11
11
|
import '@bendyline/squisq/proof';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as BlockTagVisibility, k as DocumentLinkCandidate, l as DocumentLinkProvider, m as EditorActions, n as EditorColorScheme, o as EditorContextMenuContext, p as EditorContextMenuItem, q as EditorContextMenuItemVisibility, r as EditorContextMenuProvider, s as EditorContextMenuProviderProps, t as EditorContextValue, E as EditorHostMode, u as EditorInsertMenuItem, v as EditorMode, w as EditorProvider, x as EditorProviderProps, z as EditorShell, G as EditorShellProps, H as EditorState, b as EditorView, L as ImageDisplayMode, O as LayoutMode, P as MentionCandidate, Q as MentionProvider, U as PreviewPanel, V as PreviewPanelProps, W as RawEditor, Y as RawEditorProps, Z as ThemeInheritance, _ as ViewPreferences, a0 as WysiwygEditor, a1 as WysiwygEditorProps, aj as useEditorContext, ak as useEditorContextMenuItems, al as useEditorInsertMenuItems } from '../shell-
|
|
1
|
+
export { h as BlockTagVisibility, k as DocumentLinkCandidate, l as DocumentLinkProvider, m as EditorActions, n as EditorColorScheme, o as EditorContextMenuContext, p as EditorContextMenuItem, q as EditorContextMenuItemVisibility, r as EditorContextMenuProvider, s as EditorContextMenuProviderProps, t as EditorContextValue, E as EditorHostMode, u as EditorInsertMenuItem, v as EditorMode, w as EditorProvider, x as EditorProviderProps, z as EditorShell, G as EditorShellProps, H as EditorState, b as EditorView, L as ImageDisplayMode, O as LayoutMode, P as MentionCandidate, Q as MentionProvider, U as PreviewPanel, V as PreviewPanelProps, W as RawEditor, Y as RawEditorProps, Z as ThemeInheritance, _ as ViewPreferences, a0 as WysiwygEditor, a1 as WysiwygEditorProps, aj as useEditorContext, ak as useEditorContextMenuItems, al as useEditorInsertMenuItems } from '../shell-Cg6Px8fs.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@bendyline/squisq/table';
|
|
4
4
|
import '@bendyline/squisq-calc';
|
|
@@ -9,7 +9,7 @@ import '@bendyline/squisq/fence';
|
|
|
9
9
|
import '@bendyline/squisq-react';
|
|
10
10
|
import '@bendyline/squisq/markdown';
|
|
11
11
|
import '@bendyline/squisq/storage';
|
|
12
|
-
import '../types-
|
|
12
|
+
import '../types-qxwhho3e.js';
|
|
13
13
|
import '@bendyline/squisq/proof';
|
|
14
14
|
import '../types-Bi4ZVKvN.js';
|
|
15
15
|
import '@bendyline/squisq/versions';
|
package/dist/shell/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
|
9
9
|
import { CodeBlockCopyHandler } from '@bendyline/squisq-react';
|
|
10
10
|
import { MarkdownSourceEdit, MarkdownDocument } from '@bendyline/squisq/markdown';
|
|
11
11
|
import { ContentContainer } from '@bendyline/squisq/storage';
|
|
12
|
-
import { a as ProofingCapability, c as ProofingIgnoreStore } from './types-
|
|
12
|
+
import { a as ProofingCapability, c as ProofingIgnoreStore } from './types-qxwhho3e.js';
|
|
13
13
|
import { D as DictationControl, b as SpeechInputCapability } from './types-Bi4ZVKvN.js';
|
|
14
14
|
import { DocumentVersionManager, SaveVersionOptions, SaveVersionResult, PrunePolicy } from '@bendyline/squisq/versions';
|
|
15
15
|
import { Editor } from '@tiptap/core';
|
|
@@ -131,6 +131,12 @@ interface HarperProofingConfig {
|
|
|
131
131
|
wasmUrl?: string;
|
|
132
132
|
/** Initial dialect (default American). */
|
|
133
133
|
dialect?: ProofDialect;
|
|
134
|
+
/**
|
|
135
|
+
* Overrides for named Harper rules, applied lazily during setup. Omitted
|
|
136
|
+
* rules retain the engine defaults; null restores a rule's default. Plain
|
|
137
|
+
* data keeps the optional Harper dependency out of published declarations.
|
|
138
|
+
*/
|
|
139
|
+
lintConfig?: Readonly<Record<string, boolean | null>>;
|
|
134
140
|
/** App-level dictionary loaded during setup. */
|
|
135
141
|
initialWords?: readonly string[];
|
|
136
142
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq-editor-react",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.24",
|
|
4
4
|
"description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@bendyline/squisq": "2.11.19",
|
|
106
106
|
"@bendyline/squisq-calc": "2.11.2",
|
|
107
|
-
"@bendyline/squisq-formats": "2.6.
|
|
107
|
+
"@bendyline/squisq-formats": "2.6.20",
|
|
108
108
|
"@bendyline/squisq-grid-react": "2.11.20",
|
|
109
|
-
"@bendyline/squisq-react": "2.11.
|
|
110
|
-
"@bendyline/squisq-video-react": "2.4.
|
|
109
|
+
"@bendyline/squisq-react": "2.11.22",
|
|
110
|
+
"@bendyline/squisq-video-react": "2.4.26",
|
|
111
111
|
"@fortawesome/fontawesome-free": "7.3.1",
|
|
112
112
|
"@tiptap/core": "2.27.3",
|
|
113
113
|
"@tiptap/extension-heading": "2.27.3",
|