structile 6.3.0__tar.gz → 6.8.0__tar.gz

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 (31) hide show
  1. {structile-6.3.0/structile.egg-info → structile-6.8.0}/PKG-INFO +1 -1
  2. structile-6.8.0/VERSION +1 -0
  3. {structile-6.3.0 → structile-6.8.0}/structile/dom_lite.js +22 -0
  4. structile-6.8.0/structile/static/structile.prod.html +188 -0
  5. {structile-6.3.0 → structile-6.8.0/structile.egg-info}/PKG-INFO +1 -1
  6. structile-6.3.0/VERSION +0 -1
  7. structile-6.3.0/structile/static/structile.prod.html +0 -183
  8. {structile-6.3.0 → structile-6.8.0}/LICENSE +0 -0
  9. {structile-6.3.0 → structile-6.8.0}/MANIFEST.in +0 -0
  10. {structile-6.3.0 → structile-6.8.0}/README.pypi.md +0 -0
  11. {structile-6.3.0 → structile-6.8.0}/pyproject.toml +0 -0
  12. {structile-6.3.0 → structile-6.8.0}/setup.cfg +0 -0
  13. {structile-6.3.0 → structile-6.8.0}/structile/__init__.py +0 -0
  14. {structile-6.3.0 → structile-6.8.0}/structile/__main__.py +0 -0
  15. {structile-6.3.0 → structile-6.8.0}/structile/_dom_lite.py +0 -0
  16. {structile-6.3.0 → structile-6.8.0}/structile/_log.py +0 -0
  17. {structile-6.3.0 → structile-6.8.0}/structile/_paths.py +0 -0
  18. {structile-6.3.0 → structile-6.8.0}/structile/_plugins.py +0 -0
  19. {structile-6.3.0 → structile-6.8.0}/structile/config.py +0 -0
  20. {structile-6.3.0 → structile-6.8.0}/structile/convert.py +0 -0
  21. {structile-6.3.0 → structile-6.8.0}/structile/custom_html.py +0 -0
  22. {structile-6.3.0 → structile-6.8.0}/structile/interpreters.py +0 -0
  23. {structile-6.3.0 → structile-6.8.0}/structile/manifest.py +0 -0
  24. {structile-6.3.0 → structile-6.8.0}/structile/render.py +0 -0
  25. {structile-6.3.0 → structile-6.8.0}/structile/serialize.py +0 -0
  26. {structile-6.3.0 → structile-6.8.0}/structile/static/widget.js +0 -0
  27. {structile-6.3.0 → structile-6.8.0}/structile/widget.py +0 -0
  28. {structile-6.3.0 → structile-6.8.0}/structile.egg-info/SOURCES.txt +0 -0
  29. {structile-6.3.0 → structile-6.8.0}/structile.egg-info/dependency_links.txt +0 -0
  30. {structile-6.3.0 → structile-6.8.0}/structile.egg-info/requires.txt +0 -0
  31. {structile-6.3.0 → structile-6.8.0}/structile.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structile
3
- Version: 6.3.0
3
+ Version: 6.8.0
4
4
  Summary: A spatial editor and diff tool for structured data, inline in Jupyter
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.8
@@ -0,0 +1 @@
1
+ 6.8.0
@@ -25,6 +25,13 @@ function __structileBuildElement(node){
25
25
  return Object.prototype.hasOwnProperty.call(attrs, name) ? attrs[name] : null;
26
26
  },
27
27
  hasAttribute: function(name){ return Object.prototype.hasOwnProperty.call(attrs, name); },
28
+ // A real DOM Element's own attributes is a live NamedNodeMap, not a
29
+ // plain object — Object.keys(attrs) already works here (this module's
30
+ // own `attrs` IS a plain object) but wouldn't on a real DOM element, so
31
+ // an interpreter wanting attribute names on BOTH paths (e.g. one that
32
+ // treats a whole element's attribute set as a flat record) needs the
33
+ // one method both actually share: Element.getAttributeNames().
34
+ getAttributeNames: function(){ return Object.keys(attrs); },
28
35
  attributes: attrs,
29
36
  // Bare tag-name lookup only (no class/id/attribute selectors) — a depth-
30
37
  // first search of this element's own descendants, matching the one way
@@ -68,3 +75,18 @@ function __structileUnmarkSets(v){
68
75
  if (v && typeof v === "object"){ const o = {}; for (const k of Object.keys(v)) o[k] = __structileUnmarkSets(v[k]); return o; }
69
76
  return v;
70
77
  }
78
+ // No-op stub — the real __structileTagSource (structile.html, near
79
+ // parseMarkupWithSpans) records XML selection-sync provenance against a
80
+ // REAL DOM node's __structileSpan, something this DOM-lite element never
81
+ // has (no position tracking here at all, see the file banner above). This
82
+ // module is loaded ahead of every interpreter script run through
83
+ // run_interpreter_source (interpreters.py's select_interpreter/convert()
84
+ // paths only — never anything selection-sync itself touches, since the
85
+ // browser always re-runs interpretXML client-side for interactive
86
+ // rendering), so a bundled interpreter calling __structileTagSource
87
+ // unconditionally while building its value must still find SOMETHING by
88
+ // that name here, or every such call throws a ReferenceError and breaks
89
+ // candidate selection/convert() outright. Doing nothing is the correct
90
+ // behavior, not a placeholder for a future real implementation — this
91
+ // path has no raw source text to point a span at in the first place.
92
+ function __structileTagSource(){}