@estiva-app/ui 0.60.1 → 0.60.2

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.
@@ -9,8 +9,9 @@ export interface AppProviderProps {
9
9
  pictureFor?: (name: string) => string | null | undefined;
10
10
  /**
11
11
  * How this app changes page without reloading. A plain click on a link to
12
- * this app's own address calls it with the link's `href` instead of loading
13
- * the page again: `Link` (and so `Card` and `Breadcrumb`'s crumbs),
12
+ * this app's own address calls it with the link's path (`/message/1`, also
13
+ * when the `href` is the whole `https://…` address) instead of loading the
14
+ * page again: `Link` (and so `Card` and `Breadcrumb`'s crumbs),
14
15
  * `NavItem` (and so `NavTree`'s rows), `RailItem`, `Chip`, `InlineChip`, and
15
16
  * `IconButton` (and so `ToolbarLink`).
16
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AppProvider.d.ts","sourceRoot":"","sources":["../src/AppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuD,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,KAAK,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAIlD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAG/E;AAED,qEAAqE;AACrE,wBAAgB,aAAa,IAAI,QAAQ,CAAC,YAAY,CAAC,CAEtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAmB/I"}
1
+ {"version":3,"file":"AppProvider.d.ts","sourceRoot":"","sources":["../src/AppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuD,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,KAAK,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAIlD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAG/E;AAED,qEAAqE;AACrE,wBAAgB,aAAa,IAAI,QAAQ,CAAC,YAAY,CAAC,CAEtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAqB/I"}
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ function useInAppClick(href, onClick) {
26
26
  }
27
27
  if (url.origin !== window.location.origin) return;
28
28
  event.preventDefault();
29
- navigate(href);
29
+ navigate(`${url.pathname}${url.search}${url.hash}`);
30
30
  };
31
31
  }
32
32