@livetiles/reach-components-react 0.4.0-preview.283 → 0.4.0-preview.286
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 +70 -58
- package/index.umd.js +70 -58
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -53488,6 +53488,70 @@ 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) {
|
|
53497
|
+
var api = useApi();
|
|
53498
|
+
return useMemo(function () {
|
|
53499
|
+
return {
|
|
53500
|
+
getPluginUserStore: getPluginUserStore,
|
|
53501
|
+
setPluginUserStore: setPluginUserStore,
|
|
53502
|
+
deletePluginUserStore: deletePluginUserStore
|
|
53503
|
+
};
|
|
53504
|
+
|
|
53505
|
+
function getPluginUserStore(key) {
|
|
53506
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53507
|
+
return res.body().data();
|
|
53508
|
+
});
|
|
53509
|
+
}
|
|
53510
|
+
|
|
53511
|
+
function setPluginUserStore(key, value) {
|
|
53512
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53513
|
+
return res.body().data();
|
|
53514
|
+
});
|
|
53515
|
+
}
|
|
53516
|
+
|
|
53517
|
+
function deletePluginUserStore(key) {
|
|
53518
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53519
|
+
}
|
|
53520
|
+
}, [api]);
|
|
53521
|
+
}
|
|
53522
|
+
|
|
53523
|
+
function usePluginSubscriptionStore() {
|
|
53524
|
+
var subscriptionStore = useContext(PluginContext).subscriptionStore;
|
|
53525
|
+
return subscriptionStore;
|
|
53526
|
+
}
|
|
53527
|
+
|
|
53528
|
+
function getPluginSubscriptionStoreWrapper(pluginId) {
|
|
53529
|
+
var api = useApi();
|
|
53530
|
+
return useMemo(function () {
|
|
53531
|
+
return {
|
|
53532
|
+
getPluginSubscriptionStore: getPluginSubscriptionStore,
|
|
53533
|
+
setPluginSubscriptionStore: setPluginSubscriptionStore,
|
|
53534
|
+
deletePluginSubscriptionStore: deletePluginSubscriptionStore
|
|
53535
|
+
};
|
|
53536
|
+
|
|
53537
|
+
function getPluginSubscriptionStore(key) {
|
|
53538
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53539
|
+
return res.body().data();
|
|
53540
|
+
});
|
|
53541
|
+
}
|
|
53542
|
+
|
|
53543
|
+
function setPluginSubscriptionStore(key, value) {
|
|
53544
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53545
|
+
return res.body().data();
|
|
53546
|
+
});
|
|
53547
|
+
}
|
|
53548
|
+
|
|
53549
|
+
function deletePluginSubscriptionStore(key) {
|
|
53550
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53551
|
+
}
|
|
53552
|
+
}, [api]);
|
|
53553
|
+
}
|
|
53554
|
+
|
|
53491
53555
|
var PluginWrapper = function PluginWrapper(_a) {
|
|
53492
53556
|
var pluginId = _a.pluginId,
|
|
53493
53557
|
componentName = _a.componentName,
|
|
@@ -53506,7 +53570,9 @@ var PluginWrapper = function PluginWrapper(_a) {
|
|
|
53506
53570
|
var pluginContext = useMemo(function () {
|
|
53507
53571
|
return {
|
|
53508
53572
|
settings: settings,
|
|
53509
|
-
storage: getStorageWrapper(pluginId, storage)
|
|
53573
|
+
storage: getStorageWrapper(pluginId, storage),
|
|
53574
|
+
userStore: getPluginUserStoreWrapper(pluginId),
|
|
53575
|
+
subscriptionStore: getPluginSubscriptionStoreWrapper(pluginId)
|
|
53510
53576
|
};
|
|
53511
53577
|
}, [pluginId, settings, storage]);
|
|
53512
53578
|
return jsx$1(Suspense, __assign$a({
|
|
@@ -53777,60 +53843,6 @@ var Plugins = function Plugins(_a) {
|
|
|
53777
53843
|
}, void 0);
|
|
53778
53844
|
};
|
|
53779
53845
|
|
|
53780
|
-
function usePluginSubscriptionStore(pluginId) {
|
|
53781
|
-
var api = useApi();
|
|
53782
|
-
return useMemo(function () {
|
|
53783
|
-
return {
|
|
53784
|
-
getPluginSubscriptionStore: getPluginSubscriptionStore,
|
|
53785
|
-
setPluginSubscriptionStore: setPluginSubscriptionStore,
|
|
53786
|
-
deletePluginSubscriptionStore: deletePluginSubscriptionStore
|
|
53787
|
-
};
|
|
53788
|
-
|
|
53789
|
-
function getPluginSubscriptionStore(key) {
|
|
53790
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53791
|
-
return res.body().data();
|
|
53792
|
-
});
|
|
53793
|
-
}
|
|
53794
|
-
|
|
53795
|
-
function setPluginSubscriptionStore(key, value) {
|
|
53796
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53797
|
-
return res.body().data();
|
|
53798
|
-
});
|
|
53799
|
-
}
|
|
53800
|
-
|
|
53801
|
-
function deletePluginSubscriptionStore(key) {
|
|
53802
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53803
|
-
}
|
|
53804
|
-
}, [api]);
|
|
53805
|
-
}
|
|
53806
|
-
|
|
53807
|
-
function usePluginUserStore(pluginId) {
|
|
53808
|
-
var api = useApi();
|
|
53809
|
-
return useMemo(function () {
|
|
53810
|
-
return {
|
|
53811
|
-
getPluginUserStore: getPluginUserStore,
|
|
53812
|
-
setPluginUserStore: setPluginUserStore,
|
|
53813
|
-
deletePluginUserStore: deletePluginUserStore
|
|
53814
|
-
};
|
|
53815
|
-
|
|
53816
|
-
function getPluginUserStore(key) {
|
|
53817
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53818
|
-
return res.body().data();
|
|
53819
|
-
});
|
|
53820
|
-
}
|
|
53821
|
-
|
|
53822
|
-
function setPluginUserStore(key, value) {
|
|
53823
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53824
|
-
return res.body().data();
|
|
53825
|
-
});
|
|
53826
|
-
}
|
|
53827
|
-
|
|
53828
|
-
function deletePluginUserStore(key) {
|
|
53829
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53830
|
-
}
|
|
53831
|
-
}, [api]);
|
|
53832
|
-
}
|
|
53833
|
-
|
|
53834
53846
|
var DESCRIPTORS$c = descriptors$2;
|
|
53835
53847
|
var fails$4$2 = fails$g$2;
|
|
53836
53848
|
var objectKeys$4 = objectKeys$2$2;
|
|
@@ -87588,9 +87600,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
|
|
|
87588
87600
|
}), void 0);
|
|
87589
87601
|
};
|
|
87590
87602
|
|
|
87591
|
-
var version$1 = "0.4.0-preview.
|
|
87592
|
-
var buildId = "
|
|
87593
|
-
var commitId = "
|
|
87603
|
+
var version$1 = "0.4.0-preview.286";
|
|
87604
|
+
var buildId = "100092";
|
|
87605
|
+
var commitId = "279e28333cf0b54d8170cfad496008e05dfb3764";
|
|
87594
87606
|
var isCustomerBuild = false;
|
|
87595
87607
|
var buildInfo = {
|
|
87596
87608
|
version: version$1,
|
package/index.umd.js
CHANGED
|
@@ -53344,6 +53344,70 @@
|
|
|
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) {
|
|
53353
|
+
var api = useApi();
|
|
53354
|
+
return React$d.useMemo(function () {
|
|
53355
|
+
return {
|
|
53356
|
+
getPluginUserStore: getPluginUserStore,
|
|
53357
|
+
setPluginUserStore: setPluginUserStore,
|
|
53358
|
+
deletePluginUserStore: deletePluginUserStore
|
|
53359
|
+
};
|
|
53360
|
+
|
|
53361
|
+
function getPluginUserStore(key) {
|
|
53362
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53363
|
+
return res.body().data();
|
|
53364
|
+
});
|
|
53365
|
+
}
|
|
53366
|
+
|
|
53367
|
+
function setPluginUserStore(key, value) {
|
|
53368
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53369
|
+
return res.body().data();
|
|
53370
|
+
});
|
|
53371
|
+
}
|
|
53372
|
+
|
|
53373
|
+
function deletePluginUserStore(key) {
|
|
53374
|
+
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53375
|
+
}
|
|
53376
|
+
}, [api]);
|
|
53377
|
+
}
|
|
53378
|
+
|
|
53379
|
+
function usePluginSubscriptionStore() {
|
|
53380
|
+
var subscriptionStore = React$d.useContext(PluginContext).subscriptionStore;
|
|
53381
|
+
return subscriptionStore;
|
|
53382
|
+
}
|
|
53383
|
+
|
|
53384
|
+
function getPluginSubscriptionStoreWrapper(pluginId) {
|
|
53385
|
+
var api = useApi();
|
|
53386
|
+
return React$d.useMemo(function () {
|
|
53387
|
+
return {
|
|
53388
|
+
getPluginSubscriptionStore: getPluginSubscriptionStore,
|
|
53389
|
+
setPluginSubscriptionStore: setPluginSubscriptionStore,
|
|
53390
|
+
deletePluginSubscriptionStore: deletePluginSubscriptionStore
|
|
53391
|
+
};
|
|
53392
|
+
|
|
53393
|
+
function getPluginSubscriptionStore(key) {
|
|
53394
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53395
|
+
return res.body().data();
|
|
53396
|
+
});
|
|
53397
|
+
}
|
|
53398
|
+
|
|
53399
|
+
function setPluginSubscriptionStore(key, value) {
|
|
53400
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53401
|
+
return res.body().data();
|
|
53402
|
+
});
|
|
53403
|
+
}
|
|
53404
|
+
|
|
53405
|
+
function deletePluginSubscriptionStore(key) {
|
|
53406
|
+
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53407
|
+
}
|
|
53408
|
+
}, [api]);
|
|
53409
|
+
}
|
|
53410
|
+
|
|
53347
53411
|
var PluginWrapper = function PluginWrapper(_a) {
|
|
53348
53412
|
var pluginId = _a.pluginId,
|
|
53349
53413
|
componentName = _a.componentName,
|
|
@@ -53362,7 +53426,9 @@
|
|
|
53362
53426
|
var pluginContext = React$d.useMemo(function () {
|
|
53363
53427
|
return {
|
|
53364
53428
|
settings: settings,
|
|
53365
|
-
storage: getStorageWrapper(pluginId, storage)
|
|
53429
|
+
storage: getStorageWrapper(pluginId, storage),
|
|
53430
|
+
userStore: getPluginUserStoreWrapper(pluginId),
|
|
53431
|
+
subscriptionStore: getPluginSubscriptionStoreWrapper(pluginId)
|
|
53366
53432
|
};
|
|
53367
53433
|
}, [pluginId, settings, storage]);
|
|
53368
53434
|
return jsxRuntime.jsx(React$d.Suspense, __assign$a({
|
|
@@ -53633,60 +53699,6 @@
|
|
|
53633
53699
|
}, void 0);
|
|
53634
53700
|
};
|
|
53635
53701
|
|
|
53636
|
-
function usePluginSubscriptionStore(pluginId) {
|
|
53637
|
-
var api = useApi();
|
|
53638
|
-
return React$d.useMemo(function () {
|
|
53639
|
-
return {
|
|
53640
|
-
getPluginSubscriptionStore: getPluginSubscriptionStore,
|
|
53641
|
-
setPluginSubscriptionStore: setPluginSubscriptionStore,
|
|
53642
|
-
deletePluginSubscriptionStore: deletePluginSubscriptionStore
|
|
53643
|
-
};
|
|
53644
|
-
|
|
53645
|
-
function getPluginSubscriptionStore(key) {
|
|
53646
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53647
|
-
return res.body().data();
|
|
53648
|
-
});
|
|
53649
|
-
}
|
|
53650
|
-
|
|
53651
|
-
function setPluginSubscriptionStore(key, value) {
|
|
53652
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53653
|
-
return res.body().data();
|
|
53654
|
-
});
|
|
53655
|
-
}
|
|
53656
|
-
|
|
53657
|
-
function deletePluginSubscriptionStore(key) {
|
|
53658
|
-
return api.custom("subscriptions/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53659
|
-
}
|
|
53660
|
-
}, [api]);
|
|
53661
|
-
}
|
|
53662
|
-
|
|
53663
|
-
function usePluginUserStore(pluginId) {
|
|
53664
|
-
var api = useApi();
|
|
53665
|
-
return React$d.useMemo(function () {
|
|
53666
|
-
return {
|
|
53667
|
-
getPluginUserStore: getPluginUserStore,
|
|
53668
|
-
setPluginUserStore: setPluginUserStore,
|
|
53669
|
-
deletePluginUserStore: deletePluginUserStore
|
|
53670
|
-
};
|
|
53671
|
-
|
|
53672
|
-
function getPluginUserStore(key) {
|
|
53673
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").get().then(function (res) {
|
|
53674
|
-
return res.body().data();
|
|
53675
|
-
});
|
|
53676
|
-
}
|
|
53677
|
-
|
|
53678
|
-
function setPluginUserStore(key, value) {
|
|
53679
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").put(value).then(function (res) {
|
|
53680
|
-
return res.body().data();
|
|
53681
|
-
});
|
|
53682
|
-
}
|
|
53683
|
-
|
|
53684
|
-
function deletePluginUserStore(key) {
|
|
53685
|
-
return api.custom("users/current/plugins/" + pluginId + "/store/" + key + "/value").delete();
|
|
53686
|
-
}
|
|
53687
|
-
}, [api]);
|
|
53688
|
-
}
|
|
53689
|
-
|
|
53690
53702
|
var DESCRIPTORS$c = descriptors$2;
|
|
53691
53703
|
var fails$4$2 = fails$g$2;
|
|
53692
53704
|
var objectKeys$4 = objectKeys$2$2;
|
|
@@ -87444,9 +87456,9 @@
|
|
|
87444
87456
|
}), void 0);
|
|
87445
87457
|
};
|
|
87446
87458
|
|
|
87447
|
-
var version$1 = "0.4.0-preview.
|
|
87448
|
-
var buildId = "
|
|
87449
|
-
var commitId = "
|
|
87459
|
+
var version$1 = "0.4.0-preview.286";
|
|
87460
|
+
var buildId = "100092";
|
|
87461
|
+
var commitId = "279e28333cf0b54d8170cfad496008e05dfb3764";
|
|
87450
87462
|
var isCustomerBuild = false;
|
|
87451
87463
|
var buildInfo = {
|
|
87452
87464
|
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.286",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "^16.14.0 || ^17",
|
|
7
7
|
"react-dom": "^16.14.0 || ^17",
|