@twreporter/universal-header
Advanced tools
Comparing version 2.0.0-beta-3 to 2.0.0-beta-5
"use strict"; | ||
var _react = _interopRequireDefault(require("react")); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _reactDom = _interopRequireDefault(require("react-dom")); | ||
var _standaloneHeader = _interopRequireDefault(require("./standalone-header")); | ||
var _store = _interopRequireDefault(require("./store")); | ||
var _header = _interopRequireDefault(require("./containers/header")); | ||
var _reactRedux = require("react-redux"); | ||
var _auth = _interopRequireDefault(require("./actions/auth")); | ||
var _auth2 = _interopRequireDefault(require("./reducers/auth")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//import StandaloneHeader from './standalone-header' | ||
//import Header from './containers/header' | ||
//import authAction from './actions/auth' | ||
//import authReducer from './reducers/auth' | ||
//export default { | ||
// Header, | ||
// StandaloneHeader, | ||
// actions: { | ||
// auth: authAction, | ||
// }, | ||
// reducers: { | ||
// auth: authReducer, | ||
// }, | ||
//} | ||
var _default = { | ||
Header: _header.default, | ||
StandaloneHeader: _standaloneHeader.default, | ||
actions: { | ||
auth: _auth.default | ||
}, | ||
reducers: { | ||
auth: _auth2.default | ||
} | ||
/* eslint no-console:0 */ | ||
//import React from 'react' | ||
//import ReactDOM from 'react-dom' | ||
//import StandaloneHeader from './standalone-header' | ||
//import reduxStore from './store' | ||
//import { Provider } from 'react-redux' | ||
//const store = reduxStore.configureStore() | ||
//ReactDOM.hydrate(( | ||
// <Provider store={store}> | ||
// <StandaloneHeader | ||
// theme="normal" | ||
// /> | ||
// </Provider> | ||
//), document.getElementById('app')) | ||
/* eslint no-console:0 */ | ||
var store = _store.default.configureStore(); | ||
_reactDom.default.hydrate(_react.default.createElement(_reactRedux.Provider, { | ||
store: store | ||
}, _react.default.createElement(_standaloneHeader.default, { | ||
theme: "normal" | ||
})), document.getElementById('app')); | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "@twreporter/universal-header", | ||
"version": "2.0.0-beta-3", | ||
"version": "2.0.0-beta-5", | ||
"description": "Universal header of TWReporter sites", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
161941
3210