@favish/staffbase-utils 0.15.0 → 0.16.0

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/README.md CHANGED
@@ -31,6 +31,7 @@ minimumReleaseAgeExclude:
31
31
  | `@favish/staffbase-utils/shadow/react` | `ensureShadowMount` (+ re-exports portal) (React + @emotion/cache peers) |
32
32
  | `@favish/staffbase-utils/log` | `logError`, `logWarn`, `logDebug`, `setLoggingEnabled` |
33
33
  | `@favish/staffbase-utils/dom` | `getDynamicClasses` |
34
+ | `@favish/staffbase-utils/host` | `getStaffbaseCsrfToken` |
34
35
  | `@favish/staffbase-utils/types` | `Channel`, `ChannelLink`, `ChannelLinkParameter`, `DropdownOption`, `LocalizedContent`, `ArticleImage`, `ArticleImageVariant` (type-only) |
35
36
 
36
37
  More modules (`/env`, `/device`, `/html`, `/links`, `/widgets`) are added per the
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=()=>{if(typeof navigator>`u`)return!1;let e=navigator.userAgent.toLowerCase(),t=/mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(e),n=/wv|webview/i.test(e);return t||n},t=()=>typeof window>`u`?!1:window.innerWidth<=768,n=()=>e()||t();exports.isMobile=n,exports.isMobileOrWebview=e,exports.isMobileViewport=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=()=>{if(typeof navigator>`u`)return!1;let e=navigator.userAgent.toLowerCase(),t=/mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(e),n=/wv|webview/i.test(e);return t||n},t=()=>typeof window>`u`?!1:window.innerWidth<=768,n=()=>e()||t(),r=()=>typeof window>`u`?!1:window.we?.mobile===!0||n(),i=()=>typeof window>`u`?!1:window.we?.native===!0;exports.isMobile=n,exports.isMobileOrWebview=e,exports.isMobilePlatform=r,exports.isMobileViewport=t,exports.isNativeApp=i;
2
2
  //# sourceMappingURL=device.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"device.cjs.js","names":[],"sources":["../src/device/isMobileOrWebview.ts","../src/device/isMobileViewport.ts","../src/device/isMobile.ts"],"sourcesContent":["/**\n * Detects if the current environment is a mobile device or running inside a\n * webview, using userAgent heuristics common on iOS/Android and webviews.\n * Guards against non-browser environments (SSR/tests without navigator).\n * @returns {boolean} True if likely mobile or webview.\n */\nexport const isMobileOrWebview = (): boolean => {\n if (typeof navigator === 'undefined') return false\n\n const userAgent = navigator.userAgent.toLowerCase()\n const isMobilePlatform =\n /mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(userAgent)\n const isWebview = /wv|webview/i.test(userAgent)\n\n return isMobilePlatform || isWebview\n}\n","/**\n * Checks if the viewport width is mobile-sized (<= 768px).\n * Guards against non-browser environments (SSR/tests without window).\n * @returns {boolean} True if the viewport width is 768px or less.\n */\nexport const isMobileViewport = (): boolean => {\n if (typeof window === 'undefined') return false\n return window.innerWidth <= 768\n}\n","import { isMobileOrWebview } from './isMobileOrWebview'\nimport { isMobileViewport } from './isMobileViewport'\n\n/**\n * Checks if the device is mobile either by user agent/webview or viewport size.\n * @returns {boolean} True if either a mobile/webview UA or a mobile viewport.\n */\nexport const isMobile = (): boolean => isMobileOrWebview() || isMobileViewport()\n"],"mappings":"mEAMA,IAAa,MAAmC,CAC9C,GAAI,OAAO,UAAc,IAAa,MAAO,GAE7C,IAAM,EAAY,UAAU,UAAU,YAAY,EAC5C,EACJ,qDAAqD,KAAK,CAAS,EAC/D,EAAY,cAAc,KAAK,CAAS,EAE9C,OAAO,GAAoB,CAC7B,ECVa,MACP,OAAO,OAAW,IAAoB,GACnC,OAAO,YAAc,ICAjB,MAA0B,EAAkB,GAAK,EAAiB"}
