@gravitee/ui-policy-studio-angular 14.2.1 → 15.0.0-handle-md-doc-dedae47

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 (23) hide show
  1. package/esm2022/lib/components/flow-details/gio-ps-flow-details.component.mjs +3 -3
  2. package/esm2022/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.mjs +3 -3
  3. package/esm2022/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +3 -3
  4. package/esm2022/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +3 -3
  5. package/esm2022/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +3 -3
  6. package/esm2022/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +3 -3
  7. package/esm2022/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +3 -3
  8. package/esm2022/lib/components/step-form/gio-ps-step-form.component.mjs +8 -5
  9. package/esm2022/lib/models/PolicySchemaFetcher.mjs +1 -1
  10. package/esm2022/lib/policy-studio/gio-policy-studio.component.mjs +2 -2
  11. package/esm2022/lib/policy-studio/gio-policy-studio.model.mjs +1 -1
  12. package/esm2022/lib/policy-studio/gio-policy-studio.service.mjs +1 -1
  13. package/esm2022/testing/lib/models/PolicySchemaFetcher.mjs +1 -1
  14. package/esm2022/testing/lib/policy-studio/gio-policy-studio.model.mjs +17 -0
  15. package/fesm2022/gravitee-ui-policy-studio-angular.mjs +23 -20
  16. package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
  17. package/lib/components/step-form/gio-ps-step-form.component.d.ts +3 -1
  18. package/lib/models/PolicySchemaFetcher.d.ts +2 -1
  19. package/lib/policy-studio/gio-policy-studio.model.d.ts +4 -0
  20. package/lib/policy-studio/gio-policy-studio.service.d.ts +2 -1
  21. package/package.json +3 -2
  22. package/testing/lib/models/PolicySchemaFetcher.d.ts +2 -1
  23. package/testing/lib/policy-studio/gio-policy-studio.model.d.ts +17 -0
@@ -4,9 +4,11 @@ import { Observable } from 'rxjs';
4
4
  import { GioJsonSchema, GioJsonSchemaContext } from '@gravitee/ui-particles-angular';
5
5
  import { FlowPhase, Step, GenericPolicy, ApiType } from '../../models';
6
6
  import { GioPolicyStudioService } from '../../policy-studio/gio-policy-studio.service';
7
+ import { PolicyDocumentation } from '../../policy-studio/gio-policy-studio.model';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnInit, OnDestroy {
9
10
  private readonly policyStudioService;
11
+ private readonly noDocumentationAvailable;
10
12
  readOnly: boolean;
11
13
  step?: Step;
12
14
  flowPhase: FlowPhase;
@@ -15,7 +17,7 @@ export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnIn
15
17
  stepChange: EventEmitter<Step>;
16
18
  isValid: EventEmitter<boolean>;
17
19
  policySchema$?: Observable<GioJsonSchema | null | undefined>;
18
- policyDocumentation$?: Observable<string>;
20
+ policyDocumentation$?: Observable<PolicyDocumentation>;
19
21
  infoBanner?: string;
20
22
  stepForm?: UntypedFormGroup;
21
23
  context?: GioJsonSchemaContext;
@@ -1,4 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation } from '../policy-studio/gio-policy-studio.model';
2
3
  import { Policy } from './policy/Policy';
3
4
  export type PolicySchemaFetcher = (policy: Policy) => Observable<unknown>;
4
- export type PolicyDocumentationFetcher = (policy: Policy) => Observable<string>;
5
+ export type PolicyDocumentationFetcher = (policy: Policy) => Observable<PolicyDocumentation>;
@@ -11,3 +11,7 @@ export interface FlowGroupVM {
11
11
  name: string;
12
12
  flows: FlowVM[];
13
13
  }
14
+ export interface PolicyDocumentation {
15
+ content: string;
16
+ language: 'MARKDOWN' | 'ASCIIDOC';
17
+ }
@@ -1,5 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Policy, PolicyDocumentationFetcher, PolicySchemaFetcher } from '../models';
3
+ import { PolicyDocumentation } from './gio-policy-studio.model';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class GioPolicyStudioService {
5
6
  private schemasCache;
@@ -23,7 +24,7 @@ export declare class GioPolicyStudioService {
23
24
  * @param policy to get the documentation for
24
25
  * @returns the documentation for the policy
25
26
  */
26
- getPolicyDocumentation(policy: Policy): Observable<string>;
27
+ getPolicyDocumentation(policy: Policy): Observable<PolicyDocumentation>;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioService, never>;
28
29
  static ɵprov: i0.ɵɵInjectableDeclaration<GioPolicyStudioService>;
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "14.2.1",
3
+ "version": "15.0.0-handle-md-doc-dedae47",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,8 @@
18
18
  "@angular/forms": "^19.0.0",
19
19
  "@angular/material": "^19.0.0",
20
20
  "@gravitee/ui-particles-angular": "*",
21
- "lodash": "^4.17.21"
21
+ "lodash": "^4.17.21",
22
+ "ngx-markdown": "^19.1.1"
22
23
  },
23
24
  "publishConfig": {
24
25
  "access": "public"
@@ -1,4 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { PolicyDocumentation } from '../policy-studio/gio-policy-studio.model';
2
3
  import { Policy } from './policy/Policy';
3
4
  export type PolicySchemaFetcher = (policy: Policy) => Observable<unknown>;
4
- export type PolicyDocumentationFetcher = (policy: Policy) => Observable<string>;
5
+ export type PolicyDocumentationFetcher = (policy: Policy) => Observable<PolicyDocumentation>;
@@ -0,0 +1,17 @@
1
+ import { Flow } from '../models';
2
+ export interface FlowVM extends Flow {
3
+ _id: string;
4
+ _hasChanged: boolean;
5
+ _parentFlowGroupName?: string;
6
+ }
7
+ export interface FlowGroupVM {
8
+ _id: string;
9
+ _icon?: string;
10
+ _planId?: string;
11
+ name: string;
12
+ flows: FlowVM[];
13
+ }
14
+ export interface PolicyDocumentation {
15
+ content: string;
16
+ language: 'MARKDOWN' | 'ASCIIDOC';
17
+ }