@wire-dsl/web 0.3.2 → 0.3.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.
Files changed (31) hide show
  1. package/.turbo/turbo-build.log +19 -19
  2. package/CHANGELOG.md +20 -0
  3. package/dist/assets/{cssMode-B1htI0mP.js → cssMode-DHhNu-d3.js} +1 -1
  4. package/dist/assets/{freemarker2-DtkHI_Rl.js → freemarker2-CKoePx8U.js} +1 -1
  5. package/dist/assets/{handlebars-5l2WfrfE.js → handlebars-DCcNN_JA.js} +1 -1
  6. package/dist/assets/{html-zgD5k3xM.js → html-q_H0suEi.js} +1 -1
  7. package/dist/assets/{htmlMode-EslPXFxK.js → htmlMode-51Or44r1.js} +1 -1
  8. package/dist/assets/{index-CSmMwHsK.js → index-DxoM11k4.js} +437 -380
  9. package/dist/assets/{javascript-DNb4Eksf.js → javascript-DsO9DrY2.js} +1 -1
  10. package/dist/assets/{jsonMode-BL_bFa9m.js → jsonMode-CBTKltTc.js} +1 -1
  11. package/dist/assets/{liquid-DQexTk-X.js → liquid-B_xseExe.js} +1 -1
  12. package/dist/assets/{lspLanguageFeatures-DkDEOgYf.js → lspLanguageFeatures-DcdKKHtr.js} +1 -1
  13. package/dist/assets/{mdx-CjI2F49x.js → mdx-BzqxTvM_.js} +1 -1
  14. package/dist/assets/{python-Ckx9i3IS.js → python-DR7n_tHO.js} +1 -1
  15. package/dist/assets/{razor-SRYtd6UF.js → razor-WH_xenCG.js} +1 -1
  16. package/dist/assets/{tsMode-DsWMXsbe.js → tsMode-BPvQr8_E.js} +1 -1
  17. package/dist/assets/{typescript-BUyWOX3y.js → typescript-BqQocOFl.js} +1 -1
  18. package/dist/assets/{xml-BoByhmm-.js → xml-CIYPTjB8.js} +1 -1
  19. package/dist/assets/{yaml-C6ke8W1M.js → yaml-Dihr52df.js} +1 -1
  20. package/dist/examples/admin-dashboard.wire +2 -2
  21. package/dist/examples/analytics-dashboard.wire +77 -47
  22. package/dist/examples/form-example.wire +1 -1
  23. package/dist/examples/simple-dashboard.wire +2 -2
  24. package/dist/examples/simple-multi-screen.wire +1 -1
  25. package/dist/index.html +1 -1
  26. package/package.json +3 -3
  27. package/public/examples/admin-dashboard.wire +2 -2
  28. package/public/examples/analytics-dashboard.wire +77 -47
  29. package/public/examples/form-example.wire +1 -1
  30. package/public/examples/simple-dashboard.wire +2 -2
  31. package/public/examples/simple-multi-screen.wire +1 -1
