@powerhousedao/connect 1.0.22-staging.0 → 1.0.23-dev.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.
Files changed (37) hide show
  1. package/dist/.env +1 -1
  2. package/dist/assets/{app-CDOWlDp2.css → app-D5gNm0Gn.css} +186 -27
  3. package/dist/assets/{app-CpNI4xTA.js → app-DCtCV8Sz.js} +10895 -8420
  4. package/dist/assets/app-DCtCV8Sz.js.map +1 -0
  5. package/dist/assets/{app-loader-DADQ7rok.js → app-loader-BAEWEx-m.js} +733 -403
  6. package/dist/assets/app-loader-BAEWEx-m.js.map +1 -0
  7. package/dist/assets/{app-loader-DiF8OhX3.css → app-loader-NDVZu4bS.css} +162 -34
  8. package/dist/assets/browser-BeUBqndM.js +27224 -0
  9. package/dist/assets/browser-BeUBqndM.js.map +1 -0
  10. package/dist/assets/{ccip-DATfa3z8.js → ccip-CMd6tRtn.js} +5 -4
  11. package/dist/assets/ccip-CMd6tRtn.js.map +1 -0
  12. package/dist/assets/{content-CkbffPFR.js → content-DsWyfJvF.js} +1105 -463
  13. package/dist/assets/content-DsWyfJvF.js.map +1 -0
  14. package/dist/assets/{index-GuaHVlAM.js → index-ADsM2QWh.js} +23 -171
  15. package/dist/assets/index-ADsM2QWh.js.map +1 -0
  16. package/dist/assets/{index-BFdIunuJ.js → index-CCDoOj0e.js} +4 -3
  17. package/dist/assets/index-CCDoOj0e.js.map +1 -0
  18. package/dist/assets/{index-CEFMQRxw.js → index-CSN0Iyem.js} +554 -750
  19. package/dist/assets/index-CSN0Iyem.js.map +1 -0
  20. package/dist/assets/index-Dl8ZqWS0.js +208 -0
  21. package/dist/assets/index-Dl8ZqWS0.js.map +1 -0
  22. package/dist/assets/{main.Dqmo52dd.js → main.DW9UCmAK.js} +2 -1
  23. package/dist/assets/main.DW9UCmAK.js.map +1 -0
  24. package/dist/assets/reactor-analytics-hlzA2WG5.js +42 -0
  25. package/dist/assets/reactor-analytics-hlzA2WG5.js.map +1 -0
  26. package/dist/assets/router-DJRPUFad.js +1585 -0
  27. package/dist/assets/router-DJRPUFad.js.map +1 -0
  28. package/dist/assets/{style-Ce3V83BE.css → style-CdxGKc2g.css} +39 -25
  29. package/dist/external-packages.js +1 -0
  30. package/dist/external-packages.js.map +1 -0
  31. package/dist/hmr.js +1 -0
  32. package/dist/hmr.js.map +1 -0
  33. package/dist/index.html +1 -1
  34. package/dist/service-worker.js +1 -0
  35. package/dist/service-worker.js.map +1 -0
  36. package/dist/vite-envs.sh +1 -1
  37. package/package.json +17 -10
@@ -1,6 +1,6 @@
1
1
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
2
2
 
