@theia/core 1.77.0-next.4 → 1.77.0-next.47

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 (66) hide show
  1. package/README.md +5 -5
  2. package/lib/browser/catalog.json +207 -22
  3. package/lib/browser/color-application-contribution.d.ts +6 -0
  4. package/lib/browser/color-application-contribution.d.ts.map +1 -1
  5. package/lib/browser/color-application-contribution.js +15 -4
  6. package/lib/browser/color-application-contribution.js.map +1 -1
  7. package/lib/browser/color-application-contribution.spec.d.ts +2 -0
  8. package/lib/browser/color-application-contribution.spec.d.ts.map +1 -0
  9. package/lib/browser/color-application-contribution.spec.js +96 -0
  10. package/lib/browser/color-application-contribution.spec.js.map +1 -0
  11. package/lib/browser/color-registry.d.ts +6 -0
  12. package/lib/browser/color-registry.d.ts.map +1 -1
  13. package/lib/browser/color-registry.js +12 -0
  14. package/lib/browser/color-registry.js.map +1 -1
  15. package/lib/browser/tree/tree-selection-state.d.ts +23 -1
  16. package/lib/browser/tree/tree-selection-state.d.ts.map +1 -1
  17. package/lib/browser/tree/tree-selection-state.js +23 -1
  18. package/lib/browser/tree/tree-selection-state.js.map +1 -1
  19. package/lib/browser/tree/tree-widget.d.ts +28 -0
  20. package/lib/browser/tree/tree-widget.d.ts.map +1 -1
  21. package/lib/browser/tree/tree-widget.js +59 -3
  22. package/lib/browser/tree/tree-widget.js.map +1 -1
  23. package/lib/browser/tree/tree-widget.spec.js +53 -3
  24. package/lib/browser/tree/tree-widget.spec.js.map +1 -1
  25. package/lib/browser/widgets/select-component.d.ts.map +1 -1
  26. package/lib/browser/widgets/select-component.js +6 -11
  27. package/lib/browser/widgets/select-component.js.map +1 -1
  28. package/lib/browser/widgets/select-component.spec.d.ts +2 -0
  29. package/lib/browser/widgets/select-component.spec.d.ts.map +1 -0
  30. package/lib/browser/widgets/select-component.spec.js +66 -0
  31. package/lib/browser/widgets/select-component.spec.js.map +1 -0
  32. package/lib/common/core-preferences.js +5 -5
  33. package/lib/common/core-preferences.js.map +1 -1
  34. package/lib/electron-browser/electron-clipboard-service.d.ts +1 -1
  35. package/lib/electron-browser/electron-clipboard-service.d.ts.map +1 -1
  36. package/lib/electron-browser/preload.js +1 -1
  37. package/lib/electron-browser/preload.js.map +1 -1
  38. package/lib/electron-common/electron-api.d.ts +1 -1
  39. package/lib/electron-common/electron-api.d.ts.map +1 -1
  40. package/lib/electron-main/electron-api-main.d.ts.map +1 -1
  41. package/lib/electron-main/electron-api-main.js +5 -4
  42. package/lib/electron-main/electron-api-main.js.map +1 -1
  43. package/lib/node/messaging/binary-message-pipe.d.ts.map +1 -1
  44. package/lib/node/messaging/binary-message-pipe.js +5 -3
  45. package/lib/node/messaging/binary-message-pipe.js.map +1 -1
  46. package/lib/node/messaging/binary-message-pipe.spec.d.ts +2 -0
  47. package/lib/node/messaging/binary-message-pipe.spec.d.ts.map +1 -0
  48. package/lib/node/messaging/binary-message-pipe.spec.js +71 -0
  49. package/lib/node/messaging/binary-message-pipe.spec.js.map +1 -0
  50. package/package.json +16 -16
  51. package/src/browser/color-application-contribution.spec.ts +108 -0
  52. package/src/browser/color-application-contribution.ts +16 -4
  53. package/src/browser/color-registry.ts +13 -0
  54. package/src/browser/style/hover-service.css +0 -2
  55. package/src/browser/tree/tree-selection-state.ts +40 -1
  56. package/src/browser/tree/tree-widget.spec.tsx +59 -3
  57. package/src/browser/tree/tree-widget.tsx +64 -2
  58. package/src/browser/widgets/select-component.spec.ts +77 -0
  59. package/src/browser/widgets/select-component.tsx +6 -10
  60. package/src/common/core-preferences.ts +5 -5
  61. package/src/electron-browser/electron-clipboard-service.ts +1 -1
  62. package/src/electron-browser/preload.ts +2 -2
  63. package/src/electron-common/electron-api.ts +1 -1
  64. package/src/electron-main/electron-api-main.ts +5 -4
  65. package/src/node/messaging/binary-message-pipe.spec.ts +81 -0
  66. package/src/node/messaging/binary-message-pipe.ts +5 -4
