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

Commit

Permalink
chore(deps): update component-relay (#62)
Browse files Browse the repository at this point in the history
* chore(deps): update component-relay

* feat: refactor code

* chore: build

* chore: increment version

Co-authored-by: Johnny Almonte <[email protected]>
  • Loading branch information
johnny243 and johnny243 authored Jan 18, 2022
1 parent 9232171 commit 5297753
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 35 deletions.
16 changes: 0 additions & 16 deletions app/App.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,7 @@ export default class Home extends React.Component {
}

connectToBridge() {
const initialPermissions = [
{
name: 'stream-context-item'
}
];

this.componentRelay = new ComponentRelay({
initialPermissions,
targetWindow: window,
onReady: () => {
const { platform } = this.componentRelay;
Expand Down
17 changes: 16 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Home from './components/Home';

export default class App extends React.Component {
constructor(props) {
super(props);
}

render() {
return (
<div>
<Home />
</div>
);
}
}


ReactDOM.render(
<App />,
Expand Down
8 changes: 4 additions & 4 deletions dist/dist.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dist.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sn-simple-markdown-editor",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist/dist.js",
"scripts": {
"lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
Expand All @@ -23,7 +23,7 @@
"@babel/preset-stage-0": "^7.8.3",
"@babel/register": "^7.10.5",
"@babel/runtime": "^7.11.2",
"@standardnotes/component-relay": "2.1.0",
"@standardnotes/component-relay": "2.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.0",
"babel-loader": "^8.1.0",
"copy-webpack-plugin": "6.0.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,10 @@
mkdirp "^1.0.4"
rimraf "^3.0.2"

"@standardnotes/component-relay@2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@standardnotes/component-relay/-/component-relay-2.1.0.tgz#9cbc165562c8503dd1e392d0dbec9f477061108e"
integrity sha512-2CoBKPdu/WE2R9Pu13Egjxn075Iy0aA7LVLR6/HqslpAPXVQ6FAK8nHeT3HSZwrccz86EiVEf5dwqFOduKGrbQ==
"@standardnotes/component-relay@2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@standardnotes/component-relay/-/component-relay-2.2.0.tgz#3b51e1047997e624594c8bce00c38e73d49cfb8f"
integrity sha512-cJMSnT/fREYK1zq/U6aSfxWPiLPhzI1sLNDUMhmZnJ2npBKFeqE7qQj7NGdp4Q5f72yk4Oqevg5O2BxWDKpYHA==

"@standardnotes/eslint-config-extensions@^1.0.0":
version "1.0.0"
Expand Down

0 comments on commit 5297753

Please sign in to comment.