@paperless/react 2.22.0-alpha.47 → 3.0.0

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.
Files changed (2) hide show
  1. package/README.md +4 -31
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -77,42 +77,15 @@ const App = () => <Button>Click me!</Button>;
77
77
  #### Angular
78
78
 
79
79
  ```jsx
80
- // main.ts
81
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
82
- import { applyPolyfills, defineCustomElements } from '@paperless/core/loader';
83
-
84
- applyPolyfills()
85
- .then(() => defineCustomElements())
86
- .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
87
- .catch((err) => console.error(err));
88
-
89
- // App Module
90
- import { PaperlessModule } from '@employes/paperless-ngx';
91
-
92
- @NgModule({
93
- declarations: [AppComponent],
94
- imports: [
95
- BrowserModule,
96
-
97
- // add this in your app module
98
- PaperlessModule.forRoot(),
99
-
100
- // add this in any module using paperless components
101
- PaperlessModule,
102
- ],
103
- providers: [],
104
- bootstrap: [AppComponent],
105
- })
106
- export class AppModule {}
80
+ import { PButton } from '@paperless/angular';
107
81
 
108
- // Any component
109
82
  @Component({
110
- selector: 'app-root',
111
- templateUrl: `
83
+ templateUrl: `
112
84
  <p-button>Click me!</p-button>
113
85
  `,
86
+ imports: [PButton],
114
87
  })
115
- export class AppComponent {}
88
+ export class MyComponent {}
116
89
  ```
117
90
 
118
91
  #### Web Components
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paperless/react",
3
3
  "sideEffects": false,
4
- "version": "2.22.0-alpha.47",
4
+ "version": "3.0.0",
5
5
  "description": "React specific wrapper for component-library",
6
6
  "repository": {
7
7
  "type": "git",