tutuca 0.9.1 → 0.9.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Mariano Guerra
3
+ Copyright (c) 2025 Mariano Guerra
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -7445,7 +7445,7 @@ function* klistEntries(seq) {
7445
7445
  }
7446
7446
  }
7447
7447
  seqInfoByClass.set(KList, ["data-sk", klistEntries]);
7448
- // deps/vdom.js
7448
+ // src/vdom.js
7449
7449
  function isHtmlAttribute(propName) {
7450
7450
  return propName[4] === "-" && (propName[0] === "d" || propName[0] === "a");
7451
7451
  }
@@ -7501,8 +7501,6 @@ function patchObject(node, previous, propName, propValue) {
7501
7501
  }
7502
7502
 
7503
7503
  class Warning {
7504
- type;
7505
- message;
7506
7504
  constructor(type, message) {
7507
7505
  this.type = type;
7508
7506
  this.message = message;
@@ -7510,9 +7508,6 @@ class Warning {
7510
7508
  }
7511
7509
 
7512
7510
  class DuplicatedKeysWarning extends Warning {
7513
- duplicatedKeys;
7514
- parentTag;
7515
- parentIndex;
7516
7511
  constructor(duplicatedKeys, parentTag, parentIndex) {
7517
7512
  const keys = [...duplicatedKeys].join(", ");
7518
7513
  super("DuplicatedKeys", `Duplicate keys found: [${keys}] in ${parentTag || "fragment"} at index ${parentIndex}. Nodes with duplicated keys are matched positionally.`);
@@ -7560,7 +7555,6 @@ function addChild(normalizedChildren, child) {
7560
7555
  }
7561
7556
 
7562
7557
  class VText extends VBase {
7563
- text;
7564
7558
  constructor(text) {
7565
7559
  super();
7566
7560
  this.text = String(text);
@@ -7577,7 +7571,6 @@ class VText extends VBase {
7577
7571
  }
7578
7572
 
7579
7573
  class VComment extends VBase {
7580
- text;
7581
7574
  constructor(text) {
7582
7575
  super();
7583
7576
  this.text = text;
@@ -7594,7 +7587,6 @@ class VComment extends VBase {
7594
7587
  }
7595
7588
 
7596
7589
  class VFragment extends VBase {
7597
- childs;
7598
7590
  constructor(childs) {
7599
7591
  super();
7600
7592
  const normalized = [];
@@ -7628,12 +7620,6 @@ class VFragment extends VBase {
7628
7620
  }
7629
7621
 
7630
7622
  class VNode2 extends VBase {
7631
- tag;
7632
- attrs;
7633
- childs;
7634
- key;
7635
- namespace;
7636
- attrCount;
7637
7623
  constructor(tag, attrs, childs, key, namespace) {
7638
7624
  super();
7639
7625
  this.tag = tag;
@@ -8038,10 +8024,10 @@ async function compileClassesToStyle(app, compileClasses, styleId = "margaui-css
8038
8024
  injectCss(styleId, css2);
8039
8025
  return t2 - t1;
8040
8026
  }
8041
- async function compileClassesToStyleText(app, compileClasses) {
8027
+ async function compileClassesToStyleText(app, compileClasses, extraCSSClasses) {
8042
8028
  app.ParseContext = ParseCtxClassSetCollector;
8043
8029
  app.compile();
8044
- const classes = new Set;
8030
+ const classes = new Set(extraCSSClasses ?? []);
8045
8031
  for (const Comp of app.comps.byId.values()) {
8046
8032
  for (const key in Comp.views) {
8047
8033
  const view = Comp.views[key];
@@ -8284,6 +8270,7 @@ export {
8284
8270
  isKeyed,
8285
8271
  isIndexed,
8286
8272
  isMap as isIMap,
8273
+ injectCss,
8287
8274
  html,
8288
8275
  fieldsByClass,
8289
8276
  css,