@redhat-cloud-services/types 0.0.9 → 0.0.10

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 (2) hide show
  1. package/index.d.ts +22 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,6 +2,21 @@ import { QuickStartCatalogPage } from '@patternfly/quickstarts';
2
2
  import { History } from 'history';
3
3
  import { Access } from '@redhat-cloud-services/rbac-client';
4
4
 
5
+ export declare type HelpTopicLink = {
6
+ href: string;
7
+ text?: string;
8
+ newTab?: boolean;
9
+ isExternal?: boolean;
10
+ };
11
+
12
+ export declare type HelpTopic = {
13
+ name: string;
14
+ title: string;
15
+ tags: string[];
16
+ content: string;
17
+ links?: HelpTopicLink[];
18
+ };
19
+
5
20
  declare type ChromeUser = {
6
21
  entitlements: {
7
22
  [key: string]: {
@@ -138,6 +153,13 @@ export interface ChromeAPI {
138
153
  type: string;
139
154
  payload: string;
140
155
  };
156
+ helpTopics: {
157
+ addHelpTopics: (topics: HelpTopic[], enabled?: boolean) => void;
158
+ enableTopics: (...topicsNames: string[]) => Promise<void>;
159
+ disableTopics: (...topicsNames: string[]) => void;
160
+ setActiveTopic: (name: string) => void;
161
+ closeHelpTopic: () => void;
162
+ };
141
163
  hideGlobalFilter: (isHidden: boolean) => void;
142
164
  /** @deprecated This function server no purpse. For document title update use "updateDocumentTitle" function instead. */
143
165
  identifyApp: (data: any, appTitle?: string, noSuffix?: boolean) => Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/types",
3
3
  "description": "TypeScript definitions for @redhat-cloud-services common typings",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
7
  "publishConfig": {