@weaverse/core 0.7.17 → 0.7.19

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/dist/index.d.ts CHANGED
@@ -99,7 +99,7 @@ interface ChildElement {
99
99
  label: string;
100
100
  selector: string;
101
101
  }
102
- declare type ParentType = "container" | "layout" | "root" | "product-details" | "product-info";
102
+ declare type ParentType = "container" | "layout" | "root" | "product-details" | "product-info" | "collection.box" | "collection-box" | "article-box" | "article-list" | "slider" | "tab" | "accordion" | "accordion.wrapper";
103
103
  declare type GridSize = {
104
104
  rowSpan: number;
105
105
  colSpan: number;
@@ -137,6 +137,7 @@ interface ElementInspector {
137
137
  }
138
138
  interface AdvancedGroup {
139
139
  groupType: AdvancedGroupType;
140
+ useData?: boolean;
140
141
  }
141
142
  interface BasicGroup {
142
143
  groupType: "basic";
@@ -187,18 +188,12 @@ interface BasicInput {
187
188
  * `imagesPerRow.gt.1`
188
189
  */
189
190
  condition?: string;
191
+ default?: string | number | boolean;
190
192
  }
191
- declare type InputType = "color" | "datepicker" | "image" | "range" | "select" | "sortable" | "switch" | "text" | "textarea" | "toggle-group" | "form" | "product" | "product-swatches" | "custom.html" | "instagram";
193
+ declare type InputType = "color" | "datepicker" | "image" | "range" | "select" | "sortable" | "switch" | "text" | "textarea" | "toggle-group" | "form" | "product" | "product-swatches" | "custom.html" | "instagram" | "collection-list" | "collection" | "article-list";
192
194
  declare global {
193
195
  interface Window {
194
196
  WeaverseStudioBridge: any;
195
- weaverseShopifyConfigs: any;
196
- weaverseShopifyProducts: any;
197
- weaverseShopifyProductsByCollection: any;
198
- weaverseShopifyCollections: any;
199
- weaverseShopifyArticles: any;
200
- weaverseShopifyBlogs: any;
201
- weaverseCartHelpers: any;
202
197
  Blinkloader: any;
203
198
  }
204
199
  }
package/dist/index.js CHANGED
@@ -96,13 +96,45 @@ function createGlobalStyles(stitches2) {
96
96
  from: { transform: "rotate(0deg)" },
97
97
  to: { transform: "rotate(360deg)" }
98
98
  },
99
- input: {
100
- "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
101
- "-webkit-appearance": "none",
102
- margin: 0
99
+ ".weaverse-content-root": {
100
+ input: {
101
+ "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
102
+ "-webkit-appearance": "none",
103
+ margin: 0
104
+ },
105
+ "&[type=number]": {
106
+ "-moz-appearance": "textfield"
107
+ }
103
108
  },
104
- "&[type=number]": {
105
- "-moz-appearance": "textfield"
109
+ select: {
110
+ WebkitAppearance: "none",
111
+ MozAppearance: "none",
112
+ appearance: "none",
113
+ outline: "none",
114
+ boxShadow: "none",
115
+ color: "currentColor",
116
+ verticalAlign: "middle",
117
+ backgroundPosition: "center",
118
+ backgroundRepeat: "no-repeat",
119
+ backgroundImage: "url(https://ucarecdn.com/4bb6a6e7-1ce8-4201-8f2d-da00a50105f3/ardown.svg)",
120
+ backgroundSize: "10px",
121
+ backgroundPositionX: "calc(100% - 12px)",
122
+ paddingLeft: "12px",
123
+ paddingRight: "35px !important",
124
+ cursor: "pointer"
125
+ }
126
+ },
127
+ ".wv-spinner-wrapper": {
128
+ position: "absolute",
129
+ inset: "0px",
130
+ display: "flex",
131
+ alignItems: "center",
132
+ justifyContent: "center",
133
+ backgroundColor: "inherit",
134
+ ".wv-spinner": {
135
+ width: "20px",
136
+ height: "20px",
137
+ animation: "spin .75s linear infinite"
106
138
  }
107
139
  }
108
140
  });
package/dist/index.mjs CHANGED
@@ -57,13 +57,45 @@ function createGlobalStyles(stitches2) {
57
57
  from: { transform: "rotate(0deg)" },
58
58
  to: { transform: "rotate(360deg)" }
59
59
  },
60
- input: {
61
- "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
62
- "-webkit-appearance": "none",
63
- margin: 0
60
+ ".weaverse-content-root": {
61
+ input: {
62
+ "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
63
+ "-webkit-appearance": "none",
64
+ margin: 0
65
+ },
66
+ "&[type=number]": {
67
+ "-moz-appearance": "textfield"
68
+ }
64
69
  },
65
- "&[type=number]": {
66
- "-moz-appearance": "textfield"
70
+ select: {
71
+ WebkitAppearance: "none",
72
+ MozAppearance: "none",
73
+ appearance: "none",
74
+ outline: "none",
75
+ boxShadow: "none",
76
+ color: "currentColor",
77
+ verticalAlign: "middle",
78
+ backgroundPosition: "center",
79
+ backgroundRepeat: "no-repeat",
80
+ backgroundImage: "url(https://ucarecdn.com/4bb6a6e7-1ce8-4201-8f2d-da00a50105f3/ardown.svg)",
81
+ backgroundSize: "10px",
82
+ backgroundPositionX: "calc(100% - 12px)",
83
+ paddingLeft: "12px",
84
+ paddingRight: "35px !important",
85
+ cursor: "pointer"
86
+ }
87
+ },
88
+ ".wv-spinner-wrapper": {
89
+ position: "absolute",
90
+ inset: "0px",
91
+ display: "flex",
92
+ alignItems: "center",
93
+ justifyContent: "center",
94
+ backgroundColor: "inherit",
95
+ ".wv-spinner": {
96
+ width: "20px",
97
+ height: "20px",
98
+ animation: "spin .75s linear infinite"
67
99
  }
68
100
  }
69
101
  });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.17",
2
+ "version": "0.7.19",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",