@dxos/react-client 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
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/dist/types/src/testing/withClientProvider.stories.d.ts +1 -0
- package/dist/types/src/testing/withClientProvider.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/moon.yml +2 -2
- package/package.json +24 -24
- package/src/halo/Passkey.stories.tsx +1 -1
- package/src/testing/ClientRepeater.stories.tsx +1 -1
- package/src/testing/withClientProvider.stories.tsx +9 -2
- package/dist/types/src/playwright/playwright.config.d.ts +0 -3
- package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
- package/dist/types/src/playwright/smoke.spec.d.ts +0 -2
- package/dist/types/src/playwright/smoke.spec.d.ts.map +0 -1
- package/src/playwright/playwright.config.ts +0 -17
- package/src/playwright/smoke.spec.ts +0 -24
package/moon.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-client",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.2244d791bb",
|
|
4
4
|
"description": "React client API",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -90,20 +90,20 @@
|
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"react-error-boundary": "^4.0.13",
|
|
93
|
-
"@dxos/async": "0.8.4-main.
|
|
94
|
-
"@dxos/codec-protobuf": "0.8.4-main.
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/context": "0.8.4-main.
|
|
98
|
-
"@dxos/echo
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/debug": "0.8.4-main.
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/log": "0.8.4-main.
|
|
103
|
-
"@dxos/node-std": "0.8.4-main.
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
93
|
+
"@dxos/async": "0.8.4-main.2244d791bb",
|
|
94
|
+
"@dxos/codec-protobuf": "0.8.4-main.2244d791bb",
|
|
95
|
+
"@dxos/config": "0.8.4-main.2244d791bb",
|
|
96
|
+
"@dxos/client": "0.8.4-main.2244d791bb",
|
|
97
|
+
"@dxos/context": "0.8.4-main.2244d791bb",
|
|
98
|
+
"@dxos/echo": "0.8.4-main.2244d791bb",
|
|
99
|
+
"@dxos/echo-react": "0.8.4-main.2244d791bb",
|
|
100
|
+
"@dxos/debug": "0.8.4-main.2244d791bb",
|
|
101
|
+
"@dxos/invariant": "0.8.4-main.2244d791bb",
|
|
102
|
+
"@dxos/log": "0.8.4-main.2244d791bb",
|
|
103
|
+
"@dxos/node-std": "0.8.4-main.2244d791bb",
|
|
104
|
+
"@dxos/protocols": "0.8.4-main.2244d791bb",
|
|
105
|
+
"@dxos/react-hooks": "0.8.4-main.2244d791bb",
|
|
106
|
+
"@dxos/util": "0.8.4-main.2244d791bb"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@types/react": "~19.2.7",
|
|
@@ -111,21 +111,21 @@
|
|
|
111
111
|
"react": "~19.2.3",
|
|
112
112
|
"react-dom": "~19.2.3",
|
|
113
113
|
"typedoc": "0.28.1",
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.
|
|
117
|
-
"@dxos/
|
|
118
|
-
"@dxos/
|
|
119
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
114
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
115
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
116
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.2244d791bb",
|
|
117
|
+
"@dxos/storybook-utils": "0.8.4-main.2244d791bb",
|
|
118
|
+
"@dxos/test-utils": "0.8.4-main.2244d791bb",
|
|
119
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"react": "~19.2.3",
|
|
123
123
|
"react-dom": "~19.2.3"
|
|
124
124
|
},
|
|
125
125
|
"optionalDependencies": {
|
|
126
|
-
"@dxos/
|
|
127
|
-
"@dxos/
|
|
128
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
126
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
127
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
128
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb"
|
|
129
129
|
},
|
|
130
130
|
"publishConfig": {
|
|
131
131
|
"access": "public"
|
|
@@ -148,7 +148,7 @@ const config = new Config({
|
|
|
148
148
|
const meta = {
|
|
149
149
|
title: 'sdk/react-client/Passkeys',
|
|
150
150
|
render: Test,
|
|
151
|
-
decorators: [withClientProvider({ config }), withTheme],
|
|
151
|
+
decorators: [withClientProvider({ config }), withTheme()],
|
|
152
152
|
} satisfies Meta;
|
|
153
153
|
|
|
154
154
|
export default meta;
|
|
@@ -17,7 +17,7 @@ import { type ClientRepeatedComponentProps, ClientRepeater } from './ClientRepea
|
|
|
17
17
|
|
|
18
18
|
const meta = {
|
|
19
19
|
title: 'sdk/react-client/ClientRepeater',
|
|
20
|
-
decorators: [withTheme],
|
|
20
|
+
decorators: [withTheme()],
|
|
21
21
|
} satisfies Meta<typeof Input>;
|
|
22
22
|
|
|
23
23
|
export default meta;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { expect, within } from 'storybook/test';
|
|
7
8
|
|
|
8
9
|
import { log } from '@dxos/log';
|
|
9
10
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
@@ -40,7 +41,8 @@ const DefaultStory = () => {
|
|
|
40
41
|
const meta = {
|
|
41
42
|
title: 'sdk/react-client/withClientProvider',
|
|
42
43
|
render: render(DefaultStory),
|
|
43
|
-
decorators: [withTheme],
|
|
44
|
+
decorators: [withTheme()],
|
|
45
|
+
tags: ['test'],
|
|
44
46
|
} satisfies Meta<typeof DefaultStory>;
|
|
45
47
|
|
|
46
48
|
export default meta;
|
|
@@ -63,11 +65,16 @@ export const Default: Story = {
|
|
|
63
65
|
parameters: {
|
|
64
66
|
layout: 'centered',
|
|
65
67
|
},
|
|
68
|
+
play: async ({ canvasElement }) => {
|
|
69
|
+
const canvas = within(canvasElement);
|
|
70
|
+
const initializedText = await canvas.findByText(/"initialized": true/i, {}, { timeout: 30_000 });
|
|
71
|
+
await expect(initializedText).toBeVisible();
|
|
72
|
+
},
|
|
66
73
|
};
|
|
67
74
|
|
|
68
75
|
export const Multiple: Story = {
|
|
69
76
|
decorators: [
|
|
70
|
-
withTheme,
|
|
77
|
+
withTheme(),
|
|
71
78
|
withLayout({ classNames: 'grid grid-cols-3' }),
|
|
72
79
|
withMultiClientProvider({ ...clientProps, numClients: 3 }),
|
|
73
80
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../src/playwright/playwright.config.ts"],"names":[],"mappings":";AAQA,wBAQG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"smoke.spec.d.ts","sourceRoot":"","sources":["../../../../src/playwright/smoke.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineConfig } from '@playwright/test';
|
|
6
|
-
|
|
7
|
-
import { e2ePreset } from '@dxos/test-utils/playwright';
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
...e2ePreset(import.meta.dirname),
|
|
11
|
-
// TODO(wittjosiah): Avoid hard-coding ports.
|
|
12
|
-
webServer: {
|
|
13
|
-
command: 'moon run storybook-react:serve-e2e -- --port=9000',
|
|
14
|
-
port: 9000,
|
|
15
|
-
reuseExistingServer: false,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2021 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { type Page, expect, test } from '@playwright/test';
|
|
6
|
-
|
|
7
|
-
import { setupPage, storybookUrl } from '@dxos/test-utils/playwright';
|
|
8
|
-
|
|
9
|
-
test.describe('Smoke test', () => {
|
|
10
|
-
let page: Page;
|
|
11
|
-
|
|
12
|
-
test.beforeAll(async ({ browser }) => {
|
|
13
|
-
const result = await setupPage(browser, {
|
|
14
|
-
url: storybookUrl('sdk-react-client-withclientprovider--default', 9000),
|
|
15
|
-
});
|
|
16
|
-
page = result.page;
|
|
17
|
-
await page.locator(':text("initialized")').waitFor({ state: 'visible' });
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// NOTE: This test depends on connecting to the default production deployed HALO vault.
|
|
21
|
-
test('Renders remote client info', async () => {
|
|
22
|
-
await expect(page.locator(':text("initialized")')).toBeVisible();
|
|
23
|
-
});
|
|
24
|
-
});
|