Skip to content

Commit 23b5244

Browse files
authored
chore: Prepare repo for v1.0.0 release of the SDK (#9)
1 parent f5edf83 commit 23b5244

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
Programmatically **embed** and **control** MongoDB Charts in your application.
66

77
[![npm](https://img.shields.io/npm/v/@mongodb-js/charts-embed-dom.svg)](https://www.npmjs.com/package/@mongodb-js/charts-embed-dom/)
8-
[![npm](https://img.shields.io/npm/l/@mongodb-js/charts-embed-dom.svg)](https://www.npmjs.com/package/@mongodb-js/charts-embed-dom/v/beta)
8+
[![npm](https://img.shields.io/npm/l/@mongodb-js/charts-embed-dom.svg)](https://www.npmjs.com/package/@mongodb-js/charts-embed-dom/)
99

1010
<img align="center" src="https://user-images.githubusercontent.com/19422770/79284750-efe86800-7efe-11ea-9ed0-9813e1a0b6d6.gif" />
1111

12-
[Explore this example yourself!](https://codesandbox.io/s/charts-embedding-sdk-8i898)
12+
[Explore this example yourself!](https://codesandbox.io/s/github/mongodb-js/charts-embed-sdk/tree/master/examples/unauthenticated)
1313

1414
</div>
1515

@@ -26,7 +26,7 @@ yarn add @mongodb-js/charts-embed-dom
2626

2727
## Documentation 📖
2828

29-
- [Installation](https://docs.mongodb.com/charts/master/embedding-charts-sdk/)
29+
- [Installation & MongoDB Docs](https://docs.mongodb.com/charts/master/embedding-charts-sdk/)
3030
- [Examples](https://github.com/mongodb-js/charts-embed-sdk/blob/master/examples)
3131
- Guides 🤠
3232
- [Getting started with custom JWT authentication](https://github.com/mongodb-js/charts-embed-sdk/tree/master/examples/authenticated-custom-jwt)

examples/authenticated-custom-jwt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "parcel build index.html"
99
},
1010
"dependencies": {
11-
"@mongodb-js/charts-embed-dom": "^1.0.0-beta.2",
11+
"@mongodb-js/charts-embed-dom": "^1.0.0",
1212
"cors": "^2.8.5",
1313
"express": "^4.16.3",
1414
"jsonwebtoken": "^8.3.0",

examples/authenticated-google/index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
1111
/>
1212
<script src="https://apis.google.com/js/platform.js" async defer></script>
13-
<script src="https://unpkg.com/@mongodb-js/charts-embed-dom@beta"></script>
13+
<script src="https://unpkg.com/@mongodb-js/charts-embed-dom"></script>
1414

1515
<!-- Optional: ~REPLACE~ content with your Google Client ID -->
1616
<meta
@@ -20,24 +20,23 @@
2020
</head>
2121

2222
<body>
23-
<script>
23+
<script>
2424
function onSignIn(googleUser) {
2525
const id_token = googleUser.getAuthResponse().id_token;
2626
const ChartsEmbedSDK = window.ChartsEmbedSDK;
2727

2828
console.log("ID TOKEN == " + id_token);
2929
const sdk = new ChartsEmbedSDK({
3030
baseUrl: "https://charts-dev.mongodb.com/charts-test2-pebbp", // Optional: ~REPLACE~ with your Charts URL
31-
getUserToken: () => id_token
31+
getUserToken: () => id_token,
3232
});
33-
33+
3434
const chart = sdk.createChart({
3535
chartId: "0d984f0c-5f1b-4711-9e5d-f78aa1ea8fcb", // Optional: ~REPLACE~ with your Chart ID
3636
});
37-
38-
document.body.classList.toggle("logged-in", true)
39-
chart.render(document.getElementById("chart"));
4037

38+
document.body.classList.toggle("logged-in", true);
39+
chart.render(document.getElementById("chart"));
4140
}
4241
</script>
4342
<script type="text/javascript" src="src/index.js"></script>

examples/authenticated-realm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "parcel build index.html"
99
},
1010
"dependencies": {
11-
"@mongodb-js/charts-embed-dom": "0.0.0-dev.12",
11+
"@mongodb-js/charts-embed-dom": "^1.0.0",
1212
"jsonwebtoken": "^8.3.0",
1313
"mongodb-stitch-browser-sdk": "^4.8.0",
1414
"parcel": "^1.12.4",

examples/unauthenticated/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "parcel build index.html"
99
},
1010
"dependencies": {
11-
"@mongodb-js/charts-embed-dom": "1.0.0-beta.2",
11+
"@mongodb-js/charts-embed-dom": "^1.0.0",
1212
"regenerator-runtime": "^0.13.3"
1313
},
1414
"devDependencies": {

examples/unauthenticated/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
📄 _[See the MongoDB Charts Embedding Docs for more details](https://docs.mongodb.com/charts/saas/embedding-charts/)_
66

7-
🎮 _[Play with a live demo of this sample here](https://codesandbox.io/s/github/mongodb-js/charts-embed-sdk/tree/master/examples/authenticated-custom-jwt)_
7+
🎮 _[Play with a live demo of this sample here](https://codesandbox.io/s/github/mongodb-js/charts-embed-sdk/tree/master/examples/unauthenticated)_
88

99
MongoDB Charts allows you to create visualizations of your MongoDB data using a simple web interface. You can view the visualizations within the Charts UI, or you can use the Embedding feature to render the charts in an external web application.
1010

0 commit comments

Comments
 (0)