1
+ {"version":3,"file":"device.cjs.js","names":[],"sources":["../src/device/isMobileOrWebview.ts","../src/device/isMobileViewport.ts","../src/device/isMobile.ts","../src/device/isMobilePlatform.ts","../src/device/isNativeApp.ts"],"sourcesContent":["/**\n * Detects if the current environment is a mobile device or running inside a\n * webview, using userAgent heuristics common on iOS/Android and webviews.\n * Guards against non-browser environments (SSR/tests without navigator).\n * @returns {boolean} True if likely mobile or webview.\n */\nexport const isMobileOrWebview = (): boolean => {\n if (typeof navigator === 'undefined') return false\n\n const userAgent = navigator.userAgent.toLowerCase()\n const isMobilePlatform =\n /mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(userAgent)\n const isWebview = /wv|webview/i.test(userAgent)\n\n return isMobilePlatform || isWebview\n}\n","/**\n * Checks if the viewport width is mobile-sized (<= 768px).\n * Guards against non-browser environments (SSR/tests without window).\n * @returns {boolean} True if the viewport width is 768px or less.\n */\nexport const isMobileViewport = (): boolean => {\n if (typeof window === 'undefined') return false\n return window.innerWidth <= 768\n}\n","import { isMobileOrWebview } from './isMobileOrWebview'\nimport { isMobileViewport } from './isMobileViewport'\n\n/**\n * Checks if the device is mobile either by user agent/webview or viewport size.\n * @returns {boolean} True if either a mobile/webview UA or a mobile viewport.\n */\nexport const isMobile = (): boolean => isMobileOrWebview() || isMobileViewport()\n","import type { WindowWithStaffbaseRuntime } from '../types/device/WindowWithStaffbaseRuntime'\nimport { isMobile } from './isMobile'\n\n/**\n * Whether the app is running on a mobile platform, per the `window.we.mobile`\n * runtime flag or device detection. Returns false outside a browser.\n * @returns {boolean} True when running on a mobile platform.\n */\nexport const isMobilePlatform = (): boolean => {\n if (typeof window === 'undefined') return false\n\n return (\n (window as unknown as WindowWithStaffbaseRuntime).we?.mobile === true ||\n isMobile()\n )\n}\n","import type { WindowWithStaffbaseRuntime } from '../types/device/WindowWithStaffbaseRuntime'\n\n/**\n * Whether the app is running inside the Staffbase native shell, per the\n * `window.we.native` runtime flag. Returns false outside a browser.\n * @returns {boolean} True when running in the native app.\n */\nexport const isNativeApp = (): boolean => {\n if (typeof window === 'undefined') return false\n\n return (window as unknown as WindowWithStaffbaseRuntime).we?.native === true\n}\n"],"mappings":"mEAMA,IAAa,MAAmC,CAC9C,GAAI,OAAO,UAAc,IAAa,MAAO,GAE7C,IAAM,EAAY,UAAU,UAAU,YAAY,EAC5C,EACJ,qDAAqD,KAAK,CAAS,EAC/D,EAAY,cAAc,KAAK,CAAS,EAE9C,OAAO,GAAoB,CAC7B,ECVa,MACP,OAAO,OAAW,IAAoB,GACnC,OAAO,YAAc,ICAjB,MAA0B,EAAkB,GAAK,EAAiB,ECClE,MACP,OAAO,OAAW,IAAoB,GAGvC,OAAiD,IAAI,SAAW,IACjE,EAAS,ECNA,MACP,OAAO,OAAW,IAAoB,GAElC,OAAiD,IAAI,SAAW"}
@@ -3,8 +3,8 @@ var e = () => {
3
3
  if (typeof navigator > "u") return !1;
4
4
  let e = navigator.userAgent.toLowerCase(), t = /mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(e), n = /wv|webview/i.test(e);
5
5
  return t || n;
6
- }, t = () => typeof window > "u" ? !1 : window.innerWidth <= 768, n = () => e() || t();
6
+ }, t = () => typeof window > "u" ? !1 : window.innerWidth <= 768, n = () => e() || t(), r = () => typeof window > "u" ? !1 : window.we?.mobile === !0 || n(), i = () => typeof window > "u" ? !1 : window.we?.native === !0;
7
7
  //#endregion
8
- export { n as isMobile, e as isMobileOrWebview, t as isMobileViewport };
8
+ export { n as isMobile, e as isMobileOrWebview, r as isMobilePlatform, t as isMobileViewport, i as isNativeApp };
9
9
 
