@webority/ui-react 0.137.2 → 0.138.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.
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityWeb",
3
3
  "library": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.137.2"
5
+ "version": "0.138.0"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Web",
@@ -27701,6 +27701,12 @@
27701
27701
  "description": "Show the closing dialog after the last step.",
27702
27702
  "default": true
27703
27703
  },
27704
+ {
27705
+ "name": "endNextHref",
27706
+ "type": "string",
27707
+ "required": false,
27708
+ "description": "Where the closing dialog's next step goes; the step shows only with labels.endNextLabel set."
27709
+ },
27704
27710
  {
27705
27711
  "name": "labels",
27706
27712
  "type": "object",
@@ -27735,6 +27741,12 @@
27735
27741
  "required": false,
27736
27742
  "description": "The closing dialog's message, a short friendly line by default."
27737
27743
  },
27744
+ {
27745
+ "name": "endNextLabel",
27746
+ "type": "string",
27747
+ "required": false,
27748
+ "description": "The closing dialog's next-step button text. The step shows only when this is set, and it goes to endNextHref."
27749
+ },
27738
27750
  {
27739
27751
  "name": "endTitle",
27740
27752
  "type": "string",
@@ -27870,7 +27882,8 @@
27870
27882
  "when": [
27871
27883
  "A person meets a screen for the first time and a handful of controls need a one-line explanation each.",
27872
27884
  "A new feature needs pointing out where it sits on a screen people already know.",
27873
- "The steps follow a natural order the person can walk in under a minute."
27885
+ "The steps follow a natural order the person can walk in under a minute.",
27886
+ "The tour teaches one clear first action, such as creating the first item: give the closing dialog a next step (endNextLabel with endNextHref) that goes to it. With no single clear action, leave the dialog with Done alone."
27874
27887
  ],
27875
27888
  "whenNot": [
27876
27889
  {
@@ -29070,6 +29083,7 @@
29070
29083
  "surface",
29071
29084
  "surface-dark",
29072
29085
  "surface-dark-border",
29086
+ "surface-ink",
29073
29087
  "surface-inverse",
29074
29088
  "surface-inverse-elevated",
29075
29089
  "surface-inverse-raised",
@@ -29141,7 +29155,9 @@
29141
29155
  "leading": [
29142
29156
  "body",
29143
29157
  "display",
29144
- "heading"
29158
+ "heading",
29159
+ "lead",
29160
+ "prose"
29145
29161
  ],
29146
29162
  "colorMeanings": {
29147
29163
  "bg": "Page background behind the content area.",
@@ -29237,6 +29253,7 @@
29237
29253
  "surface": "Card and panel surface.",
29238
29254
  "surface-dark": "Band that stays dark in light and dark mode, such as a site footer or a dark hero.",
29239
29255
  "surface-dark-border": "Hairline border or divider on a surface-dark band.",
29256
+ "surface-ink": "Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box.",
29240
29257
  "surface-inverse": "Inverse band on a page, such as a dark footer or an inverse toast.",
29241
29258
  "surface-inverse-elevated": "A floating or highlighted surface two layers up on an inverse band.",
29242
29259
  "surface-inverse-raised": "A card or panel one layer up on an inverse band.",
@@ -29634,6 +29651,10 @@
29634
29651
  "light": "#2a3553",
29635
29652
  "dark": "#2a3553"
29636
29653
  },
29654
+ "surface-ink": {
29655
+ "light": "#0b0e16",
29656
+ "dark": "#0b0e16"
29657
+ },
29637
29658
  "surface-inverse": {
29638
29659
  "light": "#071437",
29639
29660
  "dark": "#e6e8ee"
@@ -29841,7 +29862,9 @@
29841
29862
  "leading": {
29842
29863
  "body": 1.55,
29843
29864
  "display": 1.05,
29844
- "heading": 1.2
29865
+ "heading": 1.2,
29866
+ "lead": 1.6,
29867
+ "prose": 1.7
29845
29868
  }
29846
29869
  },
29847
29870
  "icons": [
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "webority-web",
3
- "version": "0.137.2",
3
+ "version": "0.138.0",
4
4
  "platform": "Web",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 13,
7
7
  "library": {
8
8
  "name": "@webority/ui-react",
9
- "version": "0.137.2"
9
+ "version": "0.138.0"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "e043334614482b02d6eab6c532ea5be4be89224e3413957909d7b6ea2d0c619d",
14
- "bytes": 1011724
13
+ "sha256": "55190ad6c56e8f588b5194fda681a5631c17abd09dbf27f7a523675aa6d06e28",
14
+ "bytes": 1012793
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "adee42eb889271ce2cb40c4b3b2de69778607d7b74a58040943a42f9fac7269a",
18
- "bytes": 11191707
17
+ "sha256": "ace72a02abd891aaa0b201a1ad0c876d2bd0e88ba81d9624d5632f9d1b50c7ff",
18
+ "bytes": 11196114
19
19
  },
20
20
  "kit.css": {
21
21
  "sha256": "13b14f71fb6ea024945f95cba617b4f1d49f44a65ba7c7ed05d2354805539ef6",
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import"@webority/ui-elements/elements/tour";import{forwardRef as r,useEffect as i,useLayoutEffect as a,useRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var c=[`image`,`video`],l=[`click`],u=r(function(r,u){let{marker:d,props:f}=e(`AppTour`,r),{open:p,onClose:m,tourId:h,steps:g,seenStore:_,onBeforeStep:v,labels:y,endDialog:b=!0,className:x,...S}=f;n(`AppTour`,S);for(let e of g)t(`AppTour`,`steps[].mediaType`,e.mediaType,c),t(`AppTour`,`steps[].advanceOn`,e.advanceOn,l);let C=o(null),w=e=>{C.current=e,typeof u==`function`?u(e):u&&(u.current=e)};a(()=>{let e=C.current;e.seenStore=_??null,e.onBeforeStep=v??null}),a(()=>{let e=C.current;p?e.setAttribute(`open`,``):e.removeAttribute(`open`)},[p]);let T=o(m);return T.current=m,i(()=>{let e=C.current,t=e=>{let{reason:t,index:n,position:r,total:i}=e.detail;T.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),/* @__PURE__ */ s(`wui-tour`,{ref:w,"tour-id":h,"back-label":y?.back,"next-label":y?.next,"skip-label":y?.skip,"done-label":y?.done,"progress-label":y?.progress,"advance-label":y?.advance,"media-pause-label":y?.mediaPause,"media-play-label":y?.mediaPlay,"end-title":y?.endTitle,"end-message":y?.endMessage,"end-button":y?.endButton,"end-dialog":b===!1?`false`:void 0,class:x||void 0,...d,...S,children:g.map(e=>/* @__PURE__ */ s(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target}|${e.description}`))})});export{u as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import"@webority/ui-elements/elements/tour";import{forwardRef as r,useEffect as i,useLayoutEffect as a,useRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var c=[`image`,`video`],l=[`click`],u=r(function(r,u){let{marker:d,props:f}=e(`AppTour`,r),{open:p,onClose:m,tourId:h,steps:g,seenStore:_,onBeforeStep:v,labels:y,endDialog:b=!0,endNextHref:x,className:S,...C}=f;n(`AppTour`,C);for(let e of g)t(`AppTour`,`steps[].mediaType`,e.mediaType,c),t(`AppTour`,`steps[].advanceOn`,e.advanceOn,l);let w=o(null),T=e=>{w.current=e,typeof u==`function`?u(e):u&&(u.current=e)};a(()=>{let e=w.current;e.seenStore=_??null,e.onBeforeStep=v??null}),a(()=>{let e=w.current;p?e.setAttribute(`open`,``):e.removeAttribute(`open`)},[p]);let E=o(m);return E.current=m,i(()=>{let e=w.current,t=e=>{let{reason:t,index:n,position:r,total:i}=e.detail;E.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),/* @__PURE__ */ s(`wui-tour`,{ref:T,"tour-id":h,"back-label":y?.back,"next-label":y?.next,"skip-label":y?.skip,"done-label":y?.done,"progress-label":y?.progress,"advance-label":y?.advance,"media-pause-label":y?.mediaPause,"media-play-label":y?.mediaPlay,"end-title":y?.endTitle,"end-message":y?.endMessage,"end-button":y?.endButton,"end-next-label":y?.endNextLabel,"end-next-href":x,"end-dialog":b===!1?`false`:void 0,class:S||void 0,...d,...C,children:g.map(e=>/* @__PURE__ */ s(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target}|${e.description}`))})});export{u as default};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.137.2"
5
+ "version": "0.138.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -9762,7 +9762,8 @@
9762
9762
  "when": [
9763
9763
  "A person meets a screen for the first time and a handful of controls need a one-line explanation each.",
9764
9764
  "A new feature needs pointing out where it sits on a screen people already know.",
9765
- "The steps follow a natural order the person can walk in under a minute."
9765
+ "The steps follow a natural order the person can walk in under a minute.",
9766
+ "The tour teaches one clear first action, such as creating the first item: give the closing dialog a next step (endNextLabel with endNextHref) that goes to it. With no single clear action, leave the dialog with Done alone."
9766
9767
  ],
9767
9768
  "whenNot": [
9768
9769
  {
@@ -2,7 +2,7 @@ import "@webority/ui-elements/elements/tour";
2
2
  declare const AppTour: import("react").ForwardRefExoticComponent<{
3
3
  /** Runs the tour. Set it back to false from onClose. */
4
4
  open: boolean;
5
- onClose: (reason: 'finished' | 'skipped' | 'alreadySeen' | 'noTargets', details: {
5
+ onClose: (reason: 'finished' | 'skipped' | 'alreadySeen' | 'noTargets' | 'next', details: {
6
6
  index: number | null;
7
7
  position: number | null;
8
8
  total: number | null;
@@ -40,12 +40,15 @@ declare const AppTour: import("react").ForwardRefExoticComponent<{
40
40
  endTitle?: string;
41
41
  endMessage?: string;
42
42
  endButton?: string;
43
+ endNextLabel?: string;
43
44
  };
44
45
  /**
45
46
  * Show the closing dialog after the last step.
46
47
  * @default true
47
48
  */
48
49
  endDialog?: boolean;
50
+ /** Where the closing dialog's next step goes; the step shows only with labels.endNextLabel set. */
51
+ endNextHref?: string;
49
52
  /** Extra class names on the tour element. */
50
53
  className?: string;
51
54
  } & import("react").RefAttributes<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.137.2",
3
+ "version": "0.138.0",
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,10 +29,10 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@webority/markdown-core": "0.137.2",
33
- "@webority/theme": "0.137.2",
34
- "@webority/ui-elements": "0.137.2",
35
- "@webority/web-core": "0.137.2"
32
+ "@webority/markdown-core": "0.138.0",
33
+ "@webority/theme": "0.138.0",
34
+ "@webority/ui-elements": "0.138.0",
35
+ "@webority/web-core": "0.138.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@webority/analytics": "^0.35.0",
@@ -50,8 +50,8 @@
50
50
  "@vitejs/plugin-react": "^6.0.1",
51
51
  "@vitest/coverage-v8": "5.0.1",
52
52
  "@webority/analytics": "0.35.1",
53
- "@webority/canvas-kit": "0.137.2",
54
- "@webority/tokens": "0.137.2",
53
+ "@webority/canvas-kit": "0.138.0",
54
+ "@webority/tokens": "0.138.0",
55
55
  "bootstrap": "5.3.3",
56
56
  "jsdom": "30.1.1",
57
57
  "react": "^19.2.6",