Socket
Socket
Sign inDemoInstall

@8base/app-builder-engine

Package Overview
Dependencies
237
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.42 to 0.0.43

5

lib/Application.d.ts

@@ -9,6 +9,3 @@ import React from 'react';

}>;
customAuthPages?: {
login: React.ComponentType<any>;
signup: React.ComponentType<any>;
};
customAuthPages?: React.ComponentType<any>;
}

@@ -15,0 +12,0 @@ export declare const Application: React.FC<ApplicationProps>;

8

lib/Application.js

@@ -67,9 +67,3 @@ "use strict";

redirectPath !== '/' && react_1.default.createElement(react_router_dom_1.Redirect, { exact: true, from: "/", to: redirectPath }),
customAuthPages
? [
react_1.default.createElement(react_router_dom_1.Route, { exact: true, key: "login", path: "/auth/login", component: customAuthPages === null || customAuthPages === void 0 ? void 0 : customAuthPages.login }),
react_1.default.createElement(react_router_dom_1.Route, { exact: true, key: "signup", path: "/auth/signup", component: customAuthPages === null || customAuthPages === void 0 ? void 0 : customAuthPages.signup }),
]
: [],
react_1.default.createElement(react_router_dom_1.Route, { render: () => react_1.default.createElement(auth_1.AuthPages, { custom: !!customAuthPages }), path: "/auth" }),
react_1.default.createElement(react_router_dom_1.Route, { component: customAuthPages ? customAuthPages : auth_1.AuthPages, path: "/auth" }),
react_1.default.createElement(RouteWithLayout, { layout: layouts_1.MainLayout, component: inbox_1.InboxPage, path: "/inbox" }),

@@ -76,0 +70,0 @@ react_1.default.createElement(RouteWithLayout, { layout: layouts_1.MainLayout, component: reports_1.ReportsPage, path: "/reports", componentProps: { routes: routes } }),

@@ -15,6 +15,3 @@ import React from 'react';

createTheme?: (paletteType: PaletteType, application: Application) => Theme;
customAuthPages?: {
login: React.ComponentType<any>;
signup: React.ComponentType<any>;
};
customAuthPages?: React.ComponentType<any>;
onRequestSuccess?: (request: {

@@ -21,0 +18,0 @@ [key: string]: any;

import * as React from 'react';
export declare const PER_PAGE_OPTIONS: number[];
interface PropsInitial {
initialCount: number;
initialPerPage: number;
initialCount?: number;
initialPerPage?: number;
}
export declare const usePagination: ({ initialCount, initialPerPage }?: PropsInitial) => {
export declare const usePagination: ({ initialCount, initialPerPage, }?: PropsInitial) => {
count: number;

@@ -9,0 +9,0 @@ setCount: (count: number) => void;

@@ -30,3 +30,3 @@ "use strict";

};
exports.usePagination = ({ initialCount, initialPerPage } = defaultValues) => {
exports.usePagination = ({ initialCount = defaultValues.initialCount, initialPerPage = defaultValues.initialPerPage, } = defaultValues) => {
const [{ perPage, page }, { setQueryParams }] = useQueryParams_1.useQueryParams({

@@ -33,0 +33,0 @@ initialValues: { perPage: initialPerPage.toString(), page: '0' },

import React from 'react';
export declare const AuthPage: React.FC<{
custom: boolean;
}>;
export declare const AuthPage: React.FC;
//# sourceMappingURL=AuthPage.d.ts.map

@@ -10,14 +10,7 @@ "use strict";

const core_1 = require("@material-ui/core");
const react_router_dom_1 = require("react-router-dom");
exports.AuthPage = ({ custom }) => {
exports.AuthPage = () => {
const auth = _8base_react_sdk_1.useAuth();
const history = react_router_dom_1.useHistory();
react_1.default.useEffect(() => {
if (custom) {
history.push('/auth/login');
}
else {
auth.authClient.authorize();
}
}, [auth.authClient, custom]);
auth.authClient.authorize();
}, [auth.authClient]);
return (react_1.default.createElement(core_1.Box, { display: "flex", height: "100%", justifyContent: "center", alignItems: "center" },

@@ -24,0 +17,0 @@ react_1.default.createElement(core_1.CircularProgress, null)));

import React from 'react';
export declare const AuthPages: React.FC<{
custom: boolean;
}>;
export declare const AuthPages: React.FC;
//# sourceMappingURL=index.d.ts.map

@@ -14,5 +14,5 @@ "use strict";

const ConfirmationPage_1 = require("./ConfirmationPage");
exports.AuthPages = ({ custom }) => {
exports.AuthPages = () => {
return (react_1.default.createElement(react_router_dom_1.Switch, null,
react_1.default.createElement(react_router_dom_1.Route, { exact: true, path: "/auth", render: () => react_1.default.createElement(AuthPage_1.AuthPage, { custom: custom }) }),
react_1.default.createElement(react_router_dom_1.Route, { exact: true, path: "/auth", component: AuthPage_1.AuthPage }),
react_1.default.createElement(react_router_dom_1.Route, { exact: true, path: "/auth/callback", component: AuthCallbackPage_1.AuthCallbackPage }),

@@ -19,0 +19,0 @@ react_1.default.createElement(react_router_dom_1.Route, { exact: true, path: "/auth/invite", component: AuthInvitePage_1.AuthInvitePage }),

{
"name": "@8base/app-builder-engine",
"version": "0.0.42",
"version": "0.0.43",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc