@dative-gpi/foundation-shared-components 1.0.3 → 1.0.4

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.
@@ -5,21 +5,7 @@ export const useSlots = () => {
5
5
  const innerSlots = { ...useVueSlots() };
6
6
  const innerName = name ?? "default";
7
7
  if (innerSlots[innerName] != null) {
8
- const slot = innerSlots[innerName]!;
9
- switch (typeof(slot()[0].type)) {
10
- // Directive wrapper (v-for, v-if)
11
- case "symbol":
12
- switch (slot()[0].type) {
13
- case Symbol.for("v-fgt"): return recursiveGetChildren(slot()[0].children);
14
- case Symbol.for("v-cmt"): return slot();
15
- default: return slot();
16
- }
17
- // Custom component
18
- case "object": return slot();
19
- // Pre-existing component
20
- case "string": return slot();
21
- }
22
- return slot();
8
+ return recursiveGetChildren(innerSlots[innerName]!());
23
9
  }
24
10
  return null;
25
11
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.3",
14
- "@dative-gpi/foundation-shared-services": "1.0.3"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.4",
14
+ "@dative-gpi/foundation-shared-services": "1.0.4"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "f22b676408f33de3f017b51fc1c535a67f194632"
38
+ "gitHead": "d48a8be97093c7cf86d3d7d3ac69c66f5156bd2a"
39
39
  }