@morlay/dsh-client-ui-primitives 0.0.5 → 0.0.7
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 +3 -2
- package/dist/client.d.mts +52 -26
- package/dist/client.mjs +4576 -0
- package/dist/index.d.mts +2 -2
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +20 -29
- package/src/client/index.ts +7 -7
- package/src/client/schema-form/Editor.tsx +20 -12
- package/src/client/schema-form/TruncatedTooltip.tsx +60 -0
- package/src/client/schema-form/index.ts +11 -0
- package/src/client/schema-form/styles.ts +26 -3
- package/src/client/schema-form/testing/resize-observer-stub.ts +63 -0
- package/src/client/schema-form/value.tsx +10 -8
- package/src/client/styling/styling.ts +6 -1
- package/src/client/theme.generated.ts +14 -1
- package/dist/client.cjs +0 -17075
- package/dist/client.d.cts +0 -11656
- package/dist/index.d.cts +0 -5
- package/dist/reference-BX54bj6_.d.cts +0 -30
package/dist/index.d.cts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { c as parseReferenceToken, n as ReferenceSpan, r as findReferences, t as Reference } from "./reference-BX54bj6_.cjs";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
|
-
declare function apply(): void;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { type Reference, type ReferenceSpan, apply, findReferences, parseReferenceToken };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "mdast-util-from-markdown";
|
|
2
|
-
import "micromark-util-types";
|
|
3
|
-
//#region src/reference.d.ts
|
|
4
|
-
declare module "micromark-util-types" {
|
|
5
|
-
interface TokenTypeMap {
|
|
6
|
-
reference: "reference";
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
interface Reference {
|
|
10
|
-
readonly protocol: string;
|
|
11
|
-
readonly origin?: string;
|
|
12
|
-
readonly path?: string;
|
|
13
|
-
readonly title?: string;
|
|
14
|
-
readonly lineStart?: number;
|
|
15
|
-
readonly lineEnd?: number;
|
|
16
|
-
readonly column?: number;
|
|
17
|
-
}
|
|
18
|
-
interface ReferenceSpan {
|
|
19
|
-
readonly start: number;
|
|
20
|
-
readonly end: number;
|
|
21
|
-
readonly reference: Reference;
|
|
22
|
-
}
|
|
23
|
-
declare function parseReference(value: string, title?: string): Reference | undefined;
|
|
24
|
-
declare function parseReferenceToken(value: string): Reference | undefined;
|
|
25
|
-
declare function formatReference(reference: Reference): string;
|
|
26
|
-
declare function isLocalReference(reference: Reference): boolean;
|
|
27
|
-
declare function formatReferenceMention(reference: Reference): string;
|
|
28
|
-
declare function findReferences(text: string): readonly ReferenceSpan[];
|
|
29
|
-
//#endregion
|
|
30
|
-
export { formatReferenceMention as a, parseReferenceToken as c, formatReference as i, ReferenceSpan as n, isLocalReference as o, findReferences as r, parseReference as s, Reference as t };
|