@taiga-ui/addon-doc 3.19.0 → 3.20.0-dev.main-42edcf4

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 (39) hide show
  1. package/bundles/taiga-ui-addon-doc.umd.js +86 -25
  2. package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
  3. package/components/example/example-options.d.ts +3 -0
  4. package/components/language-switcher/language-switcher.component.d.ts +1 -1
  5. package/components/navigation/navigation.providers.d.ts +9 -0
  6. package/components/page/page.providers.d.ts +3 -0
  7. package/esm2015/components/example/example-options.js +5 -2
  8. package/esm2015/components/language-switcher/language-switcher.component.js +1 -1
  9. package/esm2015/components/navigation/navigation.providers.js +13 -4
  10. package/esm2015/components/page/page.providers.js +5 -2
  11. package/esm2015/tokens/code-actions.js +5 -2
  12. package/esm2015/tokens/code-editor.js +5 -2
  13. package/esm2015/tokens/default-tabs.js +5 -2
  14. package/esm2015/tokens/example-content-processor.js +13 -3
  15. package/esm2015/tokens/excluded-properties.js +5 -2
  16. package/esm2015/tokens/i18n.js +11 -8
  17. package/esm2015/tokens/logo.js +5 -2
  18. package/esm2015/tokens/page-loaded.js +5 -2
  19. package/esm2015/tokens/pages.js +5 -2
  20. package/esm2015/tokens/scroll-behavior.js +5 -2
  21. package/esm2015/tokens/see-also.js +5 -2
  22. package/esm2015/tokens/source-code.js +5 -2
  23. package/esm2015/tokens/title.js +5 -2
  24. package/fesm2015/taiga-ui-addon-doc.js +86 -25
  25. package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
  26. package/package.json +5 -5
  27. package/tokens/code-actions.d.ts +3 -0
  28. package/tokens/code-editor.d.ts +3 -0
  29. package/tokens/default-tabs.d.ts +3 -0
  30. package/tokens/example-content-processor.d.ts +6 -0
  31. package/tokens/excluded-properties.d.ts +3 -0
  32. package/tokens/i18n.d.ts +3 -0
  33. package/tokens/logo.d.ts +3 -0
  34. package/tokens/page-loaded.d.ts +3 -0
  35. package/tokens/pages.d.ts +3 -0
  36. package/tokens/scroll-behavior.d.ts +3 -0
  37. package/tokens/see-also.d.ts +3 -0
  38. package/tokens/source-code.d.ts +3 -0
  39. package/tokens/title.d.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-doc",
3
- "version": "3.19.0",
3
+ "version": "3.20.0-dev.main-42edcf4",
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.19.0",
31
- "@taiga-ui/cdk": ">=3.19.0",
32
- "@taiga-ui/core": ">=3.19.0",
33
- "@taiga-ui/kit": ">=3.19.0",
30
+ "@taiga-ui/addon-mobile": ">=3.20.0",
31
+ "@taiga-ui/cdk": ">=3.20.0",
32
+ "@taiga-ui/core": ">=3.20.0",
33
+ "@taiga-ui/kit": ">=3.20.0",
34
34
  "@tinkoff/ng-polymorpheus": ">=4.0.0"
35
35
  },
36
36
  "main": "bundles/taiga-ui-addon-doc.umd.js",
@@ -1,4 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TuiContextWithImplicit } from '@taiga-ui/cdk';
3
3
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
4
+ /**
5
+ * Code actions for the opened tab with code example
6
+ */
4
7
  export declare const TUI_DOC_CODE_ACTIONS: InjectionToken<PolymorpheusContent<TuiContextWithImplicit<string>>>;
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TuiCodeEditor } from '../interfaces/code-editor';
3
+ /**
4
+ * Service for opening online IDE e.g. Stackblitz
5
+ */
3
6
  export declare const TUI_DOC_CODE_EDITOR: InjectionToken<TuiCodeEditor>;
@@ -1,2 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Array of default tab names
4
+ */
2
5
  export declare const TUI_DOC_DEFAULT_TABS: InjectionToken<readonly string[]>;
@@ -1,4 +1,10 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TuiHandler } from '@taiga-ui/cdk';
3
+ /**
4
+ * Processes content in example
5
+ */
3
6
  export declare const TUI_DOC_EXAMPLE_CONTENT_PROCESSOR: InjectionToken<TuiHandler<Record<string, string>, Record<string, string>>>;
7
+ /**
8
+ * Processes markdown in code block
9
+ */
4
10
  export declare const TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR: InjectionToken<TuiHandler<string, string[]>>;
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
+ /**
3
+ * Token to exclude inherited documentation properties
4
+ */
2
5
  export declare const TUI_DOC_EXCLUDED_PROPERTIES: InjectionToken<Set<string>>;
3
6
  export declare function tuiDocExcludeProperties(properties: readonly string[]): Provider;
package/tokens/i18n.d.ts CHANGED
@@ -3,11 +3,13 @@ import { InjectionToken } from '@angular/core';
3
3
  * TODO: think about reorganization in @taiga-ui/i18n way
4
4
  */
5
5
  /**
6
+ * tui-doc-demo i18n texts
6
7
  * Works with a tuple
7
8
  * [@string tuiMode tooltip content, @string word 'background', @string 'form value']
8
9
  */
9
10
  export declare const TUI_DOC_DEMO_TEXTS: InjectionToken<[string, string, string]>;
10
11
  /**
12
+ * tui-doc-documentation i18n texts
11
13
  * Works with a tuple
12
14
  * [
13
15
  * @string word 'argument',
@@ -19,6 +21,7 @@ export declare const TUI_DOC_DEMO_TEXTS: InjectionToken<[string, string, string]
19
21
  */
20
22
  export declare const TUI_DOC_DOCUMENTATION_TEXTS: InjectionToken<[string, string, string, string, string]>;
21
23
  /**
24
+ * tui-doc-example i18n texts
22
25
  * Works with a tuple
23
26
  * [
24
27
  * @string default tab name,
package/tokens/logo.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
3
+ /**
4
+ * Main logo
5
+ */
3
6
  export declare const TUI_DOC_LOGO: InjectionToken<PolymorpheusContent<any>>;
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
+ /**
4
+ * Stream that emits if loading of page is over (for example, to begin scrollIntoView)
5
+ */
3
6
  export declare const TUI_DOC_PAGE_LOADED: InjectionToken<Observable<boolean>>;
package/tokens/pages.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { TuiDocPages } from '../types/pages';
3
+ /**
4
+ * Documentation pages
5
+ */
3
6
  export declare const TUI_DOC_PAGES: InjectionToken<TuiDocPages>;
@@ -1,2 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Defines the transition animation for scroll
4
+ */
2
5
  export declare const TUI_DOC_SCROLL_BEHAVIOR: InjectionToken<ScrollBehavior>;
@@ -1,2 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Array of arrays of related pages
4
+ */
2
5
  export declare const TUI_DOC_SEE_ALSO: InjectionToken<readonly (readonly string[])[]>;
@@ -1,4 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
3
3
  import { TuiDocSourceCodePathOptions } from '../interfaces/source-code-path-options';
4
+ /**
5
+ * Source code link
6
+ */
4
7
  export declare const TUI_DOC_SOURCE_CODE: InjectionToken<PolymorpheusContent<TuiDocSourceCodePathOptions>>;
package/tokens/title.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Page title prefix
4
+ */
2
5
  export declare const TUI_DOC_TITLE: InjectionToken<string>;