@common-stack/client-react 0.1.18 → 0.1.23

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/CHANGELOG.md DELETED
@@ -1,247 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [0.1.18](https://github.com/cdmbase/fullstack-pro/compare/v0.1.17...v0.1.18) (2022-01-08)
7
-
8
-
9
- ### Features
10
-
11
- * added browser plugin area support ([e4e54cb](https://github.com/cdmbase/fullstack-pro/commit/e4e54cb7e149b23829ceb01a7445cffdeac4be1e))
12
-
13
-
14
-
15
-
16
-
17
- ## [0.1.17](https://github.com/cdmbase/fullstack-pro/compare/v0.1.16...v0.1.17) (2022-01-08)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * removed div from plugin area ([c4aff19](https://github.com/cdmbase/fullstack-pro/commit/c4aff191275be2c8e108b2e2ac331f06aea86100))
23
-
24
-
25
-
26
-
27
-
28
- ## [0.1.16](https://github.com/cdmbase/fullstack-pro/compare/v0.1.15...v0.1.16) (2022-01-05)
29
-
30
-
31
- ### Features
32
-
33
- * added slot fill support ([d576e16](https://github.com/cdmbase/fullstack-pro/commit/d576e16fc8630256e9b46d04960a0260bf5d8129))
34
-
35
-
36
-
37
-
38
-
39
- ## [0.1.15](https://github.com/cdmbase/fullstack-pro/compare/v0.1.14...v0.1.15) (2022-01-01)
40
-
41
- **Note:** Version bump only for package @common-stack/client-react
42
-
43
-
44
-
45
-
46
-
47
- ## [0.1.14](https://github.com/cdmbase/fullstack-pro/compare/v0.1.13...v0.1.14) (2021-12-23)
48
-
49
- **Note:** Version bump only for package @common-stack/client-react
50
-
51
-
52
-
53
-
54
-
55
- ## [0.1.12](https://github.com/cdmbase/fullstack-pro/compare/v0.1.11...v0.1.12) (2021-12-10)
56
-
57
- **Note:** Version bump only for package @common-stack/client-react
58
-
59
-
60
-
61
-
62
-
63
- ## [0.1.11](https://github.com/cdmbase/fullstack-pro/compare/v0.1.10...v0.1.11) (2021-11-07)
64
-
65
- **Note:** Version bump only for package @common-stack/client-react
66
-
67
-
68
-
69
-
70
-
71
- ## [0.1.10](https://github.com/cdmbase/fullstack-pro/compare/v0.1.9...v0.1.10) (2021-10-24)
72
-
73
- **Note:** Version bump only for package @common-stack/client-react
74
-
75
-
76
-
77
-
78
-
79
- ## [0.1.9](https://github.com/cdmbase/fullstack-pro/compare/v0.1.8...v0.1.9) (2021-10-07)
80
-
81
- **Note:** Version bump only for package @common-stack/client-react
82
-
83
-
84
-
85
-
86
-
87
- ## [0.1.7](https://github.com/cdmbase/fullstack-pro/compare/v0.1.6...v0.1.7) (2021-08-11)
88
-
89
- **Note:** Version bump only for package @common-stack/client-react
90
-
91
-
92
-
93
-
94
-
95
- ## [0.1.6](https://github.com/cdmbase/fullstack-pro/compare/v0.1.5...v0.1.6) (2021-08-11)
96
-
97
- **Note:** Version bump only for package @common-stack/client-react
98
-
99
-
100
-
101
-
102
-
103
- ## [0.1.5](https://github.com/cdmbase/fullstack-pro/compare/v0.1.4...v0.1.5) (2021-08-11)
104
-
105
- **Note:** Version bump only for package @common-stack/client-react
106
-
107
-
108
-
109
-
110
-
111
- ## [0.1.4](https://github.com/cdmbase/fullstack-pro/compare/v0.1.3...v0.1.4) (2021-08-11)
112
-
113
- **Note:** Version bump only for package @common-stack/client-react
114
-
115
-
116
-
117
-
118
-
119
- ## [0.1.3](https://github.com/cdmbase/fullstack-pro/compare/v0.1.2...v0.1.3) (2021-08-11)
120
-
121
- **Note:** Version bump only for package @common-stack/client-react
122
-
123
-
124
-
125
-
126
-
127
- ## [0.1.2](https://github.com/cdmbase/fullstack-pro/compare/v0.1.1...v0.1.2) (2021-08-10)
128
-
129
- **Note:** Version bump only for package @common-stack/client-react
130
-
131
-
132
-
133
-
134
-
135
- ## [0.1.1](https://github.com/cdmbase/fullstack-pro/compare/v0.0.264...v0.1.1) (2021-08-05)
136
-
137
- **Note:** Version bump only for package @common-stack/client-react
138
-
139
-
140
-
141
-
142
-
143
- ## [0.0.264](https://github.com/cdmbase/fullstack-pro/compare/v0.0.263...v0.0.264) (2021-07-04)
144
-
145
-
146
- ### Bug Fixes
147
-
148
- * props not being sent as argument to auth wrapper ([46efc87](https://github.com/cdmbase/fullstack-pro/commit/46efc874c5bf60050cb42a0418ed0739451ba370))
149
-
150
-
151
-
152
-
153
-
154
- ## [0.0.263](https://github.com/cdmbase/fullstack-pro/compare/v0.0.262...v0.0.263) (2021-07-03)
155
-
156
-
157
- ### Features
158
-
159
- * added support for auth wrapper ([2749172](https://github.com/cdmbase/fullstack-pro/commit/2749172303f2b35d56fa4e79aabc88beae24d280)), closes [#1208](https://github.com/cdmbase/fullstack-pro/issues/1208)
160
-
161
-
162
-
163
-
164
-
165
- ## [0.0.262](https://github.com/cdmbase/fullstack-pro/compare/v0.0.261...v0.0.262) (2021-06-23)
166
-
167
- **Note:** Version bump only for package @common-stack/client-react
168
-
169
-
170
-
171
-
172
-
173
- ## [0.0.261](https://github.com/cdmbase/fullstack-pro/compare/v0.0.260...v0.0.261) (2021-06-01)
174
-
175
- **Note:** Version bump only for package @common-stack/client-react
176
-
177
-
178
-
179
-
180
-
181
- ## [0.0.260](https://github.com/cdmbase/fullstack-pro/compare/v0.0.259...v0.0.260) (2021-05-28)
182
-
183
- **Note:** Version bump only for package @common-stack/client-react
184
-
185
-
186
-
187
-
188
-
189
- ## [0.0.259](https://github.com/cdmbase/fullstack-pro/compare/v0.0.258...v0.0.259) (2021-05-28)
190
-
191
- **Note:** Version bump only for package @common-stack/client-react
192
-
193
-
194
-
195
-
196
-
197
- ## [0.0.258](https://github.com/cdmbase/fullstack-pro/compare/v0.0.257...v0.0.258) (2021-05-14)
198
-
199
- **Note:** Version bump only for package @common-stack/client-react
200
-
201
-
202
-
203
-
204
-
205
- ## [0.0.257](https://github.com/cdmbase/fullstack-pro/compare/v0.0.256...v0.0.257) (2021-05-05)
206
-
207
- **Note:** Version bump only for package @common-stack/client-react
208
-
209
-
210
-
211
-
212
-
213
- ## [0.0.256](https://github.com/cdmbase/fullstack-pro/compare/v0.0.255...v0.0.256) (2021-05-05)
214
-
215
- **Note:** Version bump only for package @common-stack/client-react
216
-
217
-
218
-
219
-
220
-
221
- ## [0.0.255](https://github.com/cdmbase/fullstack-pro/compare/v0.0.254...v0.0.255) (2021-04-03)
222
-
223
- **Note:** Version bump only for package @common-stack/client-react
224
-
225
-
226
-
227
-
228
-
229
- ## [0.0.254](https://github.com/cdmbase/fullstack-pro/compare/v0.0.253...v0.0.254) (2021-03-31)
230
-
231
- **Note:** Version bump only for package @common-stack/client-react
232
-
233
-
234
-
235
-
236
-
237
- ## [0.0.253](https://github.com/cdmbase/fullstack-pro/compare/v0.0.252...v0.0.253) (2021-03-31)
238
-
239
- **Note:** Version bump only for package @common-stack/client-react
240
-
241
-
242
-
243
-
244
-
245
- ## [0.0.252](https://github.com/cdmbase/fullstack-pro/compare/v0.0.251...v0.0.252) (2021-03-29)
246
-
247
- **Note:** Version bump only for package @common-stack/client-react
@@ -1,94 +0,0 @@
1
- import * as React from 'react';
2
- export interface IFillProps {
3
- name: Name;
4
- [key: string]: any;
5
- }
6
- export interface IFill extends React.Component<IFillProps> {
7
- occurrence: number;
8
- children: React.ReactNode;
9
- }
10
- export declare type Name = string | Symbol;
11
- export interface ISlotProps {
12
- /**
13
- * The name of the component. Use a symbol if you want to be 100% sure the Slot
14
- * will only be filled by a component you create
15
- */
16
- name: Name;
17
- /**
18
- * Props to be applied to the child Element of every fill which has the same name.
19
- *
20
- * If the value is a function, it must have the following signature:
21
- * (target: Fill, fills: Fill[]) => void;
22
- *
23
- * This allows you to access props on the fill which invoked the function
24
- * by using target.props.something()
25
- */
26
- fillProps?: {
27
- [key: string]: any;
28
- };
29
- /**
30
- * A an optional function which gets all of the current fills for this slot
31
- * Allows sorting, or filtering before rendering. An example use-case could
32
- * be to only show a limited amount of fills.
33
- *
34
- * By default Slot injects an unstyled `<div>` element. If you want greater
35
- * control over presentation use this function.
36
- *
37
- * @example
38
- * <Slot name="My.Slot">
39
- * {(items) => <Component>{items}</Component>}
40
- * </Slot>
41
- */
42
- children?: (fills: IFill[]) => JSX.Element;
43
- bubblesVirtually?: boolean;
44
- /**
45
- * `Slot` with `bubblesVirtually` set to true also accept an optional `className` to
46
- * add to the slot container.
47
- *
48
- * @type {string}
49
- * @memberof ISlotProps
50
- */
51
- className?: string;
52
- }
53
- export interface ISlot extends React.Component<ISlotProps> {
54
- node: Element;
55
- }
56
- export interface IContext extends IProviderState {
57
- }
58
- declare const Consumer: React.Consumer<IContext>;
59
- export interface IProviderState {
60
- registerFill: (a: Name, b: any) => void;
61
- unregisterFill: (a: Name, b: any) => void;
62
- unregisterSlot: (a: Name, b?: any) => void;
63
- registerSlot: (a: Name, b?: any) => void;
64
- getSlot: (a: Name) => ISlot;
65
- getFills: (a: Name, b?: any) => IFill[] | [];
66
- subscribe: (listener: any) => void;
67
- }
68
- declare class SlotFillProvider extends React.Component<{}, {}> {
69
- private slots;
70
- private fills;
71
- private listeners;
72
- private contextValue;
73
- constructor(props: any);
74
- registerSlot(name: any, slot: any): void;
75
- registerFill(name: any, instance: any): void;
76
- unregisterSlot(name: any, instance: any): void;
77
- unregisterFill(name: any, instance: IFill): void;
78
- getSlot(name: any): ISlot;
79
- getFills(name: any, slotInstance: any): IFill[];
80
- private resetFillOccurrence;
81
- private forceUpdateSlot;
82
- private triggerListeners;
83
- subscribe(listener: any): () => void;
84
- render(): JSX.Element;
85
- }
86
- /**
87
- * React hook returning the active slot given a name.
88
- *
89
- * @param {string} name Slot name.
90
- * @return {Object} Slot object.
91
- */
92
- export declare const useSlot: (name: any) => ISlot;
93
- export default SlotFillProvider;
94
- export { Consumer };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { IFillProps, IContext } from './context';
3
- export declare namespace IFillComponent {
4
- interface Props extends IFillProps, Partial<IContext> {
5
- }
6
- }
7
- declare type IFillComponentProps<T = IFillProps> = T;
8
- declare type IFillComponent<T = IFillProps> = React.FC<IFillComponentProps<T>>;
9
- declare const Fill: IFillComponent;
10
- export { Fill };
@@ -1,4 +0,0 @@
1
- import { Slot } from './slot';
2
- import { Fill } from './fill';
3
- import SlotFillProvider from './context';
4
- export { Slot, Fill, SlotFillProvider };
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { ISlotProps, IContext } from './context';
3
- export declare namespace ISlotComponent {
4
- interface Props extends Partial<IContext>, ISlotProps {
5
- }
6
- }
7
- declare const Slot: React.SFC<ISlotProps>;
8
- export { Slot };
@@ -1 +0,0 @@
1
- export * from './isEmptyElement';
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * Checks if the provided element to check.
4
- *
5
- * @param element React Component to check.
6
- * @returns True when an element is considered empty.
7
- */
8
- export declare const isEmptyElement: (element: React.ComponentElement<any, any> | any) => boolean;