10
10
  //# sourceMappingURL=device.es.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"device.es.mjs","names":[],"sources":["../src/device/isMobileOrWebview.ts","../src/device/isMobileViewport.ts","../src/device/isMobile.ts"],"sourcesContent":["/**\n * Detects if the current environment is a mobile device or running inside a\n * webview, using userAgent heuristics common on iOS/Android and webviews.\n * Guards against non-browser environments (SSR/tests without navigator).\n * @returns {boolean} True if likely mobile or webview.\n */\nexport const isMobileOrWebview = (): boolean => {\n if (typeof navigator === 'undefined') return false\n\n const userAgent = navigator.userAgent.toLowerCase()\n const isMobilePlatform =\n /mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(userAgent)\n const isWebview = /wv|webview/i.test(userAgent)\n\n return isMobilePlatform || isWebview\n}\n","/**\n * Checks if the viewport width is mobile-sized (<= 768px).\n * Guards against non-browser environments (SSR/tests without window).\n * @returns {boolean} True if the viewport width is 768px or less.\n */\nexport const isMobileViewport = (): boolean => {\n if (typeof window === 'undefined') return false\n return window.innerWidth <= 768\n}\n","import { isMobileOrWebview } from './isMobileOrWebview'\nimport { isMobileViewport } from './isMobileViewport'\n\n/**\n * Checks if the device is mobile either by user agent/webview or viewport size.\n * @returns {boolean} True if either a mobile/webview UA or a mobile viewport.\n */\nexport const isMobile = (): boolean => isMobileOrWebview() || isMobileViewport()\n"],"mappings":";AAMA,IAAa,UAAmC;CAC9C,IAAI,OAAO,YAAc,KAAa,OAAO;CAE7C,IAAM,IAAY,UAAU,UAAU,YAAY,GAC5C,IACJ,qDAAqD,KAAK,CAAS,GAC/D,IAAY,cAAc,KAAK,CAAS;CAE9C,OAAO,KAAoB;AAC7B,GCVa,UACP,OAAO,SAAW,MAAoB,KACnC,OAAO,cAAc,KCAjB,UAA0B,EAAkB,KAAK,EAAiB"}
