@celljs/react 3.5.14 → 3.6.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/browser/annotation/app.d.ts.map +1 -1
- package/lib/browser/annotation/app.js.map +1 -1
- package/lib/browser/annotation/context.d.ts.map +1 -1
- package/lib/browser/annotation/context.js.map +1 -1
- package/lib/browser/annotation/default-layout.d.ts.map +1 -1
- package/lib/browser/annotation/default-layout.js.map +1 -1
- package/lib/browser/annotation/icon.d.ts.map +1 -1
- package/lib/browser/annotation/icon.js.map +1 -1
- package/lib/browser/annotation/index.js +22 -9
- package/lib/browser/annotation/index.js.map +1 -1
- package/lib/browser/annotation/react-component.d.ts.map +1 -1
- package/lib/browser/annotation/react-component.js.map +1 -1
- package/lib/browser/annotation/route.d.ts.map +1 -1
- package/lib/browser/annotation/route.js +1 -2
- package/lib/browser/annotation/route.js.map +1 -1
- package/lib/browser/annotation/router.d.ts.map +1 -1
- package/lib/browser/annotation/router.js.map +1 -1
- package/lib/browser/annotation/view.d.ts.map +1 -1
- package/lib/browser/annotation/view.js +1 -2
- package/lib/browser/annotation/view.js.map +1 -1
- package/lib/browser/app/app.js +17 -10
- package/lib/browser/app/app.js.map +1 -1
- package/lib/browser/app/index.js +16 -3
- package/lib/browser/app/index.js.map +1 -1
- package/lib/browser/context/context-provider.js +16 -5
- package/lib/browser/context/context-provider.js.map +1 -1
- package/lib/browser/context/context.js +8 -3
- package/lib/browser/context/context.js.map +1 -1
- package/lib/browser/context/index.js +17 -4
- package/lib/browser/context/index.js.map +1 -1
- package/lib/browser/icon/icon.js +1 -2
- package/lib/browser/icon/icon.js.map +1 -1
- package/lib/browser/icon/index.js +15 -2
- package/lib/browser/icon/index.js.map +1 -1
- package/lib/browser/index.js +25 -12
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/layout/index.js +16 -3
- package/lib/browser/layout/index.js.map +1 -1
- package/lib/browser/layout/layout.js +10 -6
- package/lib/browser/layout/layout.js.map +1 -1
- package/lib/browser/locale/index.js +16 -3
- package/lib/browser/locale/index.js.map +1 -1
- package/lib/browser/locale/locale-context.js +8 -4
- package/lib/browser/locale/locale-context.js.map +1 -1
- package/lib/browser/module.d.ts +1 -1
- package/lib/browser/resolver/index.js +16 -3
- package/lib/browser/resolver/index.js.map +1 -1
- package/lib/browser/resolver/path-resolver.js +13 -5
- package/lib/browser/resolver/path-resolver.js.map +1 -1
- package/lib/browser/router/index.js +19 -6
- package/lib/browser/router/index.js.map +1 -1
- package/lib/browser/router/route-metadata-converter-provider.js +13 -5
- package/lib/browser/router/route-metadata-converter-provider.js.map +1 -1
- package/lib/browser/router/route-metadata-converter.js +17 -9
- package/lib/browser/router/route-metadata-converter.js.map +1 -1
- package/lib/browser/router/route-metadata-provider.js +15 -7
- package/lib/browser/router/route-metadata-provider.js.map +1 -1
- package/lib/browser/router/router.js +7 -2
- package/lib/browser/router/router.js.map +1 -1
- package/lib/browser/shell/index.js +15 -2
- package/lib/browser/shell/index.js.map +1 -1
- package/lib/browser/shell/shell.js +13 -5
- package/lib/browser/shell/shell.js.map +1 -1
- package/lib/browser/slot/index.js +15 -2
- package/lib/browser/slot/index.js.map +1 -1
- package/lib/browser/slot/slot.js +1 -2
- package/lib/browser/slot/slot.js.map +1 -1
- package/lib/browser/widget/index.js +15 -2
- package/lib/browser/widget/index.js.map +1 -1
- package/lib/browser/widget/widget-factory.js +8 -3
- package/lib/browser/widget/widget-factory.js.map +1 -1
- package/lib/hooks/webpack.d.ts.map +1 -1
- package/lib/hooks/webpack.js.map +1 -1
- package/package.json +34 -34
- package/src/browser/annotation/app.ts +1 -1
- package/src/browser/annotation/context.ts +1 -1
- package/src/browser/annotation/default-layout.ts +1 -1
- package/src/browser/annotation/icon.ts +1 -1
- package/src/browser/annotation/react-component.ts +1 -1
- package/src/browser/annotation/route.ts +1 -1
- package/src/browser/annotation/router.ts +1 -1
- package/src/browser/annotation/view.ts +1 -1
- package/src/hooks/webpack.ts +1 -0
|
@@ -2,7 +2,7 @@ import { Constant, ComponentId } from '@celljs/core';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
export const ReactComponent =
|
|
5
|
-
function (id?: ComponentId | ComponentId[], component?: React.ComponentType<any>, rebind
|
|
5
|
+
function (id?: ComponentId | ComponentId[], component?: React.ComponentType<any>, rebind = false): ClassDecorator {
|
|
6
6
|
return (t: any) => {
|
|
7
7
|
Constant(id || t, component || t, rebind)(t);
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import { Constant } from '@celljs/core';
|
|
|
2
2
|
import { RouteMetadata, ROUTE_METADATA } from '../router/router-protocol';
|
|
3
3
|
import { ReactComponent } from './react-component';
|
|
4
4
|
|
|
5
|
-
export function Route(pathOrRouteMetadata?: string | RouteMetadata, rebind
|
|
5
|
+
export function Route(pathOrRouteMetadata?: string | RouteMetadata, rebind = false): ClassDecorator {
|
|
6
6
|
return function (target: any) {
|
|
7
7
|
let routeMetadata: RouteMetadata;
|
|
8
8
|
if (typeof pathOrRouteMetadata === 'string') {
|
|
@@ -3,7 +3,7 @@ import { ROUTER } from '../router/router-protocol';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
export const Router =
|
|
6
|
-
function (component?: React.ComponentType<any>, rebind
|
|
6
|
+
function (component?: React.ComponentType<any>, rebind = true): ClassDecorator {
|
|
7
7
|
return (t: any) => {
|
|
8
8
|
ReactComponent(ROUTER, component || t, rebind)(t);
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RouteMetadata } from '../router/router-protocol';
|
|
2
2
|
import { Route } from './route';
|
|
3
3
|
|
|
4
|
-
export function View(pathOrRouteMetadata?: string | RouteMetadata, rebind
|
|
4
|
+
export function View(pathOrRouteMetadata?: string | RouteMetadata, rebind = false): ClassDecorator {
|
|
5
5
|
return function (target: any) {
|
|
6
6
|
Route(pathOrRouteMetadata, rebind)(target);
|
|
7
7
|
};
|
package/src/hooks/webpack.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as fs from 'fs-extra';
|
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
import { WebpackContext, ConfigurationContext } from '@celljs/cli-service/lib/context/context-protocol';
|
|
4
4
|
import { ConfigUtil } from '@celljs/cli-common/lib/utils/config-util';
|
|
5
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
5
6
|
|
|
6
7
|
interface LoaderOptions {
|
|
7
8
|
css: any,
|