@webkrafters/react-eagleeye 1.1.0-alpha.0 → 1.1.0-alpha.2
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.
|
@@ -128,6 +128,7 @@ export declare class EagleEyeUniversal<T extends State> {
|
|
|
128
128
|
private _context;
|
|
129
129
|
private _pCache;
|
|
130
130
|
private _obs;
|
|
131
|
+
private _sCache;
|
|
131
132
|
private _util;
|
|
132
133
|
constructor();
|
|
133
134
|
get resourceMap(): ObsResource<AbstractObservable<any>>;
|
|
@@ -137,7 +138,7 @@ export declare class EagleEyeUniversal<T extends State> {
|
|
|
137
138
|
<const ID extends string>(props?: WithChildren<ProviderPropsPrimitive<T, ID>>): JSX.Element;
|
|
138
139
|
<const ID extends string>(props?: WithChildren<RefProps<ID>>): JSX.Element;
|
|
139
140
|
};
|
|
140
|
-
get useStream():
|
|
141
|
+
get useStream(): <const S extends SelectorMap>(selectorMap?: S) => Store<T, S>;
|
|
141
142
|
provide<const ID extends string>(props?: ProviderProps<T, ID>): Point<T, ID>;
|
|
142
143
|
provide<const ID extends string>(props?: ProviderPropsRaw<T, ID>): Point<T, ID>;
|
|
143
144
|
provide<const ID extends string>(props?: ProviderPropsPrimitive<T, ID>): Point<T, ID>;
|
|
@@ -147,7 +148,7 @@ export declare class EagleEyeUniversal<T extends State> {
|
|
|
147
148
|
getIdOf(observable: AbstractObservable<T>): string;
|
|
148
149
|
getObservableAt<const ID extends string>(id: ID): AbstractObservable<T>;
|
|
149
150
|
private defineProvider;
|
|
150
|
-
private
|
|
151
|
+
private defineStreamHook;
|
|
151
152
|
}
|
|
152
153
|
export declare function createContext<T extends State>(): EagleEyeUniversal<T>;
|
|
153
154
|
export {};
|
|
@@ -212,10 +212,12 @@ var EagleEyeUniversal = exports.EagleEyeUniversal = /*#__PURE__*/function () {
|
|
|
212
212
|
_defineProperty(this, "_context", void 0);
|
|
213
213
|
_defineProperty(this, "_pCache", null);
|
|
214
214
|
_defineProperty(this, "_obs", null);
|
|
215
|
+
_defineProperty(this, "_sCache", null);
|
|
215
216
|
_defineProperty(this, "_util", null);
|
|
216
217
|
this._context = /*#__PURE__*/(0, _react.createContext)('0:0');
|
|
217
218
|
this._pCache = this.defineProvider();
|
|
218
219
|
this._obs = new ObsResource();
|
|
220
|
+
this._sCache = this.defineStreamHook();
|
|
219
221
|
this._util = new Utility(this);
|
|
220
222
|
}
|
|
221
223
|
return _createClass(EagleEyeUniversal, [{
|
|
@@ -231,7 +233,7 @@ var EagleEyeUniversal = exports.EagleEyeUniversal = /*#__PURE__*/function () {
|
|
|
231
233
|
}, {
|
|
232
234
|
key: "useStream",
|
|
233
235
|
get: function get() {
|
|
234
|
-
return this.
|
|
236
|
+
return this._sCache;
|
|
235
237
|
}
|
|
236
238
|
}, {
|
|
237
239
|
key: "provide",
|
|
@@ -297,8 +299,8 @@ var EagleEyeUniversal = exports.EagleEyeUniversal = /*#__PURE__*/function () {
|
|
|
297
299
|
return provide;
|
|
298
300
|
}
|
|
299
301
|
}, {
|
|
300
|
-
key: "
|
|
301
|
-
value: function
|
|
302
|
+
key: "defineStreamHook",
|
|
303
|
+
value: function defineStreamHook() {
|
|
302
304
|
var _this4 = this;
|
|
303
305
|
return function (selectorMap) {
|
|
304
306
|
var _useState3 = (0, _react.useState)(function () {
|
package/package.json
CHANGED
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"npm": "^4.0.6",
|
|
57
57
|
"react": "^19.2.3",
|
|
58
58
|
"react-dom": "^19.2.3",
|
|
59
|
-
"react-performance-testing": "^2.0.0",
|
|
60
59
|
"setimmediate": "^1.0.5",
|
|
61
60
|
"ts-jest": "^29.1.2",
|
|
62
61
|
"ts-node": "^10.9.2",
|
|
@@ -126,7 +125,7 @@
|
|
|
126
125
|
"test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
|
|
127
126
|
},
|
|
128
127
|
"types": "dist/index.d.ts",
|
|
129
|
-
"version": "1.1.0-alpha.
|
|
128
|
+
"version": "1.1.0-alpha.2",
|
|
130
129
|
"dependencies": {
|
|
131
130
|
"@webkrafters/eagleeye": "^1.0.8",
|
|
132
131
|
"js-sha512": "^0.9.0",
|