wirejs-components 0.1.141 → 0.1.143

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.
@@ -107,7 +107,7 @@ export const AccountMenu = async ({ api, initialState, topItems, bottomItems })
107
107
  </div>
108
108
  </accountmenu>`.onadd(async (self) => {
109
109
  if (!initialState) {
110
- const state = await api.getState(null);
110
+ const state = await api.getState();
111
111
  authenticator.data.setState(state);
112
112
  }
113
113
  });
@@ -158,7 +158,7 @@ export const Authenticator = (stateManager, initialState) => {
158
158
  <div>${message || ''}</div>
159
159
  <div>${Object.entries(lastKnownState?.actions || []).map(([_key, action]) => {
160
160
  return authenticatoraction({ ...action }, async (act) => {
161
- self.renderState(await stateManager.setState(null, act));
161
+ self.renderState(await stateManager.setState(act));
162
162
  });
163
163
  })}</div>
164
164
  </div>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-components",
3
- "version": "0.1.141",
3
+ "version": "0.1.143",
4
4
  "description": "Client-side components for wirejs apps, including basic UI and resource-aware components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://github.com/svidgen/create-wirejs-app#readme",
32
32
  "dependencies": {
33
33
  "wirejs-dom": "^1.0.44",
34
- "wirejs-resources": "^0.1.198"
34
+ "wirejs-resources": "^0.1.200"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.7.3"