Skip to content

Commit

Permalink
[Security] Remediate axios vulnerabilities
Browse files Browse the repository at this point in the history
Remove vestiges of CodeSandbox integration as follow-up to opensearch-project#164
Add resolution for `wait-on`

Signed-off-by: Josh Romero <rmerqg@amazon.com>
  • Loading branch information
joshuarrrr committed Nov 14, 2023
1 parent f34d3d6 commit 9482414
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 852 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
"babel-plugin-inline-react-svg/**/ansi-regex": "^5.0.1",
"babel-plugin-inline-react-svg/svgo/js-yaml": "^3.13.1",
"babel-template/**/ansi-regex": "^5.0.1",
"codesandbox/**/ansi-regex": "^5.0.1",
"codesandbox/**/got": "^11.8.5",
"codesandbox/axios": "^0.22.0",
"codesandbox/pacote": "^12.0.0",
"cssnano/**/css-select/nth-check": "^2.0.1",
"cssnano/**/postcss": "^7.0.39",
"enzyme/cheerio/cheerio-select-tmp/css-select/css-what": "^6.1.0",
Expand All @@ -80,6 +76,7 @@
"sass-lint/front-matter": "^4.0.2",
"sass-lint/merge": "^2.1.1",
"start-server-and-test/**/minimist": "^1.2.6",
"start-server-and-test/wait-on": "^7.1.0",
"webpack-dev-server/**/ansi-regex": "^5.0.1",
"webpack-dev-server/chokidar/glob-parent": "^6.0.1",
"webpack-dev-server/selfsigned": "^2.0.1",
Expand Down Expand Up @@ -176,7 +173,6 @@
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
"circular-dependency-plugin": "^5.2.0",
"codesandbox": "^2.2.3",
"core-js": "^3.29.1",
"cross-env": "^7.0.3",
"css-loader": "^4.2.2",
Expand Down
12 changes: 0 additions & 12 deletions src-docs/src/components/codesandbox/index.js

This file was deleted.

201 changes: 0 additions & 201 deletions src-docs/src/components/codesandbox/link.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@ import {
import { OuiErrorBoundary } from '../../../../../src/components/error_boundary';
import { OuiHorizontalRule } from '../../../../../src/components/horizontal_rule';
import { GuideSectionSnippets } from './guide_section_snippets';
import { GuideSectionExampleCode } from './guide_section_code';
import { GuideSectionPropsTable } from './guide_section_props_table';
import { OuiFlexGroup, OuiFlexItem } from '../../../../../src/components/flex';
import { ExclusiveUnion } from '../../../../../src/components/common';

export type GuideSectionExampleTabCodeType = GuideSectionExampleCode;
export type GuideSectionExampleTabSnippetType = GuideSectionSnippets;
export type GuideSectionExampleTabPropsTableType = {
props: any;
};

export type GuideSectionExampleTabType = OuiTabProps &
ExclusiveUnion<
GuideSectionExampleTabCodeType,
ExclusiveUnion<
GuideSectionExampleTabSnippetType,
GuideSectionExampleTabPropsTableType
>
GuideSectionExampleTabSnippetType,
GuideSectionExampleTabPropsTableType
> & {
displayName: string;
name: string;
Expand Down Expand Up @@ -70,7 +65,7 @@ export const GuideSectionExampleTabs: FunctionComponent<GuideSectionExampleTabsP
return (
<OuiTabs size="s" display="condensed">
{tabs.map((tab, index) => {
const { displayName, code, name, props, snippets, ...rest } = tab;
const { displayName, name, props, snippets, ...rest } = tab;

return (
<OuiTab
Expand Down Expand Up @@ -101,14 +96,6 @@ export const GuideSectionExampleTabs: FunctionComponent<GuideSectionExampleTabsP
<GuideSectionSnippets snippets={selectedTab.snippets} />
</OuiErrorBoundary>
);
// SOURCE CODE BLOCK
} else if (selectedTab && selectedTab.code) {
return (
<OuiErrorBoundary>
<OuiHorizontalRule margin="none" />
<GuideSectionExampleCode code={selectedTab.code} />
</OuiErrorBoundary>
);
// PROPS TABLE
} else if (selectedTab && selectedTab.props) {
const components = Object.keys(selectedTab.props);
Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/form_controls/display_toggles.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ DisplayToggles.propTypes = {
canAppend: PropTypes.bool,
canInvalid: PropTypes.bool,
extras: PropTypes.arrayOf(PropTypes.node),
// Manually building the spacer array to avoid having to import Spacer into codesandbox
spacerSize: PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl']),
};

Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/header/header_elastic_pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
// Uncomment to use in consuming apps or CodeSandbox
// Uncomment to use in consuming apps
// import theme from '@opensearch-project/oui/dist/oui_theme_light.json';

import {
Expand Down
Loading

0 comments on commit 9482414

Please sign in to comment.