@common-stack/components-pro 7.0.4-alpha.25 → 7.0.4-alpha.26

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/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { createSlotFill, Slot, Fill, Provider as SlotFillProvider, useSlot as __experimentalUseSlot } from './slot-fill';
2
- export { removeUniversalPortals, replaceServerFills } from './slot-fill/utils';
1
+ export { createSlotFill, Slot, Fill, Provider as SlotFillProvider, useSlot as __experimentalUseSlot, } from './slot-fill';
2
+ export { removeUniversalPortals } from './slot-fill/utils';
3
3
  export * from './plugin';
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export{Fill,Slot,Provider as SlotFillProvider,createSlotFill}from'./slot-fill/index.js';export{removeUniversalPortals}from'./slot-fill/utils/removeUniversalPortals.js';export{replaceServerFills}from'./slot-fill/utils/replaceServerFills.js';export{default as FillRenderProvider}from'./plugin/provider.js';export{PluginsLoader}from'./plugin/loader.js';export{default as __experimentalUseSlot}from'./slot-fill/bubbles-virtually/use-slot.js';//# sourceMappingURL=index.js.map
1
+ export{Fill,Slot,Provider as SlotFillProvider,createSlotFill}from'./slot-fill/index.js';export{removeUniversalPortals}from'./slot-fill/utils/removeUniversalPortals.js';export{default as FillRenderProvider}from'./plugin/provider.js';export{PluginsLoader}from'./plugin/loader.js';export{default as __experimentalUseSlot}from'./slot-fill/bubbles-virtually/use-slot.js';//# sourceMappingURL=index.js.map
@@ -1,6 +1,5 @@
1
1
  export * from './isEmptyElement';
2
2
  export * from './removeUniversalPortals';
3
- export * from './replaceServerFills';
4
3
  /**
5
4
  * Whether the argument is a function.
6
5
  *
@@ -1,4 +1,4 @@
1
- import'cheerio';/**
1
+ /**
2
2
  * Whether the argument is a function.
3
3
  *
4
4
  * @param {*} maybeFunc The argument to check.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/slot-fill/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"gBAIA;;;;;AAKG;AACG,SAAU,UAAU,CAAC,SAAc,EAAA;AACvC,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU,CAAC;AACzC"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/slot-fill/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAGA;;;;;AAKG;AACG,SAAU,UAAU,CAAC,SAAc,EAAA;AACrC,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU,CAAC;AAC3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"removeUniversalPortals.js","sources":["../../../src/slot-fill/utils/removeUniversalPortals.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAAe,KAAI;AACzD,IAAA,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AAClC,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACrB,YAAA,QAAQ,CAAC,gBAAgB,CAAC,CAAA,qBAAA,EAAwB,IAAI,CAAA,CAAA,CAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;gBAC1E,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB,aAAC,CAAC,CAAC;AACL,SAAC,CAAC,CAAC;KACL;AACF"}
1
+ {"version":3,"file":"removeUniversalPortals.js","sources":["../../../src/slot-fill/utils/removeUniversalPortals.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;AAEG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAAe,KAAI;AACtD,IAAA,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AACjC,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACnB,YAAA,QAAQ,CAAC,gBAAgB,CAAC,CAAA,qBAAA,EAAwB,IAAI,CAAA,CAAA,CAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;gBACxE,IAAI,CAAC,MAAM,EAAE,CAAC;AAClB,aAAC,CAAC,CAAC;AACP,SAAC,CAAC,CAAC;KACN;AACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/components-pro",
3
- "version": "7.0.4-alpha.25",
3
+ "version": "7.0.4-alpha.26",
4
4
  "description": "browser plugin for git",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -35,7 +35,6 @@
35
35
  "@wordpress/hooks": "^3.53.0",
36
36
  "@wordpress/is-shallow-equal": "^4.53.0",
37
37
  "@wordpress/warning": "^2.53.0",
38
- "cheerio": "1.0.0-rc.12",
39
38
  "history-with-query": "^4.10.4",
40
39
  "node-html-parser": "^7.0.1",
41
40
  "sort-keys": "^4.1.0",
@@ -54,5 +53,5 @@
54
53
  "typescript": {
55
54
  "definition": "lib/index.d.ts"
56
55
  },
57
- "gitHead": "62a053df91db835605bba2982bbc303c58a2bb8a"
56
+ "gitHead": "26fa8121dd9bdbab4014b950e44070911af44a39"
58
57
  }
@@ -1,9 +0,0 @@
1
- /**
2
- * Replace the wrapped dom element with `[data-slot-name]` to its children,
3
- * setting attrib [data-slot-name] same as parent.
4
- *
5
- * @param htmlContent Html content string.
6
- * @param fills fill names.
7
- * @returns The replaced html content string.
8
- */
9
- export declare const replaceServerFills: (htmlContent: string, fills: string[]) => string;
@@ -1,25 +0,0 @@
1
- import*as cheerio from'cheerio';/* eslint-disable @typescript-eslint/no-explicit-any */
2
- /* eslint-disable no-param-reassign */
3
- /**
4
- * Replace the wrapped dom element with `[data-slot-name]` to its children,
5
- * setting attrib [data-slot-name] same as parent.
6
- *
7
- * @param htmlContent Html content string.
8
- * @param fills fill names.
9
- * @returns The replaced html content string.
10
- */
11
- const replaceServerFills = (htmlContent, fills) => {
12
- const $ = cheerio.load(htmlContent);
13
- let newContent = htmlContent;
14
- fills.forEach((name) => {
15
- $(`[data-slot-name=slot-${name}]`).each((i, node) => {
16
- const search = $(node).prop('outerHTML');
17
- node.children.forEach((child) => {
18
- child.attribs['data-slot-name'] = `slot-${name}`;
19
- });
20
- const replace = $(node).html() || '';
21
- newContent = newContent.replace(search, replace);
22
- });
23
- });
24
- return newContent;
25
- };export{replaceServerFills};//# sourceMappingURL=replaceServerFills.js.map
@@ -1 +0,0 @@
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"}