Skip to content

Commit 5ff9836

Browse files
author
Zoran Liu
committed
5.0.0-alpha
1 parent ebc1021 commit 5ff9836

64 files changed

Lines changed: 683 additions & 1176 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"builder": "@angular-devkit/build-angular:ng-packagr",
236236
"options": {
237237
"tsConfig": "libs/semantic-ui/tsconfig.lib.json",
238-
"project": "libs/semantic-ui/package.json"
238+
"project": "libs/semantic-ui/ng-package.json"
239239
},
240240
"configurations": {
241241
"production": {
@@ -266,7 +266,7 @@
266266
"builder": "@angular-devkit/build-angular:ng-packagr",
267267
"options": {
268268
"tsConfig": "libs/toolkit/tsconfig.lib.json",
269-
"project": "libs/toolkit/package.json"
269+
"project": "libs/toolkit/ng-package.json"
270270
},
271271
"configurations": {
272272
"production": {

apps/docs/src/app/react-components/react-dot/react-dot.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { ReactWrapperComponent } from '@angular-react/core';
3838
</ReactDot>
3939
`,
4040
changeDetection: ChangeDetectionStrategy.OnPush,
41-
styles: ['react-renderer {}'],
41+
styles: ['react-renderer { display: none; }'],
4242
})
4343
export class ReactDotComponent extends ReactWrapperComponent<ReactDotProps> {
4444
@ViewChild('reactNode', { static: true }) protected reactNodeRef: ElementRef;

libs/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-react/core",
3-
"version": "4.0.1",
3+
"version": "5.0.0-alpha",
44
"description": "Use React components inside Angular",
55
"author": {
66
"name": "Ben Feely",

libs/core/src/lib/renderer/renderer.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ export class AngularReactRendererFactory extends ɵDomRendererFactory2 {
4141
}
4242

4343
createRenderer(element: any, type: RendererType2 | null): Renderer2 {
44-
if (
45-
type?.styles?.length
46-
&& (
47-
type.styles[0] === 'react-renderer'
48-
|| type.styles[0] === 'react-renderer {}'
49-
)
50-
) {
44+
if (typeof type.styles?.[0] === 'string' && type.styles[0].startsWith('react-renderer')) {
5145
return this.defaultReactRenderer;
5246
}
5347

libs/fabric/lib/components/breadcrumb/breadcrumb.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
4040
>
4141
</Breadcrumb>
4242
`,
43-
styles: ['react-renderer {}'],
43+
styles: ['react-renderer { display: none; }'],
4444
changeDetection: ChangeDetectionStrategy.OnPush,
4545
})
4646
export class FabBreadcrumbComponent extends ReactWrapperComponent<IBreadcrumbProps> implements OnInit {

libs/fabric/lib/components/button/action-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
6565
<ReactContent><ng-content></ng-content></ReactContent>
6666
</ActionButton>
6767
`,
68-
styles: ['react-renderer {}'],
68+
styles: ['react-renderer { display: none; }'],
6969
changeDetection: ChangeDetectionStrategy.OnPush,
7070
})
7171
export class FabActionButtonComponent extends FabBaseButtonComponent {

libs/fabric/lib/components/button/command-bar-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
6565
<ReactContent><ng-content></ng-content></ReactContent>
6666
</CommandBarButton>
6767
`,
68-
styles: ['react-renderer {}'],
68+
styles: ['react-renderer { display: none; }'],
6969
changeDetection: ChangeDetectionStrategy.OnPush,
7070
})
7171
export class FabCommandBarButtonComponent extends FabBaseButtonComponent {

libs/fabric/lib/components/button/compound-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
6565
<ReactContent><ng-content></ng-content></ReactContent>
6666
</CompoundButton>
6767
`,
68-
styles: ['react-renderer {}'],
68+
styles: ['react-renderer { display: none; }'],
6969
changeDetection: ChangeDetectionStrategy.OnPush,
7070
})
7171
export class FabCompoundButtonComponent extends FabBaseButtonComponent {

libs/fabric/lib/components/button/default-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
6565
<ReactContent><ng-content></ng-content></ReactContent>
6666
</DefaultButton>
6767
`,
68-
styles: ['react-renderer {}'],
68+
styles: ['react-renderer { display: none; }'],
6969
changeDetection: ChangeDetectionStrategy.OnPush,
7070
})
7171
export class FabDefaultButtonComponent extends FabBaseButtonComponent {

libs/fabric/lib/components/button/icon-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { Styled } from '@angular-react/fabric/lib/utils';
6565
<ReactContent><ng-content></ng-content></ReactContent>
6666
</IconButton>
6767
`,
68-
styles: ['react-renderer {}'],
68+
styles: ['react-renderer { display: none; }'],
6969
changeDetection: ChangeDetectionStrategy.OnPush,
7070
})
7171
export class FabIconButtonComponent extends FabBaseButtonComponent {

0 commit comments

Comments
 (0)