@soyio/soyio-widget 2.26.0 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-widget",
3
- "version": "2.26.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -396,6 +396,9 @@
396
396
  "config": {
397
397
  "$ref": "#/definitions/SoyioAppearanceConfig"
398
398
  },
399
+ "mode": {
400
+ "$ref": "#/definitions/SoyioColorMode"
401
+ },
399
402
  "rules": {
400
403
  "$ref": "#/definitions/SoyioRule"
401
404
  },
@@ -598,6 +601,15 @@
598
601
  },
599
602
  "type": "object"
600
603
  },
604
+ "SoyioColorMode": {
605
+ "description": "Appearance color mode.\n\n- `light`: force light mode\n- `dark`: force dark mode\n- `auto`: follow the consumer's system color scheme",
606
+ "enum": [
607
+ "light",
608
+ "dark",
609
+ "auto"
610
+ ],
611
+ "type": "string"
612
+ },
601
613
  "SoyioIconConfig": {
602
614
  "additionalProperties": false,
603
615
  "properties": {
@@ -2267,10 +2279,12 @@
2267
2279
  "type": "object"
2268
2280
  },
2269
2281
  "SoyioTheme": {
2282
+ "description": "Appearance theme palette.\n\n`night` is kept as a deprecated alias for `theme: 'soyio'` + `mode: 'dark'`.",
2270
2283
  "enum": [
2271
2284
  "soyio",
2272
- "night",
2273
- "flat"
2285
+ "flat",
2286
+ "neutral",
2287
+ "night"
2274
2288
  ],
2275
2289
  "type": "string"
2276
2290
  }
@@ -949,6 +949,9 @@
949
949
  "config": {
950
950
  "$ref": "#/definitions/SoyioAppearanceConfig"
951
951
  },
952
+ "mode": {
953
+ "$ref": "#/definitions/SoyioColorMode"
954
+ },
952
955
  "rules": {
953
956
  "$ref": "#/definitions/SoyioRule"
954
957
  },
@@ -1151,6 +1154,15 @@
1151
1154
  },
1152
1155
  "type": "object"
1153
1156
  },
1157
+ "SoyioColorMode": {
1158
+ "description": "Appearance color mode.\n\n- `light`: force light mode\n- `dark`: force dark mode\n- `auto`: follow the consumer's system color scheme",
1159
+ "enum": [
1160
+ "light",
1161
+ "dark",
1162
+ "auto"
1163
+ ],
1164
+ "type": "string"
1165
+ },
1154
1166
  "SoyioIconConfig": {
1155
1167
  "additionalProperties": false,
1156
1168
  "properties": {
@@ -2820,10 +2832,12 @@
2820
2832
  "type": "object"
2821
2833
  },
2822
2834
  "SoyioTheme": {
2835
+ "description": "Appearance theme palette.\n\n`night` is kept as a deprecated alias for `theme: 'soyio'` + `mode: 'dark'`.",
2823
2836
  "enum": [
2824
2837
  "soyio",
2825
- "night",
2826
- "flat"
2838
+ "flat",
2839
+ "neutral",
2840
+ "night"
2827
2841
  ],
2828
2842
  "type": "string"
2829
2843
  },