@fluid-topics/ft-wc-utils 1.3.63 → 1.4.3

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/build/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * from "./DynamicImporter";
22
22
  export * from "./events";
23
23
  export * from "./floating";
24
24
  export * from "./FluidTopicsScrollHelper";
25
+ export * from "./FtSlotHelper";
25
26
  export * from "./FtCssVariables";
26
27
  export * from "./FtdsBase";
27
28
  export * from "./FtFormComponent";
package/build/index.js CHANGED
@@ -15,6 +15,7 @@ import * as designSystemVariables from "./designSystemVariables";
15
15
  import * as importer from "./DynamicImporter";
16
16
  import * as events from "./events";
17
17
  import * as floating from "./floating";
18
+ import * as FtComponentHelper from "./FtSlotHelper";
18
19
  import * as FtCssVariables from "./FtCssVariables";
19
20
  import * as FtdsBase from "./FtdsBase";
20
21
  import * as FtLitElement from "./FtLitElement";
@@ -64,6 +65,7 @@ window.ftGlobals = (_d = window.ftGlobals) !== null && _d !== void 0 ? _d : {
64
65
  ...FluidTopicsA11yEvents,
65
66
  ...FluidTopicsA11yHints,
66
67
  ...FluidTopicsScrollHelper,
68
+ ...FtComponentHelper,
67
69
  ...FtCssVariables,
68
70
  ...FtdsBase,
69
71
  ...FtFormComponent,
@@ -101,6 +103,7 @@ export * from "./DynamicImporter";
101
103
  export * from "./events";
102
104
  export * from "./floating";
103
105
  export * from "./FluidTopicsScrollHelper";
106
+ export * from "./FtSlotHelper";
104
107
  export * from "./FtCssVariables";
105
108
  export * from "./FtdsBase";
106
109
  export * from "./FtFormComponent";
package/build/search.d.ts CHANGED
@@ -3,3 +3,4 @@ export type FtSearchResultMixin = FtSearchResultMap | FtSearchResultTopic | FtSe
3
3
  export declare function accessResult(result?: FtSearchResultClusterEntry): FtSearchResultMixin | undefined;
4
4
  export declare function accessResultId(result?: FtSearchResultClusterEntry): string | undefined;
5
5
  export declare function accessResultUrl(result?: FtSearchResultClusterEntry): string | undefined;
6
+ export declare function accessBreadcrumb(result?: FtSearchResultClusterEntry): string[];
package/build/search.js CHANGED
@@ -10,3 +10,21 @@ export function accessResultUrl(result) {
10
10
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
11
11
  return (_h = (_f = (_d = (_b = (_a = result === null || result === void 0 ? void 0 : result.map) === null || _a === void 0 ? void 0 : _a.readerUrl) !== null && _b !== void 0 ? _b : (_c = result === null || result === void 0 ? void 0 : result.topic) === null || _c === void 0 ? void 0 : _c.readerUrl) !== null && _d !== void 0 ? _d : (_e = result === null || result === void 0 ? void 0 : result.document) === null || _e === void 0 ? void 0 : _e.viewerUrl) !== null && _f !== void 0 ? _f : (_g = result === null || result === void 0 ? void 0 : result.htmlPackage) === null || _g === void 0 ? void 0 : _g.viewerUrl) !== null && _h !== void 0 ? _h : (_j = result === null || result === void 0 ? void 0 : result.htmlPackagePage) === null || _j === void 0 ? void 0 : _j.viewerUrl;
12
12
  }
13
+ export function accessBreadcrumb(result) {
14
+ if (result === null || result === void 0 ? void 0 : result.topic) {
15
+ return [result.topic.mapTitle, ...result.topic.breadcrumb];
16
+ }
17
+ else if (result === null || result === void 0 ? void 0 : result.map) {
18
+ return [result.map.title];
19
+ }
20
+ else if (result === null || result === void 0 ? void 0 : result.document) {
21
+ return [result.document.title];
22
+ }
23
+ else if (result === null || result === void 0 ? void 0 : result.htmlPackage) {
24
+ return [result.htmlPackage.title];
25
+ }
26
+ else if (result === null || result === void 0 ? void 0 : result.htmlPackagePage) {
27
+ return [result.htmlPackagePage.packageTitle, result.htmlPackagePage.title];
28
+ }
29
+ return [];
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "1.3.63",
3
+ "version": "1.4.3",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@floating-ui/dom": "1.7.6",
17
- "@fluid-topics/design-system-variables": "2.57.0",
17
+ "@fluid-topics/design-system-variables": "3.1.0",
18
18
  "@fluid-topics/public-api": "1.0.114",
19
19
  "@reduxjs/toolkit": "1.9.5",
20
20
  "@types/mark.js": "8.11.12",
@@ -24,5 +24,5 @@
24
24
  "mark.js": "8.11.1",
25
25
  "moment": "2.29.4"
26
26
  },
27
- "gitHead": "d5a25917d4f07daff26d04ec39843e9d03c7a86e"
27
+ "gitHead": "f9f5324c86da35137044bc768819fcd81057791d"
28
28
  }