@livetiles/reach-components-react 0.4.0-preview.292 → 0.4.0-preview.293
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/index.esm2.js +71 -7
- package/index.umd.js +71 -7
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -53389,7 +53389,7 @@ fixRegExpWellKnownSymbolLogic$3$1('replace', 2, function (REPLACE, nativeReplace
|
|
|
53389
53389
|
}
|
|
53390
53390
|
});
|
|
53391
53391
|
|
|
53392
|
-
function
|
|
53392
|
+
function usePluginDeviceStore() {
|
|
53393
53393
|
var storage = useContext(PluginContext).storage;
|
|
53394
53394
|
return storage;
|
|
53395
53395
|
}
|
|
@@ -53488,6 +53488,64 @@ function getStorageWrapper(pluginId, storage) {
|
|
|
53488
53488
|
}
|
|
53489
53489
|
}
|
|
53490
53490
|
|
|
53491
|
+
function usePluginUserStore() {
|
|
53492
|
+
var userStore = useContext(PluginContext).userStore;
|
|
53493
|
+
return userStore;
|
|
53494
|
+
}
|
|
53495
|
+
|
|
53496
|
+
function getPluginUserStoreWrapper(pluginId, api) {
|
|
53497
|
+
return {
|
|
53498
|
+
getPluginUserValue: getPluginUserValue,
|
|
53499
|
+
setPluginUserValue: setPluginUserValue,
|
|
53500
|
+
deletePluginUserValue: deletePluginUserValue
|
|
53501
|
+
};
|
|
53502
|
+
|
|
53503
|
+
function getPluginUserValue(key) {
|
|
53504
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53505
|
+
return res.body().data();
|
|
53506
|
+
});
|
|
53507
|
+
}
|
|
53508
|
+
|
|
53509
|
+
function setPluginUserValue(key, value) {
|
|
53510
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53511
|
+
return res.body().data();
|
|
53512
|
+
});
|
|
53513
|
+
}
|
|
53514
|
+
|
|
53515
|
+
function deletePluginUserValue(key) {
|
|
53516
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53517
|
+
}
|
|
53518
|
+
}
|
|
53519
|
+
|
|
53520
|
+
function usePluginSubscriptionStore() {
|
|
53521
|
+
var subscriptionStore = useContext(PluginContext).subscriptionStore;
|
|
53522
|
+
return subscriptionStore;
|
|
53523
|
+
}
|
|
53524
|
+
|
|
53525
|
+
function getPluginSubscriptionStoreWrapper(pluginId, api) {
|
|
53526
|
+
return {
|
|
53527
|
+
getPluginSubscriptionValue: getPluginSubscriptionValue,
|
|
53528
|
+
setPluginSubscriptionValue: setPluginSubscriptionValue,
|
|
53529
|
+
deletePluginSubscriptionValue: deletePluginSubscriptionValue
|
|
53530
|
+
};
|
|
53531
|
+
|
|
53532
|
+
function getPluginSubscriptionValue(key) {
|
|
53533
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53534
|
+
return res.body().data();
|
|
53535
|
+
});
|
|
53536
|
+
}
|
|
53537
|
+
|
|
53538
|
+
function setPluginSubscriptionValue(key, value) {
|
|
53539
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53540
|
+
return res.body().data();
|
|
53541
|
+
});
|
|
53542
|
+
}
|
|
53543
|
+
|
|
53544
|
+
function deletePluginSubscriptionValue(key) {
|
|
53545
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53546
|
+
}
|
|
53547
|
+
}
|
|
53548
|
+
|
|
53491
53549
|
var PluginWrapper = function PluginWrapper(_a) {
|
|
53492
53550
|
var pluginId = _a.pluginId,
|
|
53493
53551
|
componentName = _a.componentName,
|
|
@@ -53497,6 +53555,7 @@ var PluginWrapper = function PluginWrapper(_a) {
|
|
|
53497
53555
|
props = __rest$2(_a, ["pluginId", "componentName", "settings", "bundleUrl", "bundleModificationDate"]);
|
|
53498
53556
|
|
|
53499
53557
|
var storage = useStorage();
|
|
53558
|
+
var api = useApi();
|
|
53500
53559
|
var getPluginFileUrl = usePluginApi().getPluginFileUrl;
|
|
53501
53560
|
var LazyComponent = useMemo(function () {
|
|
53502
53561
|
return /*#__PURE__*/lazy$1(function () {
|
|
@@ -53506,9 +53565,11 @@ var PluginWrapper = function PluginWrapper(_a) {
|
|
|
53506
53565
|
var pluginContext = useMemo(function () {
|
|
53507
53566
|
return {
|
|
53508
53567
|
settings: settings,
|
|
53509
|
-
storage: getStorageWrapper(pluginId, storage)
|
|
53568
|
+
storage: getStorageWrapper(pluginId, storage),
|
|
53569
|
+
userStore: getPluginUserStoreWrapper(pluginId, api),
|
|
53570
|
+
subscriptionStore: getPluginSubscriptionStoreWrapper(pluginId, api)
|
|
53510
53571
|
};
|
|
53511
|
-
}, [pluginId, settings, storage]);
|
|
53572
|
+
}, [pluginId, settings, storage, api]);
|
|
53512
53573
|
return jsx$1(Suspense, __assign$a({
|
|
53513
53574
|
fallback: jsx$1("div", {}, void 0)
|
|
53514
53575
|
}, {
|
|
@@ -87390,7 +87451,10 @@ var ReachCore = /*#__PURE__*/Object.freeze({
|
|
|
87390
87451
|
createId: createId,
|
|
87391
87452
|
ResourceContext: ResourceContext,
|
|
87392
87453
|
usePluginSettings: usePluginSettings,
|
|
87393
|
-
usePluginStorage:
|
|
87454
|
+
usePluginStorage: usePluginDeviceStore,
|
|
87455
|
+
usePluginDeviceStore: usePluginDeviceStore,
|
|
87456
|
+
usePluginSubscriptionStore: usePluginSubscriptionStore,
|
|
87457
|
+
usePluginUserStore: usePluginUserStore,
|
|
87394
87458
|
useReachApiEndPoints: useReachApiEndPoints,
|
|
87395
87459
|
AccountType: AccountType,
|
|
87396
87460
|
PeoplePicker: PeoplePicker,
|
|
@@ -87584,9 +87648,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
|
|
|
87584
87648
|
}), void 0);
|
|
87585
87649
|
};
|
|
87586
87650
|
|
|
87587
|
-
var version$1 = "0.4.0-preview.
|
|
87588
|
-
var buildId = "
|
|
87589
|
-
var commitId = "
|
|
87651
|
+
var version$1 = "0.4.0-preview.293";
|
|
87652
|
+
var buildId = "100190";
|
|
87653
|
+
var commitId = "6f5bcb93570b93a930eb4818e20469bd901d2715";
|
|
87590
87654
|
var isCustomerBuild = false;
|
|
87591
87655
|
var buildInfo = {
|
|
87592
87656
|
version: version$1,
|
package/index.umd.js
CHANGED
|
@@ -53245,7 +53245,7 @@
|
|
|
53245
53245
|
}
|
|
53246
53246
|
});
|
|
53247
53247
|
|
|
53248
|
-
function
|
|
53248
|
+
function usePluginDeviceStore() {
|
|
53249
53249
|
var storage = React$d.useContext(PluginContext).storage;
|
|
53250
53250
|
return storage;
|
|
53251
53251
|
}
|
|
@@ -53344,6 +53344,64 @@
|
|
|
53344
53344
|
}
|
|
53345
53345
|
}
|
|
53346
53346
|
|
|
53347
|
+
function usePluginUserStore() {
|
|
53348
|
+
var userStore = React$d.useContext(PluginContext).userStore;
|
|
53349
|
+
return userStore;
|
|
53350
|
+
}
|
|
53351
|
+
|
|
53352
|
+
function getPluginUserStoreWrapper(pluginId, api) {
|
|
53353
|
+
return {
|
|
53354
|
+
getPluginUserValue: getPluginUserValue,
|
|
53355
|
+
setPluginUserValue: setPluginUserValue,
|
|
53356
|
+
deletePluginUserValue: deletePluginUserValue
|
|
53357
|
+
};
|
|
53358
|
+
|
|
53359
|
+
function getPluginUserValue(key) {
|
|
53360
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53361
|
+
return res.body().data();
|
|
53362
|
+
});
|
|
53363
|
+
}
|
|
53364
|
+
|
|
53365
|
+
function setPluginUserValue(key, value) {
|
|
53366
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53367
|
+
return res.body().data();
|
|
53368
|
+
});
|
|
53369
|
+
}
|
|
53370
|
+
|
|
53371
|
+
function deletePluginUserValue(key) {
|
|
53372
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53373
|
+
}
|
|
53374
|
+
}
|
|
53375
|
+
|
|
53376
|
+
function usePluginSubscriptionStore() {
|
|
53377
|
+
var subscriptionStore = React$d.useContext(PluginContext).subscriptionStore;
|
|
53378
|
+
return subscriptionStore;
|
|
53379
|
+
}
|
|
53380
|
+
|
|
53381
|
+
function getPluginSubscriptionStoreWrapper(pluginId, api) {
|
|
53382
|
+
return {
|
|
53383
|
+
getPluginSubscriptionValue: getPluginSubscriptionValue,
|
|
53384
|
+
setPluginSubscriptionValue: setPluginSubscriptionValue,
|
|
53385
|
+
deletePluginSubscriptionValue: deletePluginSubscriptionValue
|
|
53386
|
+
};
|
|
53387
|
+
|
|
53388
|
+
function getPluginSubscriptionValue(key) {
|
|
53389
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53390
|
+
return res.body().data();
|
|
53391
|
+
});
|
|
53392
|
+
}
|
|
53393
|
+
|
|
53394
|
+
function setPluginSubscriptionValue(key, value) {
|
|
53395
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53396
|
+
return res.body().data();
|
|
53397
|
+
});
|
|
53398
|
+
}
|
|
53399
|
+
|
|
53400
|
+
function deletePluginSubscriptionValue(key) {
|
|
53401
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53402
|
+
}
|
|
53403
|
+
}
|
|
53404
|
+
|
|
53347
53405
|
var PluginWrapper = function PluginWrapper(_a) {
|
|
53348
53406
|
var pluginId = _a.pluginId,
|
|
53349
53407
|
componentName = _a.componentName,
|
|
@@ -53353,6 +53411,7 @@
|
|
|
53353
53411
|
props = __rest$2(_a, ["pluginId", "componentName", "settings", "bundleUrl", "bundleModificationDate"]);
|
|
53354
53412
|
|
|
53355
53413
|
var storage = useStorage();
|
|
53414
|
+
var api = useApi();
|
|
53356
53415
|
var getPluginFileUrl = usePluginApi().getPluginFileUrl;
|
|
53357
53416
|
var LazyComponent = React$d.useMemo(function () {
|
|
53358
53417
|
return /*#__PURE__*/React$d.lazy(function () {
|
|
@@ -53362,9 +53421,11 @@
|
|
|
53362
53421
|
var pluginContext = React$d.useMemo(function () {
|
|
53363
53422
|
return {
|
|
53364
53423
|
settings: settings,
|
|
53365
|
-
storage: getStorageWrapper(pluginId, storage)
|
|
53424
|
+
storage: getStorageWrapper(pluginId, storage),
|
|
53425
|
+
userStore: getPluginUserStoreWrapper(pluginId, api),
|
|
53426
|
+
subscriptionStore: getPluginSubscriptionStoreWrapper(pluginId, api)
|
|
53366
53427
|
};
|
|
53367
|
-
}, [pluginId, settings, storage]);
|
|
53428
|
+
}, [pluginId, settings, storage, api]);
|
|
53368
53429
|
return jsxRuntime.jsx(React$d.Suspense, __assign$a({
|
|
53369
53430
|
fallback: jsxRuntime.jsx("div", {}, void 0)
|
|
53370
53431
|
}, {
|
|
@@ -87246,7 +87307,10 @@
|
|
|
87246
87307
|
createId: createId,
|
|
87247
87308
|
ResourceContext: ResourceContext,
|
|
87248
87309
|
usePluginSettings: usePluginSettings,
|
|
87249
|
-
usePluginStorage:
|
|
87310
|
+
usePluginStorage: usePluginDeviceStore,
|
|
87311
|
+
usePluginDeviceStore: usePluginDeviceStore,
|
|
87312
|
+
usePluginSubscriptionStore: usePluginSubscriptionStore,
|
|
87313
|
+
usePluginUserStore: usePluginUserStore,
|
|
87250
87314
|
useReachApiEndPoints: useReachApiEndPoints,
|
|
87251
87315
|
AccountType: AccountType,
|
|
87252
87316
|
PeoplePicker: PeoplePicker,
|
|
@@ -87440,9 +87504,9 @@
|
|
|
87440
87504
|
}), void 0);
|
|
87441
87505
|
};
|
|
87442
87506
|
|
|
87443
|
-
var version$1 = "0.4.0-preview.
|
|
87444
|
-
var buildId = "
|
|
87445
|
-
var commitId = "
|
|
87507
|
+
var version$1 = "0.4.0-preview.293";
|
|
87508
|
+
var buildId = "100190";
|
|
87509
|
+
var commitId = "6f5bcb93570b93a930eb4818e20469bd901d2715";
|
|
87446
87510
|
var isCustomerBuild = false;
|
|
87447
87511
|
var buildInfo = {
|
|
87448
87512
|
version: version$1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livetiles/reach-components-react",
|
|
3
3
|
"description": "Provides React components to consume LiveTiles Reach data",
|
|
4
|
-
"version": "0.4.0-preview.
|
|
4
|
+
"version": "0.4.0-preview.293",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "^16.14.0 || ^17",
|
|
7
7
|
"react-dom": "^16.14.0 || ^17",
|