@fluid-topics/ft-wc-utils 1.3.62 → 1.4.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.
- package/build/FtSlotHelper.d.ts +1 -0
- package/build/FtSlotHelper.js +14 -0
- package/build/floating.d.ts +9 -0
- package/build/floating.js +26 -4
- package/build/globals.min.js +14 -14
- package/build/index.d.ts +1 -0
- package/build/index.js +5 -0
- package/build/search.d.ts +1 -0
- package/build/search.js +18 -0
- package/package.json +3 -3
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";
|
|
@@ -37,6 +38,7 @@ import * as FluidTopicsA11yEvents from "./a11y/FluidTopicsA11yEvents";
|
|
|
37
38
|
import * as FluidTopicsA11yHints from "./a11y/FluidTopicsA11yHints";
|
|
38
39
|
import { screenReaderStyles } from "./accessibility.styles";
|
|
39
40
|
import * as search from "./search";
|
|
41
|
+
import * as FtLitElementWithAriaNotification from "./FtLitElementWithAriaNotification";
|
|
40
42
|
export const isSafari = (navigator.vendor && !!navigator.vendor.match(/apple/i))
|
|
41
43
|
|| ((_c = (_b = (_a = window.safari) === null || _a === void 0 ? void 0 : _a.pushNotification) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "") === "[object SafariRemoteNotification]";
|
|
42
44
|
export const isTouchScreen = (("ontouchstart" in window)
|
|
@@ -63,10 +65,12 @@ window.ftGlobals = (_d = window.ftGlobals) !== null && _d !== void 0 ? _d : {
|
|
|
63
65
|
...FluidTopicsA11yEvents,
|
|
64
66
|
...FluidTopicsA11yHints,
|
|
65
67
|
...FluidTopicsScrollHelper,
|
|
68
|
+
...FtComponentHelper,
|
|
66
69
|
...FtCssVariables,
|
|
67
70
|
...FtdsBase,
|
|
68
71
|
...FtFormComponent,
|
|
69
72
|
...FtLitElement,
|
|
73
|
+
...FtLitElementWithAriaNotification,
|
|
70
74
|
...genericTypes,
|
|
71
75
|
...helpers,
|
|
72
76
|
...highlightHtml,
|
|
@@ -99,6 +103,7 @@ export * from "./DynamicImporter";
|
|
|
99
103
|
export * from "./events";
|
|
100
104
|
export * from "./floating";
|
|
101
105
|
export * from "./FluidTopicsScrollHelper";
|
|
106
|
+
export * from "./FtSlotHelper";
|
|
102
107
|
export * from "./FtCssVariables";
|
|
103
108
|
export * from "./FtdsBase";
|
|
104
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
|
+
"version": "1.4.1",
|
|
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": "
|
|
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": "
|
|
27
|
+
"gitHead": "1afa9ec0ae6a444d5dbd791dd7ecf2cee8766f8c"
|
|
28
28
|
}
|