openfin-notifications 1.10.1 → 1.10.2-alpha-730
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/dist/client/index.d.ts +2 -2
- package/dist/client/indicator.d.ts +4 -0
- package/dist/client/main-bundle.js +30 -16
- package/dist/client/main-bundle.js.map +1 -1
- package/dist/client/openfin-notifications.js +1 -1
- package/dist/client/openfin-notifications.js.map +1 -1
- package/dist/client/provider.d.ts +7 -0
- package/dist/client/templates/templates.d.ts +187 -2
- package/dist/client/validation.d.ts +0 -9
- package/package.json +5 -2
package/dist/client/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ButtonOptions, ControlOptions } from './controls';
|
|
|
12
12
|
import { DistributiveOmit } from './internal';
|
|
13
13
|
import * as provider from './provider';
|
|
14
14
|
import { NotificationSource } from './source';
|
|
15
|
-
import { NotificationIndicator, IndicatorType } from './indicator';
|
|
15
|
+
import { NotificationIndicator, IndicatorType, IndicatorColor } from './indicator';
|
|
16
16
|
import { NotificationOptions } from './templates/templates';
|
|
17
17
|
export * from './actions';
|
|
18
18
|
export * from './controls';
|
|
@@ -21,7 +21,7 @@ export * from './forms';
|
|
|
21
21
|
export * from './stream';
|
|
22
22
|
export * from './templates';
|
|
23
23
|
export { provider, NotificationOptions };
|
|
24
|
-
export { NotificationIndicator, IndicatorType as NotificationIndicatorType };
|
|
24
|
+
export { NotificationIndicator, IndicatorColor, IndicatorType as NotificationIndicatorType };
|
|
25
25
|
/**
|
|
26
26
|
* The Notification Client library's version in semver format.
|
|
27
27
|
*
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* @module Notifications
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated
|
|
5
6
|
* Lists possible semantic use-cases for notifications, which can alter how the notification is presented to the user.
|
|
6
7
|
*
|
|
7
8
|
* Additional indicator types may be added in future releases.
|
|
@@ -11,6 +12,9 @@ export declare enum IndicatorType {
|
|
|
11
12
|
WARNING = "warning",
|
|
12
13
|
SUCCESS = "success"
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Lists possible colors available for use as NotificationIndicator background color.
|
|
17
|
+
*/
|
|
14
18
|
export declare enum IndicatorColor {
|
|
15
19
|
RED = "red",
|
|
16
20
|
GREEN = "green",
|
|
@@ -391,7 +391,7 @@ async function getServicePromise() {
|
|
|
391
391
|
}, 5000);
|
|
392
392
|
channelPromise = fin.InterApplicationBus.Channel.connect(internal_1.SERVICE_CHANNEL, {
|
|
393
393
|
wait: true,
|
|
394
|
-
payload: { version: '1.10.
|
|
394
|
+
payload: { version: '1.10.2-alpha-730' },
|
|
395
395
|
}).then((channel) => {
|
|
396
396
|
window.clearTimeout(timeoutHandle);
|
|
397
397
|
const eventRouter = getEventRouter();
|
|
@@ -495,16 +495,26 @@ exports.DeferredPromise = DeferredPromise;
|
|
|
495
495
|
"use strict";
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
*
|
|
498
|
+
* OpenFin Notification Templates API Version 1
|
|
499
499
|
*
|
|
500
500
|
* @module Templates
|
|
501
501
|
*/
|
|
502
502
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
503
|
-
exports.TemplateNames = void 0;
|
|
503
|
+
exports.TemplateFragmentNames = exports.PresentationTemplateFragmentNames = exports.ContainerTemplateFragmentNames = exports.TemplateNames = void 0;
|
|
504
504
|
exports.TemplateNames = {
|
|
505
505
|
markdown: 'markdown',
|
|
506
506
|
list: 'list',
|
|
507
|
+
custom: 'custom',
|
|
507
508
|
};
|
|
509
|
+
exports.ContainerTemplateFragmentNames = {
|
|
510
|
+
container: 'container',
|
|
511
|
+
};
|
|
512
|
+
exports.PresentationTemplateFragmentNames = {
|
|
513
|
+
text: 'text',
|
|
514
|
+
image: 'image',
|
|
515
|
+
list: 'list',
|
|
516
|
+
};
|
|
517
|
+
exports.TemplateFragmentNames = Object.assign(Object.assign({}, exports.ContainerTemplateFragmentNames), exports.PresentationTemplateFragmentNames);
|
|
508
518
|
|
|
509
519
|
|
|
510
520
|
/***/ }),
|
|
@@ -513,10 +523,7 @@ exports.TemplateNames = {
|
|
|
513
523
|
|
|
514
524
|
"use strict";
|
|
515
525
|
|
|
516
|
-
/* eslint-disable no-
|
|
517
|
-
/**
|
|
518
|
-
* @module NotificationCenter
|
|
519
|
-
*/
|
|
526
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-explicit-any */
|
|
520
527
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
521
528
|
if (k2 === undefined) k2 = k;
|
|
522
529
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -551,7 +558,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
551
558
|
return t;
|
|
552
559
|
};
|
|
553
560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
554
|
-
exports.getNotificationsCount = exports.toggleNotificationCenter = exports.clearAll = exports.getAll = exports.clear = exports.create = exports.removeEventListener = exports.addEventListener = exports.VERSION = exports.NotificationIndicatorType = exports.NotificationIndicator = exports.NotificationOptions = exports.provider = void 0;
|
|
561
|
+
exports.getNotificationsCount = exports.toggleNotificationCenter = exports.clearAll = exports.getAll = exports.clear = exports.create = exports.removeEventListener = exports.addEventListener = exports.VERSION = exports.NotificationIndicatorType = exports.IndicatorColor = exports.NotificationIndicator = exports.NotificationOptions = exports.provider = void 0;
|
|
562
|
+
/**
|
|
563
|
+
* @module NotificationCenter
|
|
564
|
+
*/
|
|
555
565
|
/**
|
|
556
566
|
* Need a comment block here so that the comment block above is interpreted as a file comment, and not a comment on the
|
|
557
567
|
* import below.
|
|
@@ -567,6 +577,7 @@ const validation_1 = __webpack_require__(12);
|
|
|
567
577
|
const indicator_1 = __webpack_require__(13);
|
|
568
578
|
Object.defineProperty(exports, "NotificationIndicator", { enumerable: true, get: function () { return indicator_1.NotificationIndicator; } });
|
|
569
579
|
Object.defineProperty(exports, "NotificationIndicatorType", { enumerable: true, get: function () { return indicator_1.IndicatorType; } });
|
|
580
|
+
Object.defineProperty(exports, "IndicatorColor", { enumerable: true, get: function () { return indicator_1.IndicatorColor; } });
|
|
570
581
|
const templates_1 = __webpack_require__(5);
|
|
571
582
|
Object.defineProperty(exports, "NotificationOptions", { enumerable: true, get: function () { return templates_1.NotificationOptions; } });
|
|
572
583
|
__exportStar(__webpack_require__(1), exports);
|
|
@@ -580,7 +591,7 @@ __exportStar(__webpack_require__(20), exports);
|
|
|
580
591
|
*
|
|
581
592
|
* This is the version which you are currently using.
|
|
582
593
|
*/
|
|
583
|
-
exports.VERSION = '1.10.
|
|
594
|
+
exports.VERSION = '1.10.2-alpha-730';
|
|
584
595
|
const eventHandler = connection_1.getEventRouter();
|
|
585
596
|
function parseEventWithNotification(event) {
|
|
586
597
|
const { notification } = event;
|
|
@@ -1506,6 +1517,9 @@ const internal_1 = __webpack_require__(0);
|
|
|
1506
1517
|
* versions, this API will indicate that the provider is disconnected.
|
|
1507
1518
|
*
|
|
1508
1519
|
* @since 0.11.2
|
|
1520
|
+
*
|
|
1521
|
+
* Note: Template API version is only available when the connected provider is verison 1.10.2 or later.
|
|
1522
|
+
*
|
|
1509
1523
|
*/
|
|
1510
1524
|
function getStatus() {
|
|
1511
1525
|
// We need to race a timeout here as we never reject if the provider is not connected.
|
|
@@ -1513,6 +1527,7 @@ function getStatus() {
|
|
|
1513
1527
|
return {
|
|
1514
1528
|
connected: false,
|
|
1515
1529
|
version: null,
|
|
1530
|
+
templateAPIVersion: null,
|
|
1516
1531
|
};
|
|
1517
1532
|
});
|
|
1518
1533
|
}
|
|
@@ -1577,6 +1592,7 @@ module.exports = function cmp (a, b) {
|
|
|
1577
1592
|
|
|
1578
1593
|
"use strict";
|
|
1579
1594
|
|
|
1595
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1580
1596
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1581
1597
|
exports.safeStringify = exports.validateEnvironment = exports.sanitizeEventType = exports.sanitizeFunction = void 0;
|
|
1582
1598
|
/**
|
|
@@ -1638,6 +1654,7 @@ exports.safeStringify = safeStringify;
|
|
|
1638
1654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1639
1655
|
exports.IndicatorColor = exports.IndicatorType = void 0;
|
|
1640
1656
|
/**
|
|
1657
|
+
* @deprecated
|
|
1641
1658
|
* Lists possible semantic use-cases for notifications, which can alter how the notification is presented to the user.
|
|
1642
1659
|
*
|
|
1643
1660
|
* Additional indicator types may be added in future releases.
|
|
@@ -1648,6 +1665,9 @@ var IndicatorType;
|
|
|
1648
1665
|
IndicatorType["WARNING"] = "warning";
|
|
1649
1666
|
IndicatorType["SUCCESS"] = "success";
|
|
1650
1667
|
})(IndicatorType = exports.IndicatorType || (exports.IndicatorType = {}));
|
|
1668
|
+
/**
|
|
1669
|
+
* Lists possible colors available for use as NotificationIndicator background color.
|
|
1670
|
+
*/
|
|
1651
1671
|
var IndicatorColor;
|
|
1652
1672
|
(function (IndicatorColor) {
|
|
1653
1673
|
IndicatorColor["RED"] = "red";
|
|
@@ -1715,13 +1735,7 @@ __exportStar(__webpack_require__(18), exports);
|
|
|
1715
1735
|
|
|
1716
1736
|
"use strict";
|
|
1717
1737
|
|
|
1718
|
-
|
|
1719
|
-
* When you make a form, you provide a list of [[FormFields]]. Each FormField contains the ingredients to make a single widget in the form.
|
|
1720
|
-
* The actual definitions of the widgets are derived from [[BaseWidgetSpec]].
|
|
1721
|
-
*
|
|
1722
|
-
* A FormField contains the type of data, the key to store the user input into [[CustomDataWithForms]], and some additional configuration.
|
|
1723
|
-
* @module FormFields
|
|
1724
|
-
*/
|
|
1738
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1725
1739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1726
1740
|
exports.FieldType = void 0;
|
|
1727
1741
|
/**
|