@genesislcap/foundation-ui 14.486.1-alpha-9277091.0 → 14.486.1

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.
@@ -140,23 +140,23 @@ export declare const AccordionItem: React.ForwardRefExoticComponent<
140
140
  >;
141
141
  export type AccordionItemRef = AccordionItemWC;
142
142
 
143
- export declare const Accordion: React.ForwardRefExoticComponent<
143
+ export declare const ActionsMenu: React.ForwardRefExoticComponent<
144
144
  React.PropsWithChildren<
145
- Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
145
+ Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
146
146
  HTMLWCProps & {
147
147
  }
148
- > & React.RefAttributes<AccordionWC>
148
+ > & React.RefAttributes<ActionsMenuWC>
149
149
  >;
150
- export type AccordionRef = AccordionWC;
150
+ export type ActionsMenuRef = ActionsMenuWC;
151
151
 
152
- export declare const ActionsMenu: React.ForwardRefExoticComponent<
152
+ export declare const Accordion: React.ForwardRefExoticComponent<
153
153
  React.PropsWithChildren<
154
- Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
154
+ Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
155
155
  HTMLWCProps & {
156
156
  }
157
- > & React.RefAttributes<ActionsMenuWC>
157
+ > & React.RefAttributes<AccordionWC>
158
158
  >;
159
- export type ActionsMenuRef = ActionsMenuWC;
159
+ export type AccordionRef = AccordionWC;
160
160
 
161
161
  export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
162
162
  React.PropsWithChildren<
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/router/navigation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;oCAKO,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;qBAavE,MAAM;wBAUH,MAAM;wBAUN,MAAM;;;oCAKY,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;2BActE,WAAW,GAAG,MAAM,QAC1B,MAAM,WACJ,MAAM;8BASF,WAAW,GAAG,MAAM,QAC1B,MAAM,WACJ,MAAM;8BAQY,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;;EAOhF,CAAC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/router/navigation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAoBlC;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;oCAKO,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;qBAavE,MAAM;wBAWH,MAAM;wBAWN,MAAM;;;oCAKY,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;2BActE,WAAW,GAAG,MAAM,QAC1B,MAAM,WACJ,MAAM;8BASF,WAAW,GAAG,MAAM,QAC1B,MAAM,WACJ,MAAM;8BAQY,WAAW,GAAG,MAAM,QAAQ,MAAM,WAAU,MAAM;;EAOhF,CAAC"}
@@ -1,6 +1,22 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { Route as FASTRoute } from '@microsoft/fast-router';
3
3
  import { findRouter, isAbsoluteUrl } from './utils';