package/README.md CHANGED
@@ -72,7 +72,7 @@ export class SomeClass {
72
72
 
73
73
  - `@theia/core/electron-shared/...`
74
74
  - `native-keymap` (from [`native-keymap@^2.5.0`](https://www.npmjs.com/package/native-keymap))
75
- - `electron` (from [`electron@42.8.1`](https://www.npmjs.com/package/electron/v/42.8.1))
75
+ - `electron` (from [`electron@44.4.5`](https://www.npmjs.com/package/electron/v/44.4.5))
76
76
  - `electron-store` (from [`electron-store@^8.2.0`](https://www.npmjs.com/package/electron-store))
77
77
  - `@theia/core/shared/...`
78
78
  - `@lumino/algorithm` (from [`@lumino/algorithm@^2.0.5`](https://www.npmjs.com/package/@lumino/algorithm))
@@ -104,14 +104,14 @@ export class SomeClass {
104
104
  - `vscode-languageserver-protocol` (from [`vscode-languageserver-protocol@3.17.5`](https://www.npmjs.com/package/vscode-languageserver-protocol/v/3.17.5))
105
105
  - `vscode-uri` (from [`vscode-uri@3.0.8`](https://www.npmjs.com/package/vscode-uri/v/3.0.8))
106
106
  - `@parcel/watcher` (from [`@parcel/watcher@^2.6.0`](https://www.npmjs.com/package/@parcel/watcher))
107
- - `dompurify` (from [`dompurify@^3.4.15`](https://www.npmjs.com/package/dompurify))
108
- - `express` (from [`express@^4.22.2`](https://www.npmjs.com/package/express))
107
+ - `dompurify` (from [`dompurify@^3.4.16`](https://www.npmjs.com/package/dompurify))
108
+ - `express` (from [`express@^4.22.3`](https://www.npmjs.com/package/express))
109
109
  - `lodash.debounce` (from [`lodash.debounce@^4.0.8`](https://www.npmjs.com/package/lodash.debounce))
110
110
  - `lodash.throttle` (from [`lodash.throttle@^4.1.1`](https://www.npmjs.com/package/lodash.throttle))
111
- - `markdown-it` (from [`markdown-it@^14.3.1`](https://www.npmjs.com/package/markdown-it))
111
+ - `markdown-it` (from [`markdown-it@^14.3.2`](https://www.npmjs.com/package/markdown-it))
112
112
  - `markdown-it-anchor` (from [`markdown-it-anchor@^9.2.1`](https://www.npmjs.com/package/markdown-it-anchor))
113
113
  - `markdown-it-emoji` (from [`markdown-it-emoji@^3.1.0`](https://www.npmjs.com/package/markdown-it-emoji))
114
- - `ws` (from [`ws@^8.21.3`](https://www.npmjs.com/package/ws))
114
+ - `ws` (from [`ws@^8.22.0`](https://www.npmjs.com/package/ws))
115
115
  - `yargs` (from [`yargs@^17.7.3`](https://www.npmjs.com/package/yargs))
116
116
 
117
117
  ## Logging Configuration
@@ -2,6 +2,12 @@
2
2
  "$schema": "https://www.schemastore.org/schema-catalog.json",
3
3
  "version": 1,
4
4
  "schemas": [
5
+ {
6
+ "name": "AI Page Manifest",
7
+ "description": "AI Page Manifest (AIPM) v1.2.0, per-page .ai.json metadata for AI crawlers and answer engines",
8
+ "fileMatch": ["*.ai.json"],
9
+ "url": "https://aigeoradar.com/schemas/aipm/1.2/page-manifest.schema.json"
10
+ },
5
11
  {
6
12
  "name": "Ameba",
7
13
  "description": "Configuration file for Ameba, a Crystal linter and formatter",
@@ -11,6 +17,12 @@
11
17
  "1.7.0": "https://raw.githubusercontent.com/crystal-ameba/ameba/v1.7.0/.ameba.yml.schema.json"
12
18
  }
13
19
  },
20
+ {
21
+ "name": "CDF workspace config",
22
+ "description": "Cognitive Delivery governance contract: the .cdf/config.yaml of a CDF-governed workspace (adoption tier, review policy, provenance, CDI and break-glass settings, sealed fields)",
23
+ "fileMatch": ["**/.cdf/config.yaml"],
24
+ "url": "https://cognitive-delivery.github.io/contract/1.x/config-core.schema.json"
25
+ },
14
26
  {
15
27
  "name": "Context Passport",
16
28
  "description": "Tamper-evident record of an AI agent event: what the agent was asked, what it decided, and a SHA-256 chain linking it to the record before it",
@@ -1101,6 +1113,18 @@
1101
1113
  ],
1102
1114
  "url": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-schemas.schema.json"
1103
1115
  },
1116
+ {
1117
+ "name": "CloudCannon Initial Site Settings",
1118
+ "description": "Supporting configuration file for CloudCannon containing build settings and site mode for new sites",
1119
+ "fileMatch": ["**/.cloudcannon/initial-site-settings.json"],
1120
+ "url": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-initial-site-settings.schema.json"
1121
+ },
1122
+ {
1123
+ "name": "CloudCannon Routing",
1124
+ "description": "Supporting configuration file for CloudCannon containing an array of route rules for redirects and rewrites",
1125
+ "fileMatch": ["**/.cloudcannon/routing.json"],
1126
+ "url": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-routing.schema.json"
1127
+ },
1104
1128
  {
1105
1129
  "name": "Lando (landofile)",
1106
1130
  "description": "The configuration file for a Lando app. Documentation: https://github.com/lando-community/lando-spec",
@@ -1196,6 +1220,18 @@
1196
1220
  "fileMatch": ["fly.toml"],
1197
1221
  "url": "https://www.schemastore.org/fly.json"
1198
1222
  },
1223
+ {
1224
+ "name": "Format config",
1225
+ "description": "Configuration file for Format, for making PDFs with web technologies. Documentation: https://format.dev/docs/studio/configuration",
1226
+ "fileMatch": ["format.config.json", "format.config.*.json"],
1227
+ "url": "https://format.dev/schema/format-config.json"
1228
+ },
1229
+ {
1230
+ "name": "Formhaus form definition",
1231
+ "description": "Declarative JSON form definition for Formhaus, a headless form engine. Documentation: https://formhaus.dev",
1232
+ "fileMatch": ["*.formhaus.json"],
1233
+ "url": "https://formhaus.dev/schema/form-definition.json"
1234
+ },
1199
1235
  {
1200
1236
  "name": "Freifunk.de Community API",
1201
1237
  "description": "Freifunk.de Community API. Documentation: https://github.com/freifunk/directory.api.freifunk.net",
@@ -1477,6 +1513,12 @@
1477
1513
  "fileMatch": [],
1478
1514
  "url": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/partial-scheduled.json"
1479
1515
  },
1516
+ {
1517
+ "name": "partial-inwards.json",
1518
+ "description": "Inwards architecture linter configuration for pyproject.toml",
1519
+ "fileMatch": [],
1520
+ "url": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/partial-inwards.json"
1521
+ },
1480
1522
  {
1481
1523
  "name": "bozr.suite.json",
1482
1524
  "description": "Bozr test suite file",
@@ -1716,6 +1758,16 @@
1716
1758
  "fileMatch": ["catalog-info.yaml", "*.catalog-info.yaml"],
1717
1759
  "url": "https://www.schemastore.org/catalog-info.json"
1718
1760
  },
1761
+ {
1762
+ "name": "CausalJSON",
1763
+ "description": "Open Causal Graph Format: causal graphs (DAGs, ADMGs, MAGs, PAGs, causal loop diagrams) with citation metadata",
1764
+ "fileMatch": ["*.causal.json"],
1765
+ "url": "https://opencausal.org/causaljson/0.2/causaljson.schema.json",
1766
+ "versions": {
1767
+ "0.1": "https://opencausal.org/causaljson/0.1/causaljson.schema.json",
1768
+ "0.2": "https://opencausal.org/causaljson/0.2/causaljson.schema.json"
1769
+ }
1770
+ },
1719
1771
  {
1720
1772
  "name": "Changie",
1721
1773
  "description": "Changie configuration file",
@@ -2741,6 +2793,18 @@
2741
2793
  "fileMatch": ["dagger.json"],
2742
2794
  "url": "https://docs.dagger.io/reference/dagger.schema.json"
2743
2795
  },
2796
+ {
2797
+ "name": "Dagger module (dagger-module.toml)",
2798
+ "description": "Module manifest for the Dagger CI/CD engine: runtime, dependencies, and engine version",
2799
+ "fileMatch": ["dagger-module.toml"],
2800
+ "url": "https://docs.dagger.io/reference/dagger-module.schema.json"
2801
+ },
2802
+ {
2803
+ "name": "Dagger workspace (dagger.toml)",
2804
+ "description": "Workspace configuration for the Dagger CI/CD engine: installed modules, their settings, and SDKs",
2805
+ "fileMatch": ["dagger.toml"],
2806
+ "url": "https://docs.dagger.io/reference/dagger-workspace.schema.json"
2807
+ },
2744
2808
  {
2745
2809
  "name": "Dart Build Config (dart-build.json)",
2746
2810
  "description": "Configuration for Dart's build system",
@@ -4685,6 +4749,15 @@
4685
4749
  "fileMatch": ["*.jd2mcr", "*.jd2mcr.json", "*.linkcrawlerrules.json"],
4686
4750
  "url": "https://raw.githubusercontent.com/sergxerj/jdownloader2-crawler-rule-json-schema/main/jd2mcr.schema.json"
4687
4751
  },
4752
+ {
4753
+ "name": "JDX",
4754
+ "description": "JDX (Jupiter Data eXchange) declaration for registering musical works with collective management societies",
4755
+ "fileMatch": ["*.jdx.json"],
4756
+ "url": "https://jdx.jupiter.ar/schema/1.0/jdx.schema.json",
4757
+ "versions": {
4758
+ "1.0": "https://jdx.jupiter.ar/schema/1.0/jdx.schema.json"
4759
+ }
4760
+ },
4688
4761
  {
4689
4762
  "name": "JFrog Applications Config",
4690
4763
  "description": "Refines JFrog Advanced Security scans behavior",
@@ -5245,9 +5318,19 @@
5245
5318
  "description": "Mega-Linter configuration file (for Mega-Linter users)",
5246
5319
  "fileMatch": [
5247
5320
  ".mega-linter.yml",
5321
+ ".mega-linter.yaml",
5248
5322
  ".megalinter.yml",
5323
+ ".megalinter.yaml",
5249
5324
  "*.mega-linter-config.yml",
5250
- "*.megalinter-config.yml"
5325
+ "*.megalinter-config.yml",
5326
+ "**/.config/mega-linter.yml",
5327
+ "**/.config/mega-linter.yaml",
5328
+ "**/.config/.mega-linter.yml",
5329
+ "**/.config/.mega-linter.yaml",
5330
+ "**/.config/megalinter.yml",
5331
+ "**/.config/megalinter.yaml",
5332
+ "**/.config/.megalinter.yml",
5333
+ "**/.config/.megalinter.yaml"
5251
5334
  ],
5252
5335
  "url": "https://raw.githubusercontent.com/oxsecurity/megalinter/main/megalinter/descriptors/schemas/megalinter-configuration.jsonschema.json"
5253
5336
  },
@@ -5543,10 +5626,13 @@
5543
5626
  "description": "Mergify configuration file",
5544
5627
  "fileMatch": [
5545
5628
  ".mergify.yml",
5629
+ ".mergify.yaml",
5546
5630
  "**/.github/mergify.yml",
5547
- "**/.mergify/config.yml"
5631
+ "**/.github/mergify.yaml",
5632
+ "**/.mergify/config.yml",
5633
+ "**/.mergify/config.yaml"
5548
5634
  ],
5549
- "url": "https://raw.githubusercontent.com/Mergifyio/docs/main/public/mergify-configuration-schema.json"
5635
+ "url": "https://docs.mergify.com/mergify-configuration-schema.json"
5550
5636
  },
5551
5637
  {
5552
5638
  "name": ".mocharc",
@@ -6853,6 +6939,11 @@
6853
6939
  ],
6854
6940
  "url": "https://www.schemastore.org/rehyperc.json"
6855
6941
  },
6942
+ {
6943
+ "name": "Reinigungsplan",
6944
+ "description": "Structured cleaning plans with areas, services, recurrence, responsibilities and quality criteria",
6945
+ "url": "https://xn--jonas-gebudereinigung-e2b.de/wp-content/uploads/2026/08/reinigungsplan-schema-1.0.0.json"
6946
+ },
6856
6947
  {
6857
6948
  "name": "release-please-config.json",
6858
6949
  "description": "Release Please manifest configuration file",
@@ -6895,16 +6986,22 @@
6895
6986
  "url": "https://github.com/Vivswan/github-settings-as-code/releases/latest/download/settings.schema.json"
6896
6987
  },
6897
6988
  {
6898
- "name": "reposets Configuration",
6989
+ "name": "reposets.config.toml",
6899
6990
  "description": "Configuration for the reposets CLI tool for syncing GitHub repository settings",
6900
6991
  "fileMatch": ["reposets.config.toml", "reposets.config.json"],
6901
- "url": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/package/schemas/reposets.config.schema.json"
6992
+ "url": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/schemas/3.0/config.json",
6993
+ "versions": {
6994
+ "3.0": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/schemas/3.0/config.json"
6995
+ }
6902
6996
  },
6903
6997
  {
6904
- "name": "reposets Credentials",
6998
+ "name": "reposets.credentials.toml",
6905
6999
  "description": "Authentication profiles for the reposets CLI tool",
6906
7000
  "fileMatch": ["reposets.credentials.toml", "reposets.credentials.json"],
6907
- "url": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/package/schemas/reposets.credentials.schema.json"
7001
+ "url": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/schemas/3.0/credentials.json",
7002
+ "versions": {
7003
+ "3.0": "https://raw.githubusercontent.com/spencerbeggs/reposets/main/schemas/3.0/credentials.json"
7004
+ }
6908
7005
  },
6909
7006
  {
6910
7007
  "name": "*.resjson",
@@ -7302,6 +7399,12 @@
7302
7399
  "fileMatch": ["sergen.json", "sergen.*.json", "*.sergen.json"],
7303
7400
  "url": "https://www.schemastore.org/sergen.json"
7304
7401
  },
7402
+ {
7403
+ "name": "serve.json",
7404
+ "description": "Configuration file for Vercel's serve static file server",
7405
+ "fileMatch": ["vercel.serve.json"],
7406
+ "url": "https://www.schemastore.org/serve.json"
7407
+ },
7305
7408
  {
7306
7409
  "name": "settings.job",
7307
7410
  "description": "Azure Webjob settings file",
@@ -8059,6 +8162,17 @@
8059
8162
  "fileMatch": ["tsup.config.json"],
8060
8163
  "url": "https://cdn.jsdelivr.net/npm/tsup/schema.json"
8061
8164
  },
8165
+ {
8166
+ "name": "ttheme market",
8167
+ "description": "Market file of ttheme, which names a repository of terminal palettes",
8168
+ "fileMatch": ["ttheme-market.toml"],
8169
+ "url": "https://www.schemastore.org/ttheme-market.json"
8170
+ },
8171
+ {
8172
+ "name": "ttheme palette",
8173
+ "description": "Terminal palette file of ttheme",
8174
+ "url": "https://www.schemastore.org/ttheme-palette.json"
8175
+ },
8062
8176
  {
8063
8177
  "name": "tusk.yml",
8064
8178
  "description": "tusk CLI configuration file",
@@ -8069,7 +8183,7 @@
8069
8183
  "name": "twee-ts",
8070
8184
  "description": "twee-ts compiler configuration file",
8071
8185
  "fileMatch": ["twee-ts.config.json"],
8072
- "url": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/twee-ts.config.json"
8186
+ "url": "https://unpkg.com/@rohal12/twee-ts/schemas/twee-ts.config.schema.json"
8073
8187
  },
8074
8188
  {
8075
8189
  "name": "typewiz.json",
@@ -8725,6 +8839,12 @@
8725
8839
  "fileMatch": ["manifest.json", "*.webmanifest"],
8726
8840
  "url": "https://www.schemastore.org/web-manifest-combined.json"
8727
8841
  },
8842
+ {
8843
+ "name": "WebJEA configuration",
8844
+ "description": "Configuration file for WebJEA, a web-based PowerShell JEA execution framework",
8845
+ "fileMatch": ["webjea.json"],
8846
+ "url": "https://www.schemastore.org/webjea.json"
8847
+ },
8728
8848
  {
8729
8849
  "name": "webjobs-list.json",
8730
8850
  "description": "Azure Webjob list file",
@@ -8870,7 +8990,7 @@
8870
8990
  "name": "lychee",
8871
8991
  "description": "lychee link checker configuration file",
8872
8992
  "fileMatch": ["lychee.toml", ".lychee.toml"],
8873
- "url": "https://www.schemastore.org/lychee.json"
8993
+ "url": "https://github.com/lycheeverse/lychee/releases/latest/download/schema.json"
8874
8994
  },
8875
8995
  {
8876
8996
  "name": "lint-staged (.lintstagedrc)",
@@ -8916,6 +9036,12 @@
8916
9036
  ],
8917
9037
  "url": "https://raw.githubusercontent.com/metalbear-co/mirrord/main/mirrord-schema.json"
8918
9038
  },
9039
+ {
9040
+ "name": "mirrord up config",
9041
+ "description": "mirrord up configuration file",
9042
+ "fileMatch": ["mirrord-up.yaml", "mirrord-up.yml"],
9043
+ "url": "https://raw.githubusercontent.com/metalbear-co/mirrord/main/mirrord-up-schema.json"
9044
+ },
8919
9045
  {
8920
9046
  "name": "mise",
8921
9047
  "description": "mise config, a polyglot dev tool manager",
@@ -9243,11 +9369,12 @@
9243
9369
  "name": "Apollo Router",
9244
9370
  "description": "Apollo Router: The runtime for graph-based API orchestration",
9245
9371
  "fileMatch": ["apollo-router-*.json"],
9246
- "url": "https://www.schemastore.org/apollo-router-2.9.0.json",
9372
+ "url": "https://www.schemastore.org/apollo-router-2.17.0.json",
9247
9373
  "versions": {
9248
9374
  "2.8.1": "https://www.schemastore.org/apollo-router-2.8.1.json",
9249
9375
  "2.8.2": "https://www.schemastore.org/apollo-router-2.8.2.json",
9250
- "2.9.0": "https://www.schemastore.org/apollo-router-2.9.0.json"
9376
+ "2.9.0": "https://www.schemastore.org/apollo-router-2.9.0.json",
9377
+ "2.17.0": "https://www.schemastore.org/apollo-router-2.17.0.json"
9251
9378
  }
9252
9379
  },
9253
9380
  {
@@ -10472,6 +10599,42 @@
10472
10599
  "fileMatch": [],
10473
10600
  "url": "https://www.schemastore.org/any.json"
10474
10601
  },
10602
+ {
10603
+ "name": "ZeroPress Build Pages Config",
10604
+ "description": "Configuration for building ZeroPress sites from Markdown",
10605
+ "fileMatch": ["**/.zeropress/config.json"],
10606
+ "url": "https://www.schemastore.org/zeropress-build-pages-config-1.0.json",
10607
+ "versions": {
10608
+ "1.0": "https://www.schemastore.org/zeropress-build-pages-config-1.0.json"
10609
+ }
10610
+ },
10611
+ {
10612
+ "name": "ZeroPress Preview Data",
10613
+ "description": "Site data for ZeroPress static builds and theme previews",
10614
+ "fileMatch": ["zeropress-preview-data.json"],
10615
+ "url": "https://www.schemastore.org/zeropress-preview-data-0.7.json",
10616
+ "versions": {
10617
+ "0.7": "https://www.schemastore.org/zeropress-preview-data-0.7.json"
10618
+ }
10619
+ },
10620
+ {
10621
+ "name": "ZeroPress Theme Runtime",
10622
+ "description": "Theme manifests for the ZeroPress template runtime",
10623
+ "fileMatch": [],
10624
+ "url": "https://www.schemastore.org/zeropress-theme-runtime-0.7.json",
10625
+ "versions": {
10626
+ "0.7": "https://www.schemastore.org/zeropress-theme-runtime-0.7.json"
10627
+ }
10628
+ },
10629
+ {
10630
+ "name": "ZeroPress WXR Import Base",
10631
+ "description": "Base settings for importing WordPress exports with ZeroPress",
10632
+ "fileMatch": ["wxr-import-base.json"],
10633
+ "url": "https://www.schemastore.org/zeropress-wxr-import-base-0.7.json",
10634
+ "versions": {
10635
+ "0.7": "https://www.schemastore.org/zeropress-wxr-import-base-0.7.json"
10636
+ }
10637
+ },
10475
10638
  {
10476
10639
  "name": "zerops.yml",
10477
10640
  "description": "Zerops build, deploy and run configuration YAML file",
@@ -11740,22 +11903,24 @@
11740
11903
  "name": "cfgd Config",
11741
11904
  "description": "cfgd root configuration file (cfgd.yaml)",
11742
11905
  "fileMatch": ["cfgd.yaml", "cfgd.yml"],
11743
- "url": "https://www.schemastore.org/cfgd-config-0.11.0.json",
11906
+ "url": "https://www.schemastore.org/cfgd-config-0.12.0.json",
11744
11907
  "versions": {
11745
11908
  "0.5.0": "https://www.schemastore.org/cfgd-config-0.5.0.json",
11746
11909
  "0.10.0": "https://www.schemastore.org/cfgd-config-0.10.0.json",
11747
- "0.11.0": "https://www.schemastore.org/cfgd-config-0.11.0.json"
11910
+ "0.11.0": "https://www.schemastore.org/cfgd-config-0.11.0.json",
11911
+ "0.12.0": "https://www.schemastore.org/cfgd-config-0.12.0.json"
11748
11912
  }
11749
11913
  },
11750
11914
  {
11751
11915
  "name": "cfgd Module",
11752
11916
  "description": "cfgd Module definition document",
11753
11917
  "fileMatch": ["**/modules/*/module.yaml"],
11754
- "url": "https://www.schemastore.org/cfgd-module-0.11.0.json",
11918
+ "url": "https://www.schemastore.org/cfgd-module-0.12.0.json",
11755
11919
  "versions": {
11756
11920
  "0.5.0": "https://www.schemastore.org/cfgd-module-0.5.0.json",
11757
11921
  "0.10.0": "https://www.schemastore.org/cfgd-module-0.10.0.json",
11758
- "0.11.0": "https://www.schemastore.org/cfgd-module-0.11.0.json"
11922
+ "0.11.0": "https://www.schemastore.org/cfgd-module-0.11.0.json",
11923
+ "0.12.0": "https://www.schemastore.org/cfgd-module-0.12.0.json"
11759
11924
  }
11760
11925
  },
11761
11926
  {
@@ -11766,22 +11931,24 @@
11766
11931
  "**/profiles/*.yaml",
11767
11932
  "**/profiles/*.yml"
11768
11933
  ],
11769
- "url": "https://www.schemastore.org/cfgd-profile-0.11.0.json",
11934
+ "url": "https://www.schemastore.org/cfgd-profile-0.12.0.json",
11770
11935
  "versions": {
11771
11936
  "0.5.0": "https://www.schemastore.org/cfgd-profile-0.5.0.json",
11772
11937
  "0.10.0": "https://www.schemastore.org/cfgd-profile-0.10.0.json",
11773
- "0.11.0": "https://www.schemastore.org/cfgd-profile-0.11.0.json"
11938
+ "0.11.0": "https://www.schemastore.org/cfgd-profile-0.11.0.json",
11939
+ "0.12.0": "https://www.schemastore.org/cfgd-profile-0.12.0.json"
11774
11940
  }
11775
11941
  },
11776
11942
  {
11777
11943
  "name": "cfgd ConfigSource",
11778
11944
  "description": "cfgd multi-source configuration manifest (cfgd-source.yaml)",
11779
11945
  "fileMatch": ["cfgd-source.yaml", "cfgd-source.yml"],
11780
- "url": "https://www.schemastore.org/cfgd-configsource-0.11.0.json",
11946
+ "url": "https://www.schemastore.org/cfgd-configsource-0.12.0.json",
11781
11947
  "versions": {
11782
11948
  "0.5.0": "https://www.schemastore.org/cfgd-configsource-0.5.0.json",
11783
11949
  "0.10.0": "https://www.schemastore.org/cfgd-configsource-0.10.0.json",
11784
- "0.11.0": "https://www.schemastore.org/cfgd-configsource-0.11.0.json"
11950
+ "0.11.0": "https://www.schemastore.org/cfgd-configsource-0.11.0.json",
11951
+ "0.12.0": "https://www.schemastore.org/cfgd-configsource-0.12.0.json"
11785
11952
  }
11786
11953
  },
11787
11954
  {
@@ -11862,9 +12029,9 @@
11862
12029
  "url": "https://defakto-security.github.io/build-actions/ci.schema.json"
11863
12030
  },
11864
12031
  {
11865
- "name": "AAES evidence export (aaes.export/v1)",
11866
- "description": "One JSON value in an aaes.export/v1 JSON Lines evidence export: a header, entry, or anchor line recording authorization decisions for AI agent actions; cryptographic verification is separate from structural validation",
11867
- "url": "https://aaes.ai/spec/v1/export.schema.json"
12032
+ "name": "AAES evidence export (aaes.export/v2)",
12033
+ "description": "One JSON value in an aaes.export/v2 JSON Lines evidence export: a header, entry, or anchor line recording authorization decisions for AI agent actions; cryptographic verification is separate from structural validation",
12034
+ "url": "https://aaes.ai/spec/v2/export.schema.json"
11868
12035
  },
11869
12036
  {
11870
12037
  "name": "AAES evidence pack manifest (aaes.evidence-pack/1)",
@@ -11930,6 +12097,24 @@
11930
12097
  "description": "Allstar security policy configuration",
11931
12098
  "fileMatch": [],
11932
12099
  "url": "https://www.schemastore.org/allstar-security.json"
12100
+ },
12101
+ {
12102
+ "name": "debim",
12103
+ "description": "Declarative BIM (Building-as-Code) project manifest",
12104
+ "fileMatch": [
12105
+ "*.debim",
12106
+ "*.debim.yaml",
12107
+ "*.debim.yml",
12108
+ "*.dbim",
12109
+ "*.dbim.yaml",
12110
+ "*.dbim.yml",
12111
+ "project.debim",
12112
+ "project.debim.yaml"
12113
+ ],
12114
+ "url": "https://raw.githubusercontent.com/PRIDA-TAKON/debim/main/debim.schema.json",
12115
+ "versions": {
12116
+ "1.0": "https://raw.githubusercontent.com/PRIDA-TAKON/debim/main/debim.schema.json"
12117
+ }
11933
12118
  }
11934
12119
  ]
11935
12120
  }
@@ -19,6 +19,12 @@ export declare class ColorApplicationContribution implements FrontendApplication
19
19
  protected readonly secondaryWindowHandler: SecondaryWindowHandler;
20
20
  onStart(): void;
21
21
  registerWindow(win: Window): void;
22
+ /**
23
+ * The CSS variables currently applied to the document element of a window. Used to only remove
24
+ * those that the current theme does not provide anymore, instead of removing and re-applying all
25
+ * of them on every update.
26
+ */
27
+ protected readonly appliedCssVariables: WeakMap<Window, ReadonlySet<string>>;
22
28
  protected readonly toUpdate: DisposableCollection;
23
29
  protected update(): void;
24
30
  protected updateWindow(win: Window): void;
@@ -1 +1 @@
1
- {"version":3,"file":"color-application-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/color-application-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAc,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAC7D,MAAM,WAAW,iBAAiB;IAC9B,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAC/C;AAED,qBACa,4BAA6B,YAAW,+BAA+B;IAEhF,SAAS,CAAC,QAAQ,CAAC,kBAAkB,gBAAuB;IAC5D,QAAQ,CAAC,WAAW,wCAAiC;IACrD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;IAGlD,SAAS,CAAC,QAAQ,CAAC,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0B;IAGlD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAGzC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAEzD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAGpE,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAElE,OAAO,IAAI,IAAI;IAoBf,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAMjC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,mBAAmB,uCAA8C;IAEpF,SAAS,CAAC,QAAQ,CAAC,QAAQ,uBAA8B;IACzD,SAAS,CAAC,MAAM,IAAI,IAAI;IAMxB,SAAS,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAwBzC,SAAS,CAAC,qBAAqB,IAAI,IAAI;CAQ1C"}
@@ -31,6 +31,12 @@ let ColorApplicationContribution = class ColorApplicationContribution {
31
31
  this.onDidChangeEmitter = new event_1.Emitter();
32
32
  this.onDidChange = this.onDidChangeEmitter.event;
33
33
  this.windows = new Set();
34
+ /**
35
+ * The CSS variables currently applied to the document element of a window. Used to only remove
36
+ * those that the current theme does not provide anymore, instead of removing and re-applying all
37
+ * of them on every update.
38
+ */
39
+ this.appliedCssVariables = new WeakMap();
34
40
  this.toUpdate = new disposable_1.DisposableCollection();
35
41
  }
36
42
  onStart() {
@@ -67,14 +73,19 @@ let ColorApplicationContribution = class ColorApplicationContribution {
67
73
  this.toUpdate.push(disposable_1.Disposable.create(() => win.document.body.classList.remove(theme)));
68
74
  const documentElement = win.document.documentElement;
69
75
  if (documentElement) {
76
+ const applied = new Set();
70
77
  for (const id of this.colors.getColors()) {
71
- const variable = this.colors.getCurrentCssVariable(id);
72
- if (variable) {
73
- const { name, value } = variable;
78
+ for (const { name, value } of this.colors.getCurrentCssVariables(id)) {
74
79
  documentElement.style.setProperty(name, value);
75
- this.toUpdate.push(disposable_1.Disposable.create(() => documentElement.style.removeProperty(name)));
80
+ applied.add(name);
76
81
  }
77
82
  }
83
+ for (const name of this.appliedCssVariables.get(win) ?? []) {
84
+ if (!applied.has(name)) {
85
+ documentElement.style.removeProperty(name);
86
+ }
87
+ }
88
+ this.appliedCssVariables.set(win, applied);
78
89
  }
79
90
  }
80
91
  updateThemeBackground() {
@@ -1 +1 @@
1
- {"version":3,"file":"color-application-contribution.js","sourceRoot":"","sources":["../../src/browser/color-application-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,yCAAsD;AACtD,qDAAiD;AACjD,2CAA0C;AAC1C,uCAAyC;AAEzC,2EAAuE;AACvE,qDAAwE;AACxE,iGAA8F;AAC9F,yEAAoE;AAEvD,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAMtD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QAEgB,uBAAkB,GAAG,IAAI,eAAO,EAAQ,CAAC;QACnD,gBAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QACpC,YAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;QAuC/B,aAAQ,GAAG,IAAI,iCAAoB,EAAE,CAAC;IAkC7D,CAAC;IA5DG,OAAO;QACH,KAAK,MAAM,YAAY,IAAI,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,EAAE,CAAC;YACpE,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC;QACD,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE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AA4B;AAOlB;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCACK,8BAAa;4DAAC;AAGtB;IADlB,IAAA,kBAAM,EAAC,4CAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,yBAAiB,CAAC;;wEACwB;AAEtC;IAAxC,IAAA,kBAAM,EAAC,sBAAY,CAAC;sCAAkC,sBAAY;kEAAC;AAGjD;IADlB,IAAA,kBAAM,EAAC,iDAAsB,CAAC;sCACY,iDAAsB;4EAAC;uCAfzD,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CA6ExC"}
1
+ {"version":3,"file":"color-application-contribution.js","sourceRoot":"","sources":["../../src/browser/color-application-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,yCAAsD;AACtD,qDAAiD;AACjD,2CAA0C;AAC1C,uCAAyC;AAEzC,2EAAuE;AACvE,qDAAwE;AACxE,iGAA8F;AAC9F,yEAAoE;AAEvD,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAMtD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QAEgB,uBAAkB,GAAG,IAAI,eAAO,EAAQ,CAAC;QACnD,gBAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QACpC,YAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;QAuClD;;;;WAIG;QACgB,wBAAmB,GAAG,IAAI,OAAO,EAA+B,CAAC;QAEjE,aAAQ,GAAG,IAAI,iCAAoB,EAAE,CAAC;IAuC7D,CAAC;IAxEG,OAAO;QACH,KAAK,MAAM,YAAY,IAAI,IAAI,CAAC,kBAAkB,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GAAG,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IAES,qBAAqB;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;QAC/D,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,2EAAoC,EAAE,KAAK,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,2EAAoC,CAAC,CAAC;QACzE,CAAC;IACL,CAAC;CACJ,CAAA;AAzFY,oEAA4B;AAOlB;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCACK,8BAAa;4DAAC;AAGtB;IADlB,IAAA,kBAAM,EAAC,4CAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,yBAAiB,CAAC;;wEACwB;AAEtC;IAAxC,IAAA,kBAAM,EAAC,sBAAY,CAAC;sCAAkC,sBAAY;kEAAC;AAGjD;IADlB,IAAA,kBAAM,EAAC,iDAAsB,CAAC;sCACY,iDAAsB;4EAAC;uCAfzD,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAyFxC"}
@@ -0,0 +1,2 @@
1
+ import './shell/application-shell';
2
+ //# sourceMappingURL=color-application-contribution.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-application-contribution.spec.d.ts","sourceRoot":"","sources":["../../src/browser/color-application-contribution.spec.ts"],"names":[],"mappings":"AAoBA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 EclipseSource GmbH.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const jsdom_1 = require("./test/jsdom");
19
+ let disableJSDOM = (0, jsdom_1.enableJSDOM)();
20
+ const chai_1 = require("chai");
21
+ require("./shell/application-shell"); // load first to avoid a circular import failure via `SecondaryWindowHandler`
22
+ const color_application_contribution_1 = require("./color-application-contribution");
23
+ const color_registry_1 = require("./color-registry");
24
+ disableJSDOM();
25
+ class TestColorRegistry extends color_registry_1.ColorRegistry {
26
+ constructor() {
27
+ super(...arguments);
28
+ this.values = new Map();
29
+ }
30
+ *getColors() {
31
+ yield* this.values.keys();
32
+ }
33
+ getCurrentColor(id) {
34
+ return this.values.get(id);
35
+ }
36
+ }
37
+ class TestColorApplicationContribution extends color_application_contribution_1.ColorApplicationContribution {
38
+ constructor(colors) {
39
+ super();
40
+ this.colors = colors;
41
+ this.themeService = { getCurrentTheme: () => ({ type: 'dark' }) };
42
+ }
43
+ updateWindowForTest(win) {
44
+ this.updateWindow(win);
45
+ }
46
+ }
47
+ describe('ColorApplicationContribution', () => {
48
+ let colors;
49
+ let contribution;
50
+ beforeEach(() => {
51
+ disableJSDOM = (0, jsdom_1.enableJSDOM)();
52
+ colors = new TestColorRegistry();
53
+ colors.values.set('editor.background', '#1e1e1e');
54
+ colors.values.set('scmGraph.historyItemHoverAdditionsForeground', '#487e02');
55
+ colors.values.set('unresolved.color', '');
56
+ contribution = new TestColorApplicationContribution(colors);
57
+ });
58
+ afterEach(() => {
59
+ disableJSDOM();
60
+ });
61
+ it('sets a --theia- and a --vscode- prefixed variable for every resolved color', () => {
62
+ contribution.updateWindowForTest(window);
63
+ const style = document.documentElement.style;
64
+ (0, chai_1.expect)(style.getPropertyValue('--theia-editor-background')).to.equal('#1e1e1e');
65
+ (0, chai_1.expect)(style.getPropertyValue('--vscode-editor-background')).to.equal('#1e1e1e');
66
+ (0, chai_1.expect)(style.getPropertyValue('--theia-scmGraph-historyItemHoverAdditionsForeground')).to.equal('#487e02');
67
+ (0, chai_1.expect)(style.getPropertyValue('--vscode-scmGraph-historyItemHoverAdditionsForeground')).to.equal('#487e02');
68
+ (0, chai_1.expect)(style.length).to.equal(4);
69
+ });
70
+ it('does not set variables for colors without a value', () => {
71
+ contribution.updateWindowForTest(window);
72
+ const style = document.documentElement.style;
73
+ (0, chai_1.expect)(style.getPropertyValue('--theia-unresolved-color')).to.equal('');
74
+ (0, chai_1.expect)(style.getPropertyValue('--vscode-unresolved-color')).to.equal('');
75
+ });
76
+ it('overwrites the variables in place on a subsequent update', () => {
77
+ contribution.updateWindowForTest(window);
78
+ colors.values.set('editor.background', '#ffffff');
79
+ contribution.updateWindowForTest(window);
80
+ const style = document.documentElement.style;
81
+ (0, chai_1.expect)(style.getPropertyValue('--theia-editor-background')).to.equal('#ffffff');
82
+ (0, chai_1.expect)(style.getPropertyValue('--vscode-editor-background')).to.equal('#ffffff');
83
+ (0, chai_1.expect)(style.length).to.equal(4);
84
+ });
85
+ it('removes both variables of a color that the current theme does not provide anymore', () => {
86
+ contribution.updateWindowForTest(window);
87
+ colors.values.delete('scmGraph.historyItemHoverAdditionsForeground');
88
+ contribution.updateWindowForTest(window);
89
+ const style = document.documentElement.style;
90
+ (0, chai_1.expect)(style.getPropertyValue('--theia-scmGraph-historyItemHoverAdditionsForeground')).to.equal('');
91
+ (0, chai_1.expect)(style.getPropertyValue('--vscode-scmGraph-historyItemHoverAdditionsForeground')).to.equal('');
92
+ (0, chai_1.expect)(style.getPropertyValue('--theia-editor-background')).to.equal('#1e1e1e');
93
+ (0, chai_1.expect)(style.length).to.equal(2);
94
+ });
95
+ });
96
+ //# sourceMappingURL=color-application-contribution.spec.js.map