@common-stack/components-pro 5.0.6-alpha.6 → 5.0.6-alpha.7
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,4 +1,6 @@
|
|
|
1
|
-
import*as cheerio from'cheerio'
|
|
1
|
+
import*as cheerio from'cheerio';/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable no-param-reassign */
|
|
3
|
+
/**
|
|
2
4
|
* Replace the wrapped dom element with `[data-slot-name]` to its children,
|
|
3
5
|
* setting attrib [data-slot-name] same as parent.
|
|
4
6
|
*
|
|
@@ -13,7 +15,7 @@ const replaceServerFills = (htmlContent, fills) => {
|
|
|
13
15
|
$(`[data-slot-name=slot-${name}]`).each((i, node) => {
|
|
14
16
|
const search = $(node).prop('outerHTML');
|
|
15
17
|
node.children.forEach((child) => {
|
|
16
|
-
child.attribs['data-slot-name'] =
|
|
18
|
+
child.attribs['data-slot-name'] = `slot-${name}`;
|
|
17
19
|
});
|
|
18
20
|
const replace = $(node).html() || '';
|
|
19
21
|
newContent = newContent.replace(search, replace);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceServerFills.js","sources":["../../../src/slot-fill/utils/replaceServerFills.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replaceServerFills.js","sources":["../../../src/slot-fill/utils/replaceServerFills.ts"],"sourcesContent":[null],"names":[],"mappings":"gCAAA;AACA;AAEA;;;;;;;AAOG;MACU,kBAAkB,GAAG,CAAC,WAAmB,EAAE,KAAe,KAAI;IACvE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACpC,IAAI,UAAU,GAAG,WAAW,CAAC;AAE7B,IAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACnB,QAAA,CAAC,CAAC,CAAA,qBAAA,EAAwB,IAAI,CAAA,CAAA,CAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,KAAI;YAChD,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;gBAC3B,KAAoC,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAE,CAAC;AACrF,aAAC,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;YACrC,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,SAAC,CAAC,CAAC;AACP,KAAC,CAAC,CAAC;AAEH,IAAA,OAAO,UAAU,CAAC;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/components-pro",
|
|
3
|
-
"version": "5.0.6-alpha.
|
|
3
|
+
"version": "5.0.6-alpha.7",
|
|
4
4
|
"description": "browser plugin for git",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@wordpress/hooks": "^3.53.0",
|
|
35
35
|
"@wordpress/is-shallow-equal": "^4.53.0",
|
|
36
36
|
"@wordpress/warning": "^2.53.0",
|
|
37
|
-
"cheerio": "^1.0.0
|
|
37
|
+
"cheerio": "^1.0.0",
|
|
38
38
|
"history-with-query": "^4.10.4",
|
|
39
39
|
"sort-keys": "^4.1.0",
|
|
40
40
|
"valtio": "^1.7.0"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"typescript": {
|
|
53
53
|
"definition": "lib/index.d.ts"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "bfdfa262dce0b664b3b25f057e3eba0cab9c4695"
|
|
56
56
|
}
|