4
+ /**
5
+ * `FoundationRouteNav.path.push`/`.replace` update the URL via raw `history.pushState`/
6
+ * `replaceState`, which browser-history-based routers other than `@microsoft/fast-router`
7
+ * (e.g. `react-router-dom`'s `BrowserRouter`) never observe on their own, since neither
8
+ * `pushState` nor `replaceState` fire any event. Dispatching a synthetic `popstate` closes
9
+ * that gap for those routers. It must be skipped when a `foundation-router`/`fast-router`
10
+ * element is mounted: fast-router's own `DefaultNavigationQueue` already listens for native
11
+ * `popstate` to support browser back/forward, and this call site also explicitly triggers
12
+ * `FASTRoute.path.trigger` below — an extra popstate would queue a second, duplicate
13
+ * navigation for the same path.
14
+ */
15
+ function notifyBrowserHistoryRouters() {
16
+ if (document.querySelector('foundation-router, fast-router') === null) {
17
+ window.dispatchEvent(new PopStateEvent('popstate'));
18
+ }
19
+ }
4
20
  /**
5
21
  * @beta
6
22
  * @privateRemarks
@@ -32,6 +48,7 @@ export const FoundationRouteNav = Object.freeze({
32
48
  return;
33
49
  }
34
50
  history.pushState({}, document.title, path);
51
+ notifyBrowserHistoryRouters();
35
52
  if (trigger) {
36
53
  FoundationRouteNav.path.trigger(path);
37
54
  }
@@ -42,6 +59,7 @@ export const FoundationRouteNav = Object.freeze({
42
59
  return;
43
60
  }
44
61
  history.replaceState({}, document.title, path);
62
+ notifyBrowserHistoryRouters();
45
63
  if (trigger) {
46
64
  FoundationRouteNav.path.trigger(path);
47
65
  }
package/dist/react.cjs CHANGED
@@ -116,14 +116,14 @@ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
116
116
  return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
117
117
  });
118
118
 
119
- const Accordion = React.forwardRef(function Accordion(props, ref) {
119
+ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
120
120
  const { children, ...rest } = props;
121
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
121
+ return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
122
122
  });
123
123
 
124
- const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
124
+ const Accordion = React.forwardRef(function Accordion(props, ref) {
125
125
  const { children, ...rest } = props;
126
- return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
126
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
127
127
  });
128
128
 
129
129
  const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
@@ -1079,8 +1079,8 @@ const WeeklyRecurrence = React.forwardRef(function WeeklyRecurrence(props, ref)
1079
1079
 
1080
1080
  module.exports = {
1081
1081
  AccordionItem,
1082
- Accordion,
1083
1082
  ActionsMenu,
1083
+ Accordion,
1084
1084
  AiCriteriaSearch,
1085
1085
  AiIndicator,
1086
1086
  Anchor,
package/dist/react.mjs CHANGED
@@ -114,14 +114,14 @@ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref)
114
114
  return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
115
115
  });
116
116
 
117
- export const Accordion = React.forwardRef(function Accordion(props, ref) {
117
+ export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
118
118
  const { children, ...rest } = props;
119
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
119
+ return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
120
120
  });
121
121
 
122
- export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
122
+ export const Accordion = React.forwardRef(function Accordion(props, ref) {
123
123
  const { children, ...rest } = props;
124
- return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
124
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
125
125
  });
126
126
 
127
127
  export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.486.1-alpha-9277091.0",
4
+ "version": "14.486.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -85,13 +85,13 @@
85
85
  }
86
86
  },
87
87
  "devDependencies": {
88
- "@genesislcap/foundation-testing": "14.486.1-alpha-9277091.0",
89
- "@genesislcap/genx": "14.486.1-alpha-9277091.0",
90
- "@genesislcap/rollup-builder": "14.486.1-alpha-9277091.0",
91
- "@genesislcap/ts-builder": "14.486.1-alpha-9277091.0",
92
- "@genesislcap/uvu-playwright-builder": "14.486.1-alpha-9277091.0",
93
- "@genesislcap/vite-builder": "14.486.1-alpha-9277091.0",
94
- "@genesislcap/webpack-builder": "14.486.1-alpha-9277091.0",
88
+ "@genesislcap/foundation-testing": "14.486.1",
89
+ "@genesislcap/genx": "14.486.1",
90
+ "@genesislcap/rollup-builder": "14.486.1",
91
+ "@genesislcap/ts-builder": "14.486.1",
92
+ "@genesislcap/uvu-playwright-builder": "14.486.1",
93
+ "@genesislcap/vite-builder": "14.486.1",
94
+ "@genesislcap/webpack-builder": "14.486.1",
95
95
  "copyfiles": "^2.4.1"
96
96
  },
97
97
  "dependencies": {
@@ -100,16 +100,16 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.486.1-alpha-9277091.0",
104
- "@genesislcap/foundation-ai": "14.486.1-alpha-9277091.0",
105
- "@genesislcap/foundation-comms": "14.486.1-alpha-9277091.0",
106
- "@genesislcap/foundation-criteria": "14.486.1-alpha-9277091.0",
107
- "@genesislcap/foundation-errors": "14.486.1-alpha-9277091.0",
108
- "@genesislcap/foundation-events": "14.486.1-alpha-9277091.0",
109
- "@genesislcap/foundation-logger": "14.486.1-alpha-9277091.0",
110
- "@genesislcap/foundation-notifications": "14.486.1-alpha-9277091.0",
111
- "@genesislcap/foundation-user": "14.486.1-alpha-9277091.0",
112
- "@genesislcap/foundation-utils": "14.486.1-alpha-9277091.0",
103
+ "@genesislcap/expression-builder": "14.486.1",
104
+ "@genesislcap/foundation-ai": "14.486.1",
105
+ "@genesislcap/foundation-comms": "14.486.1",
106
+ "@genesislcap/foundation-criteria": "14.486.1",
107
+ "@genesislcap/foundation-errors": "14.486.1",
108
+ "@genesislcap/foundation-events": "14.486.1",
109
+ "@genesislcap/foundation-logger": "14.486.1",
110
+ "@genesislcap/foundation-notifications": "14.486.1",
111
+ "@genesislcap/foundation-user": "14.486.1",
112
+ "@genesislcap/foundation-utils": "14.486.1",
113
113
  "@microsoft/fast-colors": "5.3.1",
114
114
  "@microsoft/fast-components": "2.30.6",
115
115
  "@microsoft/fast-element": "1.14.0",
@@ -142,5 +142,5 @@
142
142
  "require": "./dist/react.cjs"
143
143
  }
144
144
  },
145
- "gitHead": "aec370356825ed267b1da09a63ddecee278702cf"
145
+ "gitHead": "1e4e55b1ba9ef3aca8177127b52111d3ef0e53ae"
146
146
  }