@mjhls/mjh-framework 1.0.107 → 1.0.108

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/index.js CHANGED
@@ -29,7 +29,6 @@ var Navbar = _interopDefault(require('react-bootstrap/Navbar'));
29
29
  var NavDropdown = _interopDefault(require('react-bootstrap/NavDropdown'));
30
30
  var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
31
31
  var Breadcrumb = _interopDefault(require('react-bootstrap/Breadcrumb'));
32
- var cookie = _interopDefault(require('js-cookie'));
33
32
 
34
33
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
35
34
 
@@ -12351,48 +12350,6 @@ var NavMagazine = function NavMagazine(props) {
12351
12350
  })
12352
12351
  )
12353
12352
  ),
12354
- React__default.createElement(
12355
- Navbar.Collapse,
12356
- { id: 'basic-navbar-nav' },
12357
- React__default.createElement(
12358
- Nav,
12359
- { className: 'mr-auto' },
12360
- dataObject && dataObject.map(function (row, index) {
12361
- if (row.subQuery && row.subQuery.length > 0) {
12362
- return row.name ? React__default.createElement(
12363
- NavDropdown,
12364
- { key: index, title: row.name, id: 'basic-nav-dropdown' },
12365
- row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
12366
- if (ddRow.type === 'divider') {
12367
- return React__default.createElement(NavDropdown.Divider, { key: subIndex });
12368
- } else {
12369
- return ddRow.url && ddRow.name ? React__default.createElement(
12370
- Link,
12371
- { key: subIndex, href: ddRow.url },
12372
- React__default.createElement(
12373
- 'a',
12374
- { target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
12375
- ddRow.name
12376
- )
12377
- ) : null;
12378
- }
12379
- })
12380
- ) : null;
12381
- } else {
12382
- return row.url && row.name ? React__default.createElement(
12383
- Link,
12384
- { key: index, href: row.url },
12385
- React__default.createElement(
12386
- 'a',
12387
- { target: row.blank ? '_blank' : '_self', className: 'nav-link' },
12388
- row.name
12389
- )
12390
- ) : null;
12391
- }
12392
- })
12393
- ),
12394
- React__default.createElement(Search, { device: 'mobile' })
12395
- ),
12396
12353
  website && React__default.createElement(
12397
12354
  Navbar.Collapse,
12398
12355
  { id: 'basic-navbar-sub' },
@@ -20301,8 +20258,163 @@ var Breadcrumbs = function Breadcrumbs() {
20301
20258
  );
20302
20259
  };
20303
20260
 
20261
+ var js_cookie = createCommonjsModule(function (module, exports) {
20262
+ (function (factory) {
20263
+ var registeredInModuleLoader;
20264
+ {
20265
+ module.exports = factory();
20266
+ registeredInModuleLoader = true;
20267
+ }
20268
+ if (!registeredInModuleLoader) {
20269
+ var OldCookies = window.Cookies;
20270
+ var api = window.Cookies = factory();
20271
+ api.noConflict = function () {
20272
+ window.Cookies = OldCookies;
20273
+ return api;
20274
+ };
20275
+ }
20276
+ }(function () {
20277
+ function extend () {
20278
+ var i = 0;
20279
+ var result = {};
20280
+ for (; i < arguments.length; i++) {
20281
+ var attributes = arguments[ i ];
20282
+ for (var key in attributes) {
20283
+ result[key] = attributes[key];
20284
+ }
20285
+ }
20286
+ return result;
20287
+ }
20288
+
20289
+ function decode (s) {
20290
+ return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
20291
+ }
20292
+
20293
+ function init (converter) {
20294
+ function api() {}
20295
+
20296
+ function set (key, value, attributes) {
20297
+ if (typeof document === 'undefined') {
20298
+ return;
20299
+ }
20300
+
20301
+ attributes = extend({
20302
+ path: '/'
20303
+ }, api.defaults, attributes);
20304
+
20305
+ if (typeof attributes.expires === 'number') {
20306
+ attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
20307
+ }
20308
+
20309
+ // We're using "expires" because "max-age" is not supported by IE
20310
+ attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
20311
+
20312
+ try {
20313
+ var result = JSON.stringify(value);
20314
+ if (/^[\{\[]/.test(result)) {
20315
+ value = result;
20316
+ }
20317
+ } catch (e) {}
20318
+
20319
+ value = converter.write ?
20320
+ converter.write(value, key) :
20321
+ encodeURIComponent(String(value))
20322
+ .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
20323
+
20324
+ key = encodeURIComponent(String(key))
20325
+ .replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
20326
+ .replace(/[\(\)]/g, escape);
20327
+
20328
+ var stringifiedAttributes = '';
20329
+ for (var attributeName in attributes) {
20330
+ if (!attributes[attributeName]) {
20331
+ continue;
20332
+ }
20333
+ stringifiedAttributes += '; ' + attributeName;
20334
+ if (attributes[attributeName] === true) {
20335
+ continue;
20336
+ }
20337
+
20338
+ // Considers RFC 6265 section 5.2:
20339
+ // ...
20340
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
20341
+ // character:
20342
+ // Consume the characters of the unparsed-attributes up to,
20343
+ // not including, the first %x3B (";") character.
20344
+ // ...
20345
+ stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
20346
+ }
20347
+
20348
+ return (document.cookie = key + '=' + value + stringifiedAttributes);
20349
+ }
20350
+
20351
+ function get (key, json) {
20352
+ if (typeof document === 'undefined') {
20353
+ return;
20354
+ }
20355
+
20356
+ var jar = {};
20357
+ // To prevent the for loop in the first place assign an empty array
20358
+ // in case there are no cookies at all.
20359
+ var cookies = document.cookie ? document.cookie.split('; ') : [];
20360
+ var i = 0;
20361
+
20362
+ for (; i < cookies.length; i++) {
20363
+ var parts = cookies[i].split('=');
20364
+ var cookie = parts.slice(1).join('=');
20365
+
20366
+ if (!json && cookie.charAt(0) === '"') {
20367
+ cookie = cookie.slice(1, -1);
20368
+ }
20369
+
20370
+ try {
20371
+ var name = decode(parts[0]);
20372
+ cookie = (converter.read || converter)(cookie, name) ||
20373
+ decode(cookie);
20374
+
20375
+ if (json) {
20376
+ try {
20377
+ cookie = JSON.parse(cookie);
20378
+ } catch (e) {}
20379
+ }
20380
+
20381
+ jar[name] = cookie;
20382
+
20383
+ if (key === name) {
20384
+ break;
20385
+ }
20386
+ } catch (e) {}
20387
+ }
20388
+
20389
+ return key ? jar[key] : jar;
20390
+ }
20391
+
20392
+ api.set = set;
20393
+ api.get = function (key) {
20394
+ return get(key, false /* read as raw */);
20395
+ };
20396
+ api.getJSON = function (key) {
20397
+ return get(key, true /* read as json */);
20398
+ };
20399
+ api.remove = function (key, attributes) {
20400
+ set(key, '', extend(attributes, {
20401
+ expires: -1
20402
+ }));
20403
+ };
20404
+
20405
+ api.defaults = {};
20406
+
20407
+ api.withConverter = init;
20408
+
20409
+ return api;
20410
+ }
20411
+
20412
+ return init(function () {});
20413
+ }));
20414
+ });
20415
+
20304
20416
  var SetCookie = function SetCookie(key, value) {
20305
- cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
20417
+ js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
20306
20418
  };
20307
20419
 
20308
20420
  var BreadcrumbsExtended = function BreadcrumbsExtended(_ref) {