@taiga-ui/addon-doc 3.21.0 → 3.22.0-dev.main-853de1f

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.
@@ -1,4 +1,6 @@
1
+ import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
1
2
  export interface TuiCodeEditor {
2
3
  readonly name: string;
4
+ readonly content?: PolymorpheusContent;
3
5
  edit(component: string, id: string, files: Record<string, string>): Promise<void>;
4
6
  }
@@ -1,10 +1,10 @@
1
- import { TuiDocPage, TuiDocPageGroup } from '../../interfaces/page';
1
+ import type { TuiDocPage } from '../../interfaces/page';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TuiDocSeeAlsoComponent {
4
4
  readonly text: string;
5
5
  private readonly pages;
6
6
  seeAlso: readonly string[];
7
- constructor(text: string, pages: ReadonlyArray<TuiDocPage | TuiDocPageGroup>);
7
+ constructor(text: string, pages: Map<string, TuiDocPage>);
8
8
  getRouterLink(pageTitle: string): string;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocSeeAlsoComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocSeeAlsoComponent, "tui-doc-see-also", never, { "seeAlso": "seeAlso"; }, {}, never, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-doc",
3
- "version": "3.21.0",
3
+ "version": "3.22.0-dev.main-853de1f",
4
4
  "description": "Taiga UI based library for developing documentation portals for Angular libraries.",
5
5
  "keywords": [
6
6
  "angular",
@@ -27,10 +27,10 @@
27
27
  "@angular/forms": ">=12.0.0",
28
28
  "@angular/router": ">=12.0.0",
29
29
  "@ng-web-apis/common": ">=2.0.0",
30
- "@taiga-ui/addon-mobile": ">=3.21.0",
31
- "@taiga-ui/cdk": ">=3.21.0",
32
- "@taiga-ui/core": ">=3.21.0",
33
- "@taiga-ui/kit": ">=3.21.0",
30
+ "@taiga-ui/addon-mobile": ">=3.22.0",
31
+ "@taiga-ui/cdk": ">=3.22.0",
32
+ "@taiga-ui/core": ">=3.22.0",
33
+ "@taiga-ui/kit": ">=3.22.0",
34
34
  "@tinkoff/ng-polymorpheus": ">=4.0.0"
35
35
  },
36
36
  "main": "bundles/taiga-ui-addon-doc.umd.js",
package/public-api.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './tokens/scroll-behavior';
45
45
  export * from './tokens/see-also';
46
46
  export * from './tokens/source-code';
47
47
  export * from './tokens/title';
48
+ export * from './tokens/url-state-handler';
48
49
  export * from './types/pages';
49
50
  export * from './addon-doc.module';
50
51
  export * from './utils/coerce-value';
package/tokens/pages.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { TuiDocPages } from '../types/pages';
2
+ import type { TuiDocPage } from '../interfaces/page';
3
+ import type { TuiDocPages } from '../types/pages';
3
4
  /**
4
5
  * Documentation pages
5
6
  */
6
7
  export declare const TUI_DOC_PAGES: InjectionToken<TuiDocPages>;
8
+ export declare const TUI_DOC_MAP_PAGES: InjectionToken<Map<string, TuiDocPage>>;
@@ -0,0 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import type { UrlTree } from '@angular/router';
3
+ import type { TuiStringHandler } from '@taiga-ui/cdk';
4
+ export declare const TUI_DOC_URL_STATE_HANDLER: InjectionToken<TuiStringHandler<UrlTree>>;
@@ -0,0 +1,3 @@
1
+ import type { TuiDocPage } from '../interfaces/page';
2
+ import type { TuiDocPages } from '../types/pages';
3
+ export declare function tuiToFlatMapPages(pages: TuiDocPages): Map<string, TuiDocPage>;