@bigbinary/neeto-molecules 4.1.17 → 4.1.19
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/Builder.js +1 -1
- package/dist/CalendarView.js +1 -1
- package/dist/{Columns-D51hN86M.js → Columns-6JwGF3TU.js} +2 -2
- package/dist/{Columns-D51hN86M.js.map → Columns-6JwGF3TU.js.map} +1 -1
- package/dist/Columns.js +1 -1
- package/dist/FloatingActionMenu.js +113 -67
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/IpRestriction.js +47 -47
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.js +1 -1
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/Onboarding.js +1 -236
- package/dist/Onboarding.js.map +1 -1
- package/dist/PhoneNumber.js +4 -4
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/SendToFields.js +1 -1
- package/dist/SessionEnvironment.js +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SubHeader.js +1 -1
- package/dist/Taxonomy.js +1 -1
- package/dist/cjs/BrowserSupport.js +14 -14
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/Builder.js +8 -8
- package/dist/cjs/Builder.js.map +1 -1
- package/dist/cjs/Engagements.js +3 -3
- package/dist/cjs/Engagements.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +115 -69
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/IconPicker.js +3 -3
- package/dist/cjs/IconPicker.js.map +1 -1
- package/dist/cjs/Insights.js +24 -24
- package/dist/cjs/Insights.js.map +1 -1
- package/dist/cjs/IpRestriction.js +52 -52
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +8 -8
- package/dist/cjs/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/MadeWith.js +3 -3
- package/dist/cjs/MadeWith.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +6 -6
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/Onboarding.js +1 -236
- package/dist/cjs/Onboarding.js.map +1 -1
- package/dist/cjs/PhoneNumber.js +3 -3
- package/dist/cjs/PhoneNumber.js.map +1 -1
- package/dist/cjs/Schedule.js +6 -6
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/SendToFields.js +4 -4
- package/dist/cjs/SendToFields.js.map +1 -1
- package/dist/cjs/SessionEnvironment.js +8 -8
- package/dist/cjs/SessionEnvironment.js.map +1 -1
- package/dist/cjs/Settings.js +6 -6
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/Sidebar.js +3 -3
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/StatusDropdown.js +7 -7
- package/dist/cjs/StatusDropdown.js.map +1 -1
- package/dist/cjs/{phone-number-CKeWRcTL.js → phone-number-ycxkC0mm.js} +10 -10
- package/dist/cjs/{phone-number-CKeWRcTL.js.map → phone-number-ycxkC0mm.js.map} +1 -1
- package/dist/{phone-number-HpVGHffA.js → phone-number--BBsxLSh.js} +2 -2
- package/dist/{phone-number-HpVGHffA.js.map → phone-number--BBsxLSh.js.map} +1 -1
- package/package.json +3 -3
- package/src/translations/en.json +3 -4
package/dist/IpRestriction.js
CHANGED
|
@@ -34,9 +34,9 @@ var src = {};
|
|
|
34
34
|
|
|
35
35
|
var BinaryUtils = {};
|
|
36
36
|
|
|
37
|
-
(function (exports) {
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.matchingBitCount = exports.intLog2 = exports.cidrPrefixToMaskBinaryString = exports.leftPadWithZeroBit = exports.dottedDecimalNotationToBinaryString = exports.parseBinaryStringToBigInt = exports.decimalNumberToOctetString = exports.numberToBinaryString = void 0;
|
|
37
|
+
(function (exports$1) {
|
|
38
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
39
|
+
exports$1.matchingBitCount = exports$1.intLog2 = exports$1.cidrPrefixToMaskBinaryString = exports$1.leftPadWithZeroBit = exports$1.dottedDecimalNotationToBinaryString = exports$1.parseBinaryStringToBigInt = exports$1.decimalNumberToOctetString = exports$1.numberToBinaryString = void 0;
|
|
40
40
|
/**
|
|
41
41
|
* Converts a decimal number to binary string
|
|
42
42
|
*
|
|
@@ -46,7 +46,7 @@ var BinaryUtils = {};
|
|
|
46
46
|
let numberToBinaryString = (num) => {
|
|
47
47
|
return num.toString(2);
|
|
48
48
|
};
|
|
49
|
-
exports.numberToBinaryString = numberToBinaryString;
|
|
49
|
+
exports$1.numberToBinaryString = numberToBinaryString;
|
|
50
50
|
/**
|
|
51
51
|
* Converts a decimal number to binary octet (8 bit) string. If needed the octet will be padded with zeros
|
|
52
52
|
* to make it up to 8 bits
|
|
@@ -55,14 +55,14 @@ var BinaryUtils = {};
|
|
|
55
55
|
* @returns {string} the octet string representation of given number
|
|
56
56
|
*/
|
|
57
57
|
let decimalNumberToOctetString = (num) => {
|
|
58
|
-
let binaryString = (0, exports.numberToBinaryString)(num);
|
|
58
|
+
let binaryString = (0, exports$1.numberToBinaryString)(num);
|
|
59
59
|
let length = binaryString.length;
|
|
60
60
|
if (length > 8) {
|
|
61
61
|
throw new Error("Given decimal in binary contains digits greater than an octet");
|
|
62
62
|
}
|
|
63
|
-
return (0, exports.leftPadWithZeroBit)(binaryString, 8);
|
|
63
|
+
return (0, exports$1.leftPadWithZeroBit)(binaryString, 8);
|
|
64
64
|
};
|
|
65
|
-
exports.decimalNumberToOctetString = decimalNumberToOctetString;
|
|
65
|
+
exports$1.decimalNumberToOctetString = decimalNumberToOctetString;
|
|
66
66
|
/**
|
|
67
67
|
* Parses number in binary to number in BigInt
|
|
68
68
|
*
|
|
@@ -72,7 +72,7 @@ var BinaryUtils = {};
|
|
|
72
72
|
let parseBinaryStringToBigInt = (num) => {
|
|
73
73
|
return BigInt(`0b${num}`);
|
|
74
74
|
};
|
|
75
|
-
exports.parseBinaryStringToBigInt = parseBinaryStringToBigInt;
|
|
75
|
+
exports$1.parseBinaryStringToBigInt = parseBinaryStringToBigInt;
|
|
76
76
|
/**
|
|
77
77
|
* Given an IPv4 number in dot-decimal notated string, e.g 192.168.0.1 converts it to
|
|
78
78
|
* binary string, e.g. '11000000101010000000000000000001'
|
|
@@ -83,10 +83,10 @@ var BinaryUtils = {};
|
|
|
83
83
|
let dottedDecimalNotationToBinaryString = (dottedDecimal) => {
|
|
84
84
|
let stringOctets = dottedDecimal.split(".");
|
|
85
85
|
return stringOctets.reduce((binaryAsString, octet) => {
|
|
86
|
-
return binaryAsString.concat((0, exports.decimalNumberToOctetString)(parseInt(octet)));
|
|
86
|
+
return binaryAsString.concat((0, exports$1.decimalNumberToOctetString)(parseInt(octet)));
|
|
87
87
|
}, '');
|
|
88
88
|
};
|
|
89
|
-
exports.dottedDecimalNotationToBinaryString = dottedDecimalNotationToBinaryString;
|
|
89
|
+
exports$1.dottedDecimalNotationToBinaryString = dottedDecimalNotationToBinaryString;
|
|
90
90
|
/**
|
|
91
91
|
* Given a binary string, adds a number of zero to the left until string is as long as the given string length
|
|
92
92
|
* @param {string} binaryString the string to pad
|
|
@@ -99,7 +99,7 @@ var BinaryUtils = {};
|
|
|
99
99
|
}
|
|
100
100
|
return "0".repeat(finalStringLength - binaryString.length).concat(binaryString);
|
|
101
101
|
};
|
|
102
|
-
exports.leftPadWithZeroBit = leftPadWithZeroBit;
|
|
102
|
+
exports$1.leftPadWithZeroBit = leftPadWithZeroBit;
|
|
103
103
|
/**
|
|
104
104
|
* Given the prefix portion of a cidr notation and the type of IP number, returns the mask in binary string
|
|
105
105
|
*
|
|
@@ -120,7 +120,7 @@ var BinaryUtils = {};
|
|
|
120
120
|
let offBits = '0'.repeat(cidrUpperValue - cidrPrefix);
|
|
121
121
|
return `${onBits}${offBits}`;
|
|
122
122
|
};
|
|
123
|
-
exports.cidrPrefixToMaskBinaryString = cidrPrefixToMaskBinaryString;
|
|
123
|
+
exports$1.cidrPrefixToMaskBinaryString = cidrPrefixToMaskBinaryString;
|
|
124
124
|
/**
|
|
125
125
|
* Calculates the log, to base 2 of given number.
|
|
126
126
|
*
|
|
@@ -147,7 +147,7 @@ var BinaryUtils = {};
|
|
|
147
147
|
}
|
|
148
148
|
return result;
|
|
149
149
|
};
|
|
150
|
-
exports.intLog2 = intLog2;
|
|
150
|
+
exports$1.intLog2 = intLog2;
|
|
151
151
|
/**
|
|
152
152
|
* Starting from the most significant bit (from left) returns the number of first bits from both string that are equal
|
|
153
153
|
* @param firstBinaryString first binary string
|
|
@@ -173,7 +173,7 @@ var BinaryUtils = {};
|
|
|
173
173
|
}
|
|
174
174
|
return count;
|
|
175
175
|
};
|
|
176
|
-
exports.matchingBitCount = matchingBitCount;
|
|
176
|
+
exports$1.matchingBitCount = matchingBitCount;
|
|
177
177
|
|
|
178
178
|
} (BinaryUtils));
|
|
179
179
|
|
|
@@ -188,9 +188,9 @@ var hasRequiredIPv6Utils;
|
|
|
188
188
|
function requireIPv6Utils () {
|
|
189
189
|
if (hasRequiredIPv6Utils) return IPv6Utils;
|
|
190
190
|
hasRequiredIPv6Utils = 1;
|
|
191
|
-
(function (exports) {
|
|
192
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
193
|
-
exports.collapseIPv6Number = exports.expandIPv6Number = void 0;
|
|
191
|
+
(function (exports$1) {
|
|
192
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
193
|
+
exports$1.collapseIPv6Number = exports$1.expandIPv6Number = void 0;
|
|
194
194
|
const BinaryUtils_1 = BinaryUtils;
|
|
195
195
|
const Validator_1 = requireValidator();
|
|
196
196
|
let extractPrefix = (ipv6String) => {
|
|
@@ -241,7 +241,7 @@ function requireIPv6Utils () {
|
|
|
241
241
|
return `${expandWithZero(ipv6String.split(":"))}${prefix}`;
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
exports.expandIPv6Number = expandIPv6Number;
|
|
244
|
+
exports$1.expandIPv6Number = expandIPv6Number;
|
|
245
245
|
// Helper function to shorten hexadecatets
|
|
246
246
|
const shortenHexadecatet = (hex) => {
|
|
247
247
|
// Input hex is expected to be like "0000", "0DB8", "001A" from expanded form
|
|
@@ -256,7 +256,7 @@ function requireIPv6Utils () {
|
|
|
256
256
|
let expandedIPv6 = "";
|
|
257
257
|
try {
|
|
258
258
|
// Expand to full 8 segments, no prefix internally for processing
|
|
259
|
-
let tempExpanded = (0, exports.expandIPv6Number)(processedIPv6String);
|
|
259
|
+
let tempExpanded = (0, exports$1.expandIPv6Number)(processedIPv6String);
|
|
260
260
|
if (tempExpanded.includes("/")) {
|
|
261
261
|
expandedIPv6 = tempExpanded.split("/")[0];
|
|
262
262
|
}
|
|
@@ -337,7 +337,7 @@ function requireIPv6Utils () {
|
|
|
337
337
|
}
|
|
338
338
|
return finalStr + originalPrefix;
|
|
339
339
|
};
|
|
340
|
-
exports.collapseIPv6Number = collapseIPv6Number;
|
|
340
|
+
exports$1.collapseIPv6Number = collapseIPv6Number;
|
|
341
341
|
|
|
342
342
|
} (IPv6Utils));
|
|
343
343
|
return IPv6Utils;
|
|
@@ -350,9 +350,9 @@ var hasRequiredHexadecimalUtils;
|
|
|
350
350
|
function requireHexadecimalUtils () {
|
|
351
351
|
if (hasRequiredHexadecimalUtils) return HexadecimalUtils;
|
|
352
352
|
hasRequiredHexadecimalUtils = 1;
|
|
353
|
-
(function (exports) {
|
|
354
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
355
|
-
exports.hexadectetNotationToBinaryString = exports.binaryStringToHexadecimalString = exports.colonHexadecimalNotationToBinaryString = exports.hexadecimalStringToHexadecatetString = exports.hexadecimalStringToBinaryString = exports.bigIntToHexadecimalString = void 0;
|
|
353
|
+
(function (exports$1) {
|
|
354
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
355
|
+
exports$1.hexadectetNotationToBinaryString = exports$1.binaryStringToHexadecimalString = exports$1.colonHexadecimalNotationToBinaryString = exports$1.hexadecimalStringToHexadecatetString = exports$1.hexadecimalStringToBinaryString = exports$1.bigIntToHexadecimalString = void 0;
|
|
356
356
|
const IPv6Utils_1 = requireIPv6Utils();
|
|
357
357
|
const BinaryUtils_1 = BinaryUtils;
|
|
358
358
|
/**
|
|
@@ -363,7 +363,7 @@ function requireHexadecimalUtils () {
|
|
|
363
363
|
let bigIntToHexadecimalString = (num) => {
|
|
364
364
|
return num.toString(16);
|
|
365
365
|
};
|
|
366
|
-
exports.bigIntToHexadecimalString = bigIntToHexadecimalString;
|
|
366
|
+
exports$1.bigIntToHexadecimalString = bigIntToHexadecimalString;
|
|
367
367
|
/**
|
|
368
368
|
* Converts a number in hexadecimal (base 16) to binary string
|
|
369
369
|
* @param {string} hexadecimalString the number in base 16
|
|
@@ -373,7 +373,7 @@ function requireHexadecimalUtils () {
|
|
|
373
373
|
let inDecimal = BigInt(`0x${hexadecimalString}`);
|
|
374
374
|
return inDecimal.toString(2);
|
|
375
375
|
};
|
|
376
|
-
exports.hexadecimalStringToBinaryString = hexadecimalStringToBinaryString;
|
|
376
|
+
exports$1.hexadecimalStringToBinaryString = hexadecimalStringToBinaryString;
|
|
377
377
|
/**
|
|
378
378
|
* Converts a number in hexadecimal (base 16) to binary hexadecatet string.
|
|
379
379
|
* This means the bits in the output cannot be more than 16
|
|
@@ -381,14 +381,14 @@ function requireHexadecimalUtils () {
|
|
|
381
381
|
* @param hexadecimalString {string} the number converted to binary hexadecatet string
|
|
382
382
|
*/
|
|
383
383
|
let hexadecimalStringToHexadecatetString = (hexadecimalString) => {
|
|
384
|
-
let binaryString = (0, exports.hexadecimalStringToBinaryString)(hexadecimalString);
|
|
384
|
+
let binaryString = (0, exports$1.hexadecimalStringToBinaryString)(hexadecimalString);
|
|
385
385
|
let length = binaryString.length;
|
|
386
386
|
if (length > 16) {
|
|
387
387
|
throw new Error("Given decimal in binary contains digits greater than an Hexadecatet");
|
|
388
388
|
}
|
|
389
389
|
return (0, BinaryUtils_1.leftPadWithZeroBit)(binaryString, 16);
|
|
390
390
|
};
|
|
391
|
-
exports.hexadecimalStringToHexadecatetString = hexadecimalStringToHexadecatetString;
|
|
391
|
+
exports$1.hexadecimalStringToHexadecatetString = hexadecimalStringToHexadecatetString;
|
|
392
392
|
/**
|
|
393
393
|
* Given an IPv6 number in hexadecimal notated string, e.g 2001:0db8:0000:0000:0000:0000:0000:0000 converts it to
|
|
394
394
|
* binary string
|
|
@@ -400,10 +400,10 @@ function requireHexadecimalUtils () {
|
|
|
400
400
|
let expandedIPv6 = (0, IPv6Utils_1.expandIPv6Number)(hexadecimalString);
|
|
401
401
|
let stringHexadecimal = expandedIPv6.split(":");
|
|
402
402
|
return stringHexadecimal.reduce((binaryAsString, hexidecimal) => {
|
|
403
|
-
return binaryAsString.concat((0, exports.hexadecimalStringToHexadecatetString)(hexidecimal));
|
|
403
|
+
return binaryAsString.concat((0, exports$1.hexadecimalStringToHexadecatetString)(hexidecimal));
|
|
404
404
|
}, '');
|
|
405
405
|
};
|
|
406
|
-
exports.colonHexadecimalNotationToBinaryString = colonHexadecimalNotationToBinaryString;
|
|
406
|
+
exports$1.colonHexadecimalNotationToBinaryString = colonHexadecimalNotationToBinaryString;
|
|
407
407
|
/**
|
|
408
408
|
* Converts number in binary string to hexadecimal string
|
|
409
409
|
* @param {string} num in binary string
|
|
@@ -414,7 +414,7 @@ function requireHexadecimalUtils () {
|
|
|
414
414
|
let inDecimal = BigInt(`0b${num}`);
|
|
415
415
|
return inDecimal.toString(16);
|
|
416
416
|
};
|
|
417
|
-
exports.binaryStringToHexadecimalString = binaryStringToHexadecimalString;
|
|
417
|
+
exports$1.binaryStringToHexadecimalString = binaryStringToHexadecimalString;
|
|
418
418
|
/**
|
|
419
419
|
* Converts a given IPv6 number expressed in the hexadecimal string notation into a 16 bit binary number in string
|
|
420
420
|
* @param {string} hexadectetString the IPv6 number
|
|
@@ -424,10 +424,10 @@ function requireHexadecimalUtils () {
|
|
|
424
424
|
let expand = (0, IPv6Utils_1.expandIPv6Number)(hexadectetString);
|
|
425
425
|
let hexadecimals = expand.split(":");
|
|
426
426
|
return hexadecimals.reduce((hexadecimalAsString, hexavalue) => {
|
|
427
|
-
return hexadecimalAsString.concat((0, BinaryUtils_1.leftPadWithZeroBit)((0, exports.hexadecimalStringToBinaryString)(hexavalue), 16));
|
|
427
|
+
return hexadecimalAsString.concat((0, BinaryUtils_1.leftPadWithZeroBit)((0, exports$1.hexadecimalStringToBinaryString)(hexavalue), 16));
|
|
428
428
|
}, '');
|
|
429
429
|
};
|
|
430
|
-
exports.hexadectetNotationToBinaryString = hexadectetNotationToBinaryString;
|
|
430
|
+
exports$1.hexadectetNotationToBinaryString = hexadectetNotationToBinaryString;
|
|
431
431
|
|
|
432
432
|
} (HexadecimalUtils));
|
|
433
433
|
return HexadecimalUtils;
|
|
@@ -3165,7 +3165,7 @@ class SortedSet {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
3167
|
|
|
3168
|
-
(function (exports) {
|
|
3168
|
+
(function (exports$1) {
|
|
3169
3169
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3170
3170
|
if (k2 === undefined) k2 = k;
|
|
3171
3171
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -3177,10 +3177,10 @@ class SortedSet {
|
|
|
3177
3177
|
if (k2 === undefined) k2 = k;
|
|
3178
3178
|
o[k2] = m[k];
|
|
3179
3179
|
}));
|
|
3180
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3181
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3180
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports$1) {
|
|
3181
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
3182
3182
|
};
|
|
3183
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3183
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
3184
3184
|
/**
|
|
3185
3185
|
* Exposes all the library's modules making them available from the "ip-num" module.
|
|
3186
3186
|
* Making it possible to get access to all any of the modules by doing require("ip-num")
|
|
@@ -3190,17 +3190,17 @@ class SortedSet {
|
|
|
3190
3190
|
* ipNum.IPv4CidrRange // gets access to IPv4CidrRange
|
|
3191
3191
|
* ipNum.Asn // gets access to Asn
|
|
3192
3192
|
*/
|
|
3193
|
-
__exportStar(BinaryUtils, exports);
|
|
3194
|
-
__exportStar(Hexadecatet$1, exports);
|
|
3195
|
-
__exportStar(requireHexadecimalUtils(), exports);
|
|
3196
|
-
__exportStar(IPNumber, exports);
|
|
3197
|
-
__exportStar(IPNumType, exports);
|
|
3198
|
-
__exportStar(IPPool, exports);
|
|
3199
|
-
__exportStar(IPRange, exports);
|
|
3200
|
-
__exportStar(requireIPv6Utils(), exports);
|
|
3201
|
-
__exportStar(Octet$1, exports);
|
|
3202
|
-
__exportStar(Prefix, exports);
|
|
3203
|
-
__exportStar(requireValidator(), exports);
|
|
3193
|
+
__exportStar(BinaryUtils, exports$1);
|
|
3194
|
+
__exportStar(Hexadecatet$1, exports$1);
|
|
3195
|
+
__exportStar(requireHexadecimalUtils(), exports$1);
|
|
3196
|
+
__exportStar(IPNumber, exports$1);
|
|
3197
|
+
__exportStar(IPNumType, exports$1);
|
|
3198
|
+
__exportStar(IPPool, exports$1);
|
|
3199
|
+
__exportStar(IPRange, exports$1);
|
|
3200
|
+
__exportStar(requireIPv6Utils(), exports$1);
|
|
3201
|
+
__exportStar(Octet$1, exports$1);
|
|
3202
|
+
__exportStar(Prefix, exports$1);
|
|
3203
|
+
__exportStar(requireValidator(), exports$1);
|
|
3204
3204
|
|
|
3205
3205
|
} (src));
|
|
3206
3206
|
|