3
- /*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */
3
+ /*! tailwindcss v4.0.14 | MIT License | https://tailwindcss.com */
4
4
  :root {
5
5
  --toastify-color-light: #fff;
6
6
  --toastify-color-dark: #121212;
@@ -687,6 +687,9 @@
687
687
  @layer theme, base, components, utilities;
688
688
  @layer theme {
689
689
  :root, :host {
690
+ --font-sans: "Inter", sans-serif;
691
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
692
+ "Courier New", monospace;
690
693
  --color-red-800: hsl(5 81% 61%);
691
694
  --color-red-900: hsl(5 81% 56%);
692
695
  --color-slate-50: hsl(210 20% 96%);
@@ -718,6 +721,18 @@
718
721
  --radius-3xl: 1.5rem;
719
722
  --default-transition-duration: 150ms;
720
723
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
724
+ --default-font-family: var(--font-sans);
725
+ --default-font-feature-settings: var(--font-sans--font-feature-settings);
726
+ --default-font-variation-settings: var(
727
+ --font-sans--font-variation-settings
728
+ );
729
+ --default-mono-font-family: var(--font-mono);
730
+ --default-mono-font-feature-settings: var(
731
+ --font-mono--font-feature-settings
732
+ );
733
+ --default-mono-font-variation-settings: var(
734
+ --font-mono--font-variation-settings
735
+ );
721
736
  }
722
737
  }
723
738
  @layer base {
@@ -731,11 +746,14 @@
731
746
  line-height: 1.5;
732
747
  -webkit-text-size-adjust: 100%;
733
748
  tab-size: 4;
734
- font-family: "Inter", sans-serif;
735
- font-feature-settings: initial;
736
- font-variation-settings: initial;
749
+ font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" );
750
+ font-feature-settings: var(--default-font-feature-settings, normal);
751
+ font-variation-settings: var( --default-font-variation-settings, normal );
737
752
  -webkit-tap-highlight-color: transparent;
738
753
  }
754
+ body {
755
+ line-height: inherit;
756
+ }
739
757
  hr {
740
758
  height: 0;
741
759
  color: inherit;
@@ -758,10 +776,9 @@
758
776
  font-weight: bolder;
759
777
  }
760
778
  code, kbd, samp, pre {
761
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
762
- "Courier New", monospace;
763
- font-feature-settings: initial;
764
- font-variation-settings: initial;
779
+ font-family: var( --default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace );
780
+ font-feature-settings: var( --default-mono-font-feature-settings, normal );
781
+ font-variation-settings: var( --default-mono-font-variation-settings, normal );
765
782
  font-size: 1em;
766
783
  }
767
784
  small {
@@ -825,11 +842,7 @@
825
842
  }
826
843
  ::placeholder {
827
844
  opacity: 1;
828
- }
829
- @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
830
- ::placeholder {
831
- color: color-mix(in oklab, currentColor 50%, transparent);
832
- }
845
+ color: color-mix(in oklab, currentColor 50%, transparent);
833
846
  }
834
847
  textarea {
835
848
  resize: vertical;
@@ -1365,6 +1378,9 @@ input[type="number"] {
1365
1378
  h1, h2, h3, h4, h5, h6, p {
1366
1379
  color: var(--color-gray-900);
1367
1380
  }
1381
+ button {
1382
+ cursor: pointer;
1383
+ }
1368
1384
  }
1369
1385
  @layer theme, base, components, utilities;
1370
1386
  @layer theme;
@@ -1379,11 +1395,14 @@ input[type="number"] {
1379
1395
  line-height: 1.5;
1380
1396
  -webkit-text-size-adjust: 100%;
1381
1397
  tab-size: 4;
1382
- font-family: "Inter", sans-serif;
1383
- font-feature-settings: initial;
1384
- font-variation-settings: initial;
1398
+ font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" );
1399
+ font-feature-settings: var(--default-font-feature-settings, normal);
1400
+ font-variation-settings: var( --default-font-variation-settings, normal );
1385
1401
  -webkit-tap-highlight-color: transparent;
1386
1402
  }
1403
+ body {
1404
+ line-height: inherit;
1405
+ }
1387
1406
  hr {
1388
1407
  height: 0;
1389
1408
  color: inherit;
@@ -1406,10 +1425,9 @@ input[type="number"] {
1406
1425
  font-weight: bolder;
1407
1426
  }
1408
1427
  code, kbd, samp, pre {
1409
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
1410
- "Courier New", monospace;
1411
- font-feature-settings: initial;
1412
- font-variation-settings: initial;
1428
+ font-family: var( --default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace );
1429
+ font-feature-settings: var( --default-mono-font-feature-settings, normal );
1430
+ font-variation-settings: var( --default-mono-font-variation-settings, normal );
1413
1431
  font-size: 1em;
1414
1432
  }
1415
1433
  small {
@@ -1473,11 +1491,7 @@ input[type="number"] {
1473
1491
  }
1474
1492
  ::placeholder {
1475
1493
  opacity: 1;
1476
- }
1477
- @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
1478
- ::placeholder {
1479
- color: color-mix(in oklab, currentColor 50%, transparent);
1480
- }
1494
+ color: color-mix(in oklab, currentColor 50%, transparent);
1481
1495
  }
1482
1496
  textarea {
1483
1497
  resize: vertical;
@@ -2,3 +2,4 @@ const externalPackages = [];
2
2
  export {
3
3
  externalPackages as default
4
4
  };
5
+ //# sourceMappingURL=external-packages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-packages.js","sources":["../src/external-packages.js"],"sourcesContent":["\n\nexport default [\n \n ];"],"names":[],"mappings":"AAEA,MAAe,mBAAA,CAEV;"}
package/dist/hmr.js CHANGED
@@ -2,3 +2,4 @@ const hmr = import.meta.hot;
2
2
  export {
3
3
  hmr
4
4
  };
5
+ //# sourceMappingURL=hmr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hmr.js","sources":["../src/hmr.ts"],"sourcesContent":["import type { ViteHotContext } from 'vite/types/hot.js';\n\nexport const hmr = import.meta.hot as ViteHotContext | undefined;\n"],"names":[],"mappings":"AAEO,MAAM,MAAM,YAAA;"}
package/dist/index.html CHANGED
@@ -64,4 +64,4 @@
64
64
  "react-dom": "https://esm.sh/react-dom",
65
65
  "react-dom/": "https://esm.sh/react-dom/"
66
66
  }
67
- }</script><script type="module" crossorigin="" src="/assets/main.Dqmo52dd.js"></script></head><body><div id="app"></div></body></html>
67
+ }</script><script type="module" crossorigin="" src="/assets/main.DW9UCmAK.js"></script></head><body><div id="app"></div></body></html>
@@ -44,3 +44,4 @@ async function updateClients(version, requiresHardRefresh) {
44
44
  });
