Skip to content

Commit

Permalink
feat: upgrading SDK version for new components and APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rudouglas committed Jun 14, 2021
1 parent 985c4b3 commit 75dfaba
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ module.exports = {
{
resolve: 'gatsby-source-newrelic-sdk',
options: {
release: 'release-2532',
release: 'release-2762',
},
},
'gatsby-plugin-embed-pages',
Expand Down
24 changes: 23 additions & 1 deletion plugins/gatsby-source-newrelic-sdk/src/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
module.exports.BASE_URL =
'https://d1zobbh8kytrtv.cloudfront.net/platform/wanda--wanda-ec-ui--nr1-docs';

module.exports.DOCUMENTED_APIS = ['logger', 'navigation', 'nerdlet', 'ngql'];
module.exports.DOCUMENTED_APIS = [
'catalog',
'events',
'instrumentation',
'logger',
'navigation',
'nerdlet',
'ngql',
];
module.exports.DOCUMENTED_COMPONENTS = [
'AccountPicker',
'AccountsQuery',
Expand All @@ -10,10 +18,14 @@ module.exports.DOCUMENTED_COMPONENTS = [
'AreaChart',
'AutoSizer',
'Badge',
'Banner',
'BarChart',
'BillboardChart',
'BlockText',
'Button',
'Callout',
'CalloutBody',
'CalloutTarget',
'Card',
'CardBody',
'CardHeader',
Expand All @@ -22,6 +34,7 @@ module.exports.DOCUMENTED_COMPONENTS = [
'Dropdown',
'DropdownItem',
'DropdownSection',
'EmptyState',
'EntitiesByDomainTypeQuery',
'EntitiesByGuidsQuery',
'EntitiesByNameQuery',
Expand All @@ -32,13 +45,15 @@ module.exports.DOCUMENTED_COMPONENTS = [
'EntityStorageQuery',
'EntityTitleTableRowCell',
'FavoriteTableRowCell',
'Form',
'FunnelChart',
'Grid',
'GridItem',
'HeadingText',
'HeatmapChart',
'HistogramChart',
'Icon',
'InlineMessage',
'JsonChart',
'Layout',
'LayoutItem',
Expand All @@ -53,14 +68,17 @@ module.exports.DOCUMENTED_COMPONENTS = [
'NerdGraphQuery',
'NerdletStateContext',
'NrqlQuery',
'NrqlQueries',
'PieChart',
'PlatformStateContext',
'Popover',
'PopoverBody',
'PopoverTrigger',
'QueryGroup',
'Radio',
'RadioGroup',
'ScatterChart',
'SectionMessage',
'SegmentedControl',
'SegmentedControlItem',
'Select',
Expand All @@ -72,6 +90,8 @@ module.exports.DOCUMENTED_COMPONENTS = [
'Stack',
'StackedBarChart',
'StackItem',
'Steps',
'StepsItem',
'Switch',
'Table',
'TableChart',
Expand All @@ -82,6 +102,8 @@ module.exports.DOCUMENTED_COMPONENTS = [
'Tabs',
'TabsItem',
'TextField',
'Tile',
'TileGroup',
'Toast',
'Tooltip',
'UserQuery',
Expand Down
1 change: 1 addition & 0 deletions plugins/gatsby-source-newrelic-sdk/src/getMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const IGNORED_METHODS = [
'propTypes',
'getDerivedStateFromProps',
'defaultProps',
'render',
];

module.exports = (name, sdk) => {
Expand Down
30 changes: 30 additions & 0 deletions src/data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@
url: '/components/dropdown-item'
- title: DropdownSection
url: '/components/dropdown-section'
- title: Form
url: '/components/form'
- title: MultilineTextField
url: '/components/multiline-text-field'
- title: Radio
Expand All @@ -236,6 +238,10 @@
url: '/components/select'
- title: SelectItem
url: '/components/select-item'
- title: Steps
url: '/components/steps'
- title: StepsItem
url: '/components/steps-item'
- title: Switch
url: '/components/switch'
- title: TextField
Expand Down Expand Up @@ -264,8 +270,16 @@
url: '/components/user-table-row-cell'
- title: Feedback
pages:
- title: Banner
url: '/components/banner'
- title: EmptyState
url: '/components/empty-state'
- title: Icon
url: '/components/icon'
- title: InlineMessage
url: '/components/inline-message'
- title: SectionMessage
url: '/components/section-message'
- title: Spinner
url: '/components/spinner'
- title: Toast
Expand All @@ -276,6 +290,8 @@
url: '/components/badge'
- title: Overlays
pages:
- title: Callout
url: '/components/callout'
- title: Modal
url: '/components/modal'
- title: Popover
Expand Down Expand Up @@ -318,6 +334,10 @@
url: '/components/tabs'
- title: TabsItem
url: '/components/tabs-item'
- title: Tile
url: '/components/tile'
- title: TileGroup
url: '/components/tile-group'
- title: Text
pages:
- title: BlockText
Expand All @@ -326,6 +346,8 @@
url: '/components/heading-text'
- title: Link
url: '/components/link'
- title: MultilineTextField
url: '/components/multiline-text-field'
- title: Charts
url: '/components/charts'
pages:
Expand Down Expand Up @@ -387,6 +409,8 @@
url: '/components/nerd-graph-query'
- title: NrqlQuery
url: '/components/nrql-query'
- title: NrqlQueries
url: '/components/nrql-queries'
- title: UserQuery
url: '/components/user-query'
- title: UserStorageMutation
Expand All @@ -399,6 +423,12 @@
url: '/components/nerdlet-state-context'
- title: PlatformStateContext
url: '/components/platform-state-context'
- title: catalog
url: '/apis/catalog'
- title: events
url: '/apis/events'
- title: instrumentation
url: '/apis/instrumentation'
- title: logger
url: '/apis/logger'
- title: navigation
Expand Down

0 comments on commit 75dfaba

Please sign in to comment.