@auto-engineer/generate-react-client 1.29.0 → 1.31.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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @auto-engineer/generate-react-client
2
2
 
3
+ ## 1.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`34fc5c6`](https://github.com/BeOnAuto/auto-engineer/commit/34fc5c68762de1a9818718fcdc09863776c00165) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **generate-react-client**: add postMessage-based iframe navigation tracking
8
+ - **global**: version packages
9
+
10
+ ### Patch Changes
11
+
12
+ - [`b806ddb`](https://github.com/BeOnAuto/auto-engineer/commit/b806ddb05cffe726629745e5609c9bed1328b131) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Reverted react component implementer to last known stable version to restore reliability
13
+
14
+ - Updated dependencies [[`b806ddb`](https://github.com/BeOnAuto/auto-engineer/commit/b806ddb05cffe726629745e5609c9bed1328b131), [`34fc5c6`](https://github.com/BeOnAuto/auto-engineer/commit/34fc5c68762de1a9818718fcdc09863776c00165)]:
15
+ - @auto-engineer/message-bus@1.31.0
16
+
17
+ ## 1.30.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [`2181802`](https://github.com/BeOnAuto/auto-engineer/commit/21818027dc5db0ab2b69116e7dae4ed458fa6c3d) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **pipeline**: use .declare().accepts() in auto.config.ts
22
+ - **pipeline**: add .declare() to EmitChain, SettledChain, HandleChain
23
+ - **pipeline**: add AcceptsDescriptor type and .declare().accepts() builder
24
+ - **react-component-implementer**: parallelize type check and browser validation
25
+ - **react-component-implementer**: wire mcp-pool for connection reuse
26
+
27
+ - [`b095ae5`](https://github.com/BeOnAuto/auto-engineer/commit/b095ae52b9574566f64cc194b8567a001ae1210c) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **generate-react-client**: add postMessage-based iframe navigation tracking
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`2181802`](https://github.com/BeOnAuto/auto-engineer/commit/21818027dc5db0ab2b69116e7dae4ed458fa6c3d), [`b095ae5`](https://github.com/BeOnAuto/auto-engineer/commit/b095ae52b9574566f64cc194b8567a001ae1210c)]:
32
+ - @auto-engineer/message-bus@1.30.0
33
+
3
34
  ## 1.29.0
4
35
 
5
36
  ### Minor Changes
@@ -131,3 +131,24 @@
131
131
  background-color: #3d4663 !important;
132
132
  }
133
133
  </style>
134
+ <script>
135
+ (function() {
136
+ if (window.parent === window) return;
137
+ function notify() {
138
+ window.parent.postMessage({ type: 'iframe-url-change', url: location.href }, '*');
139
+ }
140
+ var pushState = history.pushState;
141
+ var replaceState = history.replaceState;
142
+ history.pushState = function() {
143
+ pushState.apply(this, arguments);
144
+ notify();
145
+ };
146
+ history.replaceState = function() {
147
+ replaceState.apply(this, arguments);
148
+ notify();
149
+ };
150
+ window.addEventListener('popstate', notify);
151
+ window.addEventListener('hashchange', notify);
152
+ notify();
153
+ })();
154
+ </script>
@@ -1,10 +1,43 @@
1
1
  import tailwindcss from '@tailwindcss/vite';
2
2
  import react from '@vitejs/plugin-react-swc';
3
3
  import { resolve } from 'node:path';
4
- import { defineConfig } from 'vite';
4
+ import { defineConfig, type Plugin } from 'vite';
5
+
6
+ function iframeNavigationTracking(): Plugin {
7
+ return {
8
+ name: 'iframe-navigation-tracking',
9
+ transformIndexHtml(html) {
10
+ return html.replace(
11
+ '</head>',
12
+ `<script>
13
+ (function() {
14
+ if (window.parent === window) return;
15
+ function notify() {
16
+ window.parent.postMessage({ type: 'iframe-url-change', url: location.href }, '*');
17
+ }
18
+ var pushState = history.pushState;
19
+ var replaceState = history.replaceState;
20
+ history.pushState = function() {
21
+ pushState.apply(this, arguments);
22
+ notify();
23
+ };
24
+ history.replaceState = function() {
25
+ replaceState.apply(this, arguments);
26
+ notify();
27
+ };
28
+ window.addEventListener('popstate', notify);
29
+ window.addEventListener('hashchange', notify);
30
+ notify();
31
+ })();
32
+ </script>
33
+ </head>`,
34
+ );
35
+ },
36
+ };
37
+ }
5
38
 
6
39
  export default defineConfig({
7
- plugins: [react(), tailwindcss()],
40
+ plugins: [react(), tailwindcss(), iframeNavigationTracking()],
8
41
  resolve: {
9
42
  alias: {
10
43
  '@': resolve(__dirname, './src'),
package/package.json CHANGED
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "debug": "^4.4.1",
22
- "@auto-engineer/message-bus": "1.29.0"
22
+ "@auto-engineer/message-bus": "1.31.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/debug": "^4.1.12"
26
26
  },
27
- "version": "1.29.0",
27
+ "version": "1.31.0",
28
28
  "scripts": {
29
29
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts && cp -r starter dist/",
30
30
  "test-cli": "tsx test-cli.ts",