@burdenoff/microfe-proserviceworld 2026.1009.1 → 2026.1013.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.
@@ -1,3 +1,4 @@
1
+ import { BurdenoffNativeBridge } from '@burdenoff/fe-libs/shared/native';
1
2
  /**
2
3
  * ProServiceWorld native-bridge helpers.
3
4
  *
@@ -8,12 +9,7 @@
8
9
  export type HapticImpactStyle = 'light' | 'medium' | 'heavy';
9
10
  declare global {
10
11
  interface Window {
11
- __burdenoffNativeBridge?: {
12
- impact?: (style: HapticImpactStyle) => Promise<void>;
13
- notify?: (type: 'success' | 'warning' | 'error') => Promise<void>;
14
- toast?: (message: string, duration?: 'short' | 'long') => Promise<boolean>;
15
- isNativePlatform?: () => boolean;
16
- };
12
+ __burdenoffNativeBridge?: BurdenoffNativeBridge;
17
13
  }
18
14
  }
19
15
  export declare function impactFeedback(style?: HapticImpactStyle): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,uBAAuB,CAAC,EAAE;YACxB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;YACrD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;YAClE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3E,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;SAClC,CAAC;KACH;CACF;AAOD,wBAAsB,cAAc,CAAC,KAAK,GAAE,iBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtF;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzF;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,OAAO,GAAG,MAAgB,GACnC,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
1
+ {"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QAEd,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;KACjD;CACF;AAOD,wBAAsB,cAAc,CAAC,KAAK,GAAE,iBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtF;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzF;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,OAAO,GAAG,MAAgB,GACnC,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"native.js","names":[],"sources":["../../../src/proserviceworld/utils/native.ts"],"sourcesContent":["/**\n * ProServiceWorld native-bridge helpers.\n *\n * The host app shell owns the Capacitor bridge and exposes it at\n * `window.__burdenoffNativeBridge`. This module provides typed, safe wrappers\n * that no-op gracefully on web or when the bridge is unavailable.\n */\n\nexport type HapticImpactStyle = 'light' | 'medium' | 'heavy';\n\ndeclare global {\n interface Window {\n __burdenoffNativeBridge?: {\n impact?: (style: HapticImpactStyle) => Promise<void>;\n notify?: (type: 'success' | 'warning' | 'error') => Promise<void>;\n toast?: (message: string, duration?: 'short' | 'long') => Promise<boolean>;\n isNativePlatform?: () => boolean;\n };\n }\n}\n\nfunction getBridge() {\n if (typeof window === 'undefined') return undefined;\n return window.__burdenoffNativeBridge;\n}\n\nexport async function impactFeedback(style: HapticImpactStyle = 'light'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.impact) return;\n try {\n await bridge.impact(style);\n } catch {\n /* no-op on web / unsupported */\n }\n}\n\nexport async function notifyFeedback(type: 'success' | 'warning' | 'error'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.notify) return;\n try {\n await bridge.notify(type);\n } catch {\n /* no-op */\n }\n}\n\nexport async function nativeToast(\n message: string,\n duration: 'short' | 'long' = 'short'\n): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.toast) return;\n try {\n await bridge.toast(message, duration);\n } catch {\n /* no-op */\n }\n}\n\nexport function isNativePlatform(): boolean {\n const bridge = getBridge();\n return bridge?.isNativePlatform?.() ?? false;\n}\n"],"mappings":";AAqBA,SAAS,IAAY;CACf,aAAO,SAAW,MACtB,OAAO,OAAO;AAChB;AAEA,eAAsB,EAAe,IAA2B,SAAwB;CACtF,IAAM,IAAS,EAAU;CACpB,OAAQ,QACb,IAAI;EACF,MAAM,EAAO,OAAO,CAAK;CAC3B,QAAQ,CAER;AACF"}
1
+ {"version":3,"file":"native.js","names":[],"sources":["../../../src/proserviceworld/utils/native.ts"],"sourcesContent":["/**\n * ProServiceWorld native-bridge helpers.\n *\n * The host app shell owns the Capacitor bridge and exposes it at\n * `window.__burdenoffNativeBridge`. This module provides typed, safe wrappers\n * that no-op gracefully on web or when the bridge is unavailable.\n */\n\nexport type HapticImpactStyle = 'light' | 'medium' | 'heavy';\n\nimport type { BurdenoffNativeBridge } from '@burdenoff/fe-libs/shared/native';\n\ndeclare global {\n interface Window {\n // Typed by the shell package so both declarations agree (TS2717 otherwise).\n __burdenoffNativeBridge?: BurdenoffNativeBridge;\n }\n}\n\nfunction getBridge() {\n if (typeof window === 'undefined') return undefined;\n return window.__burdenoffNativeBridge;\n}\n\nexport async function impactFeedback(style: HapticImpactStyle = 'light'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.impact) return;\n try {\n await bridge.impact(style);\n } catch {\n /* no-op on web / unsupported */\n }\n}\n\nexport async function notifyFeedback(type: 'success' | 'warning' | 'error'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.notify) return;\n try {\n await bridge.notify(type);\n } catch {\n /* no-op */\n }\n}\n\nexport async function nativeToast(\n message: string,\n duration: 'short' | 'long' = 'short'\n): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.toast) return;\n try {\n await bridge.toast(message, duration);\n } catch {\n /* no-op */\n }\n}\n\nexport function isNativePlatform(): boolean {\n const bridge = getBridge();\n return bridge?.isNativePlatform?.() ?? false;\n}\n"],"mappings":";AAmBA,SAAS,IAAY;CACf,aAAO,SAAW,MACtB,OAAO,OAAO;AAChB;AAEA,eAAsB,EAAe,IAA2B,SAAwB;CACtF,IAAM,IAAS,EAAU;CACpB,OAAQ,QACb,IAAI;EACF,MAAM,EAAO,OAAO,CAAK;CAC3B,QAAQ,CAER;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-proserviceworld",
3
- "version": "2026.1009.1",
3
+ "version": "2026.1013.1",
4
4
  "description": "Burdenoff ProServiceWorld Microfrontend",
5
5
  "type": "module",
6
6
  "files": [