@redhat-cloud-services/types 0.0.9 → 0.0.11

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 +25 -0
  2. package/package.json +4 -4
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>;
@@ -168,6 +190,9 @@ export interface ChromeAPI {
168
190
  };
169
191
  updateDocumentTitle: (title: string, noSuffix?: boolean) => void;
170
192
  visibilityFunctions: VisibilityFunctions;
193
+ isAnsibleTrialFlagActive: () => boolean | undefined;
194
+ setAnsibleTrialFlag: () => void;
195
+ clearAnsibleTrialFlag: () => void;
171
196
  }
172
197
 
173
198
  declare global {
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.11",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
7
7
  "publishConfig": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "scripts": {},
16
16
  "devDependencies": {
17
- "@patternfly/quickstarts": "^1.4.1-rc.1",
18
- "@redhat-cloud-services/rbac-client": "^1.0.104",
19
- "history": "^4.0.0"
17
+ "@patternfly/quickstarts": "^2.3.1",
18
+ "@redhat-cloud-services/rbac-client": "^1.0.111",
19
+ "history": "^4.10.1"
20
20
  },
21
21
  "author": "",
22
22
  "license": "Apache-2.0"