Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into create-redirect
Browse files Browse the repository at this point in the history
* master:
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
  • Loading branch information
Katy DeCorah committed Jun 25, 2019
2 parents 310fd44 + e9d8934 commit 6c37c34
Show file tree
Hide file tree
Showing 10 changed files with 203 additions and 99 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## Master

* Add data attribute to prevent Swiftype from indexing sidebar content on `PageLayout`. [#146](https://github.com/mapbox/dr-ui/pull/146)

## 0.16.2

* Fix bug where `Search` filter was not displaying with the first query.

## 0.16.1

* Fix build that was improperly pushed to npm in 0.16.0.

## 0.16.0

* Update search-ui, add loader, increase debounce length, and reset search when modal is closed for `Search` component. [#145](https://github.com/mapbox/dr-ui/pull/145)

## 0.15.2

* Fix build to remove `optionalDependencies` and `jest` from package.json. [#143](https://github.com/mapbox/dr-ui/pull/143)

## 0.15.1

* Fix toggle in `Search` to be a button and track toggle event.
Expand Down
105 changes: 72 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapbox/dr-ui",
"version": "0.15.1",
"version": "0.16.2",
"description": "Mapbox frontend tools for documentation websites.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -65,9 +65,9 @@
"unist-util-visit": "^1.4.0"
},
"dependencies": {
"@elastic/react-search-ui": "^0.8.0",
"@elastic/react-search-ui-views": "^0.8.0",
"@elastic/search-ui-site-search-connector": "^0.8.0",
"@elastic/react-search-ui": "^0.10.0",
"@elastic/react-search-ui-views": "^0.10.0",
"@elastic/search-ui-site-search-connector": "^0.10.0",
"@mapbox/mr-ui": "^0.7.0",
"classnames": "^2.2.6",
"debounce": "^1.2.0",
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ function createPackageJson() {
delete publishable.private;
delete publishable.scripts;
delete publishable.devDependencies;
delete publishable.optionalDependencies;
delete publishable['lint-staged'];
delete publishable.jest;
fs.writeFileSync(
path.resolve(outputDir, 'package.json'),
JSON.stringify(publishable, null, 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`page-layout Basic renders as expected 1`] = `
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -53,6 +54,7 @@ exports[`page-layout Code highlighting test renders as expected 1`] = `
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -121,6 +123,7 @@ exports[`page-layout Common use case renders as expected 1`] = `
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -325,6 +328,7 @@ exports[`page-layout Custom sidebar column size renders as expected 1`] = `
>
<div
className="col col--4-mm col--3-ml col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -372,6 +376,7 @@ exports[`page-layout Custom sidebar column size, too large - default to original
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -419,6 +424,7 @@ exports[`page-layout Custom sidebar column size, too small - default to original
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down Expand Up @@ -466,6 +472,7 @@ exports[`page-layout Many first level items renders as expected 1`] = `
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down
1 change: 1 addition & 0 deletions src/components/page-layout/page-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class PageLayout extends React.Component {
className={`col col--4-mm ${
sideBarColSize ? `col--${sideBarColSize}-ml` : ''
} col--12 ${props.sidebarTheme}`}
data-swiftype-index="false"
>
<Sticky
enabled={state.stickyEnabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ exports[`search Search with \`narrow\` option set renders as expected 2`] = `
>
<div
className="col col--4-mm col--12 bg-gray-faint"
data-swiftype-index="false"
>
<div
className="sticky-outer-wrapper"
Expand Down
Loading

0 comments on commit 6c37c34

Please sign in to comment.