@servicetitan/confirm-navigation 22.4.3 → 22.4.6

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.
@@ -1,2 +1,3 @@
1
1
  export * from './basic';
2
+ export * from './custom';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './basic';
2
+ export * from './custom';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/confirm-navigation",
3
- "version": "22.4.3",
3
+ "version": "22.4.6",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/confirm-navigation",
6
6
  "repository": {
@@ -46,5 +46,5 @@
46
46
  "cli": {
47
47
  "webpack": false
48
48
  },
49
- "gitHead": "bf5e703e0fba9119846edcdc76413732d9ed5e7a"
49
+ "gitHead": "46d364e638c43a68644eb90b3ca48cd605bf2c1f"
50
50
  }
@@ -1,17 +1,17 @@
1
1
  import { Button } from '@servicetitan/design-system';
2
2
  import { BrowserRouter, Link } from 'react-router-dom';
3
3
 
4
- import { BasicExample } from './demo';
5
- import { CustomExample } from './demo/custom';
4
+ import { BasicExample, CustomExample } from '../dist/demo';
6
5
 
7
6
  export default {
8
- title: 'Confirm Navigation',
7
+ title: 'Confirm Navigation/Demos',
9
8
  };
10
9
 
11
10
  export const Basic = () => {
12
11
  return (
13
12
  <BrowserRouter>
14
13
  <BasicExample />
14
+
15
15
  <Link to="/some-new-path">
16
16
  <Button primary className="m-t-2">
17
17
  Try
@@ -25,6 +25,7 @@ export const Custom = () => {
25
25
  return (
26
26
  <BrowserRouter>
27
27
  <CustomExample />
28
+
28
29
  <Link to="/some-new-path">
29
30
  <Button primary className="m-t-2">
30
31
  Try
package/src/demo/index.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './basic';
2
+ export * from './custom';
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const Basic: () => JSX.Element;
7
- export declare const Custom: () => JSX.Element;
8
- //# sourceMappingURL=confirm-navigation.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"confirm-navigation.stories.d.ts","sourceRoot":"","sources":["../src/confirm-navigation.stories.tsx"],"names":[],"mappings":";;;;AAMA,wBAEE;AAEF,eAAO,MAAM,KAAK,mBAWjB,CAAC;AAEF,eAAO,MAAM,MAAM,mBAWlB,CAAC"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button } from '@servicetitan/design-system';
3
- import { BrowserRouter, Link } from 'react-router-dom';
4
- import { BasicExample } from './demo';
5
- import { CustomExample } from './demo/custom';
6
- export default {
7
- title: 'Confirm Navigation',
8
- };
9
- export const Basic = () => {
10
- return (_jsxs(BrowserRouter, { children: [_jsx(BasicExample, {}), _jsx(Link, Object.assign({ to: "/some-new-path" }, { children: _jsx(Button, Object.assign({ primary: true, className: "m-t-2" }, { children: "Try" })) }))] }));
11
- };
12
- export const Custom = () => {
13
- return (_jsxs(BrowserRouter, { children: [_jsx(CustomExample, {}), _jsx(Link, Object.assign({ to: "/some-new-path" }, { children: _jsx(Button, Object.assign({ primary: true, className: "m-t-2" }, { children: "Try" })) }))] }));
14
- };
15
- //# sourceMappingURL=confirm-navigation.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"confirm-navigation.stories.js","sourceRoot":"","sources":["../src/confirm-navigation.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,eAAe;IACX,KAAK,EAAE,oBAAoB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE;IACtB,OAAO,CACH,MAAC,aAAa,eACV,KAAC,YAAY,KAAG,EAChB,KAAC,IAAI,kBAAC,EAAE,EAAC,gBAAgB,gBACrB,KAAC,MAAM,kBAAC,OAAO,QAAC,SAAS,EAAC,OAAO,yBAExB,IACN,IACK,CACnB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE;IACvB,OAAO,CACH,MAAC,aAAa,eACV,KAAC,aAAa,KAAG,EACjB,KAAC,IAAI,kBAAC,EAAE,EAAC,gBAAgB,gBACrB,KAAC,MAAM,kBAAC,OAAO,QAAC,SAAS,EAAC,OAAO,yBAExB,IACN,IACK,CACnB,CAAC;AACN,CAAC,CAAC"}