Skip to content

Commit 5bbb0f7

Browse files
authored
Merge pull request #950 from tien/feat/misc-reactive-dot-improvements
2 parents cb90d53 + d8f0ecb commit 5bbb0f7

File tree

4 files changed

+42
-37
lines changed

4 files changed

+42
-37
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@radix-ui/react-toggle": "^1.1.10",
3535
"@radix-ui/react-toggle-group": "^1.1.11",
3636
"@radix-ui/react-tooltip": "^1.2.8",
37-
"@reactive-dot/core": "^0.67.3",
38-
"@reactive-dot/react": "^0.67.3",
37+
"@reactive-dot/core": "^0.68.1",
38+
"@reactive-dot/react": "^0.68.0",
3939
"@tanstack/react-table": "^8.21.3",
4040
"buffer": "^6.0.3",
4141
"class-variance-authority": "^0.7.1",

pnpm-lock.yaml

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106

107107
@layer base {
108108
:root {
109-
--dc-primary-color: #000;
110-
--dc-on-primary-color: #f5f5f5;
109+
--dc-primary-color: light-dark(#000, #f5f5f5);
110+
--dc-on-primary-color: light-dark(#f5f5f5, #000);
111111
--dc-surface-color: light-dark(#ffffff, #1e1e1e);
112112
--dc-on-surface-color: light-dark(#000000, #ffffff);
113113
--dc-info-color: light-dark(#007aff, #0a84ff);
@@ -168,6 +168,7 @@
168168
--chart-3: 30 80% 55%;
169169
--chart-4: 280 65% 60%;
170170
--chart-5: 340 75% 55%;
171+
color-scheme: dark;
171172
}
172173
}
173174

src/reactiveConfig.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ const config = defineConfig({
2121
wallets: [new InjectedWalletProvider()],
2222
})
2323

24+
declare module '@reactive-dot/core' {
25+
export interface Register {
26+
config: typeof config
27+
}
28+
}
29+
2430
registerDotConnect(config)
2531

26-
// TypeScript cannot emit the light client provider's private symbol, so we only
27-
// expose the runtime value without the inferred type information.
28-
export const reactiveConfig = config as never
32+
export const reactiveConfig = config

0 commit comments

Comments
 (0)