@xyo-network/react-schema 2.25.25 → 2.25.26

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/package.json CHANGED
@@ -14,13 +14,13 @@
14
14
  "@emotion/styled": "^11.8.1",
15
15
  "@mui/material": "^5.8.1",
16
16
  "@xylabs/sdk-react": "^2.12.10",
17
- "@xyo-network/api": "^2.20.33",
18
- "@xyo-network/core": "^2.20.33",
19
- "@xyo-network/react-archive": "^2.25.25",
20
- "@xyo-network/react-archivist-api": "^2.25.25",
21
- "@xyo-network/react-shared": "^2.25.25",
22
- "@xyo-network/react-theme": "^2.25.25",
23
- "@xyo-network/utils": "^2.20.33",
17
+ "@xyo-network/api": "^2.20.38",
18
+ "@xyo-network/core": "^2.20.38",
19
+ "@xyo-network/react-archive": "^2.25.26",
20
+ "@xyo-network/react-archivist-api": "^2.25.26",
21
+ "@xyo-network/react-shared": "^2.25.26",
22
+ "@xyo-network/react-theme": "^2.25.26",
23
+ "@xyo-network/utils": "^2.20.38",
24
24
  "lodash": "^4.17.21",
25
25
  "react": "^18.1.0",
26
26
  "react-dom": "^18.1.0",
@@ -32,12 +32,12 @@
32
32
  "devDependencies": {
33
33
  "@babel/core": "^7.18.2",
34
34
  "@babel/preset-env": "^7.18.2",
35
- "@storybook/addons": "^6.5.5",
36
- "@storybook/api": "^6.5.5",
37
- "@storybook/components": "^6.5.5",
38
- "@storybook/core-events": "^6.5.5",
39
- "@storybook/react": "^6.5.5",
40
- "@storybook/theming": "^6.5.5",
35
+ "@storybook/addons": "^6.5.6",
36
+ "@storybook/api": "^6.5.6",
37
+ "@storybook/components": "^6.5.6",
38
+ "@storybook/core-events": "^6.5.6",
39
+ "@storybook/react": "^6.5.6",
40
+ "@storybook/theming": "^6.5.6",
41
41
  "@types/lodash": "^4.14.182",
42
42
  "@xylabs/sdk-react": "^2.12.10",
43
43
  "@xylabs/ts-scripts": "^1.0.66",
@@ -104,6 +104,6 @@
104
104
  },
105
105
  "sideEffects": false,
106
106
  "types": "dist/esm/index.d.ts",
107
- "version": "2.25.25",
107
+ "version": "2.25.26",
108
108
  "packageManager": "yarn@3.1.1"
109
109
  }
@@ -1,6 +1,6 @@
1
1
  import { ComponentStory, Meta } from '@storybook/react'
2
2
 
3
- import { appThemeDecorator } from '../../.storybook'
3
+ import { appThemeDecorator } from '../../../../../.storybook'
4
4
  import { SchemaProperty } from './SchemaProperty'
5
5
 
6
6
  const StorybookEntry: Meta = {
@@ -0,0 +1,70 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import { ComponentMeta, ComponentStory } from '@storybook/react'
3
+ import { SelectExProps } from '@xylabs/sdk-react'
4
+
5
+ import { authDecorator, authServiceList, WrappedArgs } from '../../../../../.storybook'
6
+ import { ArchivistApiProvider } from '../../../../archivist-api/src'
7
+ import { SchemaMemoryProvider } from '../../contexts'
8
+ import { SchemaSelectEx } from './SchemaSelectEx'
9
+
10
+ const StorybookEntry = {
11
+ argTypes: {
12
+ authState: {
13
+ defaultValue: {
14
+ authServiceList,
15
+ jwtToken: 'badToken',
16
+ loggedInAccount: 'none@none.com',
17
+ },
18
+ },
19
+ },
20
+ component: SchemaSelectEx,
21
+ decorators: [authDecorator],
22
+ parameters: {
23
+ docs: {
24
+ page: null,
25
+ },
26
+ },
27
+ title: 'schema/SchemaSelectEx',
28
+ } as ComponentMeta<typeof SchemaSelectEx>
29
+
30
+ const Template: ComponentStory<typeof SchemaSelectEx> = (args) => {
31
+ return <SchemaSelectEx {...args}></SchemaSelectEx>
32
+ }
33
+
34
+ const TemplateWithProvider: ComponentStory<typeof SchemaSelectEx> = (args) => {
35
+ const combinedArgs = args as WrappedArgs & SelectExProps<string>
36
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
37
+ const { authState, ...props } = combinedArgs
38
+ return (
39
+ <SchemaMemoryProvider knownSchemaList={['network.xyo.schema', 'network.xyo.domain']}>
40
+ <SchemaSelectEx {...props}></SchemaSelectEx>
41
+ </SchemaMemoryProvider>
42
+ )
43
+ }
44
+
45
+ const TemplateWithApi: ComponentStory<typeof SchemaSelectEx> = (args) => {
46
+ const combinedArgs = args as WrappedArgs & SelectExProps<string>
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
+ const { authState, ...props } = combinedArgs
49
+ return (
50
+ <ArchivistApiProvider apiDomain="https://beta.api.archivist.xyo.network">
51
+ <SchemaMemoryProvider>
52
+ <SchemaSelectEx {...props}></SchemaSelectEx>
53
+ </SchemaMemoryProvider>
54
+ </ArchivistApiProvider>
55
+ )
56
+ }
57
+
58
+ const Default = Template.bind({})
59
+ Default.args = {}
60
+
61
+ const WithProvider = TemplateWithProvider.bind({})
62
+ WithProvider.args = {}
63
+
64
+ const WithApi = TemplateWithApi.bind({})
65
+ WithApi.args = {}
66
+
67
+ export { Default, WithApi, WithProvider }
68
+
69
+ // eslint-disable-next-line import/no-default-export
70
+ export default StorybookEntry