@webority/ui-react 0.153.0 → 0.155.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/dist/canvas-kit/kit.js +11 -11
- package/dist/canvas-kit/manifest.json +38 -8
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileViewer.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -1
- package/dist/components/AppLightbox.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTour.js +1 -1
- package/dist/guidance.json +1 -1
- package/dist/lib/fileItem.js +1 -1
- package/dist/lib/useTableView.js +1 -1
- package/dist/types/components/AppDrawer.d.ts +2 -2
- package/dist/types/components/AppSectionHero.d.ts +1 -1
- package/dist/types/components/AppSectionLogos.d.ts +1 -1
- package/dist/types/components/AppSectionPricing.d.ts +1 -1
- package/dist/types/components/AppSectionTestimonials.d.ts +1 -1
- package/dist/types/components/AppTour.d.ts +3 -3
- package/dist/types/lib/fileItem.d.ts +8 -2
- package/package.json +8 -8
|
@@ -48,7 +48,7 @@ export interface AppSectionLogosProps {
|
|
|
48
48
|
variant?: "default" | "muted" | undefined;
|
|
49
49
|
/** Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic. */
|
|
50
50
|
linkComponent?: AppLinkComponent | undefined;
|
|
51
|
-
/** The section
|
|
51
|
+
/** The section's id, the target of an in-page link. */
|
|
52
52
|
id?: string | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Extra class names added to the section.
|
|
@@ -31,7 +31,7 @@ export interface AppSectionPricingProps {
|
|
|
31
31
|
variant?: "default" | "muted" | undefined;
|
|
32
32
|
/** The `AppPricingCard` tiers. */
|
|
33
33
|
children?: ReactNode | undefined;
|
|
34
|
-
/** The section
|
|
34
|
+
/** The section's id, the target of an in-page link. */
|
|
35
35
|
id?: string | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Extra class names added to the section.
|
|
@@ -32,7 +32,7 @@ export interface AppSectionTestimonialsProps {
|
|
|
32
32
|
* @default "default"
|
|
33
33
|
*/
|
|
34
34
|
variant?: "default" | "muted" | undefined;
|
|
35
|
-
/** The section
|
|
35
|
+
/** The section's id, the target of an in-page link. */
|
|
36
36
|
id?: string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Extra class names added to the section.
|
|
@@ -6,8 +6,8 @@ export interface AppTourCloseDetails {
|
|
|
6
6
|
total: number | null;
|
|
7
7
|
}
|
|
8
8
|
export interface AppTourStep {
|
|
9
|
-
/** A CSS selector for the element the step points at. */
|
|
10
|
-
target
|
|
9
|
+
/** A CSS selector for the element the step points at. Left out, the step is a centred welcome card. */
|
|
10
|
+
target?: string | undefined;
|
|
11
11
|
title?: string | undefined;
|
|
12
12
|
description: string;
|
|
13
13
|
/** The URL of an image or short loop shown above the title. */
|
|
@@ -49,7 +49,7 @@ export interface AppTourProps extends Omit<ComponentPropsWithoutRef<"div">, "chi
|
|
|
49
49
|
onClose: (reason: AppTourCloseReason, details: AppTourCloseDetails) => void;
|
|
50
50
|
/** Names the tour in the seen store. */
|
|
51
51
|
tourId: string;
|
|
52
|
-
/** The steps, in order. A step whose target is missing or hidden is dropped. */
|
|
52
|
+
/** The steps, in order. A step with no target is a welcome card, centred over the page. A step whose target is missing or hidden is dropped. */
|
|
53
53
|
steps: AppTourStep[];
|
|
54
54
|
/** Remembers that a person has seen the tour: it is asked before showing and written when the tour finishes or is skipped, with that outcome. Read through a ref, so an inline object does not restart a running tour. */
|
|
55
55
|
seenStore?: AppTourSeenStore | undefined;
|
|
@@ -11,7 +11,13 @@ export interface FileItemValue {
|
|
|
11
11
|
progress?: number | undefined;
|
|
12
12
|
error?: string | undefined;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
/** A File the caller extends with the upload state it keeps on the same object. */
|
|
15
|
+
export interface UploadableFile extends File {
|
|
16
|
+
url?: string | undefined;
|
|
17
|
+
progress?: number | undefined;
|
|
18
|
+
error?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export type FileItem = UploadableFile | FileItemValue;
|
|
15
21
|
/** Stable-ish key for an item: name+size for a File, url/name for an existing value. */
|
|
16
22
|
export declare function keyOf(item: FileItem): string;
|
|
17
23
|
export declare function nameOf(item: FileItem): string | undefined;
|
|
@@ -20,7 +26,7 @@ export declare function nameOf(item: FileItem): string | undefined;
|
|
|
20
26
|
* `sizeBytes` of 0 or more. Null when the size is unknown.
|
|
21
27
|
*/
|
|
22
28
|
export declare function sizeLabelOf(item: FileItem): string | null;
|
|
23
|
-
/** The link a stored file opens; a
|
|
29
|
+
/** The link a stored file opens; a File carries one only when the caller set `url` on it. */
|
|
24
30
|
export declare function linkOf(item: FileItem): string | null;
|
|
25
31
|
/** Upload progress while it is under 100, else null: a finished upload draws no bar. */
|
|
26
32
|
export declare function uploadProgressOf(item: FileItem): number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.155.0",
|
|
4
4
|
"description": "Webority shared React component library: App* primitives on react-bootstrap and the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.
|
|
33
|
-
"@webority/theme": "0.
|
|
34
|
-
"@webority/ui-elements": "0.
|
|
35
|
-
"@webority/web-core": "0.
|
|
32
|
+
"@webority/markdown-core": "0.155.0",
|
|
33
|
+
"@webority/theme": "0.155.0",
|
|
34
|
+
"@webority/ui-elements": "0.155.0",
|
|
35
|
+
"@webority/web-core": "0.155.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@webority/analytics": "^0.40.0",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@vitejs/plugin-react": "^6.0.1",
|
|
53
53
|
"@vitest/coverage-v8": "5.1.0",
|
|
54
54
|
"@webority/analytics": "0.40.0",
|
|
55
|
-
"@webority/canvas-kit": "0.
|
|
56
|
-
"@webority/biome-config": "0.
|
|
57
|
-
"@webority/tokens": "0.
|
|
55
|
+
"@webority/canvas-kit": "0.155.0",
|
|
56
|
+
"@webority/biome-config": "0.155.0",
|
|
57
|
+
"@webority/tokens": "0.155.0",
|
|
58
58
|
"bootstrap": "5.3.8",
|
|
59
59
|
"jsdom": "30.1.1",
|
|
60
60
|
"react": "^19.3.1",
|