@fluid-app/portal-sdk 0.1.429 → 0.1.430
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/dist/index.cjs +31 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +31 -3
- package/dist/index.mjs.map +1 -1
- package/dist/shell/AppShell.d.ts.map +1 -1
- package/dist/shell/__tests__/native-theme-bridge.test.d.ts +2 -0
- package/dist/shell/__tests__/native-theme-bridge.test.d.ts.map +1 -0
- package/dist/shell/native-theme-bridge.d.ts +32 -0
- package/dist/shell/native-theme-bridge.d.ts.map +1 -0
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EACV,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAQtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAe1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EACV,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAQtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAe1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAiB3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAyFxF,MAAM,WAAW,aAAa;IAC5B,yEA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C,GAAG,CAAC,OAAO,CAigBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-theme-bridge.test.d.ts","sourceRoot":"","sources":["../../../src/shell/__tests__/native-theme-bridge.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type Color from "colorjs.io";
|
|
2
|
+
import type { ResolvedTheme } from "@fluid-app/portal-core/theme";
|
|
3
|
+
export declare const PORTAL_NATIVE_THEME_MESSAGE_TYPE = "fluid.portal.theme";
|
|
4
|
+
export declare const PORTAL_NATIVE_THEME_MESSAGE_VERSION = 1;
|
|
5
|
+
export type PortalNativeThemeMode = "light" | "dark";
|
|
6
|
+
export interface PortalNativeThemeMessage {
|
|
7
|
+
readonly type: typeof PORTAL_NATIVE_THEME_MESSAGE_TYPE;
|
|
8
|
+
readonly version: typeof PORTAL_NATIVE_THEME_MESSAGE_VERSION;
|
|
9
|
+
readonly payload: {
|
|
10
|
+
readonly themeId: string;
|
|
11
|
+
readonly mode: PortalNativeThemeMode;
|
|
12
|
+
readonly colors: {
|
|
13
|
+
readonly muted: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
interface ReactNativeWebViewBridge {
|
|
18
|
+
postMessage: (message: string) => void;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface Window {
|
|
22
|
+
ReactNativeWebView?: ReactNativeWebViewBridge;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare function colorToSrgbHex(color: Color): string;
|
|
26
|
+
export declare function createPortalNativeThemeMessage({ resolvedTheme, mode }: {
|
|
27
|
+
readonly resolvedTheme: ResolvedTheme;
|
|
28
|
+
readonly mode: PortalNativeThemeMode;
|
|
29
|
+
}): PortalNativeThemeMessage;
|
|
30
|
+
export declare function postPortalNativeThemeMessage(message: PortalNativeThemeMessage): void;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=native-theme-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-theme-bridge.d.ts","sourceRoot":"","sources":["../../src/shell/native-theme-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,eAAO,MAAM,gCAAgC,uBAAuB,CAAC;AACrE,eAAO,MAAM,mCAAmC,IAAI,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,OAAO,gCAAgC,CAAC;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,mCAAmC,CAAC;IAC7D,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;QACrC,QAAQ,CAAC,MAAM,EAAE;YACf,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;SACxB,CAAC;KACH,CAAC;CACH;AAED,UAAU,wBAAwB;IAChC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,MAAM;QACd,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;KAC/C;CACF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAInD;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,aAAa,EACb,IAAI,EACL,EAAE;IACD,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;CACtC,GAAG,wBAAwB,CAY3B;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,wBAAwB,GAChC,IAAI,CAIN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/portal-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.430",
|
|
4
4
|
"description": "SDK for building custom Fluid portals",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -85,31 +85,31 @@
|
|
|
85
85
|
"typescript": "^5",
|
|
86
86
|
"zod": "4.3.5",
|
|
87
87
|
"@fluid-app/address-autocomplete": "0.1.0",
|
|
88
|
+
"@fluid-app/api-client-core": "0.1.0",
|
|
89
|
+
"@fluid-app/address-fields": "0.1.0",
|
|
88
90
|
"@fluid-app/auth": "0.1.0",
|
|
89
91
|
"@fluid-app/cart-ui": "0.1.25",
|
|
90
|
-
"@fluid-app/api-client-core": "0.1.0",
|
|
91
92
|
"@fluid-app/company-switcher-ui": "0.1.0",
|
|
92
93
|
"@fluid-app/file-picker-api-client": "0.1.0",
|
|
93
94
|
"@fluid-app/contacts-core": "0.1.0",
|
|
94
|
-
"@fluid-app/contacts-ui": "0.1.0",
|
|
95
|
-
"@fluid-app/address-fields": "0.1.0",
|
|
96
|
-
"@fluid-app/fluid-pay-ui": "0.1.0",
|
|
97
95
|
"@fluid-app/fluid-pay-core": "0.1.0",
|
|
96
|
+
"@fluid-app/contacts-ui": "0.1.0",
|
|
98
97
|
"@fluid-app/file-picker-core": "0.1.0",
|
|
98
|
+
"@fluid-app/fluid-pay-ui": "0.1.0",
|
|
99
99
|
"@fluid-app/i18n": "0.1.0",
|
|
100
|
-
"@fluid-app/messaging-core": "0.1.0",
|
|
101
100
|
"@fluid-app/messaging-api-client": "0.1.0",
|
|
101
|
+
"@fluid-app/messaging-core": "0.1.0",
|
|
102
102
|
"@fluid-app/messaging-ui": "0.1.0",
|
|
103
103
|
"@fluid-app/mysite-core": "0.1.0",
|
|
104
104
|
"@fluid-app/mysite-ui": "0.1.0",
|
|
105
105
|
"@fluid-app/orders-core": "0.1.0",
|
|
106
106
|
"@fluid-app/orders-ui": "0.1.0",
|
|
107
107
|
"@fluid-app/payments-display": "0.1.0",
|
|
108
|
-
"@fluid-app/portal-core": "0.1.23",
|
|
109
108
|
"@fluid-app/portal-app-download-ui": "0.1.0",
|
|
109
|
+
"@fluid-app/portal-core": "0.1.23",
|
|
110
110
|
"@fluid-app/portal-preview": "0.1.0",
|
|
111
|
-
"@fluid-app/portal-tenant-api-client": "0.1.0",
|
|
112
111
|
"@fluid-app/portal-react": "0.1.0",
|
|
112
|
+
"@fluid-app/portal-tenant-api-client": "0.1.0",
|
|
113
113
|
"@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
|
|
114
114
|
"@fluid-app/portal-tenant-content-api-client": "0.1.0",
|
|
115
115
|
"@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"@fluid-app/portal-tenant-store-api-client": "0.1.0",
|
|
118
118
|
"@fluid-app/portal-widgets": "0.1.22",
|
|
119
119
|
"@fluid-app/products-api-client": "0.1.0",
|
|
120
|
-
"@fluid-app/products-core": "0.1.0",
|
|
121
120
|
"@fluid-app/profile-core": "0.1.0",
|
|
121
|
+
"@fluid-app/products-core": "0.1.0",
|
|
122
122
|
"@fluid-app/profile-ui": "0.1.0",
|
|
123
123
|
"@fluid-app/query-persister": "0.1.0",
|
|
124
124
|
"@fluid-app/shareables-core": "0.1.0",
|