Skip to content

Commit

Permalink
feat: upgrade SDK components and APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rudouglas committed Jun 16, 2021
1 parent 8ffb9c4 commit 122efa0
Show file tree
Hide file tree
Showing 8 changed files with 80,301 additions and 17,139 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-2743',
release: 'release-2776',
},
},
'gatsby-plugin-embed-pages',
Expand Down
62,582 changes: 62,582 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@newrelic/gatsby-theme-newrelic": "^2.4.4",
"@splitsoftware/splitio-react": "^1.2.0",
"@xstate/react": "^1.0.2",
"blob-polyfill": "^5.0.20210201",
"classnames": "^2.2.6",
"date-fns": "^2.16.1",
"diff": "^4.0.2",
Expand Down
7 changes: 1 addition & 6 deletions plugins/gatsby-source-newrelic-sdk/src/constants.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module.exports.BASE_URL =
'https://d1zobbh8kytrtv.cloudfront.net/platform/wanda--wanda-ec-ui--nr1-docs';
'https://d1zobbh8kytrtv.cloudfront.net/platform/doc-app';

module.exports.DOCUMENTED_APIS = [
'catalog',
'events',
'instrumentation',
'logger',
'navigation',
'nerdlet',
Expand All @@ -18,7 +15,6 @@ module.exports.DOCUMENTED_COMPONENTS = [
'AreaChart',
'AutoSizer',
'Badge',
'Banner',
'BarChart',
'BillboardChart',
'BlockText',
Expand Down Expand Up @@ -78,7 +74,6 @@ module.exports.DOCUMENTED_COMPONENTS = [
'Radio',
'RadioGroup',
'ScatterChart',
'SectionMessage',
'SegmentedControl',
'SegmentedControlItem',
'Select',
Expand Down
4 changes: 2 additions & 2 deletions plugins/gatsby-source-newrelic-sdk/src/loadSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ module.exports = async (release, { cache }) => {
bundle(
'https://nr1.nr-assets.net/lib/react-router-dom/4.2.2/react-router-dom.js'
),
bundle(`${BASE_URL}-${release}.js`),
bundle(`${BASE_URL}-${release}-dev.js`),
]);

return vm.runInThisContext(
[...bundles, '__NR1_SDK__.default'].join('\n'),
`wanda--wanda-ec-ui--nr1-docs-${release}.js`
`doc-app-${release}-dev.js`
);
};
6 changes: 6 additions & 0 deletions plugins/gatsby-source-newrelic-sdk/src/mockGlobals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const noop = () => {};
const Blob = require('blob-polyfill').Blob;
const fetch = require("node-fetch");

global.Element = {
prototype: {
Expand Down Expand Up @@ -53,3 +55,7 @@ global.window = {
requestAnimationFrame: global.requestAnimationFrame,
cancelAnimationFrame: global.cancelAnimationFrame,
};

global.Blob = Blob;

global.fetch = fetch;
10 changes: 0 additions & 10 deletions src/data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,12 @@
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 Down Expand Up @@ -423,12 +419,6 @@
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
Loading

0 comments on commit 122efa0

Please sign in to comment.