@testgorilla/tgo-coding-test 2.0.2 → 2.0.3

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/index.d.ts CHANGED
@@ -10,4 +10,4 @@ export { Modes } from './lib/models/mode';
10
10
  export { LibCodingTestService, ResetCodeAction } from './lib/services/lib-coding-test.service';
11
11
  export { StorageCodingService } from './lib/services/storage.service';
12
12
  export { CodingTestConfigService } from './lib/services/coding-test-config.service';
13
- export { TgoCodingTestConfig, provideTgoCodingTest, } from './lib/config';
13
+ export { TgoCodingTestConfig, TGO_CODING_TEST_CONFIG, } from './lib/config';
@@ -1,2 +1,2 @@
1
1
  export { TgoCodingTestConfig } from './tgo-coding-test.config';
2
- export { provideTgoCodingTest } from './tgo-coding-test.provider';
2
+ export { TGO_CODING_TEST_CONFIG } from './tgo-coding-test.token';
@@ -5,5 +5,24 @@ import { TgoCodingTestConfig } from './tgo-coding-test.config';
5
5
  *
6
6
  * This token is used to inject the runtime configuration provided
7
7
  * by the consuming application into library services.
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * // In your app.config.ts
12
+ * import { TGO_CODING_TEST_CONFIG } from '@testgorilla/tgo-coding-test';
13
+ * import { environment } from './environments/environment';
14
+ *
15
+ * export const appConfig: ApplicationConfig = {
16
+ * providers: [
17
+ * {
18
+ * provide: TGO_CODING_TEST_CONFIG,
19
+ * useValue: {
20
+ * apiUrl: environment.apiUrl,
21
+ * coderunnerV2Endpoint: environment.coderunnerV2Endpoint
22
+ * }
23
+ * }
24
+ * ]
25
+ * };
26
+ * ```
8
27
  */
9
28
  export declare const TGO_CODING_TEST_CONFIG: InjectionToken<TgoCodingTestConfig>;
package/package.json CHANGED
@@ -1,28 +1,27 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-coding-test",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^19.2.17",
6
- "@angular/common": "^19.2.17",
7
- "@angular/core": "^19.2.17",
8
- "@angular/forms": "^19.2.17",
9
- "@angular/material": "19.2.19",
10
- "@angular/router": "^19.2.17",
11
- "@ngneat/transloco": "~4.3.0",
12
- "@ngneat/until-destroy": "10.0.0",
13
- "@testgorilla/tgo-ui": "^4.0.0",
14
- "angular-split": "^19.0.0",
15
- "jest-preset-angular": "14.4.2",
5
+ "@angular/animations": ">= 19.0.0 < 20.0.0",
6
+ "@angular/common": ">= 19.0.0 < 20.0.0",
7
+ "@angular/core": ">= 19.0.0 < 20.0.0",
8
+ "@angular/forms": ">= 19.0.0 < 20.0.0",
9
+ "@angular/material": ">= 19.0.0 < 20.0.0",
10
+ "@angular/router": ">= 19.0.0 < 20.0.0",
11
+ "@ngneat/transloco": ">= 4.0.0 < 5.0.0",
12
+ "@ngneat/until-destroy": ">= 10.0.0 < 11.0.0",
13
+ "@testgorilla/tgo-ui": ">= 4.0.0 < 5.0.0",
14
+ "angular-split": ">= 19.0.0 < 20.0.0",
16
15
  "monaco-editor": "0.52.2",
17
- "ngx-guided-tour": "^2.0.1",
18
- "ngx-monaco-editor-v2": "^19.0.2",
19
- "ngx-quill": "^27.1.2",
20
- "ngx-webstorage": "^19.0.1",
21
- "quill": "^2.0.3",
22
- "rxjs": "~7.8.1"
16
+ "ngx-guided-tour": ">= 2.0.0 < 3.0.0",
17
+ "ngx-monaco-editor-v2": ">= 19.0.0 < 20.0.0",
18
+ "ngx-quill": ">= 27.0.0 < 28.0.0",
19
+ "ngx-webstorage": ">= 19.0.0 < 20.0.0",
20
+ "quill": ">= 2.0.0 < 3.0.0",
21
+ "rxjs": ">= 7.0.0 < 8.0.0"
23
22
  },
24
23
  "dependencies": {
25
- "@testgorilla/tgo-shared-lib": "2.0.0",
24
+ "@testgorilla/tgo-shared-lib": ">= 2.0.0 < 3.0.0",
26
25
  "tslib": "^2.3.0"
27
26
  },
28
27
  "sideEffects": false,
@@ -1,26 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- import { TgoCodingTestConfig } from './tgo-coding-test.config';
3
- /**
4
- * Provides the TGO Coding Test library configuration.
5
- *
6
- * This function should be called in the consuming application's
7
- * app.config.ts (for standalone apps) or module providers.
8
- *
9
- * @param config - The configuration object containing required settings
10
- * @returns EnvironmentProviders that can be added to the application providers
11
- *
12
- * @example
13
- * ```typescript
14
- * import { provideTgoCodingTest } from '@testgorilla/tgo-coding-test';
15
- * import { environment } from './environments/environment';
16
- *
17
- * export const appConfig: ApplicationConfig = {
18
- * providers: [
19
- * provideTgoCodingTest({
20
- * coderunnerV2Endpoint: environment.coderunnerV2Endpoint,
21
- * }),
22
- * ],
23
- * };
24
- * ```
25
- */
26
- export declare function provideTgoCodingTest(config: TgoCodingTestConfig): EnvironmentProviders;