waibu-mpa 2.18.0 → 2.18.1

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.
@@ -1,15 +1,10 @@
1
1
  async function replace ({ el, cmp = {}, opts = {} } = {}) {
2
2
  const { parseAttribs, stringifyAttribs } = this.app.waibuMpa
3
3
  const { isEmpty, camelCase } = this.app.lib._
4
- const { reply } = opts
5
4
 
6
5
  const tag = camelCase(el.name.slice(cmp.namespace.length))
7
6
  const html = cmp.$(el).html()
8
7
  const attr = parseAttribs(el.attribs)
9
- if (reply) {
10
- reply.ctags = reply.ctags ?? []
11
- if (!reply.ctags.includes(tag)) reply.ctags.push(tag)
12
- }
13
8
  attr.octag = tag
14
9
  const params = { tag, attr, html, el, opts }
15
10
  const result = await cmp.buildTag(params)
@@ -94,6 +94,8 @@ async function componentFactory () {
94
94
  const { escape } = this.app.waibu
95
95
  const { isEmpty, merge, uniq, without } = this.app.lib._
96
96
  params.ctag = params.tag
97
+ this.reply.ctags = this.reply.ctags ?? []
98
+ if (!this.reply.ctags.includes(params.ctag)) this.reply.ctags.push(params.ctag)
97
99
  const method = this.getMethod(params)
98
100
  if (opts.attr) params.attr = merge({}, opts.attr, params.attr)
99
101
  this.normalizeAttr(params)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-mpa",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "MPA support for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-04
4
+
5
+ - [2.18.1] Bug fix in ```component.buildTag()```
6
+
3
7
  ## 2026-06-03
4
8
 
5
9
  - [2.18.0] Populate ```widget.model``` if available