themed-markdown 0.1.87 → 0.1.88
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/index.mjs
CHANGED
|
@@ -6830,7 +6830,13 @@ var DocumentView = ({
|
|
|
6830
6830
|
fontSizeScale,
|
|
6831
6831
|
theme: theme2,
|
|
6832
6832
|
transparentBackground = false,
|
|
6833
|
-
editable = false
|
|
6833
|
+
editable = false,
|
|
6834
|
+
annotations,
|
|
6835
|
+
activeAnnotationId,
|
|
6836
|
+
renderAnnotation,
|
|
6837
|
+
onSelectionChange,
|
|
6838
|
+
onAnnotationClick,
|
|
6839
|
+
annotationStyle
|
|
6834
6840
|
}) => {
|
|
6835
6841
|
const containerRef = useRef12(null);
|
|
6836
6842
|
const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
|
|
@@ -6864,7 +6870,13 @@ var DocumentView = ({
|
|
|
6864
6870
|
repositoryInfo,
|
|
6865
6871
|
transparentBackground,
|
|
6866
6872
|
editable,
|
|
6867
|
-
containerWidth: width
|
|
6873
|
+
containerWidth: width,
|
|
6874
|
+
annotations,
|
|
6875
|
+
activeAnnotationId,
|
|
6876
|
+
renderAnnotation,
|
|
6877
|
+
onSelectionChange,
|
|
6878
|
+
onAnnotationClick,
|
|
6879
|
+
annotationStyle
|
|
6868
6880
|
})));
|
|
6869
6881
|
};
|
|
6870
6882
|
// industryMarkdown/components/SkillMarkdown.tsx
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Theme } from '@principal-ade/industry-theme';
|
|
2
2
|
import { BashCommandOptions, BashCommandResult, RepositoryInfo } from '@principal-ade/markdown-utils';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import type { Annotation, AnnotationSelection } from '../types/annotations';
|
|
4
5
|
export interface DocumentViewProps {
|
|
5
6
|
content: string;
|
|
6
7
|
onCheckboxChange?: (slideIndex: number, lineNumber: number, checked: boolean) => void;
|
|
@@ -18,6 +19,15 @@ export interface DocumentViewProps {
|
|
|
18
19
|
theme: Theme;
|
|
19
20
|
transparentBackground?: boolean;
|
|
20
21
|
editable?: boolean;
|
|
22
|
+
annotations?: Annotation[];
|
|
23
|
+
activeAnnotationId?: string | null;
|
|
24
|
+
renderAnnotation?: (annotation: Annotation) => React.ReactNode;
|
|
25
|
+
onSelectionChange?: (selection: AnnotationSelection | null) => void;
|
|
26
|
+
onAnnotationClick?: (annotationId: string, event: MouseEvent) => void;
|
|
27
|
+
annotationStyle?: {
|
|
28
|
+
backgroundColor?: string;
|
|
29
|
+
activeBackgroundColor?: string;
|
|
30
|
+
};
|
|
21
31
|
}
|
|
22
32
|
export declare const DocumentView: React.FC<DocumentViewProps>;
|
|
23
33
|
//# sourceMappingURL=DocumentView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentView.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/DocumentView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAiB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentView.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/DocumentView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAGhB,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAA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