Skip to content

Commit

Permalink
fix: rootElement validation
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVidra committed Feb 8, 2024
1 parent 7d0d9fa commit 2c06495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ npm install @flows/js
### Via CDN

```html
<script src="https://cdn.jsdelivr.net/npm/@flows/js@0.0.36/dist/index.global.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js@0.0.36/css.min/flows.css" />
<script src="https://cdn.jsdelivr.net/npm/@flows/js@0.0.37/dist/index.global.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js@0.0.37/css.min/flows.css" />
```

### Usage
Expand Down
2 changes: 1 addition & 1 deletion workspaces/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"product-adoption",
"product-tours"
],
"version": "0.0.36",
"version": "0.0.37",
"repository": {
"type": "git",
"url": "git+https://github.com/RBND-studio/flows-js.git"
Expand Down
1 change: 1 addition & 0 deletions workspaces/js/src/core/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const FlowStruct: Describe<Flow> = object({
union([UserPropertyMatchGroupStruct, array(UserPropertyMatchGroupStruct)]),
),
draft: optional(boolean()),
rootElement: optional(string()),
_incompleteSteps: optional(boolean()),
});

Expand Down

0 comments on commit 2c06495

Please sign in to comment.