@openshift-console/dynamic-plugin-sdk
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -71,6 +71,7 @@ # OpenShift Console API | ||
68. [useUserSettings](#useusersettings) | ||
69. [DEPRECATED] [PerspectiveContext](#perspectivecontext) | ||
70. [DEPRECATED] [useAccessReviewAllowed](#useaccessreviewallowed) | ||
71. [DEPRECATED] [useSafetyFirst](#usesafetyfirst) | ||
72. [DEPRECATED] [YAMLEditor](#yamleditor) | ||
69. [useQuickStartContext](#usequickstartcontext) | ||
70. [DEPRECATED] [PerspectiveContext](#perspectivecontext) | ||
71. [DEPRECATED] [useAccessReviewAllowed](#useaccessreviewallowed) | ||
72. [DEPRECATED] [useSafetyFirst](#usesafetyfirst) | ||
73. [DEPRECATED] [YAMLEditor](#yamleditor) | ||
@@ -2446,2 +2447,36 @@ --- | ||
## `useQuickStartContext` | ||
### Summary | ||
Hook that provides the current quick start context values. This allows plugins to interop with Console<br/>quick start functionality. | ||
### Example | ||
```tsx | ||
const OpenQuickStartButton = ({ quickStartId }) => { | ||
const { setActiveQuickStart } = useQuickStartContext(); | ||
const onClick = React.useCallback(() => { | ||
setActiveQuickStart(quickStartId); | ||
}, [quickStartId]); | ||
return <button onClick={onClick}>{t('Open Quick Start')}</button> | ||
}; | ||
``` | ||
### Returns | ||
Quick start context values object. | ||
--- | ||
## `PerspectiveContext` | ||
@@ -2448,0 +2483,0 @@ |
@@ -17,66 +17,67 @@ # OpenShift Console Extension Types | ||
14. [console.context-provider](#consolecontext-provider) | ||
15. [console.dashboards/card](#consoledashboardscard) | ||
16. [console.dashboards/custom/overview/detail/item](#consoledashboardscustomoverviewdetailitem) | ||
17. [console.dashboards/overview/activity/resource](#consoledashboardsoverviewactivityresource) | ||
18. [console.dashboards/overview/health/operator](#consoledashboardsoverviewhealthoperator) | ||
19. [console.dashboards/overview/health/prometheus](#consoledashboardsoverviewhealthprometheus) | ||
20. [console.dashboards/overview/health/resource](#consoledashboardsoverviewhealthresource) | ||
21. [console.dashboards/overview/health/url](#consoledashboardsoverviewhealthurl) | ||
22. [console.dashboards/overview/inventory/item](#consoledashboardsoverviewinventoryitem) | ||
23. [console.dashboards/overview/inventory/item/group](#consoledashboardsoverviewinventoryitemgroup) | ||
24. [console.dashboards/overview/inventory/item/replacement](#consoledashboardsoverviewinventoryitemreplacement) | ||
25. [console.dashboards/overview/prometheus/activity/resource](#consoledashboardsoverviewprometheusactivityresource) | ||
26. [console.dashboards/project/overview/item](#consoledashboardsprojectoverviewitem) | ||
27. [console.dashboards/tab](#consoledashboardstab) | ||
28. [console.file-upload](#consolefile-upload) | ||
29. [console.flag](#consoleflag) | ||
30. [console.flag/hookProvider](#consoleflaghookProvider) | ||
31. [console.flag/model](#consoleflagmodel) | ||
32. [console.global-config](#consoleglobal-config) | ||
33. [console.model-metadata](#consolemodel-metadata) | ||
34. [console.navigation/href](#consolenavigationhref) | ||
35. [console.navigation/resource-cluster](#consolenavigationresource-cluster) | ||
36. [console.navigation/resource-ns](#consolenavigationresource-ns) | ||
37. [console.navigation/section](#consolenavigationsection) | ||
38. [console.navigation/separator](#consolenavigationseparator) | ||
39. [console.page/resource/details](#consolepageresourcedetails) | ||
40. [console.page/resource/list](#consolepageresourcelist) | ||
41. [console.page/route](#consolepageroute) | ||
42. [console.page/route/standalone](#consolepageroutestandalone) | ||
43. [console.perspective](#consoleperspective) | ||
44. [console.project-overview/inventory-item](#consoleproject-overviewinventory-item) | ||
45. [console.project-overview/utilization-item](#consoleproject-overviewutilization-item) | ||
46. [console.pvc/alert](#consolepvcalert) | ||
47. [console.pvc/create-prop](#consolepvccreate-prop) | ||
48. [console.pvc/delete](#consolepvcdelete) | ||
49. [console.pvc/status](#consolepvcstatus) | ||
50. [console.redux-reducer](#consoleredux-reducer) | ||
51. [console.resource/create](#consoleresourcecreate) | ||
52. [console.resource/details-item](#consoleresourcedetails-item) | ||
53. [console.storage-class/provisioner](#consolestorage-classprovisioner) | ||
54. [console.storage-provider](#consolestorage-provider) | ||
55. [console.tab](#consoletab) | ||
56. [console.tab/horizontalNav](#consoletabhorizontalNav) | ||
57. [console.telemetry/listener](#consoletelemetrylistener) | ||
58. [console.topology/adapter/build](#consoletopologyadapterbuild) | ||
59. [console.topology/adapter/network](#consoletopologyadapternetwork) | ||
60. [console.topology/adapter/pod](#consoletopologyadapterpod) | ||
61. [console.topology/component/factory](#consoletopologycomponentfactory) | ||
62. [console.topology/create/connector](#consoletopologycreateconnector) | ||
63. [console.topology/data/factory](#consoletopologydatafactory) | ||
64. [console.topology/decorator/provider](#consoletopologydecoratorprovider) | ||
65. [console.topology/details/resource-alert](#consoletopologydetailsresource-alert) | ||
66. [console.topology/details/resource-link](#consoletopologydetailsresource-link) | ||
67. [console.topology/details/tab](#consoletopologydetailstab) | ||
68. [console.topology/details/tab-section](#consoletopologydetailstab-section) | ||
69. [console.topology/display/filters](#consoletopologydisplayfilters) | ||
70. [console.topology/relationship/provider](#consoletopologyrelationshipprovider) | ||
71. [console.user-preference/group](#consoleuser-preferencegroup) | ||
72. [console.user-preference/item](#consoleuser-preferenceitem) | ||
73. [console.yaml-template](#consoleyaml-template) | ||
74. [dev-console.add/action](#dev-consoleaddaction) | ||
75. [dev-console.add/action-group](#dev-consoleaddaction-group) | ||
76. [dev-console.import/environment](#dev-consoleimportenvironment) | ||
77. [DEPRECATED] [console.dashboards/overview/detail/item](#consoledashboardsoverviewdetailitem) | ||
78. [DEPRECATED] [console.page/resource/tab](#consolepageresourcetab) | ||
15. [console.create-project-modal](#consolecreate-project-modal) | ||
16. [console.dashboards/card](#consoledashboardscard) | ||
17. [console.dashboards/custom/overview/detail/item](#consoledashboardscustomoverviewdetailitem) | ||
18. [console.dashboards/overview/activity/resource](#consoledashboardsoverviewactivityresource) | ||
19. [console.dashboards/overview/health/operator](#consoledashboardsoverviewhealthoperator) | ||
20. [console.dashboards/overview/health/prometheus](#consoledashboardsoverviewhealthprometheus) | ||
21. [console.dashboards/overview/health/resource](#consoledashboardsoverviewhealthresource) | ||
22. [console.dashboards/overview/health/url](#consoledashboardsoverviewhealthurl) | ||
23. [console.dashboards/overview/inventory/item](#consoledashboardsoverviewinventoryitem) | ||
24. [console.dashboards/overview/inventory/item/group](#consoledashboardsoverviewinventoryitemgroup) | ||
25. [console.dashboards/overview/inventory/item/replacement](#consoledashboardsoverviewinventoryitemreplacement) | ||
26. [console.dashboards/overview/prometheus/activity/resource](#consoledashboardsoverviewprometheusactivityresource) | ||
27. [console.dashboards/project/overview/item](#consoledashboardsprojectoverviewitem) | ||
28. [console.dashboards/tab](#consoledashboardstab) | ||
29. [console.file-upload](#consolefile-upload) | ||
30. [console.flag](#consoleflag) | ||
31. [console.flag/hookProvider](#consoleflaghookProvider) | ||
32. [console.flag/model](#consoleflagmodel) | ||
33. [console.global-config](#consoleglobal-config) | ||
34. [console.model-metadata](#consolemodel-metadata) | ||
35. [console.navigation/href](#consolenavigationhref) | ||
36. [console.navigation/resource-cluster](#consolenavigationresource-cluster) | ||
37. [console.navigation/resource-ns](#consolenavigationresource-ns) | ||
38. [console.navigation/section](#consolenavigationsection) | ||
39. [console.navigation/separator](#consolenavigationseparator) | ||
40. [console.page/resource/details](#consolepageresourcedetails) | ||
41. [console.page/resource/list](#consolepageresourcelist) | ||
42. [console.page/route](#consolepageroute) | ||
43. [console.page/route/standalone](#consolepageroutestandalone) | ||
44. [console.perspective](#consoleperspective) | ||
45. [console.project-overview/inventory-item](#consoleproject-overviewinventory-item) | ||
46. [console.project-overview/utilization-item](#consoleproject-overviewutilization-item) | ||
47. [console.pvc/alert](#consolepvcalert) | ||
48. [console.pvc/create-prop](#consolepvccreate-prop) | ||
49. [console.pvc/delete](#consolepvcdelete) | ||
50. [console.pvc/status](#consolepvcstatus) | ||
51. [console.redux-reducer](#consoleredux-reducer) | ||
52. [console.resource/create](#consoleresourcecreate) | ||
53. [console.resource/details-item](#consoleresourcedetails-item) | ||
54. [console.storage-class/provisioner](#consolestorage-classprovisioner) | ||
55. [console.storage-provider](#consolestorage-provider) | ||
56. [console.tab](#consoletab) | ||
57. [console.tab/horizontalNav](#consoletabhorizontalNav) | ||
58. [console.telemetry/listener](#consoletelemetrylistener) | ||
59. [console.topology/adapter/build](#consoletopologyadapterbuild) | ||
60. [console.topology/adapter/network](#consoletopologyadapternetwork) | ||
61. [console.topology/adapter/pod](#consoletopologyadapterpod) | ||
62. [console.topology/component/factory](#consoletopologycomponentfactory) | ||
63. [console.topology/create/connector](#consoletopologycreateconnector) | ||
64. [console.topology/data/factory](#consoletopologydatafactory) | ||
65. [console.topology/decorator/provider](#consoletopologydecoratorprovider) | ||
66. [console.topology/details/resource-alert](#consoletopologydetailsresource-alert) | ||
67. [console.topology/details/resource-link](#consoletopologydetailsresource-link) | ||
68. [console.topology/details/tab](#consoletopologydetailstab) | ||
69. [console.topology/details/tab-section](#consoletopologydetailstab-section) | ||
70. [console.topology/display/filters](#consoletopologydisplayfilters) | ||
71. [console.topology/relationship/provider](#consoletopologyrelationshipprovider) | ||
72. [console.user-preference/group](#consoleuser-preferencegroup) | ||
73. [console.user-preference/item](#consoleuser-preferenceitem) | ||
74. [console.yaml-template](#consoleyaml-template) | ||
75. [dev-console.add/action](#dev-consoleaddaction) | ||
76. [dev-console.add/action-group](#dev-consoleaddaction-group) | ||
77. [dev-console.import/environment](#dev-consoleimportenvironment) | ||
78. [DEPRECATED] [console.dashboards/overview/detail/item](#consoledashboardsoverviewdetailitem) | ||
79. [DEPRECATED] [console.page/resource/tab](#consolepageresourcetab) | ||
@@ -315,2 +316,16 @@ --- | ||
## `console.create-project-modal` | ||
### Summary | ||
This extension can be used to pass a component that will be rendered in place of the standard create project modal. | ||
### Properties | ||
| Name | Value Type | Optional | Description | | ||
| ---- | ---------- | -------- | ----------- | | ||
| `component` | `CodeRef<ModalComponent<CreateProjectModalProps>>` | no | A component to render in place of the create project modal | | ||
--- | ||
## `console.dashboards/card` | ||
@@ -817,3 +832,3 @@ | ||
| `landingPageURL` | `CodeRef<(flags: { [key: string]: boolean; }, isFirstVisit: boolean) => string>` | no | The function to get perspective landing page URL. | | ||
| `importRedirectURL` | `CodeRef<(namespace: string) => string>` | no | The function to get redirect URL for import flow. | | ||
| `importRedirectURL` | `CodeRef<(namespace: string) => string>` | no | The function to get a relative redirect URL for import flow. | | ||
| `default` | `boolean` | yes | Whether the perspective is the default. There can only be one default. | | ||
@@ -820,0 +835,0 @@ | `defaultPins` | `ExtensionK8sModel[]` | yes | Default pinned resources on the nav | |
import * as React from 'react'; | ||
import { ActionServiceProviderProps } from '../extensions/actions'; | ||
import { CodeEditorProps, CodeEditorRef, ErrorBoundaryFallbackProps, HorizontalNavProps, InventoryItemBodyProps, InventoryItemStatusProps, InventoryItemTitleProps, ListPageCreateButtonProps, ListPageCreateDropdownProps, ListPageCreateLinkProps, ListPageCreateProps, ListPageFilterProps, ListPageHeaderProps, NamespaceBarProps, OverviewGridProps, OverviewProps, QueryBrowserProps, ResourceEventStreamProps, ResourceIconProps, ResourceLinkProps, ResourceYAMLEditorProps, TableDataProps, TimestampProps, UseActiveColumns, UseAnnotationsModal, UseDeleteModal, UseLabelsModal, UseListPageFilter, UsePrometheusPoll, UseResolvedExtensions, VirtualizedTableFC, UseActiveNamespace, UseUserSettings } from '../extensions/console-types'; | ||
import { CodeEditorProps, CodeEditorRef, ErrorBoundaryFallbackProps, HorizontalNavProps, InventoryItemBodyProps, InventoryItemStatusProps, InventoryItemTitleProps, ListPageCreateButtonProps, ListPageCreateDropdownProps, ListPageCreateLinkProps, ListPageCreateProps, ListPageFilterProps, ListPageHeaderProps, NamespaceBarProps, OverviewGridProps, OverviewProps, QueryBrowserProps, ResourceEventStreamProps, ResourceIconProps, ResourceLinkProps, ResourceYAMLEditorProps, TableDataProps, TimestampProps, UseActiveColumns, UseAnnotationsModal, UseDeleteModal, UseLabelsModal, UseListPageFilter, UsePrometheusPoll, UseResolvedExtensions, VirtualizedTableFC, UseActiveNamespace, UseUserSettings, UseQuickStartContext } from '../extensions/console-types'; | ||
import { StatusPopupSectionProps, StatusPopupItemProps } from '../extensions/dashboard-types'; | ||
@@ -761,1 +761,17 @@ export * from '../app/components'; | ||
export declare const useUserSettings: UseUserSettings; | ||
/** | ||
* Hook that provides the current quick start context values. This allows plugins to interop with Console | ||
* quick start functionality. | ||
* @returns Quick start context values object. | ||
* @example | ||
* ```tsx | ||
* const OpenQuickStartButton = ({ quickStartId }) => { | ||
* const { setActiveQuickStart } = useQuickStartContext(); | ||
* const onClick = React.useCallback(() => { | ||
* setActiveQuickStart(quickStartId); | ||
* }, [quickStartId]); | ||
* return <button onClick={onClick}>{t('Open Quick Start')}</button> | ||
* }; | ||
* ``` | ||
*/ | ||
export declare const useQuickStartContext: UseQuickStartContext; |
@@ -797,2 +797,19 @@ export * from '../app/components'; | ||
.useUserSettings; | ||
/** | ||
* Hook that provides the current quick start context values. This allows plugins to interop with Console | ||
* quick start functionality. | ||
* @returns Quick start context values object. | ||
* @example | ||
* ```tsx | ||
* const OpenQuickStartButton = ({ quickStartId }) => { | ||
* const { setActiveQuickStart } = useQuickStartContext(); | ||
* const onClick = React.useCallback(() => { | ||
* setActiveQuickStart(quickStartId); | ||
* }, [quickStartId]); | ||
* return <button onClick={onClick}>{t('Open Quick Start')}</button> | ||
* }; | ||
* ``` | ||
*/ | ||
export const useQuickStartContext = require('@console/shared/src/hooks/useQuickStartContext') | ||
.useQuickStartContext; | ||
//# sourceMappingURL=dynamic-core-api.js.map |
@@ -16,4 +16,9 @@ import * as React from 'react'; | ||
*/ | ||
export const GreenCheckCircleIcon = ({ className, title, size }) => (React.createElement(Icon, { size: size }, | ||
React.createElement(CheckCircleIcon, { "data-test": "success-icon", className: classNames('dps-icons__green-check-icon', className), title: title }))); | ||
export const GreenCheckCircleIcon = ({ className, title, size }) => { | ||
const icon = (React.createElement(CheckCircleIcon, { "data-test": "success-icon", className: classNames('dps-icons__green-check-icon', className), title: title })); | ||
if (size) { | ||
return React.createElement(Icon, { size: size }, icon); | ||
} | ||
return icon; | ||
}; | ||
/** | ||
@@ -29,4 +34,9 @@ * Component for displaying a red exclamation mark circle icon. | ||
*/ | ||
export const RedExclamationCircleIcon = ({ className, title, size, }) => (React.createElement(Icon, { size: size }, | ||
React.createElement(ExclamationCircleIcon, { className: classNames('dps-icons__red-exclamation-icon', className), title: title }))); | ||
export const RedExclamationCircleIcon = ({ className, title, size, }) => { | ||
const icon = (React.createElement(ExclamationCircleIcon, { className: classNames('dps-icons__red-exclamation-icon', className), title: title })); | ||
if (size) { | ||
return React.createElement(Icon, { size: size }, icon); | ||
} | ||
return icon; | ||
}; | ||
/** | ||
@@ -42,4 +52,9 @@ * Component for displaying a yellow triangle exclamation icon. | ||
*/ | ||
export const YellowExclamationTriangleIcon = ({ className, title, size, }) => (React.createElement(Icon, { size: size }, | ||
React.createElement(ExclamationTriangleIcon, { className: classNames('dps-icons__yellow-exclamation-icon', className), title: title }))); | ||
export const YellowExclamationTriangleIcon = ({ className, title, size, }) => { | ||
const icon = (React.createElement(ExclamationTriangleIcon, { className: classNames('dps-icons__yellow-exclamation-icon', className), title: title })); | ||
if (size) { | ||
return React.createElement(Icon, { size: size }, icon); | ||
} | ||
return icon; | ||
}; | ||
/** | ||
@@ -55,4 +70,9 @@ * Component for displaying a blue info circle icon. | ||
*/ | ||
export const BlueInfoCircleIcon = ({ className, title, size }) => (React.createElement(Icon, { size: size }, | ||
React.createElement(InfoCircleIcon, { className: classNames('dps-icons__blue-info-icon', className), title: title }))); | ||
export const BlueInfoCircleIcon = ({ className, title, size }) => { | ||
const icon = (React.createElement(InfoCircleIcon, { className: classNames('dps-icons__blue-info-icon', className), title: title })); | ||
if (size) { | ||
return React.createElement(Icon, { size: size }, icon); | ||
} | ||
return icon; | ||
}; | ||
//# sourceMappingURL=icons.js.map |
@@ -99,3 +99,3 @@ import { ActionType as Action } from 'typesafe-actions'; | ||
[key: string]: string; | ||
}, k8sType: K8sModel, partialMetadata?: boolean) => (dispatch: any, getState: any) => any; | ||
}, k8sModel: K8sModel, partialMetadata?: boolean) => (dispatch: any, getState: any) => any; | ||
export declare const receivedResources: (resources: DiscoveryResources) => { | ||
@@ -102,0 +102,0 @@ type: ActionType.ReceivedResources; |
@@ -178,3 +178,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
export const watchK8sObject = (id, name, namespace, query, k8sType, partialMetadata = false) => (dispatch, getState) => { | ||
export const watchK8sObject = (id, name, namespace, query, k8sModel, partialMetadata = false) => (dispatch, getState) => { | ||
if (id in REF_COUNTS) { | ||
@@ -186,6 +186,2 @@ REF_COUNTS[id] += 1; | ||
REF_COUNTS[id] = 1; | ||
if (query.name) { | ||
query.fieldSelector = `metadata.name=${query.name}`; | ||
delete query.name; | ||
} | ||
const requestOptions = partialMetadata | ||
@@ -197,3 +193,3 @@ ? { | ||
const poller = () => { | ||
k8sGet(k8sType, name, namespace, {}, requestOptions) | ||
k8sGet(k8sModel, name, namespace, {}, requestOptions) | ||
.then((o) => dispatch(modifyObject(id, o)), (e) => dispatch(errored(id, e))) | ||
@@ -207,9 +203,22 @@ .catch((err) => { | ||
poller(); | ||
if (!_.get(k8sType, 'verbs', ['watch']).includes('watch')) { | ||
if (!_.get(k8sModel, 'verbs', ['watch']).includes('watch')) { | ||
// eslint-disable-next-line no-console | ||
console.warn(`${getReferenceForModel(k8sType)} does not support watching`); | ||
console.warn(`${getReferenceForModel(k8sModel)} does not support watching`); | ||
return _.noop; | ||
} | ||
// Validate that a namespace is provided when watching a singular namespaced object. Must happen | ||
// on frontend since we use field selectors against the list endpoint to watch singular resources. | ||
if (k8sModel.namespaced && query.name && !query.ns) { | ||
// eslint-disable-next-line no-console | ||
console.error('Namespace required to watch namespaced resource: ', k8sModel.kind, query.name); | ||
return _.noop; | ||
} | ||
if (query.name) { | ||
query.fieldSelector = `metadata.name=${query.name}`; | ||
delete query.name; | ||
} | ||
const { subprotocols } = getImpersonate(getState()) || {}; | ||
WS[id] = k8sWatch(k8sType, query, { subprotocols }).onbulkmessage((events) => events.forEach((e) => dispatch(modifyObject(id, e.object)))); | ||
WS[id] = k8sWatch(k8sModel, query, { | ||
subprotocols, | ||
}).onbulkmessage((events) => events.forEach((e) => dispatch(modifyObject(id, e.object)))); | ||
return watch; | ||
@@ -216,0 +225,0 @@ }; |
import * as React from 'react'; | ||
import { QuickStartContextValues } from '@patternfly/quickstarts'; | ||
import { ButtonProps } from '@patternfly/react-core'; | ||
@@ -392,3 +393,3 @@ import { ICell, OnSelect, SortByDirection, TableGridBreakpoint } from '@patternfly/react-table'; | ||
PerspectiveType, | ||
React.Dispatch<React.SetStateAction<PerspectiveType>> | ||
(perspective: string, next?: string) => void | ||
]; | ||
@@ -598,2 +599,3 @@ export declare type QueryParams = { | ||
export declare type UseUserSettings = <T>(key: string, defaultValue?: T, sync?: boolean) => [T, React.Dispatch<React.SetStateAction<T>>, boolean]; | ||
export declare type UseQuickStartContext = () => QuickStartContextValues; | ||
export declare type TaintEffect = '' | 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute'; | ||
@@ -620,2 +622,6 @@ export declare type Taint = { | ||
} & K8sResourceCondition; | ||
export declare type NodeAddress = { | ||
type: string; | ||
address: string; | ||
}; | ||
export declare type NodeKind = { | ||
@@ -630,2 +636,5 @@ spec: { | ||
}; | ||
allocatable?: { | ||
[key: string]: string; | ||
}; | ||
conditions?: NodeCondition[]; | ||
@@ -640,2 +649,3 @@ images?: { | ||
}; | ||
addresses?: NodeAddress[]; | ||
}; | ||
@@ -642,0 +652,0 @@ } & K8sResourceCommon; |
@@ -35,1 +35,2 @@ export * from './actions'; | ||
export * from './node'; | ||
export * from './create-project-modal'; |
@@ -35,2 +35,3 @@ export * from './actions'; | ||
export * from './node'; | ||
export * from './create-project-modal'; | ||
//# sourceMappingURL=index.js.map |
@@ -23,3 +23,3 @@ import * as React from 'react'; | ||
}, isFirstVisit: boolean) => string>; | ||
/** The function to get redirect URL for import flow. */ | ||
/** The function to get a relative redirect URL for import flow. */ | ||
importRedirectURL: CodeRef<(namespace: string) => string>; | ||
@@ -26,0 +26,0 @@ /** The hook to detect default perspective */ |
{ | ||
"name": "@openshift-console/dynamic-plugin-sdk", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"main": "lib/lib-core.js", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -50,6 +50,8 @@ # OpenShift Console Dynamic Plugins | ||
| ----------------- | ----------------------------------------------- | -------------------- | | ||
| 4.16.x | `@openshift-console/dynamic-plugin-sdk` | Latest | | ||
| 4.17.x | `@openshift-console/dynamic-plugin-sdk` | Latest | | ||
| | `@openshift-console/dynamic-plugin-sdk-webpack` | Latest | | ||
| 4.16.x | `@openshift-console/dynamic-plugin-sdk` | 1.4.0 | | ||
| | `@openshift-console/dynamic-plugin-sdk-webpack` | 1.1.1 | | ||
| 4.15.x | `@openshift-console/dynamic-plugin-sdk` | 1.0.0 | | ||
| | `@openshift-console/dynamic-plugin-sdk-webpack` | 1.0.0 | | ||
| | `@openshift-console/dynamic-plugin-sdk-webpack` | 1.0.2 | | ||
| 4.14.x | `@openshift-console/dynamic-plugin-sdk` | 0.0.21 | | ||
@@ -340,6 +342,10 @@ | | `@openshift-console/dynamic-plugin-sdk-webpack` | 0.0.11 | | ||
Open the Console in your web browser and inspect the value of `window.SERVER_FLAGS.consolePlugins` to see the | ||
list of dynamic plugins the Console loads at runtime. For local development, this should only | ||
Open the Console in your web browser and inspect the value of `window.SERVER_FLAGS.consolePlugins` to | ||
see the list of dynamic plugins the Console loads at runtime. For local development, this should only | ||
include plugin(s) listed via `-plugins` Bridge argument. | ||
Console development builds allow you to interact with the `PluginStore` object that manages all | ||
plugins and their extensions directly in your web browser with `window.pluginStore`. Please note | ||
that this is _not_ a public API and is meant only for debugging local Console development builds. | ||
### Using local Console plugin SDK code | ||
@@ -417,2 +423,10 @@ | ||
If the newly published version comes before the latest published version in terms of semver rules | ||
(e.g. hotfix release 1.0.2 for an older minor version stream 1.0.x), ensure the `latest` dist-tag | ||
still applies to the appropriate package version: | ||
```sh | ||
npm dist-tag add <package-name>@<version> latest | ||
``` | ||
## Future Deprecations in Shared Plugin Dependencies | ||
@@ -419,0 +433,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
644601
295
8752
450