@blocklet/sdk 1.16.45-beta-20250625-064956-91b0fb8f → 1.16.45-beta-20250626-115702-00b49b4c

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/lib/config.d.ts CHANGED
@@ -78,7 +78,7 @@ declare const _handleConfigUpdate: (data: any) => void;
78
78
  declare const _handleComponentConfigUpdate: (data: any) => void;
79
79
  declare const getBlockletSettings: () => {
80
80
  theme: {
81
- prefer: "light";
81
+ prefer: "system";
82
82
  light: {
83
83
  palette: import("@mui/material").PaletteOptions;
84
84
  };
@@ -146,7 +146,7 @@ declare const _default: {
146
146
  getBlockletJs: (pageGroup?: string, pathPrefix?: string, source?: string) => string;
147
147
  getBlockletSettings: () => {
148
148
  theme: {
149
- prefer: "light";
149
+ prefer: "system";
150
150
  light: {
151
151
  palette: import("@mui/material").PaletteOptions;
152
152
  };
package/lib/config.js CHANGED
@@ -265,7 +265,7 @@ const _handleComponentConfigUpdate = (data) => {
265
265
  };
266
266
  exports._handleComponentConfigUpdate = _handleComponentConfigUpdate;
267
267
  const DEFAULT_THEME_SETTINGS = {
268
- prefer: 'light',
268
+ prefer: 'system',
269
269
  light: {
270
270
  palette: theme_1.BLOCKLET_THEME_LIGHT.palette,
271
271
  },
@@ -96,13 +96,13 @@ async function verifyComponentCall({ req, strictMode }) {
96
96
  async function verifySignedToken({ token, strictMode }) {
97
97
  if (!token)
98
98
  return null;
99
- if (!(await (0, jwt_1.verify)(token, (0, exports.getSessionSecret)()))) {
99
+ const wallet = (0, wallet_1.default)();
100
+ if (!(await (0, jwt_1.verify)(token, wallet.publicKey))) {
100
101
  if (strictMode) {
101
102
  throw new Error('Unauthorized: Invalid signed token');
102
103
  }
103
104
  return null;
104
105
  }
105
- const wallet = (0, wallet_1.default)();
106
106
  return {
107
107
  did: wallet.address,
108
108
  role: 'component',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.45-beta-20250625-064956-91b0fb8f",
6
+ "version": "1.16.45-beta-20250626-115702-00b49b4c",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,18 +27,18 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.45-beta-20250625-064956-91b0fb8f",
31
- "@abtnode/constant": "1.16.45-beta-20250625-064956-91b0fb8f",
32
- "@abtnode/db-cache": "1.16.45-beta-20250625-064956-91b0fb8f",
33
- "@abtnode/util": "1.16.45-beta-20250625-064956-91b0fb8f",
30
+ "@abtnode/client": "1.16.45-beta-20250626-115702-00b49b4c",
31
+ "@abtnode/constant": "1.16.45-beta-20250626-115702-00b49b4c",
32
+ "@abtnode/db-cache": "1.16.45-beta-20250626-115702-00b49b4c",
33
+ "@abtnode/util": "1.16.45-beta-20250626-115702-00b49b4c",
34
34
  "@arcblock/did": "1.20.14",
35
35
  "@arcblock/did-auth": "1.20.14",
36
36
  "@arcblock/jwt": "1.20.14",
37
37
  "@arcblock/ws": "1.20.14",
38
- "@blocklet/constant": "1.16.45-beta-20250625-064956-91b0fb8f",
39
- "@blocklet/env": "1.16.45-beta-20250625-064956-91b0fb8f",
38
+ "@blocklet/constant": "1.16.45-beta-20250626-115702-00b49b4c",
39
+ "@blocklet/env": "1.16.45-beta-20250626-115702-00b49b4c",
40
40
  "@blocklet/error": "^0.2.5",
41
- "@blocklet/meta": "1.16.45-beta-20250625-064956-91b0fb8f",
41
+ "@blocklet/meta": "1.16.45-beta-20250626-115702-00b49b4c",
42
42
  "@blocklet/theme": "^2.13.70",
43
43
  "@did-connect/authenticator": "^2.2.8",
44
44
  "@did-connect/handler": "^2.2.8",
@@ -85,5 +85,5 @@
85
85
  "ts-node": "^10.9.1",
86
86
  "typescript": "^5.6.3"
87
87
  },
88
- "gitHead": "90b9c4c9352f9ae33139f4e376b97b3be43698fa"
88
+ "gitHead": "8a70f88f034e2926185d4d0b9503ab8430a772a1"
89
89
  }