1
+ {"version":3,"file":"device.es.mjs","names":[],"sources":["../src/device/isMobileOrWebview.ts","../src/device/isMobileViewport.ts","../src/device/isMobile.ts","../src/device/isMobilePlatform.ts","../src/device/isNativeApp.ts"],"sourcesContent":["/**\n * Detects if the current environment is a mobile device or running inside a\n * webview, using userAgent heuristics common on iOS/Android and webviews.\n * Guards against non-browser environments (SSR/tests without navigator).\n * @returns {boolean} True if likely mobile or webview.\n */\nexport const isMobileOrWebview = (): boolean => {\n if (typeof navigator === 'undefined') return false\n\n const userAgent = navigator.userAgent.toLowerCase()\n const isMobilePlatform =\n /mobile|android|ios|iphone|ipad|ipod|windows phone/i.test(userAgent)\n const isWebview = /wv|webview/i.test(userAgent)\n\n return isMobilePlatform || isWebview\n}\n","/**\n * Checks if the viewport width is mobile-sized (<= 768px).\n * Guards against non-browser environments (SSR/tests without window).\n * @returns {boolean} True if the viewport width is 768px or less.\n */\nexport const isMobileViewport = (): boolean => {\n if (typeof window === 'undefined') return false\n return window.innerWidth <= 768\n}\n","import { isMobileOrWebview } from './isMobileOrWebview'\nimport { isMobileViewport } from './isMobileViewport'\n\n/**\n * Checks if the device is mobile either by user agent/webview or viewport size.\n * @returns {boolean} True if either a mobile/webview UA or a mobile viewport.\n */\nexport const isMobile = (): boolean => isMobileOrWebview() || isMobileViewport()\n","import type { WindowWithStaffbaseRuntime } from '../types/device/WindowWithStaffbaseRuntime'\nimport { isMobile } from './isMobile'\n\n/**\n * Whether the app is running on a mobile platform, per the `window.we.mobile`\n * runtime flag or device detection. Returns false outside a browser.\n * @returns {boolean} True when running on a mobile platform.\n */\nexport const isMobilePlatform = (): boolean => {\n if (typeof window === 'undefined') return false\n\n return (\n (window as unknown as WindowWithStaffbaseRuntime).we?.mobile === true ||\n isMobile()\n )\n}\n","import type { WindowWithStaffbaseRuntime } from '../types/device/WindowWithStaffbaseRuntime'\n\n/**\n * Whether the app is running inside the Staffbase native shell, per the\n * `window.we.native` runtime flag. Returns false outside a browser.\n * @returns {boolean} True when running in the native app.\n */\nexport const isNativeApp = (): boolean => {\n if (typeof window === 'undefined') return false\n\n return (window as unknown as WindowWithStaffbaseRuntime).we?.native === true\n}\n"],"mappings":";AAMA,IAAa,UAAmC;CAC9C,IAAI,OAAO,YAAc,KAAa,OAAO;CAE7C,IAAM,IAAY,UAAU,UAAU,YAAY,GAC5C,IACJ,qDAAqD,KAAK,CAAS,GAC/D,IAAY,cAAc,KAAK,CAAS;CAE9C,OAAO,KAAoB;AAC7B,GCVa,UACP,OAAO,SAAW,MAAoB,KACnC,OAAO,cAAc,KCAjB,UAA0B,EAAkB,KAAK,EAAiB,GCClE,UACP,OAAO,SAAW,MAAoB,KAGvC,OAAiD,IAAI,WAAW,MACjE,EAAS,GCNA,UACP,OAAO,SAAW,MAAoB,KAElC,OAAiD,IAAI,WAAW"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=()=>{if(typeof window>`u`)return null;let e=window?.we?.authMgr?.getCsrfToken?.();return e&&e.length>0?e:null};exports.getStaffbaseCsrfToken=e;
2
+ //# sourceMappingURL=host.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.cjs.js","names":[],"sources":["../src/host/getStaffbaseCsrfToken.ts"],"sourcesContent":["import type { WindowWithStaffbaseAuth } from '../types/host/WindowWithStaffbaseAuth'\n\n/**\n * Reads the Staffbase CSRF token from the host's global auth manager\n * (`window.we.authMgr.getCsrfToken`).\n *\n * Returns null (instead of an empty string) when the token is unavailable, so\n * callers can fail fast with a clear message rather than firing a request the\n * server is guaranteed to reject with a 403.\n * @returns {string | null} The CSRF token, or null when it cannot be resolved.\n */\nexport const getStaffbaseCsrfToken = (): string | null => {\n if (typeof window === 'undefined') return null\n\n const w = window as unknown as WindowWithStaffbaseAuth\n const token = w?.we?.authMgr?.getCsrfToken?.()\n\n return token && token.length > 0 ? token : null\n}\n"],"mappings":"mEAWA,IAAa,MAA6C,CACxD,GAAI,OAAO,OAAW,IAAa,OAAO,KAG1C,IAAM,EAAQ,QAAG,IAAI,SAAS,eAAe,EAE7C,OAAO,GAAS,EAAM,OAAS,EAAI,EAAQ,IAC7C"}
@@ -0,0 +1,10 @@
1
+ //#region src/host/getStaffbaseCsrfToken.ts
2
+ var e = () => {
3
+ if (typeof window > "u") return null;
4
+ let e = window?.we?.authMgr?.getCsrfToken?.();
5
+ return e && e.length > 0 ? e : null;
6
+ };
7
+ //#endregion
8
+ export { e as getStaffbaseCsrfToken };
9
+
10
+ //# sourceMappingURL=host.es.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.es.mjs","names":[],"sources":["../src/host/getStaffbaseCsrfToken.ts"],"sourcesContent":["import type { WindowWithStaffbaseAuth } from '../types/host/WindowWithStaffbaseAuth'\n\n/**\n * Reads the Staffbase CSRF token from the host's global auth manager\n * (`window.we.authMgr.getCsrfToken`).\n *\n * Returns null (instead of an empty string) when the token is unavailable, so\n * callers can fail fast with a clear message rather than firing a request the\n * server is guaranteed to reject with a 403.\n * @returns {string | null} The CSRF token, or null when it cannot be resolved.\n */\nexport const getStaffbaseCsrfToken = (): string | null => {\n if (typeof window === 'undefined') return null\n\n const w = window as unknown as WindowWithStaffbaseAuth\n const token = w?.we?.authMgr?.getCsrfToken?.()\n\n return token && token.length > 0 ? token : null\n}\n"],"mappings":";AAWA,IAAa,UAA6C;CACxD,IAAI,OAAO,SAAW,KAAa,OAAO;CAG1C,IAAM,IAAQ,QAAG,IAAI,SAAS,eAAe;CAE7C,OAAO,KAAS,EAAM,SAAS,IAAI,IAAQ;AAC7C"}
@@ -1,4 +1,6 @@
1
1
  export { isMobile } from './isMobile';
2
2
  export { isMobileOrWebview } from './isMobileOrWebview';
3
+ export { isMobilePlatform } from './isMobilePlatform';
3
4
  export { isMobileViewport } from './isMobileViewport';
5
+ export { isNativeApp } from './isNativeApp';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/device/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/device/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether the app is running on a mobile platform, per the `window.we.mobile`
3
+ * runtime flag or device detection. Returns false outside a browser.
4
+ * @returns {boolean} True when running on a mobile platform.
5
+ */
6
+ export declare const isMobilePlatform: () => boolean;
7
+ //# sourceMappingURL=isMobilePlatform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMobilePlatform.d.ts","sourceRoot":"","sources":["../../../src/device/isMobilePlatform.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,OAOnC,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether the app is running inside the Staffbase native shell, per the
3
+ * `window.we.native` runtime flag. Returns false outside a browser.
4
+ * @returns {boolean} True when running in the native app.
5
+ */
6
+ export declare const isNativeApp: () => boolean;
7
+ //# sourceMappingURL=isNativeApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNativeApp.d.ts","sourceRoot":"","sources":["../../../src/device/isNativeApp.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,OAI9B,CAAA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Reads the Staffbase CSRF token from the host's global auth manager
3
+ * (`window.we.authMgr.getCsrfToken`).
4
+ *
5
+ * Returns null (instead of an empty string) when the token is unavailable, so
6
+ * callers can fail fast with a clear message rather than firing a request the
7
+ * server is guaranteed to reject with a 403.
8
+ * @returns {string | null} The CSRF token, or null when it cannot be resolved.
9
+ */
10
+ export declare const getStaffbaseCsrfToken: () => string | null;
11
+ //# sourceMappingURL=getStaffbaseCsrfToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStaffbaseCsrfToken.d.ts","sourceRoot":"","sources":["../../../src/host/getStaffbaseCsrfToken.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,QAAO,MAAM,GAAG,IAOjD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { getStaffbaseCsrfToken } from './getStaffbaseCsrfToken';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Window augmented with the Staffbase runtime flags (`window.we`) that report
3
+ * whether the app is running inside the native shell and on a mobile platform.
4
+ * Optional because the runtime is absent outside the Staffbase shell.
5
+ */
6
+ export interface WindowWithStaffbaseRuntime {
7
+ we?: {
8
+ native?: boolean;
9
+ mobile?: boolean;
10
+ };
11
+ }
12
+ //# sourceMappingURL=WindowWithStaffbaseRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WindowWithStaffbaseRuntime.d.ts","sourceRoot":"","sources":["../../../../src/types/device/WindowWithStaffbaseRuntime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,CAAC,EAAE;QACH,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,CAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Window augmented with the Staffbase host auth manager (`window.we.authMgr`),
3
+ * which exposes the session CSRF token. Every level is optional because the host
4
+ * global may be absent (e.g. outside the Staffbase shell).
5
+ */
6
+ export interface WindowWithStaffbaseAuth {
7
+ we?: {
8
+ authMgr?: {
9
+ getCsrfToken?: () => string | undefined;
10
+ };
11
+ };
12
+ }
13
+ //# sourceMappingURL=WindowWithStaffbaseAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WindowWithStaffbaseAuth.d.ts","sourceRoot":"","sources":["../../../../src/types/host/WindowWithStaffbaseAuth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,CAAC,EAAE;QACH,OAAO,CAAC,EAAE;YACR,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;SACxC,CAAA;KACF,CAAA;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@favish/staffbase-utils",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Shared internal/host utilities for Staffbase widgets",
5
5
  "author": "Favish <dev@favish.com>",
6
6
  "license": "UNLICENSED",
@@ -34,6 +34,11 @@
34
34
  "import": "./dist/dom.es.mjs",
35
35
  "require": "./dist/dom.cjs.js"
36
36
  },
37
+ "./host": {
38
+ "types": "./dist/src/host/index.d.ts",
39
+ "import": "./dist/host.es.mjs",
40
+ "require": "./dist/host.cjs.js"
41
+ },
37
42
  "./html": {
38
43
  "types": "./dist/src/html/index.d.ts",
39
44
  "import": "./dist/html.es.mjs",