@qoretechnologies/reqraft 0.10.10 → 0.10.11
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 +1 -1
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +74 -2
- package/src/components/form/engine/FormEngine.stories.tsx +654 -32
- package/src/components/form/engine/FormEngineRemote.stories.tsx +48 -0
- package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +8 -0
- package/src/components/form/engine/variants/FormEngineVariants.stories.tsx +40 -0
- package/src/components/form/expressions/ExpressionField.stories.tsx +74 -2
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +187 -0
- package/src/components/form/fields/Field.stories.tsx +40 -0
- package/src/components/form/fields/array/ArrayAutoField.stories.tsx +64 -0
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +136 -0
- package/src/components/form/fields/binary/Binary.stories.tsx +32 -0
- package/src/components/form/fields/boolean/Boolean.stories.tsx +24 -0
- package/src/components/form/fields/byte-size/ByteSize.stories.tsx +24 -0
- package/src/components/form/fields/color/Color.stories.tsx +30 -0
- package/src/components/form/fields/cron/Cron.stories.tsx +8 -0
- package/src/components/form/fields/date/Date.stories.tsx +22 -0
- package/src/components/form/fields/file/File.stories.tsx +48 -0
- package/src/components/form/fields/long-string/LongString.stories.tsx +24 -0
- package/src/components/form/fields/markdown/Markdown.stories.tsx +8 -0
- package/src/components/form/fields/number/Number.stories.tsx +31 -0
- package/src/components/form/fields/object/Object.stories.tsx +88 -0
- package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +24 -0
- package/src/components/form/fields/rich-text/RichText.stories.tsx +23 -0
- package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +72 -0
- package/src/components/form/fields/select/Select.stories.tsx +104 -0
- package/src/components/form/fields/string/String.stories.tsx +16 -0
- package/src/components/form/fields/template/TemplateField.stories.tsx +160 -0
- package/src/components/form/fields/url/Url.stories.tsx +24 -0
- package/src/components/log/Log.stories.tsx +96 -0
- package/src/components/menu/Menu.stories.tsx +54 -0
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +14 -0
- package/src/components/smartEditor/SmartEditor.stories.tsx +32 -0
- package/src/hooks/useFetch/useFetch.stories.tsx +30 -0
- package/src/hooks/useStorage/useStorage.stories.tsx +30 -0
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +127 -1
- package/src/stores/currentUser/currentUser.stories.tsx +17 -0
|
@@ -26,6 +26,14 @@ export default meta;
|
|
|
26
26
|
export type Story = StoryObj<typeof meta>;
|
|
27
27
|
|
|
28
28
|
export const CurrentUserCanBeLoaded: Story = {
|
|
29
|
+
parameters: {
|
|
30
|
+
docs: {
|
|
31
|
+
description: {
|
|
32
|
+
story:
|
|
33
|
+
'Renders a demo that reads currentUserStore — the store loads /users?action=current and the returned user object is displayed as a tree.',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
29
37
|
play: async () => {
|
|
30
38
|
await testsWaitForText('"David Nichols"');
|
|
31
39
|
},
|
|
@@ -33,6 +41,15 @@ export const CurrentUserCanBeLoaded: Story = {
|
|
|
33
41
|
|
|
34
42
|
export const CurrentUserHasPermissions: Story = {
|
|
35
43
|
...CurrentUserCanBeLoaded,
|
|
44
|
+
parameters: {
|
|
45
|
+
...CurrentUserCanBeLoaded.parameters,
|
|
46
|
+
docs: {
|
|
47
|
+
description: {
|
|
48
|
+
story:
|
|
49
|
+
'Renders a demo that calls currentUserStore().hasAnyPermission — the affirmative message renders because the loaded user carries at least one of the requested permissions.',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
36
53
|
render: () => {
|
|
37
54
|
const { hasAnyPermission } = currentUserStore();
|
|
38
55
|
|