@xyo-network/react-payload-raw-info 2.76.2 → 2.76.4

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
@@ -11,19 +11,19 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@textea/json-viewer": "^3.4.1",
14
- "@xylabs/object": "^3.3.2",
14
+ "@xylabs/object": "^3.3.3",
15
15
  "@xylabs/react-button": "^3.1.7",
16
16
  "@xylabs/react-flexbox": "^3.1.7",
17
17
  "@xylabs/react-invertible-theme": "^3.1.7",
18
18
  "@xylabs/react-promise": "^3.1.7",
19
- "@xyo-network/payload-builder": "^2.100.5",
20
- "@xyo-network/payload-model": "^2.100.5",
21
- "@xyo-network/react-shared": "~2.76.2"
19
+ "@xyo-network/payload-builder": "^2.102.5",
20
+ "@xyo-network/payload-model": "^2.102.5",
21
+ "@xyo-network/react-shared": "~2.76.4"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@storybook/react": "^7.6.19",
25
- "@xylabs/ts-scripts-yarn3": "^3.10.0",
26
- "@xylabs/tsconfig-react": "^3.10.0",
25
+ "@xylabs/ts-scripts-yarn3": "^3.10.4",
26
+ "@xylabs/tsconfig-react": "^3.10.4",
27
27
  "typescript": "^5.4.5"
28
28
  },
29
29
  "peerDependencies": {
@@ -86,6 +86,6 @@
86
86
  "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
87
87
  },
88
88
  "sideEffects": false,
89
- "version": "2.76.2",
89
+ "version": "2.76.4",
90
90
  "type": "module"
91
91
  }
@@ -1,28 +1,33 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import { FlexCol } from "@xylabs/react-flexbox";
3
- import { Payload } from "@xyo-network/payload-model";
4
- import { RawInfoButton } from "./RawInfoButton";
1
+ import { Meta, StoryFn } from '@storybook/react'
2
+ import { FlexCol } from '@xylabs/react-flexbox'
3
+ import { Payload } from '@xyo-network/payload-model'
5
4
 
6
- type TestPayload = Payload<{ id: string, type: string, schema: string }, 'network.xyo.test'>
5
+ import { RawInfoButton } from './RawInfoButton'
6
+
7
+ type TestPayload = Payload<{ id: string; schema: string; type: string }, 'network.xyo.test'>
7
8
  const TestPayload: TestPayload = {
8
9
  id: '123',
9
- type: 'test',
10
10
  schema: 'network.xyo.test',
11
+ type: 'test',
11
12
  }
12
13
 
14
+ // eslint-disable-next-line import/no-default-export
13
15
  export default {
14
- title: 'payload/RawInfoButton',
15
16
  component: RawInfoButton,
17
+ title: 'payload/RawInfoButton',
16
18
  } as Meta
17
19
 
18
- const Template: StoryFn<typeof RawInfoButton> = (args) => <FlexCol><RawInfoButton {...args} /></FlexCol>
20
+ const Template: StoryFn<typeof RawInfoButton> = (args) => (
21
+ <FlexCol>
22
+ <RawInfoButton {...args} />
23
+ </FlexCol>
24
+ )
19
25
 
20
26
  const Default = Template.bind({})
21
27
  const WithPayload = Template.bind({})
22
28
  WithPayload.args = {
23
29
  dialogContent: 'This is a test',
24
- rawValue: TestPayload
30
+ rawValue: TestPayload,
25
31
  }
26
32
 
27
- export { Default, WithPayload };
28
-
33
+ export { Default, WithPayload }
@@ -1,28 +1,33 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import { FlexCol } from "@xylabs/react-flexbox";
3
- import { Payload } from "@xyo-network/payload-model";
4
- import { RawInfoIconButton } from "./RawInfoIconButton";
1
+ import { Meta, StoryFn } from '@storybook/react'
2
+ import { FlexCol } from '@xylabs/react-flexbox'
3
+ import { Payload } from '@xyo-network/payload-model'
5
4
 
6
- type TestPayload = Payload<{ id: string, type: string, schema: string }, 'network.xyo.test'>
5
+ import { RawInfoIconButton } from './RawInfoIconButton'
6
+
7
+ type TestPayload = Payload<{ id: string; schema: string; type: string }, 'network.xyo.test'>
7
8
  const TestPayload: TestPayload = {
8
9
  id: '123',
9
- type: 'test',
10
10
  schema: 'network.xyo.test',
11
+ type: 'test',
11
12
  }
12
13
 
14
+ // eslint-disable-next-line import/no-default-export
13
15
  export default {
14
- title: 'payload/RawInfoIcon',
15
16
  component: RawInfoIconButton,
17
+ title: 'payload/RawInfoIcon',
16
18
  } as Meta
17
19
 
18
- const Template: StoryFn<typeof RawInfoIconButton> = (args) => <FlexCol><RawInfoIconButton {...args} /></FlexCol>
20
+ const Template: StoryFn<typeof RawInfoIconButton> = (args) => (
21
+ <FlexCol>
22
+ <RawInfoIconButton {...args} />
23
+ </FlexCol>
24
+ )
19
25
 
20
26
  const Default = Template.bind({})
21
27
  const WithPayload = Template.bind({})
22
28
  WithPayload.args = {
23
29
  dialogContent: 'This is a test',
24
- rawValue: TestPayload
30
+ rawValue: TestPayload,
25
31
  }
26
32
 
27
- export { Default, WithPayload };
28
-
33
+ export { Default, WithPayload }
@@ -1,29 +1,35 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import { toJson } from "@xylabs/object";
3
- import { FlexCol } from "@xylabs/react-flexbox";
4
- import { Payload } from "@xyo-network/payload-model";
5
- import { RawInfoDialog } from "./RawInfoDialog";
1
+ import { Meta, StoryFn } from '@storybook/react'
2
+ import { toJson } from '@xylabs/object'
3
+ import { FlexCol } from '@xylabs/react-flexbox'
4
+ import { Payload } from '@xyo-network/payload-model'
6
5
 
7
- type TestPayload = Payload<{ id: string, type: string, schema: string }, 'network.xyo.test'>
6
+ import { RawInfoDialog } from './RawInfoDialog'
7
+
8
+ type TestPayload = Payload<{ id: string; schema: string; type: string }, 'network.xyo.test'>
8
9
  const TestPayload: TestPayload = {
9
10
  id: '123',
10
- type: 'test',
11
11
  schema: 'network.xyo.test',
12
+ type: 'test',
12
13
  }
13
14
 
15
+ // eslint-disable-next-line import/no-default-export
14
16
  export default {
15
- title: 'payload/RawInfoDialog',
16
17
  component: RawInfoDialog,
18
+ title: 'payload/RawInfoDialog',
17
19
  } as Meta
18
20
 
19
- const Template: StoryFn<typeof RawInfoDialog> = (args) => <FlexCol><RawInfoDialog {...args} /></FlexCol>
21
+ const Template: StoryFn<typeof RawInfoDialog> = (args) => (
22
+ <FlexCol>
23
+ <RawInfoDialog {...args} />
24
+ </FlexCol>
25
+ )
20
26
 
21
27
  const Default = Template.bind({})
22
28
  const WithPayload = Template.bind({})
23
29
  WithPayload.args = {
24
30
  dialogContent: 'This is a test',
31
+ jsonValue: toJson(TestPayload),
25
32
  open: true,
26
- jsonValue: toJson(TestPayload)
27
33
  }
28
34
 
29
- export { Default, WithPayload };
35
+ export { Default, WithPayload }