@common-stack/client-react 0.1.21 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__tests__/fill-register-test.d.ts +1 -0
- package/lib/__tests__/fill-register-test.js +66 -0
- package/lib/__tests__/fill-register-test.js.map +1 -0
- package/lib/__tests__/helpers/sample-menu.d.ts +79 -0
- package/lib/__tests__/helpers/sample-menu.js +78 -0
- package/lib/__tests__/helpers/sample-menu.js.map +1 -0
- package/lib/__tests__/integrated-routes.test.d.ts +1 -0
- package/lib/__tests__/integrated-routes.test.js +83 -0
- package/lib/__tests__/integrated-routes.test.js.map +1 -0
- package/lib/__tests__/render-routes.test.d.ts +3 -0
- package/lib/__tests__/render-routes.test.js +89 -0
- package/lib/__tests__/render-routes.test.js.map +1 -0
- package/lib/connector/base-connector.d.ts +52 -0
- package/lib/connector/base-connector.js +148 -0
- package/lib/connector/base-connector.js.map +1 -0
- package/lib/connector/connector.d.ts +7 -43
- package/lib/connector/connector.js +15 -0
- package/lib/connector/connector.js.map +1 -0
- package/lib/connector/connector.native.d.ts +7 -0
- package/lib/connector/connector.native.js +14 -0
- package/lib/connector/connector.native.js.map +1 -0
- package/lib/connector/connector.test.d.ts +1 -0
- package/lib/connector/connector.test.js +32 -0
- package/lib/connector/connector.test.js.map +1 -0
- package/lib/connector/index.js +14 -0
- package/lib/connector/index.js.map +1 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +9 -2147
- package/lib/index.js.map +1 -1
- package/lib/index.native.d.ts +9 -0
- package/lib/index.native.js +24 -0
- package/lib/index.native.js.map +1 -0
- package/lib/interfaces/extended-feature.js +3 -0
- package/lib/interfaces/extended-feature.js.map +1 -0
- package/lib/interfaces/index.js +17 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/menu.js +12 -0
- package/lib/interfaces/menu.js.map +1 -0
- package/lib/interfaces/new-router.d.ts +18 -1
- package/lib/interfaces/new-router.js +3 -0
- package/lib/interfaces/new-router.js.map +1 -0
- package/lib/interfaces/router.js +3 -0
- package/lib/interfaces/router.js.map +1 -0
- package/lib/inversify/InversifyContext.js +37 -0
- package/lib/inversify/InversifyContext.js.map +1 -0
- package/lib/inversify/index.js +14 -0
- package/lib/inversify/index.js.map +1 -0
- package/lib/plugin-area/__tests__/higher-order-component-util.test.d.ts +1 -0
- package/lib/plugin-area/__tests__/higher-order-component-util.test.js +60 -0
- package/lib/plugin-area/__tests__/higher-order-component-util.test.js.map +1 -0
- package/lib/plugin-area/__tests__/plugin-api.test.d.ts +1 -0
- package/lib/plugin-area/__tests__/plugin-api.test.js +54 -0
- package/lib/plugin-area/__tests__/plugin-api.test.js.map +1 -0
- package/lib/plugin-area/{plugin-area.d.ts → base-plugin-area.d.ts} +1 -1
- package/lib/plugin-area/base-plugin-area.js +68 -0
- package/lib/plugin-area/base-plugin-area.js.map +1 -0
- package/lib/plugin-area/higher-order-component-util.js +23 -0
- package/lib/plugin-area/higher-order-component-util.js.map +1 -0
- package/lib/plugin-area/index.d.ts +2 -2
- package/lib/plugin-area/index.js +34 -0
- package/lib/plugin-area/index.js.map +1 -0
- package/lib/plugin-area/index.native.d.ts +2 -0
- package/lib/plugin-area/index.native.js +31 -0
- package/lib/plugin-area/index.native.js.map +1 -0
- package/lib/plugin-area/plugin-api.js +79 -0
- package/lib/plugin-area/plugin-api.js.map +1 -0
- package/lib/plugin-area/plugin-context.js +44 -0
- package/lib/plugin-area/plugin-context.js.map +1 -0
- package/lib/route/__tests__/admin-new-routes.test.d.ts +1 -0
- package/lib/route/__tests__/admin-new-routes.test.js +175 -0
- package/lib/route/__tests__/admin-new-routes.test.js.map +1 -0
- package/lib/route/__tests__/config-routes.test.d.ts +0 -0
- package/lib/route/__tests__/config-routes.test.js +326 -0
- package/lib/route/__tests__/config-routes.test.js.map +1 -0
- package/lib/route/__tests__/getFlatMenus.test.d.ts +1 -0
- package/lib/route/__tests__/getFlatMenus.test.js +96 -0
- package/lib/route/__tests__/getFlatMenus.test.js.map +1 -0
- package/lib/route/__tests__/render-routes-config.test.d.ts +2 -0
- package/lib/route/__tests__/render-routes-config.test.js +69 -0
- package/lib/route/__tests__/render-routes-config.test.js.map +1 -0
- package/lib/route/__tests__/route-type.test.d.ts +1 -0
- package/lib/route/__tests__/route-type.test.js +9 -0
- package/lib/route/__tests__/route-type.test.js.map +1 -0
- package/lib/route/get-routes.d.ts +3 -0
- package/lib/route/get-routes.js +86 -0
- package/lib/route/get-routes.js.map +1 -0
- package/lib/route/get-routes.test.d.ts +1 -0
- package/lib/route/get-routes.test.js +170 -0
- package/lib/route/get-routes.test.js.map +1 -0
- package/lib/route/index.js +14 -0
- package/lib/route/index.js.map +1 -0
- package/lib/route/index.native.d.ts +1 -0
- package/lib/route/index.native.js +14 -0
- package/lib/route/index.native.js.map +1 -0
- package/lib/route/old/__tests__/config-sidebar-menu.test.d.ts +1 -0
- package/lib/route/old/__tests__/config-sidebar-menu.test.js +198 -0
- package/lib/route/old/__tests__/config-sidebar-menu.test.js.map +1 -0
- package/lib/route/old/get-menus.d.ts +2 -0
- package/lib/route/old/get-menus.js +63 -0
- package/lib/route/old/get-menus.js.map +1 -0
- package/lib/route/old/get-routes-notused.d.ts +11 -0
- package/lib/route/old/get-routes-notused.js +61 -0
- package/lib/route/old/get-routes-notused.js.map +1 -0
- package/lib/route/old/render.d.ts +2 -0
- package/lib/route/old/render.js +30 -0
- package/lib/route/old/render.js.map +1 -0
- package/lib/route/render-routes-test.d.ts +1 -0
- package/lib/route/render-routes-test.js +40 -0
- package/lib/route/render-routes-test.js.map +1 -0
- package/lib/route/render-routes.d.ts +2 -14
- package/lib/route/render-routes.js +164 -0
- package/lib/route/render-routes.js.map +1 -0
- package/lib/route/render-routes.native.d.ts +4 -0
- package/lib/route/render-routes.native.js +158 -0
- package/lib/route/render-routes.native.js.map +1 -0
- package/lib/route-based-plugin-area/__tests__/higher-order-component-util.test.d.ts +1 -0
- package/lib/route-based-plugin-area/__tests__/higher-order-component-util.test.js +60 -0
- package/lib/route-based-plugin-area/__tests__/higher-order-component-util.test.js.map +1 -0
- package/lib/route-based-plugin-area/__tests__/plugin-api.test.d.ts +1 -0
- package/lib/route-based-plugin-area/__tests__/plugin-api.test.js +54 -0
- package/lib/route-based-plugin-area/__tests__/plugin-api.test.js.map +1 -0
- package/lib/route-based-plugin-area/higher-order-component-util.js +23 -0
- package/lib/route-based-plugin-area/higher-order-component-util.js.map +1 -0
- package/lib/route-based-plugin-area/index.js +15 -0
- package/lib/route-based-plugin-area/index.js.map +1 -0
- package/lib/route-based-plugin-area/plugin-api.js +79 -0
- package/lib/route-based-plugin-area/plugin-api.js.map +1 -0
- package/lib/route-based-plugin-area/plugin-context.js +44 -0
- package/lib/route-based-plugin-area/plugin-context.js.map +1 -0
- package/lib/route-based-plugin-area/route-based-plugin-area.js +68 -0
- package/lib/route-based-plugin-area/route-based-plugin-area.js.map +1 -0
- package/lib/{router/router.d.ts → router-factory/index.d.ts} +0 -0
- package/lib/router-factory/index.js +30 -0
- package/lib/router-factory/index.js.map +1 -0
- package/lib/router-factory/index.native.d.ts +2 -0
- package/lib/router-factory/index.native.js +30 -0
- package/lib/router-factory/index.native.js.map +1 -0
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +15 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/sort-keys.d.ts +1 -0
- package/lib/utils/sort-keys.js +73 -0
- package/lib/utils/sort-keys.js.map +1 -0
- package/lib/utils/sort-keys.test.d.ts +1 -0
- package/lib/utils/sort-keys.test.js +30 -0
- package/lib/utils/sort-keys.test.js.map +1 -0
- package/lib/utils/utils.d.ts +4 -0
- package/lib/utils/utils.js +13 -0
- package/lib/utils/utils.js.map +1 -0
- package/package.json +7 -6
- package/lib/plugin-area/browser-plugin-area.d.ts +0 -2
- package/lib/router/index.d.ts +0 -1
- package/lib/slot-fill/context.d.ts +0 -94
- package/lib/slot-fill/fill.d.ts +0 -10
- package/lib/slot-fill/index.d.ts +0 -4
- package/lib/slot-fill/slot.d.ts +0 -8
- package/lib/slot-fill/utils/index.d.ts +0 -1
- package/lib/slot-fill/utils/isEmptyElement.d.ts +0 -8
- package/lib/utils/route-utils.d.ts +0 -17
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/connector/connector.tsx","webpack:///./src/connector/index.ts","webpack:///./src/index.ts","webpack:///./src/interfaces/index.ts","webpack:///./src/interfaces/menu.tsx","webpack:///./src/inversify/InversifyContext.tsx","webpack:///./src/inversify/index.ts","webpack:///./src/plugin-area/browser-plugin-area.tsx","webpack:///./src/plugin-area/higher-order-component-util.ts","webpack:///./src/plugin-area/index.ts","webpack:///./src/plugin-area/plugin-api.ts","webpack:///./src/plugin-area/plugin-area.tsx","webpack:///./src/plugin-area/plugin-context.tsx","webpack:///./src/route-based-plugin-area/higher-order-component-util.ts","webpack:///./src/route-based-plugin-area/index.ts","webpack:///./src/route-based-plugin-area/plugin-api.ts","webpack:///./src/route-based-plugin-area/plugin-context.tsx","webpack:///./src/route-based-plugin-area/route-based-plugin-area.tsx","webpack:///./src/route/index.ts","webpack:///./src/route/render-routes.tsx","webpack:///./src/router/index.ts","webpack:///./src/router/router.tsx","webpack:///./src/slot-fill/context.tsx","webpack:///./src/slot-fill/fill.tsx","webpack:///./src/slot-fill/index.ts","webpack:///./src/slot-fill/slot.tsx","webpack:///./src/slot-fill/utils/index.ts","webpack:///./src/slot-fill/utils/isEmptyElement.tsx","webpack:///./src/utils/index.ts","webpack:///./src/utils/route-utils.tsx","webpack:///external \"@common-stack/client-core\"","webpack:///external \"@wordpress/hooks\"","webpack:///external \"lodash\"","webpack:///external \"react\"","webpack:///external \"react-dom\"","webpack:///external \"react-router\"","webpack:///external \"react-router-dom\"","webpack:///external \"sort-keys\""],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QA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AAO,KAAK,CAAC;AACf,CAAC;;;;;;;;;;;;AC3TD,sD;;;;;;;;;;;ACAA,6C;;;;;;;;;;;ACAA,mC;;;;;;;;;;;ACAA,kC;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,6C;;;;;;;;;;;ACAA,sC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","import * as React from 'react';\nimport { AbstractFeature, IModuleShape } from '@common-stack/client-core';\n// import { makeLogger } from '@cdm-logger/client';\nimport { IReactFeature, IReactModuleShape } from '../interfaces';\nimport { getMenus, getSortedRoutes, renderRoutes } from '../utils';\nimport { castArray, map, union, without, sortBy, filter, find } from 'lodash';\nimport { registerPlugin, getPlugins, getPlugin } from '../plugin-area';\n\nconst combine = (features, extractor) => without(union(...map(features,\n res => castArray(extractor(res)))), undefined);\n\nconst getFirst = (features, extractor) => extractor(find(features, (res) => extractor(res)) || {});\n\ntype FeatureParam = IModuleShape & IReactModuleShape;\n\nexport class Feature extends AbstractFeature implements IReactFeature {\n // private logger;\n public componentFillPlugins;\n\n public routerFactory: any;\n public route: any;\n public routeConfig: any;\n public menuConfig: any;\n public authWrapper: (\n ele: React.ReactElement,\n props: Record<string, any>) => void;\n\n constructor(\n feature?: FeatureParam,\n // tslint:disable:trailing-comma\n ...features: FeatureParam[]\n ) {\n super(feature, ...features);\n // this.logger = makeLogger(Feature.name);\n\n\n // Navigation\n this.routerFactory = combine(arguments, (arg: FeatureParam) => arg.routerFactory)\n .slice(-1)\n .pop();\n this.route = combine(arguments, (arg: FeatureParam) => arg.route);\n this.routeConfig = combine(arguments, (arg: FeatureParam) => arg.routeConfig);\n\n this.menuConfig = combine(arguments, (arg: FeatureParam) => arg.menuConfig);\n\n this.componentFillPlugins = this.registerComponentFillPlugins(combine(arguments,\n (arg: FeatureParam) => arg.componentFillPlugins));\n\n this.authWrapper = getFirst(arguments, (arg: FeatureParam) => arg.authWrapper)\n }\n\n /* tslint:disable:jsx-no-lambda */\n private renderRoutes = renderRoutes;\n\n /**\n * Get the routes\n */\n public getRoutes(searchPath?: any) {\n const configuredRoutes = this.getConfiguredRoutes(searchPath);\n const solidRoutes = this.route.map((component: React.ReactElement<any>, idx: number) =>\n React.cloneElement(component, { key: component.props.path }));\n return this.renderRoutes(configuredRoutes, solidRoutes);\n }\n\n /**\n * Get menus\n */\n public getMenus(sortByPriority = true) {\n const menus = this.getConfiguredMenus();\n return this.sortMenus(sortByPriority, menus);\n }\n\n /**\n * get configured routes.\n * Note: It overwrites the any duplicate key with latest loaded key.\n * TODO: Find a way to warn when there are duplicate keys.\n */\n public getConfiguredRoutes(searchPath = '/') {\n return getSortedRoutes(searchPath, Object.assign({}, ...this.routeConfig), this.authWrapper);\n }\n\n\n /**\n * get configured menus.\n * Note: It overwrites the any duplicate key with latest loaded key.\n * TODO: Find a way to warn when there are duplicate keys.\n */\n public getConfiguredMenus(searchPath = '/') {\n const routes = Object.assign({}, ...this.menuConfig);\n return getMenus(searchPath, { ...routes });\n }\n\n get navItems() {\n return this.navItem.map((component: React.ReactElement<any>, idx: number) =>\n React.cloneElement(component, {\n key: component.key ? component.key : idx + this.navItem.length,\n }),\n );\n }\n\n get navItemsRight() {\n return this.navItemsRight.map((component: React.ReactElement<any>, idx: number) =>\n React.cloneElement(component, {\n key: component.key ? component.key : idx + this.navItems.length,\n }),\n );\n }\n\n public getWrappedRoot(root: React.ReactNode, req?: any): React.ReactNode {\n let nestedRoot = root;\n for (const componentFactory of this.rootComponentFactory) {\n nestedRoot = React.cloneElement(componentFactory(req), {}, nestedRoot);\n }\n return nestedRoot;\n }\n\n public getDataRoot(root) {\n let nestedRoot = root;\n for (const component of this.dataRootComponent) {\n nestedRoot = React.createElement(component, {}, nestedRoot);\n }\n return nestedRoot;\n }\n\n public registerLanguages(monaco) {\n for (const func of this.languagesFuncs) {\n func(monaco);\n }\n }\n\n private registerComponentFillPlugins(plugins): void {\n plugins.forEach((i) => {\n const { name } = i;\n const isFound = !!getPlugin(name);\n if (!isFound) {\n registerPlugin(name, i);\n }\n });\n return plugins;\n }\n\n public getComponentFillPlugins() {\n return getPlugins();\n }\n\n\n private sortMenusByPriority = (menus) => {\n return sortBy(menus, (obj) => parseInt(obj.priority, 10));\n }\n\n private sortMenus = (sortByPriority, menus) => {\n if (sortByPriority) {\n const menuData = this.sortMenusByPriority(menus);\n return menuData.map(menu => {\n return {\n ...menu,\n children: menu.children && this.sortMenus(sortByPriority, menu.children),\n };\n });\n } else {\n return menus;\n }\n }\n\n}\n","export * from './connector';\n","export { ClientTypes } from '@common-stack/client-core';\nexport * from './connector';\nexport * from './router';\nexport * from './route';\nexport * from './utils';\nexport * from './interfaces';\nexport * from './plugin-area';\nexport * from './route-based-plugin-area';\nexport * from './slot-fill';\nexport * from './inversify';\n","export * from './router';\nexport * from './extended-feature';\nexport * from './menu';\nexport * from './new-router';\n","import * as React from 'react';\nimport { deprecate } from 'util';\n\n/**\n * @deprecated Will be removed, don't use it. It is replaced by \n */\nexport interface IMenuData {\n [key: string]: {\n name: any;\n position?: IMenuPosition;\n icon?: any;\n authority?: any;\n exact?: boolean;\n strict?: boolean;\n [key: string]: any;\n };\n}\n\n\n/**\n * @deprecated Will be removed, don't use it. Replaced by IMenuDataItem\n */\nexport interface IMenuItem {\n path?: string;\n name: any;\n icon?: any;\n position: IMenuPosition;\n authority?: any;\n loading?: any;\n exact?: boolean;\n strict?: boolean;\n children?: IMenuItem[];\n priority?: number\n}\n\nexport interface IMenuDataItem {\n /**\n * @name submenu\n */\n children?: IMenuDataItem[];\n /**\n * @name Hide child nodes in the menu\n */\n hideChildrenInMenu?: boolean;\n /**\n * @name hideSelf and children in menu\n */\n hideInMenu?: boolean;\n /**\n * @name Icon of the menu\n */\n icon?: React.ReactNode;\n /**\n * @name Internationalization key for custom menus\n */\n locale?: string | false;\n /**\n * @name The name of the menu\n */\n name?: string;\n /**\n * @name is used to calibrate the selected value, default is path\n */\n key?: string;\n /**\n * @name disable menu option\n */\n disabled?: boolean;\n /**\n * @name path\n */\n path?: string;\n /**\n * @name custom parent node\n * @description When this node is selected, the node of parentKeys is also selected\n */\n parentKeys?: string[];\n /**\n * @name hides itself and elevates child nodes to its level\n */\n flatMenu?: boolean;\n\n /**\n * @name position of the Menu\n */\n position?: IMenuPosition;\n\n\n /**\n * @name permissions to determine whether to render menu or not\n */\n authority?: string[];\n\n /**\n * @name priority of the menu to display in the order. Lower values shows first. \n */\n priority?: number;\n\n [key: string]: any;\n}\n\nexport enum IMenuPosition {\n LOGO = 'LOGO',\n UPPER = 'UPPER',\n MIDDLE = 'MIDDLE',\n LOWER = 'LOWER',\n BOTTOM = 'BOTTOM',\n}\n","import * as React from 'react';\nimport { interfaces } from 'inversify';\nimport { IFeature } from '@common-stack/client-core';\n\nexport const InversifyContext = React.createContext<{ container: interfaces.Container | null, modules: IFeature}>({ container: null, modules: null });\n\n\ntype Props = {\n container: interfaces.Container,\n modules: IFeature,\n};\n\nexport const InversifyProvider: React.FC<Props> = (props) => {\n return (\n <InversifyContext.Provider value={{container: props.container, modules: props.modules }}>\n {props.children}\n </InversifyContext.Provider>\n );\n};\n\nexport function useInjection<T>(identifier: interfaces.ServiceIdentifier<T>) {\n const { container } = React.useContext(InversifyContext);\n if (!container) {\n throw new Error('Container is null');\n }\n return container.get<T>(identifier);\n}\n\n","export * from './InversifyContext';\n","import * as React from 'react';\nimport { PluginArea } from './plugin-area';\n\nexport const BrowserPluginArea = () => {\n return <div style={{ display: \"none\" }}>\n <PluginArea />\n </div>\n}","\nimport { camelCase, upperFirst } from 'lodash';\n\n/**\n * Given a function mapping a component to an enhanced component and modifier\n * name, returns the enhanced component augmented with a generated displayName.\n * \n * @param mapComponentToEnhancedComponent Function mapping component to enhanced component.\n * @param modifierName Seed name from which to generated display name.\n * \n * @return Component class with generated display name assigned.\n */\nexport function createHigherOrderComponent(\n mapComponentToEnhancedComponent,\n modifierName\n) {\n return ( OriginalComponent ) => {\n const EnhancedComponent = mapComponentToEnhancedComponent(\n OriginalComponent\n );\n const {\n displayName = OriginalComponent.name || 'Component',\n } = OriginalComponent;\n EnhancedComponent.displayName = `${ upperFirst(\n camelCase(modifierName)\n )}(${displayName})`;\n\n return EnhancedComponent;\n }\n}\n\n","export * from './plugin-area';\nexport * from './plugin-api';\nexport * from './browser-plugin-area'\n","import { ComponentElement } from 'react';\n\nimport { isFunction } from 'lodash';\nimport { applyFilters, doAction } from '@wordpress/hooks';\n\n/**\n * Defined behavior of a plugin type.\n *\n * @typedef ComponentExtension\n *\n *\n */\nexport interface WorbenchExtension {\n name: string;\n icon: string | ComponentElement<any, any> | Function;\n render: React.SFC | any;\n}\n\n/**\n * Plugin definitions keyed by plugin name.\n */\nconst plugins: { [key: string]: WorbenchExtension } = {};\n\n/**\n * Registeres a plugin to the App.\n *\n * @param name A string identifying the plugin. Must be unique across all registered plugins.\n * @param settings The settings for this plugin.\n */\nexport function registerPlugin(name, settings) {\n if (typeof settings !== 'object') {\n console.error('No settings object provided!');\n return null;\n }\n if (typeof name !== 'string') {\n console.error('Plugin names must be strings.');\n return null;\n }\n if (!/^[a-z][a-z0-9-]*$/.test(name)) {\n console.error(\n 'Plugin names must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: \"my-pluin\".',\n );\n return null;\n }\n if (plugins[name]) {\n console.error(`Plugin \"${name}\" is alread registered.`);\n }\n settings = applyFilters('plugins.registerPlugin', settings, name);\n\n if (!isFunction(settings.render)) {\n console.error(\n 'The \"render\" property must be specified and must be a valid function.',\n );\n return null;\n }\n plugins[name] = {\n name,\n icon: 'admin-plugins',\n ...settings,\n };\n\n doAction('plugins.pluginRegistered', settings, name);\n\n return settings;\n}\n\n/**\n * Unregisteres a plugin by name.\n * @param name Plugin name.\n *\n * @return The previous plugin settings object, if it has been successfully unregistered; otherwise `undefined`.\n */\nexport function unregisterPlugin(name) {\n if (!plugins[name]) {\n console.error('Plugin \"' + name + '\" is not registered.');\n return;\n }\n const oldPlugin = plugins[name];\n delete plugins[name];\n\n doAction('plugin.pluginUnregistered', oldPlugin, name);\n\n return oldPlugin;\n}\n\n/**\n * Returns a registered plugin settings.\n *\n * @param name Plugin name.\n *\n * @returns Plugin setting.\n */\nexport function getPlugin(name) {\n return plugins[name];\n}\n\n/**\n * Return all registered plugins.\n *\n * @return Plugin settings.\n */\nexport function getPlugins() {\n return Object.values(plugins);\n}\n","import { map } from 'lodash';\nimport * as React from 'react';\nimport { addAction, removeAction } from '@wordpress/hooks';\nimport { PluginContextProvider } from './plugin-context';\nimport { getPlugins } from './plugin-api';\n\n/**\n * A component that renders all plugin fills in a hidden div.\n */\n\nexport class PluginArea extends React.Component<{}, { plugins: { [key: string]: any } }> {\n\n constructor(args) {\n super(args);\n this.setPlugins = this.setPlugins.bind(this);\n this.state = { plugins: [] };\n }\n\n public getCurrentPluginsState() {\n return {\n plugins: map(getPlugins(), ({ icon, name, render }) => {\n return {\n Plugin: render,\n context: {\n name,\n icon,\n },\n };\n }),\n };\n }\n\n public componentDidMount() {\n addAction(\n 'plugins.pluginRegistered',\n 'core/plugins/plugin-area/plugins-registered',\n this.setPlugins,\n );\n addAction(\n 'plugins.pluginUnregistered',\n 'core/plugins/plugin-area/plugins-unregistered',\n this.setPlugins,\n );\n this.setPlugins();\n }\n\n public componentWillUnMount() {\n removeAction(\n 'plugins.pluginRegistered',\n 'core/plugins/plugin-area/plugins-registered',\n );\n removeAction(\n 'plugins.pluginUnregistered',\n 'core/plugins/plugin-area/plugins-unregistered',\n );\n }\n\n public setPlugins() {\n this.setState(this.getCurrentPluginsState);\n }\n\n public render() {\n return (\n <>\n {map(this.state.plugins, ({ context, Plugin }) => (\n <PluginContextProvider\n key={context.name}\n value={context}\n >\n <Plugin />\n </PluginContextProvider>\n ))}\n </>\n );\n }\n}\n","\nimport * as React from 'react';\nimport { createHigherOrderComponent } from './higher-order-component-util';\n\nconst { createContext } = React;\nconst { Consumer, Provider } = createContext({\n name: null,\n icon: null,\n});\n\nexport { Provider as PluginContextProvider };\n\n\n/**\n * A Higher Order Component used to inject Plugin context to the\n * wrapped component.\n *\n * @param mapContextToProps Function called on every context change, expected to return object of\n * props to merge with the component's own props.\n *\n * @return Enhanced component with injected context as props.\n */\nexport const withPluginContext = (mapContextToProps) =>\n createHigherOrderComponent((OriginalComponent) => {\n return (props) => (\n <Consumer>\n {(context) => (\n <OriginalComponent\n {...props}\n {...mapContextToProps(context, props)}\n />\n )}\n </Consumer>\n );\n }, 'withPluginContext');\n","\nimport { camelCase, upperFirst } from 'lodash';\n\n/**\n * Given a function mapping a component to an enhanced component and modifier\n * name, returns the enhanced component augmented with a generated displayName.\n * \n * @param mapComponentToEnhancedComponent Function mapping component to enhanced component.\n * @param modifierName Seed name from which to generated display name.\n * \n * @return Component class with generated display name assigned.\n */\nexport function createHigherOrderComponent(\n mapComponentToEnhancedComponent,\n modifierName\n) {\n return ( OriginalComponent ) => {\n const EnhancedComponent = mapComponentToEnhancedComponent(\n OriginalComponent\n );\n const {\n displayName = OriginalComponent.name || 'Component',\n } = OriginalComponent;\n EnhancedComponent.displayName = `${ upperFirst(\n camelCase(modifierName)\n )}(${displayName})`;\n\n return EnhancedComponent;\n }\n}\n\n","export * from './route-based-plugin-area';\nexport * from './plugin-api';\n","import { ComponentElement } from 'react';\n\nimport { isFunction } from 'lodash';\nimport { applyFilters, doAction } from '@wordpress/hooks';\n\n/**\n * Defined behavior of a plugin type.\n *\n * @typedef ComponentExtension\n *\n *\n */\n\ninterface WorbenchExtension {\n name: string;\n icon: string | ComponentElement<any, any> | Function;\n render: React.SFC | any;\n}\n\n/**\n * Plugin definitions keyed by plugin name.\n */\nconst plugins: { [key: string]: WorbenchExtension } = {};\n\n/**\n * Registeres a plugin to the App.\n *\n * @param name A string identifying the plugin. Must be unique across all registered plugins.\n * @param settings The settings for this plugin.\n */\nexport function registerRouteBasePlugin(name, settings) {\n if (typeof settings !== 'object') {\n console.error('No settings object provided!');\n return null;\n }\n if (typeof name !== 'string') {\n console.error('Plugin names must be strings.');\n return null;\n }\n if (!/^[a-z][a-z0-9-]*$/.test(name)) {\n console.error(\n 'Plugin names must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: \"my-pluin\".',\n );\n return null;\n }\n if (plugins[name]) {\n console.error(`Plugin \"${name}\" is alread registered.`);\n }\n settings = applyFilters('plugins.registerPlugin', settings, name);\n\n if (!isFunction(settings.render)) {\n console.error(\n 'The \"render\" property must be specified and must be a valid function.',\n );\n return null;\n }\n plugins[name] = {\n name,\n icon: 'admin-plugins',\n ...settings,\n };\n\n doAction('plugins.pluginRegistered', settings, name);\n\n return settings;\n}\n\n/**\n * Unregisteres a plugin by name.\n * @param name Plugin name.\n *\n * @return The previous plugin settings object, if it has been successfully unregistered; otherwise `undefined`.\n */\nexport function unregisterRouteBasePlugin(name) {\n if (!plugins[name]) {\n console.error('Plugin \"' + name + '\" is not registered.');\n return;\n }\n const oldPlugin = plugins[name];\n delete plugins[name];\n\n doAction('plugin.pluginUnregistered', oldPlugin, name);\n\n return oldPlugin;\n}\n\n/**\n * Returns a registered plugin settings.\n *\n * @param name Plugin name.\n *\n * @returns Plugin setting.\n */\nexport function getRouteBasePlugin(name) {\n return plugins[name];\n}\n\n/**\n * Return all registered plugins.\n *\n * @return Plugin settings.\n */\nexport function getRouteBasePlugins() {\n return Object.values(plugins);\n}\n","\nimport * as React from 'react';\nimport { createHigherOrderComponent } from './higher-order-component-util';\n\nconst { createContext } = React;\nconst { Consumer, Provider } = createContext({\n name: null,\n icon: null,\n});\n\nexport { Provider as PluginContextProvider };\n\n\n/**\n * A Higher Order Component used to inject Plugin context to the\n * wrapped component.\n *\n * @param mapContextToProps Function called on every context change, expected to return object of\n * props to merge with the component's own props.\n *\n * @return Enhanced component with injected context as props.\n */\nexport const withPluginContext = (mapContextToProps) =>\n createHigherOrderComponent((OriginalComponent) => {\n return (props) => (\n <Consumer>\n {(context) => (\n <OriginalComponent\n {...props}\n {...mapContextToProps(context, props)}\n />\n )}\n </Consumer>\n );\n }, 'withPluginContext');\n","import { map } from 'lodash';\nimport * as React from 'react';\nimport { addAction, removeAction } from '@wordpress/hooks';\nimport { PluginContextProvider } from './plugin-context';\nimport { getRouteBasePlugins } from './plugin-api';\n\n/**\n * A component that renders all plugin fills in a hidden div.\n */\n\nexport class RouteBasedPluginArea extends React.Component<{}, { plugins: { [key: string]: any}}> {\n\n constructor(args) {\n super(args);\n this.setPlugins = this.setPlugins.bind(this);\n this.state = {plugins: []};\n }\n\n public getCurrentPluginsState() {\n return {\n plugins: map(getRouteBasePlugins(), ({ icon, name, render }) => {\n return {\n Plugin: render,\n context: {\n name,\n icon,\n },\n };\n }),\n };\n }\n\n public componentDidMount() {\n addAction(\n 'plugins.pluginRegistered',\n 'core/plugins/plugin-area/plugins-registered',\n this.setPlugins,\n );\n addAction(\n 'plugins.pluginUnregistered',\n 'core/plugins/plugin-area/plugins-unregistered',\n this.setPlugins,\n );\n this.setPlugins();\n }\n\n public componentWillUnMount() {\n removeAction(\n 'plugins.pluginRegistered',\n 'core/plugins/plugin-area/plugins-registered',\n );\n removeAction(\n 'plugins.pluginUnregistered',\n 'core/plugins/plugin-area/plugins-unregistered',\n );\n }\n\n public setPlugins() {\n this.setState(this.getCurrentPluginsState);\n }\n\n public render() {\n return (\n <div style={{ display: 'none' }}>\n {map(this.state.plugins, ({ context, Plugin }) => (\n <PluginContextProvider\n key={context.name}\n value={context}\n >\n <Plugin />\n </PluginContextProvider>\n ))}\n </div>\n );\n }\n}\n","export * from './render-routes';\n","import * as React from 'react';\nimport { useEffect, useState, createElement } from 'react';\n// import { Plugin, ApplyPluginsType } from '@umijs/runtime';\nimport { IRoute, IComponent } from '../interfaces/new-router';\nimport { Switch, Route, Redirect } from 'react-router';\n\ninterface IOpts {\n routes: IRoute[];\n plugin?: Plugin;\n extraProps?: object;\n pageInitialProps?: object;\n getInitialPropsCtx?: object;\n isServer?: boolean;\n ssrProps?: object;\n rootRoutes?: IRoute[];\n auth?: boolean,\n authWrapper?: () => void;\n}\n\ninterface IGetRouteElementOpts {\n route: IRoute;\n index: number;\n opts: IOpts;\n}\n\nfunction wrapInitialPropsFetch(route: IRoute, opts: IOpts): IComponent {\n const { component, ...restRouteParams } = route;\n let Component: any = route!.component;\n function ComponentWithInitialPropsFetch(props: any) {\n const [initialProps, setInitialProps] = useState(\n () => (window as any).g_initialProps,\n );\n\n useEffect(() => {\n /**\n * 1. 首次渲染时,此时 window.g_initialProps 变量存在,不需要再走一次 getInitialProps,这样一次 SSR 就走了 2 次 getInitialProps\n * 2. 但是路由切换时,window.getInitialProps 会被赋为 null,这时候就走 getInitialProps 逻辑\n * 3. 如果任何时候都走 2 次,配置 forceInitial: true,这个场景用于静态站点的首屏加载希望走最新数据\n * 4. 开启动态加载后,会在执行 getInitialProps 前预加载下\n */\n const handleGetInitialProps = async () => {\n // preload when enalbe dynamicImport\n if (Component.preload) {\n const preloadComponent = await Component.preload();\n // for test case, really use .default\n Component = preloadComponent.default || preloadComponent;\n }\n\n //@sri not suppported\n // const defaultCtx = {\n // isServer: false,\n // match: props?.match,\n // route,\n // ...(opts.getInitialPropsCtx || {}),\n // ...restRouteParams,\n // };\n //@sri not suppported\n // if (Component?.getInitialProps) {\n // const ctx = await opts.plugin.applyPlugins({\n // key: 'ssr.modifyGetInitialPropsCtx',\n // type: ApplyPluginsType.modify,\n // initialValue: defaultCtx,\n // async: true,\n // });\n\n // const initialProps = await Component!.getInitialProps!(\n // ctx || defaultCtx,\n // );\n // setInitialProps(initialProps);\n // }\n };\n // null 时,一定会触发 getInitialProps 执行\n if (!(window as any).g_initialProps) {\n handleGetInitialProps();\n }\n }, [window.location.pathname, window.location.search]);\n return <Component {...props} {...initialProps} />;\n }\n // flag for having wrappered\n ComponentWithInitialPropsFetch.wrapInitialPropsLoaded = true;\n ComponentWithInitialPropsFetch.displayName = 'ComponentWithInitialPropsFetch';\n return ComponentWithInitialPropsFetch;\n}\n\nfunction render({\n route,\n opts,\n props,\n}: {\n route: IRoute;\n opts: IOpts;\n props: object;\n}) {\n const routes = renderRoutes({\n ...opts,\n routes: route.routes || [],\n rootRoutes: opts.rootRoutes,\n });\n let { component: Component, wrappers } = route;\n if (Component) {\n const defaultPageInitialProps = opts.isServer\n ? {}\n : (window as any).g_initialProps;\n const newProps = {\n ...props,\n ...opts.extraProps,\n ...(opts.pageInitialProps || defaultPageInitialProps),\n route,\n routes: opts.rootRoutes,\n };\n // @ts-ignore\n let ret = <Component {...newProps}>{routes}</Component>;\n\n // route.wrappers\n if (wrappers) {\n let len = wrappers.length - 1;\n while (len >= 0) {\n ret = createElement(wrappers[len], newProps, ret);\n len -= 1;\n }\n }\n\n return ret;\n } else {\n return routes;\n }\n}\n\nfunction getRouteElement({ route, index, opts }: IGetRouteElementOpts) {\n const routeProps = {\n key: route.key || index,\n exact: route.exact,\n strict: route.strict,\n sensitive: route.sensitive,\n path: route.path,\n };\n if (route.redirect) {\n return <Redirect {...routeProps} from={route.path} to={route.redirect} />;\n } else {\n // avoid mount and unmount with url hash change\n // @sri not supproted yet\n // if (\n // // only when SSR config enable\n // opts.ssrProps &&\n // !opts.isServer &&\n // // make sure loaded once\n // !(route.component as any)?.wrapInitialPropsLoaded &&\n // (route.component?.getInitialProps || route.component?.preload)\n // ) {\n // // client Render for enable ssr, but not sure SSR success\n // route.component = wrapInitialPropsFetch(route, opts);\n // }\n return (\n <Route\n {...routeProps}\n render={(props: object) => {\n return render({ route, opts, props });\n }}\n />\n );\n }\n}\n\nfunction renderRoutes(opts: IOpts) {\n return opts.routes ? (\n <Switch>\n {opts.routes.map((route, index) => {\n\n const renderedR = getRouteElement({\n route,\n index,\n opts: {\n ...opts,\n rootRoutes: opts.rootRoutes || opts.routes,\n },\n });\n return renderedR;\n }\n\n )}\n </Switch>\n ) : null;\n}\n\nexport { renderRoutes as renderRoutes2 }\n","export * from './router';\n","import * as React from 'react';\nimport { Switch } from 'react-router-dom';\nimport { Feature } from '../connector';\nimport {IReactFeature} from '../interfaces';\n\nconst routerFactory = (routes) => <Switch>{routes}</Switch>;\n\nexport const FeatureWithRouterFactory = new Feature({\n routerFactory,\n} as IReactFeature);\n","import * as React from 'react';\nimport { sortBy, forEach, without } from 'lodash';\n\nexport interface IFillProps {\n name: Name;\n [key: string]: any;\n}\nexport interface IFill extends React.Component<IFillProps> {\n occurrence: number;\n children: React.ReactNode;\n}\nexport type Name = string | Symbol;\n\nexport interface ISlotProps {\n /**\n * The name of the component. Use a symbol if you want to be 100% sure the Slot\n * will only be filled by a component you create\n */\n name: Name;\n /**\n * Props to be applied to the child Element of every fill which has the same name.\n *\n * If the value is a function, it must have the following signature:\n * (target: Fill, fills: Fill[]) => void;\n *\n * This allows you to access props on the fill which invoked the function\n * by using target.props.something()\n */\n fillProps?: { [key: string]: any };\n /**\n * A an optional function which gets all of the current fills for this slot\n * Allows sorting, or filtering before rendering. An example use-case could\n * be to only show a limited amount of fills.\n *\n * By default Slot injects an unstyled `<div>` element. If you want greater\n * control over presentation use this function.\n *\n * @example\n * <Slot name=\"My.Slot\">\n * {(items) => <Component>{items}</Component>}\n * </Slot>\n */\n children?: (fills: IFill[]) => JSX.Element;\n bubblesVirtually?: boolean;\n /**\n * `Slot` with `bubblesVirtually` set to true also accept an optional `className` to\n * add to the slot container.\n *\n * @type {string}\n * @memberof ISlotProps\n */\n className?: string;\n}\nexport interface ISlot extends React.Component<ISlotProps> {\n node: Element;\n}\n\nexport interface IContext extends IProviderState {}\nconst SlotFillContext = React.createContext<IContext | null>({ // need to add default value otherwise it will fail\n registerSlot: () => {},\n unregisterSlot: () => {},\n registerFill: () => {},\n unregisterFill: () => {},\n getSlot: () => ({}) as any,\n getFills: () => ([]),\n subscribe: () => {},\n});\nconst { Provider, Consumer } = SlotFillContext;\nexport interface IProviderState {\n registerFill: (a: Name, b: any) => void;\n unregisterFill: (a: Name, b: any) => void;\n unregisterSlot: (a: Name, b?: any) => void;\n registerSlot: (a: Name, b?: any) => void;\n getSlot: (a: Name) => ISlot;\n getFills: (a: Name, b?: any) => IFill[] | [];\n subscribe: (listener: any) => void;\n}\n\nclass SlotFillProvider extends React.Component<{}, {}> {\n private slots: { [key: string]: ISlot };\n private fills: { [key: string]: IFill[] };\n private listeners;\n private contextValue: IProviderState;\n constructor(props) {\n super(props);\n\n this.registerSlot = this.registerSlot.bind(this);\n this.registerFill = this.registerFill.bind(this);\n this.unregisterSlot = this.unregisterSlot.bind(this);\n this.unregisterFill = this.unregisterFill.bind(this);\n this.getSlot = this.getSlot.bind(this);\n this.getFills = this.getFills.bind(this);\n this.subscribe = this.subscribe.bind(this);\n\n this.slots = {};\n this.fills = {};\n this.listeners = [];\n this.contextValue = {\n registerSlot: this.registerSlot,\n unregisterSlot: this.unregisterSlot,\n registerFill: this.registerFill,\n unregisterFill: this.unregisterFill,\n getSlot: this.getSlot,\n getFills: this.getFills,\n subscribe: this.subscribe,\n };\n }\n\n public registerSlot(name, slot) {\n const previousSlot = this.slots[name];\n this.slots[name] = slot;\n this.triggerListeners();\n\n // Sometimes the fills are registered after the initial render of slot\n // But before the registerSlot call, we need to rerender the slot\n this.forceUpdateSlot(name);\n\n // If a new instance of a slot is being mounted while another with the\n // same name exists, force its update _after_ the new slot has been\n // assigned into the instance, suich that its own rendering of children\n // will be empty (the new Slot will subsume all fills for this name).\n if (previousSlot) {\n previousSlot.forceUpdate();\n }\n }\n\n public registerFill(name, instance) {\n this.fills[name] = [...(this.fills[name] || []), instance];\n this.forceUpdateSlot(name);\n }\n\n public unregisterSlot(name, instance) {\n // If a previous instance of a Slot by this name unmounts, do nothing,\n // as the slot and its fills should only be removed for the current\n // known instance.\n if (this.slots[name] !== instance) {\n return;\n }\n delete this.slots[name];\n this.triggerListeners();\n }\n\n public unregisterFill(name, instance: IFill) {\n this.fills[name] = without(this.fills[name], instance);\n this.resetFillOccurrence(name);\n this.forceUpdateSlot(name);\n }\n\n public getSlot(name) {\n return this.slots[name];\n }\n\n public getFills(name, slotInstance) {\n // Commented following as we need the Slot to render at multiple places\n // Fills should only be returned for the current instance of the slot\n // in which they occupy.\n // if (this.slots[name] !== slotInstance) {\n // return [];\n // }\n return sortBy(this.fills[name], 'occurrence');\n }\n\n private resetFillOccurrence(name) {\n forEach(this.fills[name], instance => {\n instance.occurrence = undefined;\n });\n }\n\n private forceUpdateSlot(name) {\n const slot = this.getSlot(name);\n\n if (slot) {\n slot.forceUpdate();\n }\n }\n\n private triggerListeners() {\n this.listeners.forEach((listener) => listener());\n }\n\n public subscribe(listener) {\n this.listeners.push(listener);\n\n return () => {\n this.listeners = without(this.listeners, listener);\n };\n }\n\n public render() {\n return <Provider value={this.contextValue}>{this.props.children}</Provider>;\n }\n}\n\n/**\n * React hook returning the active slot given a name.\n *\n * @param {string} name Slot name.\n * @return {Object} Slot object.\n */\nexport const useSlot = ( name ) => {\n const { getSlot, subscribe } = React.useContext(SlotFillContext);\n const [ slot, setSlot ] = React.useState(getSlot(name));\n\n React.useEffect(() => {\n setSlot(getSlot(name));\n const unsubscribe = subscribe(() => {\n setSlot(getSlot(name));\n });\n return unsubscribe;\n }, [name]);\n return slot;\n};\n\n\nexport default SlotFillProvider;\nexport { Consumer };\n","import * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { Consumer, ISlot, IFillProps, Name, IContext, useSlot } from './context';\nimport { isFunction } from 'lodash';\nexport namespace IFillComponent {\n export interface Props extends IFillProps, Partial<IContext> {}\n}\n\nlet occurrences = 0;\n\nconst FillComponent: React.SFC<IFillComponent.Props> = ({\n name,\n children,\n registerFill,\n unregisterFill,\n}) => {\n const slot = useSlot(name);\n\n const ref = React.useRef({\n name,\n children,\n occurrence: 0,\n });\n\n if (!ref.current.occurrence) {\n ref.current.occurrence = ++occurrences;\n }\n\n React.useLayoutEffect(() => {\n registerFill(name, ref.current);\n return () => unregisterFill(name, ref.current);\n }, []);\n\n React.useLayoutEffect(() => {\n ref.current.children = children;\n if (slot && !slot.props.bubblesVirtually) {\n slot.forceUpdate();\n }\n }, [children]);\n\n React.useLayoutEffect(() => {\n if (name === ref.current.name) {\n // ignore initial effect\n return;\n }\n unregisterFill(ref.current.name, ref.current);\n ref.current.name = name;\n registerFill(name, ref.current);\n }, [name]);\n\n if (!slot || !slot.node || !slot.props.bubblesVirtually) {\n return null;\n }\n\n // If a function is passed as a child, provide it with the fillProps.\n if (isFunction(children)) {\n children = children(slot.props.fillProps);\n }\n\n return createPortal(children, slot.node);\n};\n\n\ntype IFillComponentProps<T = IFillProps> = T;\n\n// instead of inline with component assignment\ntype IFillComponent<T = IFillProps> = React.FC<IFillComponentProps<T>>;\n\n\nconst Fill: IFillComponent = props => {\n return (\n <Consumer>\n {({ registerFill, unregisterFill }) => (\n <FillComponent\n {...props}\n registerFill={registerFill}\n unregisterFill={unregisterFill}\n />\n )}\n </Consumer>\n );\n};\n\nexport { Fill };\n","import { Slot } from './slot';\nimport { Fill } from './fill';\nimport SlotFillProvider from './context';\n\nexport { Slot, Fill, SlotFillProvider };\n\n","import { isFunction, isString, map, negate } from 'lodash';\nimport * as React from 'react';\nimport { Consumer, ISlotProps, IContext } from './context';\nimport { isEmptyElement } from './utils';\n\nexport namespace ISlotComponent {\n export interface Props extends Partial<IContext>, ISlotProps { }\n}\n\nclass SlotComponent extends React.Component<ISlotComponent.Props, {}> {\n private node: Element;\n constructor(props: ISlotComponent.Props) {\n super(props);\n this.bindNode = this.bindNode.bind(this);\n }\n\n public componentDidMount() {\n const { registerSlot } = this.props;\n registerSlot(this.props.name, this);\n }\n\n public componentWillUnmount() {\n const { unregisterSlot } = this.props;\n unregisterSlot(this.props.name, this);\n }\n\n public componentDidUpdate(prevProps) {\n const { name, unregisterSlot, registerSlot } = this.props;\n\n // Commented following as we need the Slot to render at multiple places\n // if (prevProps.name !== name) {\n // unregisterSlot(prevProps.name);\n // registerSlot(name, this);\n // }\n }\n\n public bindNode(node: Element) {\n this.node = node;\n }\n\n public render() {\n const {\n children,\n name,\n bubblesVirtually = false,\n fillProps = {},\n getFills,\n className,\n } = this.props;\n\n if (bubblesVirtually) {\n return <div ref={this.bindNode} className={className} />;\n }\n\n const fills = map(getFills(name, this), fill => {\n const fillKey = fill.occurrence;\n const fillChildren: React.ReactElement = isFunction(fill.children)\n ? fill.children(fillProps)\n : fill.children;\n\n return React.Children.map(fillChildren, (child, childIndex) => {\n if (!child || isString(child)) {\n return child;\n }\n\n const childKey = `${fillKey}---${child.key || childIndex}`;\n return React.cloneElement(child, { key: childKey });\n });\n }).filter(\n // In some cases fills are rendered only when some conditions apply.\n // This ensures that we only use non-empty fills when rendering, i.e.,\n // it allows us to render wrappers only when the fills are actually present.\n negate(isEmptyElement),\n );\n\n return <>{isFunction(children) ? children(fills as any) : fills}</>;\n }\n}\n\nconst Slot: React.SFC<ISlotProps> = props => {\n return (\n <Consumer>\n {({ registerSlot, unregisterSlot, getFills }) => (\n <SlotComponent\n {...props}\n getFills={getFills}\n registerSlot={registerSlot}\n unregisterSlot={unregisterSlot}\n />\n )}\n </Consumer>\n );\n};\n\nexport { Slot };\n","export * from './isEmptyElement';","import * as React from 'react';\n\nimport { isArray, isNumber, isString } from 'lodash';\n\n/**\n * Checks if the provided element to check.\n *\n * @param element React Component to check.\n * @returns True when an element is considered empty.\n */\n\nexport const isEmptyElement = (element: React.ComponentElement<any, any> | any) => {\n if (isNumber(element)) {\n return false;\n }\n\n if (isString(element) || isArray(element)) {\n return !element.length;\n }\n\n return !element;\n};","export * from './route-utils';\n","import * as React from 'react';\nimport { IRouteData, IMappedData, IMenuData, IMenuItem, IMenuPosition } from '../interfaces';\nimport { RouteProps, Switch } from 'react-router';\nimport { Route } from 'react-router-dom';\nconst defaultSortKeys = require('sort-keys');\n\n\n/* eslint no-useless-escape:0 */\nconst reg = /(((^https?:(?:\\/\\/)?)(?:[-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\\+\\$,\\w]+@)[A-Za-z0-9.-]+)((?:\\/[\\+~%\\/.\\w-_]*)?\\??(?:[-\\+=&;%@.\\w_]*)#?(?:[\\w]*))?)$/g;\n\nexport function isUrl(path) {\n return reg.test(path);\n}\n/**\n * Generates Routes based on the key value, where key has the path of the route and value\n * has rest of the values for building a `<Router ../>` component.\n *\n * @param path: RegExp\n * @param routerData\n * @deprecated\n */\nexport function getRoutes2(path: RegExp, routerData: IRouteData) {\n const routes = Object.keys(routerData).filter(routePath => {\n return routePath.match(path);\n });\n const mappedRoutes: Array<IMappedData> = routes.map(paths => {\n return {\n route: paths,\n ...routerData[paths],\n };\n });\n const root: RouteProps & { routes?: any } = {\n };\n mappedRoutes.forEach(eachRoute => {\n const children = eachRoute.route.split('/');\n children.shift();\n\n // if the route is `/` then add this correction.\n if (eachRoute.route === '/') {\n children.shift();\n children.push('/');\n }\n const depth = children.length;\n let lastNode = root;\n for (let i = 0; i <= depth; i++) {\n const lastIndex = (lastNode.routes || []).findIndex(item => {\n if (eachRoute.route.startsWith(item.path)) {\n return eachRoute.route[item.path.length] === '/';\n }\n });\n if (lastIndex === -1) {\n break;\n }\n lastNode = lastNode.routes[lastIndex];\n // do not overwrite the route's exact value\n lastNode.exact = routerData[lastNode.path as string].hasOwnProperty('exact') ? routerData[lastNode.path as string].exact : false;\n }\n if (!lastNode.routes) {\n lastNode.routes = [];\n }\n const modfiedRoute = formatSlash(eachRoute.route);\n lastNode.routes.push({\n ...eachRoute,\n // route: modfiedRoute,\n path: modfiedRoute,\n exact: routerData[eachRoute.route].hasOwnProperty('exact') ? routerData[eachRoute.route].exact : true,\n component: eachRoute.component,\n });\n });\n\n return root.routes;\n}\n\nconst startWithMoreThanOneSlash = /^(\\/)\\1+/; // for exame `//abc, ///abc, ...`\nconst formatSlash = (route) => {\n // replaced `//` with `/` in the routes.\n return {\n path: route.replace(startWithMoreThanOneSlash, '/'),\n _pathPrefix: (route.match(/^\\/(\\/{1,})/) || ['', ''])[1],\n }\n}\n\nexport function getRoutes(path: string, routeData: IRouteData, authWrapper: (ele, props) => void = null) {\n if (!path.startsWith('/')) {\n throw new Error('Invalid path!');\n }\n let searchPath = path;\n if (path[path.length - 1] !== '/') {\n searchPath = path + '/';\n }\n const routes = Object.keys(routeData).filter(menuPath => {\n return menuPath.indexOf(searchPath) === 0 || menuPath === path;\n });\n\n const mappedMenuPaths: Array<IMappedData> = routes.map(mPath => {\n return {\n route: mPath,\n position: IMenuPosition.MIDDLE,\n ...routeData[mPath],\n };\n });\n const root: RouteProps & { routes?: any } = {\n // just to satisfy types added following\n // TOOD need to correct types so we don't have to enter them.\n name: 'root',\n position: IMenuPosition.LOGO,\n } as any;\n mappedMenuPaths.forEach(routeItem => {\n const children = routeItem.route.split('/');\n children.shift();\n\n // if the route is `/` then add this correction.\n if (routeItem.path === '/') {\n children.shift();\n children.push('/');\n }\n const depth = children.length;\n let lastNode = root;\n for (let i = 0; i < depth; i++) {\n const lastIndex = (lastNode.routes || []).findIndex(item => {\n const routePath = `${item._pathPrefix}${item.path}`;\n\n if (routeItem.route.startsWith(routePath)) {\n return routeItem.route[routePath.length] === '/';\n }\n });\n if (lastIndex === -1) {\n break;\n }\n lastNode = lastNode.routes[lastIndex];\n const lastNodePath = `${(lastNode as any)._pathPrefix}${lastNode.path}`;\n lastNode.exact = routeData[lastNodePath].hasOwnProperty('exact') ? routeData[lastNodePath].exact : false;\n }\n if (!lastNode.routes) {\n lastNode.routes = [];\n }\n const { route: ignore, auth, ...rest } = routeItem;\n const pathParams = formatSlash(routeItem.route);\n\n lastNode.routes.push({\n ...rest,\n // path: formatSlash(routeItem.route),\n // path: routeItem.route,\n ...pathParams,\n exact: routeData[routeItem.route].hasOwnProperty('exact') ? routeData[routeItem.route].exact : true,\n /**\n * Here we are checking whether auth property is being \n * set by this route and if authWrapper is declared\n * which is a high order component that can take a component\n * and its props as argument then perform some \n * computation and return a component\n */\n component: auth && authWrapper\n ? (props) => authWrapper(routeItem.component, props)\n : routeItem.component\n });\n });\n\n return root.routes;\n}\n\nexport function getMenus(path: string, menuData: IMenuData) {\n if (!path.startsWith('/')) {\n throw new Error('Invalid path!');\n }\n let searchPath = path;\n if (path[path.length - 1] !== '/') {\n searchPath = path + '/';\n }\n const routes = Object.keys(menuData).filter(menuPath => {\n return menuPath.indexOf(searchPath) === 0 || menuPath === path;\n });\n\n const mappedMenuPaths: Array<IMenuItem & { route?: string }> = routes.map(mPath => {\n return {\n route: mPath,\n position: IMenuPosition.MIDDLE,\n ...menuData[mPath],\n };\n });\n const root: IMenuItem & { route?: string } = {\n // just to satisfy types added following\n // TOOD need to correct types so we don't have to enter them.\n name: 'root',\n position: IMenuPosition.LOGO,\n };\n mappedMenuPaths.forEach(menutItem => {\n const children = menutItem.route.split('/');\n children.shift();\n const depth = children.length;\n let lastNode = root;\n for (let i = 0; i < depth; i++) {\n const lastIndex = (lastNode.children || []).findIndex(item => {\n if (menutItem.route.startsWith(item.path)) {\n return menutItem.route[item.path.length] === '/';\n }\n });\n if (lastIndex === -1) {\n break;\n }\n lastNode = lastNode.children[lastIndex];\n // do not overwrite the route's exact value\n lastNode.exact = menuData[lastNode.path].hasOwnProperty('exact') ? menuData[lastNode.path].exact : false;\n }\n if (!lastNode.children) {\n lastNode.children = [];\n }\n const { route: ignore, ...rest } = menutItem;\n lastNode.children.push({\n path: menutItem.route,\n ...rest,\n exact: menuData[menutItem.route].hasOwnProperty('exact') ? menuData[menutItem.route].exact : true,\n });\n });\n\n return root.children;\n}\n\n\nexport const renderRoutes = (routes, solidRoutes, extraProps = {}, switchProps = {}) =>\n routes ? (\n <>\n {[\n ...solidRoutes, ...routes.map((route, i) => (\n <Route\n key={route.key || i}\n path={route.path}\n exact={route.exact}\n strict={route.strict}\n render={props =>\n route.render ? (\n route.render({ ...props, ...extraProps, route: route })\n ) : (\n <route.component {...props} {...extraProps} route={route} />\n )\n }\n />\n )),\n ]}\n </>\n ) : null;\n\nexport function sortKeys(routeData) {\n return defaultSortKeys(routeData, { compare})\n}\n\nexport const getSortedRoutes = (path: string, routeData: IRouteData, authWrapper: (\n ele: React.ReactElement,\n props: Record<string, any>\n) => void = null) => {\n const sortedRoutes = sortKeys(routeData);\n return getRoutes(path, sortedRoutes, authWrapper);\n};\n\nconst compare = ((a, b) => {\n const aStr = String(a).toLowerCase();\n const bStr = String(b).toLowerCase();\n // Alphanumeric elements always come before non-alphanumeric elements\n const aIsAlphanumeric = notStartWithColon(aStr);\n const bIsAlphanumeric = notStartWithColon(bStr);\n if (aIsAlphanumeric + bIsAlphanumeric !== -2) {\n if (aIsAlphanumeric * bIsAlphanumeric > 0) {\n if (aIsAlphanumeric === bIsAlphanumeric) {\n return aStr.localeCompare(bStr);\n }\n return aIsAlphanumeric - bIsAlphanumeric;\n }\n if (aIsAlphanumeric > 0) {\n return -1;\n } else if (bIsAlphanumeric > 0) {\n return 1;\n }\n }\n\n // Numerical elements always come before alphabetic elements\n const aNum = Number(a);\n const bNum = Number(b);\n // If both are numerical, sort in the usual fashion (smaller goes first)\n if (aNum && bNum) {\n return aNum - bNum;\n // If a is numerical but b isn't, put a first.\n } else if (aNum) {\n return -1;\n // If b is numerical but a isn't, put b first.\n } else if (bNum) {\n return 1;\n }\n\n // In all other cases, default to usual sort order.\n return aStr.localeCompare(bStr);\n});\n\n\nfunction notStartWithColon(str) {\n const match = (str.match(/^[\\/, *, :]{1,}/) || [-1])[0];\n if (match === -1) {\n return -1;\n }\n var i = match.length;\n let count = 0;\n while (i--) {\n const char = match[i];\n if (char === '/') {\n if(str === '/') { // if it is root only we put at the last\n count = count + 6;\n } else {\n count = count + 3;\n }\n } else if (char === ':') {\n count = count + 1;\n } else if (char === '*') {\n count = count + 2;\n }\n }\n return count;\n}","module.exports = require(\"@common-stack/client-core\");","module.exports = require(\"@wordpress/hooks\");","module.exports = require(\"lodash\");","module.exports = require(\"react\");","module.exports = require(\"react-dom\");","module.exports = require(\"react-router\");","module.exports = require(\"react-router-dom\");","module.exports = require(\"sort-keys\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,mDAAiC;AACjC,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,gDAA8B;AAC9B,4DAA0C;AAC1C,8CAA4B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ClientTypes } from '@common-stack/client-core';
|
|
2
|
+
export * from './connector/connector.native';
|
|
3
|
+
export * from './router-factory/index.native';
|
|
4
|
+
export * from './route/index.native';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './interfaces';
|
|
7
|
+
export * from './plugin-area/index.native';
|
|
8
|
+
export * from './route-based-plugin-area';
|
|
9
|
+
export * from './inversify';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ClientTypes = void 0;
|
|
14
|
+
var client_core_1 = require("@common-stack/client-core");
|
|
15
|
+
Object.defineProperty(exports, "ClientTypes", { enumerable: true, get: function () { return client_core_1.ClientTypes; } });
|
|
16
|
+
__exportStar(require("./connector/connector.native"), exports);
|
|
17
|
+
__exportStar(require("./router-factory/index.native"), exports);
|
|
18
|
+
__exportStar(require("./route/index.native"), exports);
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
20
|
+
__exportStar(require("./interfaces"), exports);
|
|
21
|
+
__exportStar(require("./plugin-area/index.native"), exports);
|
|
22
|
+
__exportStar(require("./route-based-plugin-area"), exports);
|
|
23
|
+
__exportStar(require("./inversify"), exports);
|
|
24
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,+DAA6C;AAC7C,gEAA8C;AAC9C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,6DAA2C;AAC3C,4DAA0C;AAC1C,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extended-feature.js","sourceRoot":"","sources":["../../src/interfaces/extended-feature.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./router"), exports);
|
|
14
|
+
__exportStar(require("./extended-feature"), exports);
|
|
15
|
+
__exportStar(require("./menu"), exports);
|
|
16
|
+
__exportStar(require("./new-router"), exports);
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMenuPosition = void 0;
|
|
4
|
+
var IMenuPosition;
|
|
5
|
+
(function (IMenuPosition) {
|
|
6
|
+
IMenuPosition["LOGO"] = "LOGO";
|
|
7
|
+
IMenuPosition["UPPER"] = "UPPER";
|
|
8
|
+
IMenuPosition["MIDDLE"] = "MIDDLE";
|
|
9
|
+
IMenuPosition["LOWER"] = "LOWER";
|
|
10
|
+
IMenuPosition["BOTTOM"] = "BOTTOM";
|
|
11
|
+
})(IMenuPosition = exports.IMenuPosition || (exports.IMenuPosition = {}));
|
|
12
|
+
//# sourceMappingURL=menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/interfaces/menu.tsx"],"names":[],"mappings":";;;AAqGA,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,kCAAiB,CAAA;AACrB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { match } from 'react-router
|
|
2
|
+
import { match } from 'react-router';
|
|
3
3
|
export interface IComponent extends FunctionComponent {
|
|
4
4
|
getInitialProps?: Function;
|
|
5
5
|
preload?: () => Promise<any>;
|
|
6
6
|
}
|
|
7
|
+
export interface IRouterRederOptions {
|
|
8
|
+
routes: IRoute[];
|
|
9
|
+
plugin?: Plugin;
|
|
10
|
+
extraProps?: object;
|
|
11
|
+
pageInitialProps?: object;
|
|
12
|
+
getInitialPropsCtx?: object;
|
|
13
|
+
isServer?: boolean;
|
|
14
|
+
ssrProps?: object;
|
|
15
|
+
rootRoutes?: IRoute[];
|
|
16
|
+
auth?: boolean;
|
|
17
|
+
authWrapper?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface IGetRouteElementOpts {
|
|
20
|
+
route: IRoute;
|
|
21
|
+
index: number;
|
|
22
|
+
opts: IRouterRederOptions;
|
|
23
|
+
}
|
|
7
24
|
export interface IRouteMap<T = unknown> {
|
|
8
25
|
[key: string]: IRoute & T;
|
|
9
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-router.js","sourceRoot":"","sources":["../../src/interfaces/new-router.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/interfaces/router.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.useInjection = exports.InversifyProvider = exports.InversifyContext = void 0;
|
|
23
|
+
const React = __importStar(require("react"));
|
|
24
|
+
exports.InversifyContext = React.createContext({ container: null, modules: null });
|
|
25
|
+
const InversifyProvider = (props) => {
|
|
26
|
+
return (React.createElement(exports.InversifyContext.Provider, { value: { container: props.container, modules: props.modules } }, props.children));
|
|
27
|
+
};
|
|
28
|
+
exports.InversifyProvider = InversifyProvider;
|
|
29
|
+
function useInjection(identifier) {
|
|
30
|
+
const { container } = React.useContext(exports.InversifyContext);
|
|
31
|
+
if (!container) {
|
|
32
|
+
throw new Error('Container is null');
|
|
33
|
+
}
|
|
34
|
+
return container.get(identifier);
|
|
35
|
+
}
|
|
36
|
+
exports.useInjection = useInjection;
|
|
37
|
+
//# sourceMappingURL=InversifyContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InversifyContext.js","sourceRoot":"","sources":["../../src/inversify/InversifyContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAIlB,QAAA,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAA+D,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAQ/I,MAAM,iBAAiB,GAAoB,CAAC,KAAK,EAAE,EAAE;IACxD,OAAO,CACH,oBAAC,wBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAClF,KAAK,CAAC,QAAQ,CACS,CAC/B,CAAC;AACN,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B;AAEF,SAAgB,YAAY,CAAI,UAA2C;IACvE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;IACzD,IAAI,CAAC,SAAS,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACxC;IACD,OAAO,SAAS,CAAC,GAAG,CAAI,UAAU,CAAC,CAAC;AACxC,CAAC;AAND,oCAMC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./InversifyContext"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/inversify/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const react_1 = __importStar(require("react"));
|
|
23
|
+
const higher_order_component_util_1 = require("../higher-order-component-util");
|
|
24
|
+
describe('createHigherOrderComponent', () => {
|
|
25
|
+
it('should use default name for anonymous function', () => {
|
|
26
|
+
const TestComponent = higher_order_component_util_1.createHigherOrderComponent((OriginalComponent) => OriginalComponent, 'withTest')(() => react_1.default.createElement("div", null));
|
|
27
|
+
expect(TestComponent.displayName).toBe('WithTest(Component');
|
|
28
|
+
});
|
|
29
|
+
it('should use camel case starting with upper for wrapper prefix ', () => {
|
|
30
|
+
const TestComponent = higher_order_component_util_1.createHigherOrderComponent((OriginalComponent) => OriginalComponent, 'with-one-two_threeFOUR')(() => react_1.default.createElement("div", null));
|
|
31
|
+
expect(TestComponent.displayName).toBe('WithOneTwoThreeFour(Component)');
|
|
32
|
+
});
|
|
33
|
+
it('should use function name', () => {
|
|
34
|
+
function SomeComponent() {
|
|
35
|
+
return react_1.default.createElement("div", null);
|
|
36
|
+
}
|
|
37
|
+
const TestComponent = higher_order_component_util_1.createHigherOrderComponent((OriginalComponent) => OriginalComponent, 'withTest')(SomeComponent);
|
|
38
|
+
expect(TestComponent.displayName).toBe('WithTest(SomeComponent)');
|
|
39
|
+
});
|
|
40
|
+
it('should use component class name', () => {
|
|
41
|
+
class SomeAnotherComponent extends react_1.Component {
|
|
42
|
+
render() {
|
|
43
|
+
return react_1.default.createElement("div", null);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const TestComponent = higher_order_component_util_1.createHigherOrderComponent((OriginalComponent) => OriginalComponent, 'withTest')(SomeAnotherComponent);
|
|
47
|
+
expect(TestComponent.displayName).toBe('WithTest(SomeAnotherComponent)');
|
|
48
|
+
});
|
|
49
|
+
it('should use displayName property', () => {
|
|
50
|
+
class SomeYetAnotherComponent extends react_1.Component {
|
|
51
|
+
render() {
|
|
52
|
+
return react_1.default.createElement("div", null);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
SomeYetAnotherComponent.displayName = 'CustomDisplayName';
|
|
56
|
+
const TestComponent = higher_order_component_util_1.createHigherOrderComponent((OriginalComponent) => OriginalComponent, 'withTest')(SomeYetAnotherComponent);
|
|
57
|
+
expect(TestComponent.displayName).toBe('WithTest(CustomDisplayName)');
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=higher-order-component-util.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"higher-order-component-util.test.js","sourceRoot":"","sources":["../../../src/plugin-area/__tests__/higher-order-component-util.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AAGzC,gFAA4E;AAE5E,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACtD,MAAM,aAAa,GAAG,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iCAAiC,EAAE,GAAG,EAAE;QAC3C,MAAM,uBAAwB,SAAQ,iBAAS;YAC9C,MAAM;gBACL,OAAO,0CAAO,CAAC;YAChB,CAAC;SACD;QACA,uBAA+B,CAAC,WAAW,GAAG,mBAAmB,CAAC;QACnE,MAAM,aAAa,GAAG,wDAA0B,CAC/C,CAAE,iBAAiB,EAAG,EAAE,CAAC,iBAAiB,EAC1C,UAAU,CACV,CAAE,uBAAuB,CAAE,CAAC;QAE7B,MAAM,CAAE,aAAa,CAAC,WAAW,CAAE,CAAC,IAAI,CACvC,6BAA6B,CAC7B,CAAC;IACH,CAAC,CAAE,CAAC;AACL,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const plugin_api_1 = require("../plugin-api");
|
|
4
|
+
describe('registerPlugin', () => {
|
|
5
|
+
afterEach(() => {
|
|
6
|
+
plugin_api_1.getPlugins().forEach((plugin) => {
|
|
7
|
+
plugin_api_1.unregisterPlugin(plugin.name);
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
it('successfully registers a plugin', () => {
|
|
11
|
+
const name = 'plugin';
|
|
12
|
+
const icon = 'smiley';
|
|
13
|
+
const Component = () => 'plugin content';
|
|
14
|
+
plugin_api_1.registerPlugin(name, {
|
|
15
|
+
render: Component,
|
|
16
|
+
icon,
|
|
17
|
+
});
|
|
18
|
+
expect(plugin_api_1.getPlugin(name)).toEqual({
|
|
19
|
+
name,
|
|
20
|
+
render: Component,
|
|
21
|
+
icon,
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
it('fails to register a plugin without a settings object', () => {
|
|
25
|
+
plugin_api_1.registerPlugin();
|
|
26
|
+
expect(console).toThrowError('No settings object provided!');
|
|
27
|
+
});
|
|
28
|
+
it('fails to register a plugin with special character in the name', () => {
|
|
29
|
+
plugin_api_1.registerPlugin('plugin/with/special/characters', {
|
|
30
|
+
render: () => { },
|
|
31
|
+
});
|
|
32
|
+
expect(console).toThrowError('Plugin names must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".');
|
|
33
|
+
});
|
|
34
|
+
it('fails to register a plugin with a non-string name', () => {
|
|
35
|
+
plugin_api_1.registerPlugin({}, {
|
|
36
|
+
render: () => { },
|
|
37
|
+
});
|
|
38
|
+
expect(console).toThrowError('Plugin names must be strings.');
|
|
39
|
+
});
|
|
40
|
+
it('fails to register a plugin without a render function', () => {
|
|
41
|
+
plugin_api_1.registerPlugin('another-plugin', {});
|
|
42
|
+
expect(console).toThrowError('The "render" property must be specified and must be a valid function.');
|
|
43
|
+
});
|
|
44
|
+
it('fails to register a plugin that was already been registered', () => {
|
|
45
|
+
plugin_api_1.registerPlugin('plugin', {
|
|
46
|
+
render: () => 'plugin content',
|
|
47
|
+
});
|
|
48
|
+
plugin_api_1.registerPlugin('plugin', {
|
|
49
|
+
render: () => 'plugin content',
|
|
50
|
+
});
|
|
51
|
+
expect(console).toThrowError('Plugin "plugin" is already registered.');
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=plugin-api.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-api.test.js","sourceRoot":"","sources":["../../../src/plugin-area/__tests__/plugin-api.test.ts"],"names":[],"mappings":";;AAAA,8CAAuF;AAGvF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,SAAS,CAAC,GAAG,EAAE;QACX,uBAAU,EAAE,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5B,6BAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACvC,MAAM,IAAI,GAAG,QAAQ,CAAC;QACtB,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EAAE,GAAG,EAAE,CAAC,gBAAgB;SAC9B,CAAE,CAAC;QACJ,2BAAc,CAAE,QAAQ,EAAE;YACzB,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB;SAC9B,CAAE,CAAC;QACJ,MAAM,CAAE,OAAO,CAAE,CAAC,YAAY,CAC7B,wCAAwC,CACxC,CAAC;IACH,CAAC,CAAE,CAAC;AACL,CAAC,CAAC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* A component that renders all plugin fills in a hidden div.
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class BasePluginArea extends React.Component<{}, {
|
|
6
6
|
plugins: {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|