45
45
  });
46
46
  }
47
+ //# sourceMappingURL=service-worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-worker.js","sources":["../src/service-worker.ts"],"sourcesContent":["/// <reference lib=\"WebWorker\" />\n\nimport { type ServiceWorkerEvent } from './utils/registerServiceWorker.js';\n\nconst _self = self as unknown as ServiceWorkerGlobalScope;\n\nconst APP_VERSION = __APP_VERSION__;\nconst REQUIRES_HARD_REFRESH = __REQUIRES_HARD_REFRESH__;\n\nconst VERSION_CACHE = 'version-cache';\nconst VERSION_KEY = 'app-version';\n\n_self.addEventListener('install', () => {\n _self.skipWaiting().catch(console.error);\n});\n\n_self.addEventListener('activate', (event: ExtendableEvent) => {\n event.waitUntil(_self.clients.claim());\n\n checkAppVersion(APP_VERSION, REQUIRES_HARD_REFRESH).catch(console.error);\n});\n\nexport type NEW_VERSION_AVAILABLE_MESSAGE = {\n type: 'NEW_VERSION_AVAILABLE';\n version: string;\n requiresHardRefresh: boolean;\n};\n\nexport type ServiceWorkerMessageData = NEW_VERSION_AVAILABLE_MESSAGE;\n\nexport type ServiceWorkerMessage = ServiceWorkerEvent<ServiceWorkerMessageData>;\n\nfunction postMessage(client: Client, message: ServiceWorkerMessageData) {\n return client.postMessage(message);\n}\n\nasync function checkAppVersion(version: string, requiresHardRefresh: boolean) {\n try {\n const cache = await caches.open(VERSION_CACHE);\n const cachedResponse = await cache.match(VERSION_KEY);\n\n let currentVersion = '';\n\n if (cachedResponse) {\n currentVersion = await cachedResponse.text();\n }\n\n if (currentVersion === '') {\n // Initial cache\n await cache.put(VERSION_KEY, new Response(version));\n } else if (currentVersion !== version) {\n // New version detected\n console.log('Current version:', currentVersion);\n console.log('New version:', version);\n\n // Update the stored version\n await cache.put(VERSION_KEY, new Response(version));\n\n // Update clients\n await updateClients(version, requiresHardRefresh);\n }\n } catch (error) {\n console.error('Error checking version:', error);\n }\n}\n\nasync function updateClients(version: string, requiresHardRefresh: boolean) {\n await _self.clients.claim();\n const clients = await _self.clients.matchAll();\n clients.forEach(client => {\n postMessage(client, {\n type: 'NEW_VERSION_AVAILABLE',\n version,\n requiresHardRefresh,\n });\n });\n}\n"],"names":[],"mappings":"AAIA,MAAM,QAAQ;AAEd,MAAM,cAAc;AACpB,MAAM,wBAAwB;AAE9B,MAAM,gBAAgB;AACtB,MAAM,cAAc;AAEpB,MAAM,iBAAiB,WAAW,MAAM;AACpC,QAAM,YAAY,EAAE,MAAM,QAAQ,KAAK;AAC3C,CAAC;AAED,MAAM,iBAAiB,YAAY,CAAC,UAA2B;AAC3D,QAAM,UAAU,MAAM,QAAQ,MAAA,CAAO;AAErC,kBAAgB,aAAa,qBAAqB,EAAE,MAAM,QAAQ,KAAK;AAC3E,CAAC;AAYD,SAAS,YAAY,Q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gICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkRXOVVDbUFLLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
15
15
 
