proto-sudoku-wc 0.0.689 → 0.0.691

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.
Files changed (38) hide show
  1. package/dist/cjs/{index-4683daff.js → index-af8bf740.js} +15 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/proto-sudoku-wc.cjs.js +2 -2
  4. package/dist/cjs/proto-sudoku.cjs.entry.js +352 -352
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/proto-sudoku/alert.js +2 -2
  7. package/dist/collection/components/proto-sudoku/alerts.js +3 -3
  8. package/dist/collection/components/proto-sudoku/alien.js +5 -5
  9. package/dist/collection/components/proto-sudoku/button.js +10 -10
  10. package/dist/collection/components/proto-sudoku/cell.js +20 -20
  11. package/dist/collection/components/proto-sudoku/eswat2-io.js +1 -1
  12. package/dist/collection/components/proto-sudoku/fingerprint.js +5 -5
  13. package/dist/collection/components/proto-sudoku/header.js +1 -1
  14. package/dist/collection/components/proto-sudoku/keys.js +10 -10
  15. package/dist/collection/components/proto-sudoku/proto-sudoku.js +62 -62
  16. package/dist/collection/components/proto-sudoku/spinner.js +5 -5
  17. package/dist/collection/components/proto-sudoku/sudoku-board.js +6 -6
  18. package/dist/collection/components/proto-sudoku/tool-bar.js +8 -8
  19. package/dist/collection/components/proto-sudoku/tw-label.js +1 -1
  20. package/dist/collection/utils/bag.js +23 -23
  21. package/dist/collection/utils/store.js +209 -209
  22. package/dist/collection/utils/tw.js +1 -1
  23. package/dist/esm/{index-3ccc3f4a.js → index-e105e4de.js} +15 -4
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/proto-sudoku-wc.js +3 -3
  26. package/dist/esm/proto-sudoku.entry.js +352 -352
  27. package/dist/proto-sudoku-wc/{p-4ab7e5a2.js → p-5c418b3c.js} +1 -1
  28. package/dist/proto-sudoku-wc/{p-4a14cce4.entry.js → p-c8bb72eb.entry.js} +1 -1
  29. package/dist/proto-sudoku-wc/proto-sudoku-wc.esm.js +1 -1
  30. package/dist/types/components/proto-sudoku/alert.d.ts +3 -3
  31. package/dist/types/components/proto-sudoku/button.d.ts +3 -3
  32. package/dist/types/components/proto-sudoku/cell.d.ts +4 -4
  33. package/dist/types/components/proto-sudoku/proto-sudoku.d.ts +4 -4
  34. package/dist/types/stencil-public-runtime.d.ts +8 -0
  35. package/dist/types/utils/bag.d.ts +10 -10
  36. package/dist/types/utils/store.d.ts +5 -5
  37. package/dist/types/utils/types.d.ts +33 -33
  38. package/package.json +5 -5
@@ -468,7 +468,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
468
468
  elm[memberName] = newValue;
469
469
  }
470
470
  }
471
- catch (e) { }
471
+ catch (e) {
472
+ /**
473
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
474
+ */
475
+ }
472
476
  }
473
477
  if (newValue == null || newValue === false) {
474
478
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -487,6 +491,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
487
491
  }
488
492
  };
489
493
  const parseClassListRegex = /\s/;
494
+ /**
495
+ * Parsed a string of classnames into an array
496
+ * @param value className string, e.g. "foo bar baz"
497
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
498
+ */
490
499
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
491
500
  const CAPTURE_EVENT_SUFFIX = 'Capture';
492
501
  const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
@@ -1226,10 +1235,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1226
1235
  */
1227
1236
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1228
1237
  var _a;
1238
+ const prototype = Cstr.prototype;
1229
1239
  if (cmpMeta.$members$) {
1230
1240
  // It's better to have a const than two Object.entries()
1231
1241
  const members = Object.entries(cmpMeta.$members$);
1232
- const prototype = Cstr.prototype;
1233
1242
  members.map(([memberName, [memberFlags]]) => {
1234
1243
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1235
1244
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1252,6 +1261,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1252
1261
  const attrNameToPropName = new Map();
1253
1262
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1254
1263
  plt.jmp(() => {
1264
+ var _a;
1255
1265
  const propName = attrNameToPropName.get(attrName);
1256
1266
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1257
1267
  // in the case where an attribute was set inline.
@@ -1307,11 +1317,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1307
1317
  // 1. The instance is ready
1308
1318
  // 2. The watchers are ready
1309
1319
  // 3. The value has changed
1310
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1320
+ if (flags &&
1321
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1311
1322
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1312
1323
  newValue !== oldValue) {
1313
1324
  const instance = hostRef.$lazyInstance$ ;
1314
- const entry = cmpMeta.$watchers$[attrName];
1325
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1315
1326
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1316
1327
  if (instance[callbackName] != null) {
1317
1328
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4683daff.js');
5
+ const index = require('./index-af8bf740.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4683daff.js');
5
+ const index = require('./index-af8bf740.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.7.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.8.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-sudoku-wc.cjs.js', document.baseURI).href));