@@ -1,5 +1,5 @@
1
- project "Analytics Dashboard" {
2
- config {
1
+ project "Admin Dashboard" {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
@@ -7,57 +7,87 @@ project "Analytics Dashboard" {
7
7
  font: "base"
8
8
  }
9
9
 
10
- screen Dashboard {
11
- layout stack(direction: vertical, gap: lg, padding: xl) {
12
- component Topbar title: "Analytics" subtitle: "Realtime overview"
13
-
14
- layout split(sidebar: 260, gap: lg) {
15
- layout stack(direction: vertical, gap: md, padding: md) {
16
- component Heading title: "Filters"
17
- component Select label: "Date Range" items: "Last 7 days,Last 30 days,Last 90 days"
18
- component Select label: "Channel" items: "All channels,Social,Email,Direct"
19
- component Select label: "Region" items: "Global,North America,Europe,Asia"
20
- component Divider
21
- component Checkbox label: "Email alerts"
22
- component Checkbox label: "Slack alerts"
23
- }
10
+ screen UsersList {
11
+ layout split(left: 240, gap: lg) {
12
+ layout stack(direction: vertical, gap: md, padding: md) {
13
+ component Heading text: "Menu"
14
+ component SidebarMenu items: "Users,Roles,Permissions,Audit,Settings" active: 0
15
+ }
24
16
 
25
- layout stack(direction: vertical, gap: lg, padding: lg) {
26
- layout grid(columns: 12, gap: md) {
27
- cell span: 3 {
28
- component Badge text: "+12%" variant: primary
29
- }
30
- cell span: 3 {
31
- component Badge text: "-3%" variant: secondary
32
- }
33
- cell span: 3 {
34
- component Badge text: "4.5k" variant: primary
35
- }
36
- cell span: 3 {
37
- component Badge text: "1.2k" variant: secondary
38
- }
39
- }
17
+ layout stack(direction: vertical, gap: lg, padding: lg) {
18
+ component Heading text: "Users"
19
+ component Text text: "Manage system users"
40
20
 
41
- component Tabs items: "Overview,Traffic,Revenue,Engagement" activeIndex: 0
42
-
43
- layout grid(columns: 12, gap: md) {
44
- cell span: 6 {
45
- component ChartPlaceholder type: "bar" height: 250
46
- }
47
- cell span: 6 {
48
- component ChartPlaceholder type: "line" height: 250
49
- }
50
- cell span: 12 {
51
- component ChartPlaceholder type: "area" height: 250
52
- }
21
+ layout grid(columns: 12, gap: md) {
22
+ cell span: 8 {
23
+ component Input label: "Search user" placeholder: "name, email..."
24
+ }
25
+ cell span: 4 align: end {
26
+ component Button text: "Create user" variant: primary labelSpace: true size: lg
53
27
  }
28
+ }
29
+
30
+ component Table columns: "ID,Name,Email,Status,Role" rows: 8
31
+ }
32
+ }
33
+ }
34
+
35
+ screen UserDetail {
36
+ layout stack(direction: vertical, gap: lg, padding: lg) {
37
+ component Breadcrumbs items: "Users,User Details"
38
+
39
+ component Heading text: "User Details"
40
+ component Text text: "View and edit user information"
41
+
42
+ layout panel(padding: lg) {
43
+ layout stack(direction: vertical, gap: md) {
44
+ component Heading text: "Account Status"
45
+ component Text text: "User account is active and in good standing"
46
+
47
+ component Textarea label: "Bio" placeholder: "User bio and notes..." rows: 4
48
+
49
+ component Checkbox label: "Email verified"
50
+
51
+ component Toggle label: "Two-factor authentication"
54
52
 
55
- layout stack(direction: vertical, gap: sm) {
56
- component Alert type: "warning" message: "Traffic spike detected on mobile devices"
57
- component Alert type: "error" message: "Sync delayed for EU region"
53
+ component Select label: "Status" items: "Active,Inactive,Pending"
54
+
55
+ component Divider
56
+
57
+ layout stack(direction: horizontal, gap: md) {
58
+ component Button text: "Save" variant: primary
59
+ component Button text: "Cancel"
58
60
  }
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ screen UserCreate {
67
+ layout stack(direction: vertical, gap: lg, padding: xl) {
68
+ component Heading text: "Create New User"
69
+ component Text text: "Add a new user to the system"
59
70
 
60
- component Table columns: "User,Country,Device,Time" rows: 10
71
+ layout panel(padding: lg) {
72
+ layout stack(direction: vertical, gap: md) {
73
+ component Input label: "First Name" placeholder: "John"
74
+
75
+ component Input label: "Last Name" placeholder: "Doe"
76
+
77
+ component Input label: "Email Address" placeholder: "john.doe@example.com"
78
+
79
+ component Select label: "Role" items: "Admin,Editor,Viewer,Moderator,User"
80
+
81
+ component Select label: "Status" items: "Active,Inactive,Pending"
82
+
83
+ component Checkbox label: "Send welcome email"
84
+
85
+ component Checkbox label: "Require password change on first login"
86
+
87
+ layout stack(direction: horizontal, gap: md) {
88
+ component Button text: "Create User" variant: primary
89
+ component Button text: "Cancel"
90
+ }
61
91
  }
62
92
  }
63
93
  }
@@ -1,5 +1,5 @@
1
1
  project "Form Example" {
2
- config {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
@@ -1,5 +1,5 @@
1
1
  project "Simple Dashboard" {
2
- config {
2
+ style {
3
3
  density: "comfortable"
4
4
  spacing: "lg"
5
5
  radius: "md"
@@ -32,7 +32,7 @@ project "Simple Dashboard" {
32
32
  }
33
33
  }
34
34
 
35
- component ChartPlaceholder type: "bar" height: 300
35
+ component Chart type: "bar" height: 300
36
36
 
37
37
  component Table columns: "Date,Event,User" rows: 5
38
38
  }
@@ -1,5 +1,5 @@
1
1
  project "Admin Dashboard Simple" {
2
- config {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>WireDSL - Wireframes as Code</title>
8
- <script type="module" crossorigin src="/assets/index-CSmMwHsK.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-DxoM11k4.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-CmAJnnOw.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wire-dsl/web",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "WireDSL Web - Live editor with React and Monaco",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -14,9 +14,9 @@
14
14
  "@radix-ui/react-dialog": "1.1.15",
15
15
  "@radix-ui/react-slot": "1.2.4",
16
16
  "lucide-react": "0.562.0",
17
- "@wire-dsl/engine": "0.5.0",
17
+ "@wire-dsl/engine": "0.7.0",
18
18
  "@wire-dsl/editor-ui": "0.0.1",
19
- "@wire-dsl/language-support": "0.5.0"
19
+ "@wire-dsl/language-support": "0.7.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@tailwindcss/postcss": "4.1.18",
@@ -1,5 +1,5 @@
1
1
  project "Admin Dashboard" {
2
- config {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
@@ -23,7 +23,7 @@
23
23
  component Input label: "Search user" placeholder: "name, email..."
24
24
  }
25
25
  cell span: 4 align: end {
26
- component Button text: "Create user" variant: primary
26
+ component Button text: "Create user" variant: primary labelSpace: true size: lg
27
27
  }
28
28
  }
29
29
 
@@ -1,5 +1,5 @@
1
- project "Analytics Dashboard" {
2
- config {
1
+ project "Admin Dashboard" {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
@@ -7,57 +7,87 @@ project "Analytics Dashboard" {
7
7
  font: "base"
8
8
  }
9
9
 
10
- screen Dashboard {
11
- layout stack(direction: vertical, gap: lg, padding: xl) {
12
- component Topbar title: "Analytics" subtitle: "Realtime overview"
13
-
14
- layout split(sidebar: 260, gap: lg) {
15
- layout stack(direction: vertical, gap: md, padding: md) {
16
- component Heading title: "Filters"
17
- component Select label: "Date Range" items: "Last 7 days,Last 30 days,Last 90 days"
18
- component Select label: "Channel" items: "All channels,Social,Email,Direct"
19
- component Select label: "Region" items: "Global,North America,Europe,Asia"
20
- component Divider
21
- component Checkbox label: "Email alerts"
22
- component Checkbox label: "Slack alerts"
23
- }
10
+ screen UsersList {
11
+ layout split(left: 240, gap: lg) {
12
+ layout stack(direction: vertical, gap: md, padding: md) {
13
+ component Heading text: "Menu"
14
+ component SidebarMenu items: "Users,Roles,Permissions,Audit,Settings" active: 0
15
+ }
24
16
 
25
- layout stack(direction: vertical, gap: lg, padding: lg) {
26
- layout grid(columns: 12, gap: md) {
27
- cell span: 3 {
28
- component Badge text: "+12%" variant: primary
29
- }
30
- cell span: 3 {
31
- component Badge text: "-3%" variant: secondary
32
- }
33
- cell span: 3 {
34
- component Badge text: "4.5k" variant: primary
35
- }
36
- cell span: 3 {
37
- component Badge text: "1.2k" variant: secondary
38
- }
39
- }
17
+ layout stack(direction: vertical, gap: lg, padding: lg) {
18
+ component Heading text: "Users"
19
+ component Text text: "Manage system users"
40
20
 
41
- component Tabs items: "Overview,Traffic,Revenue,Engagement" activeIndex: 0
42
-
43
- layout grid(columns: 12, gap: md) {
44
- cell span: 6 {
45
- component ChartPlaceholder type: "bar" height: 250
46
- }
47
- cell span: 6 {
48
- component ChartPlaceholder type: "line" height: 250
49
- }
50
- cell span: 12 {
51
- component ChartPlaceholder type: "area" height: 250
52
- }
21
+ layout grid(columns: 12, gap: md) {
22
+ cell span: 8 {
23
+ component Input label: "Search user" placeholder: "name, email..."
24
+ }
25
+ cell span: 4 align: end {
26
+ component Button text: "Create user" variant: primary labelSpace: true size: lg
53
27
  }
28
+ }
29
+
30
+ component Table columns: "ID,Name,Email,Status,Role" rows: 8
31
+ }
32
+ }
33
+ }
34
+
35
+ screen UserDetail {
36
+ layout stack(direction: vertical, gap: lg, padding: lg) {
37
+ component Breadcrumbs items: "Users,User Details"
38
+
39
+ component Heading text: "User Details"
40
+ component Text text: "View and edit user information"
41
+
42
+ layout panel(padding: lg) {
43
+ layout stack(direction: vertical, gap: md) {
44
+ component Heading text: "Account Status"
45
+ component Text text: "User account is active and in good standing"
46
+
47
+ component Textarea label: "Bio" placeholder: "User bio and notes..." rows: 4
48
+
49
+ component Checkbox label: "Email verified"
50
+
51
+ component Toggle label: "Two-factor authentication"
54
52
 
55
- layout stack(direction: vertical, gap: sm) {
56
- component Alert type: "warning" message: "Traffic spike detected on mobile devices"
57
- component Alert type: "error" message: "Sync delayed for EU region"
53
+ component Select label: "Status" items: "Active,Inactive,Pending"
54
+
55
+ component Divider
56
+
57
+ layout stack(direction: horizontal, gap: md) {
58
+ component Button text: "Save" variant: primary
59
+ component Button text: "Cancel"
58
60
  }
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ screen UserCreate {
67
+ layout stack(direction: vertical, gap: lg, padding: xl) {
68
+ component Heading text: "Create New User"
69
+ component Text text: "Add a new user to the system"
59
70
 
60
- component Table columns: "User,Country,Device,Time" rows: 10
71
+ layout panel(padding: lg) {
72
+ layout stack(direction: vertical, gap: md) {
73
+ component Input label: "First Name" placeholder: "John"
74
+
75
+ component Input label: "Last Name" placeholder: "Doe"
76
+
77
+ component Input label: "Email Address" placeholder: "john.doe@example.com"
78
+
79
+ component Select label: "Role" items: "Admin,Editor,Viewer,Moderator,User"
80
+
81
+ component Select label: "Status" items: "Active,Inactive,Pending"
82
+
83
+ component Checkbox label: "Send welcome email"
84
+
85
+ component Checkbox label: "Require password change on first login"
86
+
87
+ layout stack(direction: horizontal, gap: md) {
88
+ component Button text: "Create User" variant: primary
89
+ component Button text: "Cancel"
90
+ }
61
91
  }
62
92
  }
63
93
  }
@@ -1,5 +1,5 @@
1
1
  project "Form Example" {
2
- config {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"
@@ -1,5 +1,5 @@
1
1
  project "Simple Dashboard" {
2
- config {
2
+ style {
3
3
  density: "comfortable"
4
4
  spacing: "lg"
5
5
  radius: "md"
@@ -32,7 +32,7 @@ project "Simple Dashboard" {
32
32
  }
33
33
  }
34
34
 
35
- component ChartPlaceholder type: "bar" height: 300
35
+ component Chart type: "bar" height: 300
36
36
 
37
37
  component Table columns: "Date,Event,User" rows: 5
38
38
  }
@@ -1,5 +1,5 @@
1
1
  project "Admin Dashboard Simple" {
2
- config {
2
+ style {
3
3
  density: "normal"
4
4
  spacing: "md"
5
5
  radius: "md"