@master/css-language-service 2.0.0-rc.25 → 2.0.0-rc.26

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.
@@ -252,9 +252,9 @@ function getColorsItem(css$1 = new css.MasterCSS()) {
252
252
  if (eachVariable.type === 'color') {
253
253
  let colorValue;
254
254
  let colorSpace;
255
- if (eachVariable.themes) {
256
- colorValue = Object.values(eachVariable.themes)[0].value;
257
- colorSpace = Object.values(eachVariable.themes)[0].space;
255
+ if (eachVariable.modes) {
256
+ colorValue = Object.values(eachVariable.modes)[0].value;
257
+ colorSpace = Object.values(eachVariable.modes)[0].space;
258
258
  } else {
259
259
  colorValue = eachVariable.value;
260
260
  colorSpace = eachVariable.space;
@@ -250,9 +250,9 @@ function getColorsItem(css = new MasterCSS()) {
250
250
  if (eachVariable.type === 'color') {
251
251
  let colorValue;
252
252
  let colorSpace;
253
- if (eachVariable.themes) {
254
- colorValue = Object.values(eachVariable.themes)[0].value;
255
- colorSpace = Object.values(eachVariable.themes)[0].space;
253
+ if (eachVariable.modes) {
254
+ colorValue = Object.values(eachVariable.modes)[0].value;
255
+ colorSpace = Object.values(eachVariable.modes)[0].space;
256
256
  } else {
257
257
  colorValue = eachVariable.value;
258
258
  colorSpace = eachVariable.space;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css-language-service","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","type-check":"tsc --noEmit","lint":"eslint src"},"description":"Master CSS Language Service","author":"Aoyue Design LLC.","license":"MIT","repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/language-service"},"dependencies":{"@babel/parser":"^7.23.9","@master/css":"^2.0.0-rc.25","color-convert":"^2.0.1","js-beautify":"^1.15.1","vscode-css-languageservice":"^6.2.12"},"devDependencies":{"@types/color-convert":"^2.0.3","vscode-languageserver-types":"^3.17.5"},"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","types":"./dist/index.d.ts"},"./settings":{"import":"./dist/settings/index.mjs","require":"./dist/settings/index.cjs","types":"./dist/settings/index.d.ts"}},"typesVersions":{"*":{"./":["./dist/index.d.ts"],"./settings":["./dist/settings.d.ts"]}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"version":"2.0.0-rc.25"}
1
+ {"name":"@master/css-language-service","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","type-check":"tsc --noEmit","lint":"eslint src"},"description":"Master CSS Language Service","author":"Aoyue Design LLC.","license":"MIT","repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/language-service"},"dependencies":{"@babel/parser":"^7.23.9","@master/css":"^2.0.0-rc.26","color-convert":"^2.0.1","js-beautify":"^1.15.1","vscode-css-languageservice":"^6.2.12"},"devDependencies":{"@types/color-convert":"^2.0.3","vscode-languageserver-types":"^3.17.5"},"sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.mjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","types":"./dist/index.d.ts"},"./settings":{"import":"./dist/settings/index.mjs","require":"./dist/settings/index.cjs","types":"./dist/settings/index.d.ts"}},"typesVersions":{"*":{"./":["./dist/index.d.ts"],"./settings":["./dist/settings.d.ts"]}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"version":"2.0.0-rc.26"}