@webstudio-is/sdk-components-react-remix 0.112.0 → 0.113.0

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 (2) hide show
  1. package/lib/metas.js +10 -28
  2. package/package.json +6 -6
package/lib/metas.js CHANGED
@@ -617,14 +617,14 @@ var meta = {
617
617
  {
618
618
  type: "instance",
619
619
  component: "Form",
620
- dataSources: {
621
- formState: { type: "variable", initialValue: "initial" }
620
+ variables: {
621
+ formState: { initialValue: "initial" }
622
622
  },
623
623
  props: [
624
624
  {
625
- type: "dataSource",
625
+ type: "expression",
626
626
  name: "state",
627
- dataSourceName: "formState"
627
+ code: "formState"
628
628
  },
629
629
  {
630
630
  type: "action",
@@ -639,17 +639,11 @@ var meta = {
639
639
  type: "instance",
640
640
  label: "Form Content",
641
641
  component: "Box",
642
- dataSources: {
643
- formInitial: {
644
- type: "expression",
645
- code: `formState === 'initial' || formState === 'error'`
646
- }
647
- },
648
642
  props: [
649
643
  {
650
- type: "dataSource",
644
+ type: "expression",
651
645
  name: showAttribute,
652
- dataSourceName: "formInitial"
646
+ code: "formState === 'initial' || formState === 'error'"
653
647
  }
654
648
  ],
655
649
  children: [
@@ -686,17 +680,11 @@ var meta = {
686
680
  type: "instance",
687
681
  label: "Success Message",
688
682
  component: "Box",
689
- dataSources: {
690
- formSuccess: {
691
- type: "expression",
692
- code: `formState === 'success'`
693
- }
694
- },
695
683
  props: [
696
684
  {
697
- type: "dataSource",
685
+ type: "expression",
698
686
  name: showAttribute,
699
- dataSourceName: "formSuccess"
687
+ code: "formState === 'success'"
700
688
  }
701
689
  ],
702
690
  children: [
@@ -707,17 +695,11 @@ var meta = {
707
695
  type: "instance",
708
696
  label: "Error Message",
709
697
  component: "Box",
710
- dataSources: {
711
- formError: {
712
- type: "expression",
713
- code: `formState === 'error'`
714
- }
715
- },
716
698
  props: [
717
699
  {
718
- type: "dataSource",
700
+ type: "expression",
719
701
  name: showAttribute,
720
- dataSourceName: "formError"
702
+ code: "formState === 'error'"
721
703
  }
722
704
  ],
723
705
  children: [{ type: "text", value: "Sorry, something went wrong." }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react-remix",
3
- "version": "0.112.0",
3
+ "version": "0.113.0",
4
4
  "description": "Webstudio components for Remix",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -38,10 +38,10 @@
38
38
  "react-dom": "^18.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@webstudio-is/form-handlers": "0.112.0",
42
- "@webstudio-is/icons": "0.112.0",
43
- "@webstudio-is/react-sdk": "0.112.0",
44
- "@webstudio-is/sdk-components-react": "0.112.0"
41
+ "@webstudio-is/form-handlers": "0.113.0",
42
+ "@webstudio-is/icons": "0.113.0",
43
+ "@webstudio-is/react-sdk": "0.113.0",
44
+ "@webstudio-is/sdk-components-react": "0.113.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@remix-run/react": "^1.19.2",
@@ -50,7 +50,7 @@
50
50
  "react": "^18.2.0",
51
51
  "react-dom": "^18.2.0",
52
52
  "typescript": "5.2.2",
53
- "@webstudio-is/generate-arg-types": "0.112.0",
53
+ "@webstudio-is/generate-arg-types": "0.113.0",
54
54
  "@webstudio-is/tsconfig": "1.0.7"
55
55
  },
56
56
  "scripts": {