@webority/ui-react 0.130.2 → 0.130.3
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/canvas-kit/kit.js +15190 -15145
- package/dist/canvas-kit/manifest.json +11 -3
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/guidance.json +1 -1
- package/dist/markdown-core/dist/links.js +1 -1
- package/dist/types/components/AppDataTable.d.ts +3 -2
- package/dist/types/components/AppMarkdown.d.ts +8 -3
- package/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/package.json +9 -9
package/dist/guidance.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i,r=/^(?:\/(?![/\\])|#|\?|\.{1,2}\/)/;function i(i,o,s,c){if(s&&e.test(i)){let e=s(i);if(e!=null)return{kind:`app`,target:e}}return o===`app`?null:r.test(i)?{kind:`page`,href:i}:t.test(i)?{kind:c&&a(i,c)?`page`:`web`,href:i}:n.test(i)?{kind:`contact`,href:i}:null}function a(e,t){if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return!1;let n=e[t.length];return n===void 0||n===`/`||n===`?`||n===`#`}function o(e){return typeof e!=`string`||!e.startsWith(`/`)||e[1]===`/`||e[1]===`\\`?null:e}export{i as linkTarget,o as webRoute};
|
|
1
|
+
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i,r=/^(?:\/(?![/\\])|#|\?|\.{1,2}\/)/;function i(i,o,s,c){if(s&&(o===`page`||e.test(i))){let e=s(i);if(e!=null)return{kind:`app`,target:e}}return o===`app`?null:r.test(i)?{kind:`page`,href:i}:o===`page`&&!(t.test(i)&&c&&a(i,c))?null:t.test(i)?{kind:c&&a(i,c)?`page`:`web`,href:i}:n.test(i)?{kind:`contact`,href:i}:null}function a(e,t){if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return!1;let n=e[t.length];return n===void 0||n===`/`||n===`?`||n===`#`}function o(e){return typeof e!=`string`||!e.startsWith(`/`)||e[1]===`/`||e[1]===`\\`?null:e}export{i as linkTarget,o as webRoute};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* surface reaches the same list through `<app-data-table src>`, which fetches HTML rows itself.
|
|
7
7
|
*
|
|
8
8
|
* @param {object} props
|
|
9
|
-
* @param {{ key: string, label: import('react').ReactNode, sortable?: boolean, align?: 'end'|'num'|'center', width?: string|number, minWidth?: string|number, nowrap?: boolean, cellClassName?: string, cellStyle?: object, hideable?: boolean, pin?: 'start'|'end', grow?: boolean }[]} props.columns
|
|
9
|
+
* @param {{ key: string, label: import('react').ReactNode, sortable?: boolean, align?: 'end'|'num'|'center', width?: string|number, minWidth?: string|number, nowrap?: boolean, rowHeader?: boolean, cellClassName?: string, cellStyle?: object, hideable?: boolean, pin?: 'start'|'end', grow?: boolean }[]} props.columns
|
|
10
10
|
* @param {object[]} props.rows
|
|
11
11
|
* @param {(row: object, index: number) => string|number} [props.rowKey]
|
|
12
12
|
* @param {{ key: string, dir: "asc"|"desc" }} [props.sort]
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
* on a `virtual` table.
|
|
78
78
|
*/
|
|
79
79
|
export default function AppDataTable(props: {
|
|
80
|
-
/** The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align and
|
|
80
|
+
/** The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader. */
|
|
81
81
|
columns: {
|
|
82
82
|
key: string;
|
|
83
83
|
label: import('react').ReactNode;
|
|
@@ -86,6 +86,7 @@ export default function AppDataTable(props: {
|
|
|
86
86
|
width?: string | number;
|
|
87
87
|
minWidth?: string | number;
|
|
88
88
|
nowrap?: boolean;
|
|
89
|
+
rowHeader?: boolean;
|
|
89
90
|
cellClassName?: string;
|
|
90
91
|
cellStyle?: object;
|
|
91
92
|
hideable?: boolean;
|
|
@@ -13,10 +13,11 @@ import "@webority/ui-elements/elements/markdown";
|
|
|
13
13
|
* @param {(href: string) => string|null|undefined} [props.resolveLink] Maps a `scheme:kind/id` link
|
|
14
14
|
* to an in-app route such as "/support?ticket=3f2a", or null to show its label as text.
|
|
15
15
|
* @param {(inner: string) => boolean} [props.isCitation] Which `[inner]` runs are citations. Without it no run is one.
|
|
16
|
+
* @param {(text: string) => Array<{ kind: "text" | "sub" | "sup", text: string }>} [props.figureText] Splits plain text into runs. A "sub" or "sup" run draws as its own sub or sup element. Without it, text draws as written. Code spans and code blocks are never split.
|
|
16
17
|
* @param {(citation: string) => void} [props.onOpenCitation] Opens a citation chip. Without it the chip is not a button.
|
|
17
18
|
* @param {import('react').ElementType} [props.linkComponent] A router link. It receives `to` for an
|
|
18
19
|
* in-app route. Without it an in-app route renders as a plain anchor.
|
|
19
|
-
* @param {"app"|"web"} [props.links] "app" opens only routes from `resolveLink`; "web" (default) also opens web, mail and phone addresses.
|
|
20
|
+
* @param {"app"|"web"|"page"} [props.links] "app" opens only routes from `resolveLink`; "web" (default) also opens web, mail and phone addresses; "page" also opens a relative address and a web address on this site, in the same tab, and asks `resolveLink` for every address; an absolute web address it returns opens in a new tab when it leaves this site.
|
|
20
21
|
* @param {"outline"|"text"} [props.headings] "text" draws a heading as a bold line that stays out of the page outline; "outline" (default) draws an h2.
|
|
21
22
|
* @param {string} [props.className]
|
|
22
23
|
*/
|
|
@@ -25,13 +26,17 @@ export default function AppMarkdown(props: {
|
|
|
25
26
|
value?: string;
|
|
26
27
|
resolveLink?: (href: string) => string | null | undefined;
|
|
27
28
|
isCitation?: (inner: string) => boolean;
|
|
29
|
+
figureText?: (text: string) => Array<{
|
|
30
|
+
kind: "text" | "sub" | "sup";
|
|
31
|
+
text: string;
|
|
32
|
+
}>;
|
|
28
33
|
onOpenCitation?: (citation: string) => void;
|
|
29
34
|
linkComponent?: import('react').ElementType;
|
|
30
35
|
/**
|
|
31
|
-
* App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab.
|
|
36
|
+
* App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab. Page also opens a relative address and a web address on this site, in the same tab, and asks resolveLink for every address; an absolute web address it returns opens in a new tab when it leaves this site.
|
|
32
37
|
* @default "web"
|
|
33
38
|
*/
|
|
34
|
-
links?: "app" | "web";
|
|
39
|
+
links?: "app" | "web" | "page";
|
|
35
40
|
/**
|
|
36
41
|
* Outline draws a heading as an h2 in the page outline. Text draws it as a bold line that stays out of the outline.
|
|
37
42
|
* @default "outline"
|
|
@@ -200,6 +200,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
200
200
|
"task-square": string;
|
|
201
201
|
telephone: string;
|
|
202
202
|
text: string;
|
|
203
|
+
"thumbs-down": string;
|
|
203
204
|
"thumbs-up": string;
|
|
204
205
|
"tick-circle": string;
|
|
205
206
|
trash: string;
|
|
@@ -429,6 +430,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
429
430
|
"task-square": string;
|
|
430
431
|
telephone: string;
|
|
431
432
|
text: string;
|
|
433
|
+
"thumbs-down": string;
|
|
432
434
|
"thumbs-up": string;
|
|
433
435
|
"tick-circle": string;
|
|
434
436
|
trash: string;
|
|
@@ -658,6 +660,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
658
660
|
"task-square": string;
|
|
659
661
|
telephone: string;
|
|
660
662
|
text: string;
|
|
663
|
+
"thumbs-down": string;
|
|
661
664
|
"thumbs-up": string;
|
|
662
665
|
"tick-circle": string;
|
|
663
666
|
trash: string;
|
|
@@ -887,6 +890,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
887
890
|
"task-square": string;
|
|
888
891
|
telephone: string;
|
|
889
892
|
text: string;
|
|
893
|
+
"thumbs-down": string;
|
|
890
894
|
"thumbs-up": string;
|
|
891
895
|
"tick-circle": string;
|
|
892
896
|
trash: string;
|
|
@@ -1116,6 +1120,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
1116
1120
|
"task-square": string;
|
|
1117
1121
|
telephone: string;
|
|
1118
1122
|
text: string;
|
|
1123
|
+
"thumbs-down": string;
|
|
1119
1124
|
"thumbs-up": string;
|
|
1120
1125
|
"tick-circle": string;
|
|
1121
1126
|
trash: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.130.
|
|
3
|
+
"version": "0.130.3",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.130.
|
|
33
|
-
"@webority/theme": "0.130.
|
|
34
|
-
"@webority/ui-elements": "0.130.
|
|
35
|
-
"@webority/web-core": "0.130.
|
|
32
|
+
"@webority/markdown-core": "0.130.3",
|
|
33
|
+
"@webority/theme": "0.130.3",
|
|
34
|
+
"@webority/ui-elements": "0.130.3",
|
|
35
|
+
"@webority/web-core": "0.130.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@webority/analytics": "^0.
|
|
38
|
+
"@webority/analytics": "^0.34.0",
|
|
39
39
|
"bootstrap": "5.3.3",
|
|
40
40
|
"react": "^19.0.0",
|
|
41
41
|
"react-bootstrap": "^2.10.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@types/react": "^19.2.17",
|
|
50
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
51
51
|
"@vitest/coverage-v8": "5.0.1",
|
|
52
|
-
"@webority/analytics": "0.
|
|
53
|
-
"@webority/canvas-kit": "0.130.
|
|
54
|
-
"@webority/tokens": "0.130.
|
|
52
|
+
"@webority/analytics": "0.34.0",
|
|
53
|
+
"@webority/canvas-kit": "0.130.3",
|
|
54
|
+
"@webority/tokens": "0.130.3",
|
|
55
55
|
"bootstrap": "5.3.3",
|
|
56
56
|
"jsdom": "30.1.1",
|
|
57
57
|
"react": "^19.2.6",
|