16
16
  BASE_URL_base64="eEFwV2RSclg5OWtQclZnZ0UiLyIK"
17
17
  BASE_URL=$(echo "Lwo=" | base64 -d)
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@powerhousedao/connect",
3
3
  "productName": "Powerhouse-Connect",
4
- "version": "1.0.22-staging.0",
4
+ "version": "1.0.23-dev.1",
5
5
  "description": "Powerhouse Connect",
6
6
  "main": "./dist/index.html",
7
7
  "type": "module",
8
8
  "engines": {
9
9
  "node": ">=20.0.0"
10
10
  },
11
+ "bin": {
12
+ "connect": "serve ./dist"
13
+ },
11
14
  "files": [
12
15
  "dist",
13
16
  "nginx.conf",
@@ -35,6 +38,7 @@
35
38
  "@electron-forge/publisher-github": "^7.2.0",
36
39
  "@electron-forge/shared-types": "^7.7.0",
37
40
  "@playwright/test": "^1.41.2",
41
+ "@powerhousedao/diff-analyzer": "^0.0.0-dev.4",
38
42
  "@rollup/plugin-node-resolve": "^15.2.3",
39
43
  "@sentry/browser": "^9.1.0",
40
44
  "@sentry/react": "^7.109.0",
@@ -82,19 +86,22 @@
82
86
  "vite-plugin-svgr": "^4.2.0",
83
87
  "vite-tsconfig-paths": "^4.3.2",
84
88
  "xvfb-maybe": "^0.2.1",
85
- "@powerhousedao/builder-tools": "0.9.33-staging.0",
86
- "@powerhousedao/config": "1.27.0-staging.3",
87
- "@powerhousedao/design-system": "1.39.21-staging.0",
88
- "@powerhousedao/reactor-browser": "1.22.29-staging.0",
89
- "@powerhousedao/scalars": "1.33.1-staging.3",
90
- "@powerhousedao/common": "1.10.37-staging.0",
91
- "document-model": "2.28.1-staging.3",
92
- "document-drive": "1.29.12-staging.1"
89
+ "@powerhousedao/builder-tools": "0.9.37-dev.1",
90
+ "@powerhousedao/config": "1.27.0-dev.11",
91
+ "@powerhousedao/design-system": "1.39.26-dev.1",
92
+ "@powerhousedao/reactor-browser": "1.22.34-dev.1",
93
+ "@powerhousedao/scalars": "1.33.1-dev.9",
94
+ "document-drive": "1.29.12-dev.3",
95
+ "document-model": "2.28.1-dev.11",
96
+ "@powerhousedao/common": "1.10.44-dev.1"
93
97
  },
94
98
  "optionalDependencies": {
95
99
  "@esbuild/linux-x64": "^0.21.4",
96
100
  "@rollup/rollup-linux-x64-musl": "4.14.3"
97
101
  },
102
+ "dependencies": {
103
+ "serve": "^14.2.4"
104
+ },
98
105
  "scripts": {
99
106
  "build:tsc": "tsc --build",
100
107
  "start": "electron-forge start",
@@ -110,7 +117,7 @@
110
117
  "format": "prettier --write \"**/*.+(js|ts|jsx|tsx|json)\"",
111
118
  "dev": "vite -c vite.renderer.config.mts",
112
119
  "dev:nocache": "rm -rf node_modules/.vite && rm -rf node_modules/.cache && npm run dev",
113
- "prebuild": "tsc --build --noEmit",
120
+ "prebuild": "npm run clean && tsc --build --noEmit",
114
121
  "build": "NODE_OPTIONS=--max-old-space-size=6144 vite build -c vite.renderer.config.mts",
115
122
  "preview:web": "vite preview -c vite.renderer.config.mts",
116
123
  "e2e": "playwright test",