@oxy.so/services 11.9.0 → 11.12.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/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -4
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +5 -4
- package/lib/commonjs/index.js +45 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/appAssertion/AppAssertionContext.js +79 -0
- package/lib/commonjs/ui/appAssertion/AppAssertionContext.js.map +1 -0
- package/lib/commonjs/ui/appAssertion/appAssertionManager.js +309 -0
- package/lib/commonjs/ui/appAssertion/appAssertionManager.js.map +1 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityPlatform.js +18 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityPlatform.js.map +1 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityPlatform.native.js +30 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityPlatform.native.js.map +1 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityTypes.js +6 -0
- package/lib/commonjs/ui/appAssertion/appIntegrityTypes.js.map +1 -0
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js +97 -0
- package/lib/commonjs/ui/components/AccountInvitationAcceptance.js.map +1 -0
- package/lib/commonjs/ui/components/DisplayCurrencySelector.js +49 -0
- package/lib/commonjs/ui/components/DisplayCurrencySelector.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +121 -0
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +6 -2
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +10 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +4 -0
- package/lib/commonjs/ui/hooks/mutations/mutationKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +49 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +6 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js +35 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js +77 -0
- package/lib/commonjs/ui/hooks/useDisplayCurrency.js.map +1 -0
- package/lib/commonjs/ui/hooks/useDisplayPrice.js +59 -0
- package/lib/commonjs/ui/hooks/useDisplayPrice.js.map +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/index.js +7 -0
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js +63 -20
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +4 -3
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +5 -4
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +5 -4
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/appAssertion/AppAssertionContext.js +72 -0
- package/lib/module/ui/appAssertion/AppAssertionContext.js.map +1 -0
- package/lib/module/ui/appAssertion/appAssertionManager.js +304 -0
- package/lib/module/ui/appAssertion/appAssertionManager.js.map +1 -0
- package/lib/module/ui/appAssertion/appIntegrityPlatform.js +14 -0
- package/lib/module/ui/appAssertion/appIntegrityPlatform.js.map +1 -0
- package/lib/module/ui/appAssertion/appIntegrityPlatform.native.js +26 -0
- package/lib/module/ui/appAssertion/appIntegrityPlatform.native.js.map +1 -0
- package/lib/module/ui/appAssertion/appIntegrityTypes.js +4 -0
- package/lib/module/ui/appAssertion/appIntegrityTypes.js.map +1 -0
- package/lib/module/ui/components/AccountInvitationAcceptance.js +94 -0
- package/lib/module/ui/components/AccountInvitationAcceptance.js.map +1 -0
- package/lib/module/ui/components/DisplayCurrencySelector.js +44 -0
- package/lib/module/ui/components/DisplayCurrencySelector.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +116 -0
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +6 -2
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +10 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationKeys.js +4 -0
- package/lib/module/ui/hooks/mutations/mutationKeys.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +47 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +6 -1
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js +33 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/useDisplayCurrency.js +72 -0
- package/lib/module/ui/hooks/useDisplayCurrency.js.map +1 -0
- package/lib/module/ui/hooks/useDisplayPrice.js +56 -0
- package/lib/module/ui/hooks/useDisplayPrice.js.map +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/index.js +1 -0
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js +63 -20
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +4 -3
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +7 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/appAssertion/AppAssertionContext.d.ts +41 -0
- package/lib/typescript/commonjs/ui/appAssertion/AppAssertionContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/appAssertion/appAssertionManager.d.ts +92 -0
- package/lib/typescript/commonjs/ui/appAssertion/appAssertionManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityPlatform.d.ts +9 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityPlatform.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityPlatform.native.d.ts +3 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityPlatform.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityTypes.d.ts +22 -0
- package/lib/typescript/commonjs/ui/appAssertion/appIntegrityTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/AccountInvitationAcceptance.d.ts +5 -0
- package/lib/typescript/commonjs/ui/components/AccountInvitationAcceptance.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DisplayCurrencySelector.d.ts +3 -0
- package/lib/typescript/commonjs/ui/components/DisplayCurrencySelector.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileAppAccessSection.d.ts +15 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +20 -2
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +5 -0
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts +11 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDisplayCurrency.d.ts +11 -0
- package/lib/typescript/commonjs/ui/hooks/useDisplayCurrency.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useDisplayPrice.d.ts +6 -0
- package/lib/typescript/commonjs/ui/hooks/useDisplayPrice.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +1 -0
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +7 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/appAssertion/AppAssertionContext.d.ts +41 -0
- package/lib/typescript/module/ui/appAssertion/AppAssertionContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/appAssertion/appAssertionManager.d.ts +92 -0
- package/lib/typescript/module/ui/appAssertion/appAssertionManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityPlatform.d.ts +9 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityPlatform.d.ts.map +1 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityPlatform.native.d.ts +3 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityPlatform.native.d.ts.map +1 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityTypes.d.ts +22 -0
- package/lib/typescript/module/ui/appAssertion/appIntegrityTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/AccountInvitationAcceptance.d.ts +5 -0
- package/lib/typescript/module/ui/components/AccountInvitationAcceptance.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DisplayCurrencySelector.d.ts +3 -0
- package/lib/typescript/module/ui/components/DisplayCurrencySelector.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileAppAccessSection.d.ts +15 -0
- package/lib/typescript/module/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +2 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +20 -2
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +5 -0
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts +11 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDisplayCurrency.d.ts +11 -0
- package/lib/typescript/module/ui/hooks/useDisplayCurrency.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useDisplayPrice.d.ts +6 -0
- package/lib/typescript/module/ui/hooks/useDisplayPrice.d.ts.map +1 -0
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +1 -0
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/package.json +9 -6
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +5 -4
- package/src/index.ts +17 -0
- package/src/ui/appAssertion/AppAssertionContext.tsx +109 -0
- package/src/ui/appAssertion/appAssertionManager.ts +363 -0
- package/src/ui/appAssertion/appIntegrityPlatform.native.ts +27 -0
- package/src/ui/appAssertion/appIntegrityPlatform.ts +12 -0
- package/src/ui/appAssertion/appIntegrityTypes.ts +23 -0
- package/src/ui/components/AccountInvitationAcceptance.tsx +90 -0
- package/src/ui/components/DisplayCurrencySelector.tsx +38 -0
- package/src/ui/components/__tests__/AccountInvitationAcceptance.test.tsx +61 -0
- package/src/ui/components/fileManagement/FileAppAccessSection.tsx +111 -0
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +5 -1
- package/src/ui/context/OxyContext.tsx +13 -1
- package/src/ui/hooks/mutations/mutationKeys.ts +5 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +33 -0
- package/src/ui/hooks/queries/queryKeys.ts +5 -0
- package/src/ui/hooks/queries/useFileQueries.ts +44 -2
- package/src/ui/hooks/useDisplayCurrency.ts +64 -0
- package/src/ui/hooks/useDisplayPrice.ts +40 -0
- package/src/ui/icons/subsetGlyphMaps.ts +1 -0
- package/src/ui/index.ts +2 -0
- package/src/ui/screens/AccountMembersScreen.tsx +71 -27
- package/src/ui/screens/PreferencesScreen.tsx +2 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.appIntegrityPlatform = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /**
|
|
9
|
+
* iOS and Android: the app proves itself with App Attest or Play Integrity
|
|
10
|
+
* through `@expo/app-integrity` (ADR 0045).
|
|
11
|
+
*
|
|
12
|
+
* The module is loaded lazily, and its `import()` is a direct statement of a
|
|
13
|
+
* `try` block — the shape Metro marks OPTIONAL — so an app bundle that lacks
|
|
14
|
+
* the package, or a binary built before it was added (an over-the-air update
|
|
15
|
+
* of the JavaScript alone), still boots: `requireNativeModule` throws inside
|
|
16
|
+
* the import, and the app simply has no assertion.
|
|
17
|
+
*/
|
|
18
|
+
async function loadIntegrity() {
|
|
19
|
+
try {
|
|
20
|
+
const integrity = await Promise.resolve().then(() => _interopRequireWildcard(require('@expo/app-integrity')));
|
|
21
|
+
return integrity;
|
|
22
|
+
} catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const appIntegrityPlatform = exports.appIntegrityPlatform = {
|
|
27
|
+
platform: _reactNative.Platform.OS === 'ios' ? 'ios' : _reactNative.Platform.OS === 'android' ? 'android' : 'web',
|
|
28
|
+
loadIntegrity: _reactNative.Platform.OS === 'ios' || _reactNative.Platform.OS === 'android' ? loadIntegrity : async () => null
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=appIntegrityPlatform.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","loadIntegrity","integrity","Promise","resolve","then","appIntegrityPlatform","exports","platform","Platform","OS"],"sourceRoot":"../../../../src","sources":["ui/appAssertion/appIntegrityPlatform.native.ts"],"mappings":";;;;;;AAUA,IAAAA,YAAA,GAAAC,OAAA;AAAwC,SAAAC,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,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AG;EACxDE,QAAQ,EAAEC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,KAAK,GAAGD,qBAAQ,CAACC,EAAE,KAAK,SAAS,GAAG,SAAS,GAAG,KAAK;EACvFT,aAAa,EACXQ,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAID,qBAAQ,CAACC,EAAE,KAAK,SAAS,GAAGT,aAAa,GAAG,YAAY;AACrF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ui/appAssertion/appIntegrityTypes.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AccountInvitationAcceptance = AccountInvitationAcceptance;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _typography = require("@oxy.so/bloom/typography");
|
|
10
|
+
var _button = require("@oxy.so/bloom/button");
|
|
11
|
+
var _core = require("@oxy.so/core");
|
|
12
|
+
var _OxyContext = require("../context/OxyContext.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
/** The link never grants access on navigation, preview, sign-in or account switching. */
|
|
15
|
+
function AccountInvitationAcceptance({
|
|
16
|
+
token
|
|
17
|
+
}) {
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InvitationContent, {
|
|
19
|
+
token: token
|
|
20
|
+
}, token);
|
|
21
|
+
}
|
|
22
|
+
function InvitationContent({
|
|
23
|
+
token
|
|
24
|
+
}) {
|
|
25
|
+
const {
|
|
26
|
+
oxyServices,
|
|
27
|
+
user,
|
|
28
|
+
canUsePrivateApi,
|
|
29
|
+
openAccountDialog
|
|
30
|
+
} = (0, _OxyContext.useOxy)();
|
|
31
|
+
const [preview, setPreview] = (0, _react.useState)(null);
|
|
32
|
+
const [error, setError] = (0, _react.useState)('');
|
|
33
|
+
const [busy, setBusy] = (0, _react.useState)(false);
|
|
34
|
+
const [accepted, setAccepted] = (0, _react.useState)(false);
|
|
35
|
+
(0, _react.useEffect)(() => {
|
|
36
|
+
let alive = true;
|
|
37
|
+
setPreview(null);
|
|
38
|
+
setError('');
|
|
39
|
+
if (canUsePrivateApi && token) {
|
|
40
|
+
oxyServices.accounts.invitations.preview(token).then(value => {
|
|
41
|
+
if (alive) setPreview(value);
|
|
42
|
+
}).catch(reason => {
|
|
43
|
+
if (alive) setError(reason instanceof Error ? reason.message : 'Invitation unavailable');
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return () => {
|
|
47
|
+
alive = false;
|
|
48
|
+
};
|
|
49
|
+
}, [oxyServices, canUsePrivateApi, token]);
|
|
50
|
+
const accept = async () => {
|
|
51
|
+
if (!user || !preview) return;
|
|
52
|
+
setBusy(true);
|
|
53
|
+
setError('');
|
|
54
|
+
try {
|
|
55
|
+
await oxyServices.accounts.invitations.accept(token, user.id);
|
|
56
|
+
setAccepted(true);
|
|
57
|
+
} catch (reason) {
|
|
58
|
+
setError(reason instanceof Error ? reason.message : 'Could not accept invitation');
|
|
59
|
+
} finally {
|
|
60
|
+
setBusy(false);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
64
|
+
className: "gap-space-16 p-space-24",
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
66
|
+
className: "text-title font-semibold text-text",
|
|
67
|
+
children: "Account invitation"
|
|
68
|
+
}), canUsePrivateApi && token && !preview && !error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
69
|
+
accessibilityRole: "progressbar",
|
|
70
|
+
children: "Loading invitation\u2026"
|
|
71
|
+
}) : null, accepted ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
72
|
+
children: "Invitation accepted. You can now access this account."
|
|
73
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
74
|
+
children: [preview ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
|
|
75
|
+
children: ["Join ", preview.account.displayName ?? preview.account.username, " as", ' ', preview.invitation.role, "."]
|
|
76
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
|
|
77
|
+
children: ["Selected account:", ' ', user ? `${user.name?.displayName ?? (0, _core.getNormalizedUserHandle)(user) ?? user.id} (${user.email ?? user.id})` : 'Not signed in']
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
79
|
+
children: "The selected account receives access. Its email can differ from the invitation address. No access is granted until you confirm."
|
|
80
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
81
|
+
disabled: busy,
|
|
82
|
+
onPress: () => openAccountDialog(),
|
|
83
|
+
children: user ? 'Change account' : 'Sign in or create account'
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
85
|
+
disabled: busy || !user || !preview || user.kind !== 'personal',
|
|
86
|
+
onPress: accept,
|
|
87
|
+
children: "Confirm and accept"
|
|
88
|
+
})]
|
|
89
|
+
}), error ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
90
|
+
accessibilityRole: "alert",
|
|
91
|
+
children: error
|
|
92
|
+
}) : null, !token ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
93
|
+
children: "This invitation link is incomplete."
|
|
94
|
+
}) : null]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=AccountInvitationAcceptance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_typography","_button","_core","_OxyContext","_jsxRuntime","AccountInvitationAcceptance","token","jsx","InvitationContent","oxyServices","user","canUsePrivateApi","openAccountDialog","useOxy","preview","setPreview","useState","error","setError","busy","setBusy","accepted","setAccepted","useEffect","alive","accounts","invitations","then","value","catch","reason","Error","message","accept","id","jsxs","View","className","children","Text","accessibilityRole","Fragment","account","displayName","username","invitation","role","name","getNormalizedUserHandle","email","Button","disabled","onPress","kind"],"sourceRoot":"../../../../src","sources":["ui/components/AccountInvitationAcceptance.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAA+C,IAAAM,WAAA,GAAAN,OAAA;AAE/C;AACO,SAASO,2BAA2BA,CAAC;EAAEC;AAAyB,CAAC,EAAE;EACxE,oBAAO,IAAAF,WAAA,CAAAG,GAAA,EAACC,iBAAiB;IAAaF,KAAK,EAAEA;EAAM,GAApBA,KAAsB,CAAC;AACxD;AAEA,SAASE,iBAAiBA,CAAC;EAAEF;AAAyB,CAAC,EAAE;EACvD,MAAM;IAAEG,WAAW;IAAEC,IAAI;IAAEC,gBAAgB;IAAEC;EAAkB,CAAC,GAAG,IAAAC,kBAAM,EAAC,CAAC;EAC3E,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAkC,IAAI,CAAC;EAC7E,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAF,eAAQ,EAAC,EAAE,CAAC;EACtC,MAAM,CAACG,IAAI,EAAEC,OAAO,CAAC,GAAG,IAAAJ,eAAQ,EAAC,KAAK,CAAC;EACvC,MAAM,CAACK,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAN,eAAQ,EAAC,KAAK,CAAC;EAC/C,IAAAO,gBAAS,EAAC,MAAM;I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A,CAAAiD,MAAM;QAACC,QAAQ,EAAEhC,IAAK;QAACiC,OAAO,EAAEA,CAAA,KAAMxC,iBAAiB,CAAC,CAAE;QAAA0B,QAAA,EACxD5B,IAAI,GAAG,gBAAgB,GAAG;MAA2B,CAChD,CAAC,eACT,IAAAN,WAAA,CAAAG,GAAA,EAACN,OAAA,CAAAiD,MAAM;QAACC,QAAQ,EAAEhC,IAAI,IAAI,CAACT,IAAI,IAAI,CAACI,OAAO,IAAIJ,IAAI,CAAC2C,IAAI,KAAK,UAAW;QAACD,OAAO,EAAEnB,MAAO;QAAAK,QAAA,EAAC;MAE1F,CAAQ,CAAC;IAAA,CACT,CACH,EACArB,KAAK,gBAAG,IAAAb,WAAA,CAAAG,GAAA,EAACP,WAAA,CAAAuC,IAAI;MAACC,iBAAiB,EAAC,OAAO;MAAAF,QAAA,EAAErB;IAAK,CAAO,CAAC,GAAG,IAAI,EAC7D,CAACX,KAAK,gBAAG,IAAAF,WAAA,CAAAG,GAAA,EAACP,WAAA,CAAAuC,IAAI;MAAAD,QAAA,EAAC;IAAmC,CAAM,CAAC,GAAG,IAAI;EAAA,CAC7D,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DisplayCurrencySelector = DisplayCurrencySelector;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _segmentedControl = require("@oxy.so/bloom/segmented-control");
|
|
10
|
+
var _typography = require("@oxy.so/bloom/typography");
|
|
11
|
+
var _useDisplayCurrency = require("../hooks/useDisplayCurrency.js");
|
|
12
|
+
var _useI18n = require("../hooks/useI18n.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function DisplayCurrencySelector() {
|
|
16
|
+
const {
|
|
17
|
+
currency,
|
|
18
|
+
selectCurrency,
|
|
19
|
+
isSaving,
|
|
20
|
+
error
|
|
21
|
+
} = (0, _useDisplayCurrency.useDisplayCurrency)();
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = (0, _useI18n.useI18n)();
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
26
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
27
|
+
children: t('preferences.displayCurrency.label')
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_segmentedControl.SegmentedControl, {
|
|
29
|
+
type: "radio",
|
|
30
|
+
label: t('preferences.displayCurrency.label'),
|
|
31
|
+
value: currency,
|
|
32
|
+
onValueChange: value => {
|
|
33
|
+
const selected = _useDisplayCurrency.DISPLAY_CURRENCIES.find(item => item === value);
|
|
34
|
+
if (selected && !isSaving) selectCurrency(selected);
|
|
35
|
+
},
|
|
36
|
+
children: _useDisplayCurrency.DISPLAY_CURRENCIES.map(value => /*#__PURE__*/(0, _jsxRuntime.jsx)(_segmentedControl.SegmentedControlItem, {
|
|
37
|
+
value: value,
|
|
38
|
+
disabled: isSaving,
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_segmentedControl.SegmentedControlItemText, {
|
|
40
|
+
children: value
|
|
41
|
+
})
|
|
42
|
+
}, value))
|
|
43
|
+
}), error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
44
|
+
accessibilityLiveRegion: "polite",
|
|
45
|
+
children: t('preferences.displayCurrency.saveFailed')
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=DisplayCurrencySelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_segmentedControl","_typography","_useDisplayCurrency","_useI18n","_jsxRuntime","e","__esModule","default","DisplayCurrencySelector","currency","selectCurrency","isSaving","error","useDisplayCurrency","t","useI18n","jsxs","View","children","jsx","Text","SegmentedControl","type","label","value","onValueChange","selected","DISPLAY_CURRENCIES","find","item","map","SegmentedControlItem","disabled","SegmentedControlItemText","accessibilityLiveRegion"],"sourceRoot":"../../../../src","sources":["ui/components/DisplayCurrencySelector.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAKA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAA2C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC,SAASG,uBAAuBA,CAAA,EAAG;EACxC,MAAM;IAAEC,QAAQ;IAAEC,cAAc;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAG,IAAAC,sCAAkB,EAAC,CAAC;EAC1E,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,oBACE,IAAAX,WAAA,CAAAY,IAAA,EAACjB,YAAA,CAAAkB,IAAI;IAAAC,QAAA,gBACH,IAAAd,WAAA,CAAAe,GAAA,EAAClB,WAAA,CAAAmB,IAAI;MAAAF,QAAA,EAAEJ,CAAC,CAAC,mCAAmC;IAAC,CAAO,CAAC,eACrD,IAAAV,WAAA,CAAAe,GAAA,EAACnB,iBAAA,CAAAqB,gBAAgB;MACfC,IAAI,EAAC,OAAO;MACZC,KAAK,EAAET,CAAC,CAAC,mCAAmC,CAAE;MAC9CU,KAAK,EAAEf,QAAS;MAChBgB,aAAa,EAAGD,KAAK,IAAK;QACxB,MAAME,QAAQ,GAAGC,sCAAkB,CAACC,IAAI,CAAEC,IAAI,IAAKA,IAAI,KAAKL,KAAK,CAAC;QAClE,IAAIE,QAAQ,IAAI,CAACf,QAAQ,EAAED,cAAc,CAACgB,QAAQ,CAAC;MACrD,CAAE;MAAAR,QAAA,EAEDS,sCAAkB,CAACG,GAAG,CAAEN,KAAK,iBAC5B,IAAApB,WAAA,CAAAe,GAAA,EAACnB,iBAAA,CAAA+B,oBAAoB;QAAaP,KAAK,EAAEA,KAAM;QAACQ,QAAQ,EAAErB,QAAS;QAAAO,QAAA,eACjE,IAAAd,WAAA,CAAAe,GAAA,EAACnB,iBAAA,CAAAiC,wBAAwB;UAAAf,QAAA,EAAEM;QAAK,CAA2B;MAAC,GADnCA,KAEL,CACvB;IAAC,CACc,CAAC,EAClBZ,KAAK,iBACJ,IAAAR,WAAA,CAAAe,GAAA,EAAClB,WAAA,CAAAmB,IAAI;MAACc,uBAAuB,EAAC,QAAQ;MAAAhB,QAAA,EAAEJ,CAAC,CAAC,wCAAwC;IAAC,CAAO,CAC3F;EAAA,CACG,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FileAppAccessSection = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _avatar = require("@oxy.so/bloom/avatar");
|
|
10
|
+
var _button = require("@oxy.so/bloom/button");
|
|
11
|
+
var _settingsList = require("@oxy.so/bloom/settings-list");
|
|
12
|
+
var _surfaces = require("@oxy.so/bloom/surfaces");
|
|
13
|
+
var _theme = require("@oxy.so/bloom/theme");
|
|
14
|
+
var _toast = require("@oxy.so/bloom/toast");
|
|
15
|
+
var _typography = require("@oxy.so/bloom/typography");
|
|
16
|
+
var _useI18n = require("../../hooks/useI18n.js");
|
|
17
|
+
var _useFileQueries = require("../../hooks/queries/useFileQueries.js");
|
|
18
|
+
var _useAccountMutations = require("../../hooks/mutations/useAccountMutations.js");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
+
const APP_ICON_SIZE = 32;
|
|
21
|
+
/**
|
|
22
|
+
* "Apps with access" (ADR 0043 stage 4c): the applications that can open this
|
|
23
|
+
* file on their own — one that stored it for the person (`upload`), one the
|
|
24
|
+
* person attached it to (`link`) — each with a Revoke action behind a
|
|
25
|
+
* confirmation. Revoking stops the application reading the file and every
|
|
26
|
+
* playback it started; the row leaves the list at once and comes back if the
|
|
27
|
+
* revoke fails. Shown only on the owner's own file.
|
|
28
|
+
*/
|
|
29
|
+
const FileAppAccessSection = ({
|
|
30
|
+
fileId
|
|
31
|
+
}) => {
|
|
32
|
+
const {
|
|
33
|
+
t
|
|
34
|
+
} = (0, _useI18n.useI18n)();
|
|
35
|
+
const {
|
|
36
|
+
colors
|
|
37
|
+
} = (0, _theme.useTheme)();
|
|
38
|
+
const {
|
|
39
|
+
data: apps,
|
|
40
|
+
isLoading,
|
|
41
|
+
isError
|
|
42
|
+
} = (0, _useFileQueries.useFileAppAccess)(fileId);
|
|
43
|
+
const revoke = (0, _useAccountMutations.useRevokeFileAppAccess)();
|
|
44
|
+
const [revokingId, setRevokingId] = (0, _react.useState)(null);
|
|
45
|
+
const confirmRevoke = (0, _react.useCallback)(async app => {
|
|
46
|
+
const confirmed = await _surfaces.surfaces.confirm({
|
|
47
|
+
title: t('fileManagement.appAccess.confirm.title', {
|
|
48
|
+
name: app.name
|
|
49
|
+
}),
|
|
50
|
+
description: t('fileManagement.appAccess.confirm.message', {
|
|
51
|
+
name: app.name
|
|
52
|
+
}),
|
|
53
|
+
confirmLabel: t('fileManagement.appAccess.revoke'),
|
|
54
|
+
cancelLabel: t('common.cancel'),
|
|
55
|
+
destructive: true
|
|
56
|
+
});
|
|
57
|
+
if (!confirmed) return;
|
|
58
|
+
setRevokingId(app.applicationId);
|
|
59
|
+
try {
|
|
60
|
+
await revoke.mutateAsync({
|
|
61
|
+
fileId,
|
|
62
|
+
applicationId: app.applicationId
|
|
63
|
+
});
|
|
64
|
+
_toast.toast.success(t('fileManagement.appAccess.toasts.revoked', {
|
|
65
|
+
name: app.name
|
|
66
|
+
}));
|
|
67
|
+
} catch {
|
|
68
|
+
_toast.toast.error(t('fileManagement.appAccess.toasts.revokeFailed', {
|
|
69
|
+
name: app.name
|
|
70
|
+
}));
|
|
71
|
+
} finally {
|
|
72
|
+
setRevokingId(null);
|
|
73
|
+
}
|
|
74
|
+
}, [fileId, revoke, t]);
|
|
75
|
+
const viaText = app => app.via.map(via => t(`fileManagement.appAccess.via.${via}`)).join(' · ');
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
77
|
+
className: "w-full mb-space-24",
|
|
78
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
79
|
+
className: "text-text text-[16px] font-semibold mb-space-4",
|
|
80
|
+
children: t('fileManagement.appAccess.title')
|
|
81
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
82
|
+
className: "text-text-secondary text-[14px] mb-space-12",
|
|
83
|
+
children: t('fileManagement.appAccess.description')
|
|
84
|
+
}), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
85
|
+
color: colors.primary
|
|
86
|
+
}) : isError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
87
|
+
className: "text-text-secondary text-[14px]",
|
|
88
|
+
children: t('fileManagement.appAccess.loadError')
|
|
89
|
+
}) : !apps || apps.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
90
|
+
className: "text-text-secondary text-[14px]",
|
|
91
|
+
children: t('fileManagement.appAccess.empty')
|
|
92
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListGroup, {
|
|
93
|
+
children: apps.map(app => /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
94
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.Avatar, {
|
|
95
|
+
source: app.icon,
|
|
96
|
+
name: app.name,
|
|
97
|
+
size: APP_ICON_SIZE
|
|
98
|
+
}),
|
|
99
|
+
title: app.name,
|
|
100
|
+
description: viaText(app),
|
|
101
|
+
showChevron: false,
|
|
102
|
+
rightElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
103
|
+
appearance: "subtle",
|
|
104
|
+
tone: "danger",
|
|
105
|
+
size: "sm",
|
|
106
|
+
loading: revokingId === app.applicationId,
|
|
107
|
+
disabled: revokingId !== null,
|
|
108
|
+
accessibilityLabel: t('fileManagement.appAccess.a11y.revoke', {
|
|
109
|
+
name: app.name
|
|
110
|
+
}),
|
|
111
|
+
onPress: () => {
|
|
112
|
+
void confirmRevoke(app);
|
|
113
|
+
},
|
|
114
|
+
children: t('fileManagement.appAccess.revoke')
|
|
115
|
+
})
|
|
116
|
+
}, app.applicationId))
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
exports.FileAppAccessSection = FileAppAccessSection;
|
|
121
|
+
//# sourceMappingURL=FileAppAccessSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_avatar","_button","_settingsList","_surfaces","_theme","_toast","_typography","_useI18n","_useFileQueries","_useAccountMutations","_jsxRuntime","APP_ICON_SIZE","FileAppAccessSection","fileId","t","useI18n","colors","useTheme","data","apps","isLoading","isError","useFileAppAccess","revoke","useRevokeFileAppAccess","revokingId","setRevokingId","useState","confirmRevoke","useCallback","app","confirmed","surfaces","confirm","title","name","description","confirmLabel","cancelLabel","destructive","applicationId","mutateAsync","toast","success","error","viaText","via","map","join","jsxs","View","className","children","jsx","Text","ActivityIndicator","color","primary","length","SettingsListGroup","SettingsListItem","icon","Avatar","source","size","showChevron","rightElement","Button","appearance","tone","loading","disabled","accessibilityLabel","onPress","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/fileManagement/FileAppAccessSection.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AAEA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,eAAA,GAAAV,OAAA;AACA,IAAAW,oBAAA,GAAAX,OAAA;AAAmF,IAAAY,WAAA,GAAAZ,OAAA;AAEnF,MAAMa,aAAa,GAAG,EAAE;AAMxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,oBAAyD,GAAGA,CAAC;EAAEC;AAAO,CAAC,KAAK;EACvF,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,gBAAO,EAAC,CAAC;EACvB,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAC7B,MAAM;IAAEC,IAAI,EAAEC,IAAI;IAAEC,SAAS;IAAEC;EAAQ,CAAC,GAAG,IAAAC,gCAAgB,EAACT,MAAM,CAAC;EACnE,MAAMU,MAAM,GAAG,IAAAC,2CAAsB,EAAC,CAAC;EACvC,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG,IAAAC,eAAQ,EAAgB,IAAI,CAAC;EAEjE,MAAMC,aAAa,GAAG,IAAAC,kBAAW,EAC/B,MAAOC,GAA0B,IAAK;IACpC,MAAMC,SAAS,GAAG,MAAMC,kBAAQ,CAACC,OAAO,CAAC;MACvCC,KAAK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AM;QACnBC,YAAY,eACV,IAAAxD,WAAA,CAAA2C,GAAA,EAACpD,OAAA,CAAAkE,MAAM;UACLC,UAAU,EAAC,QAAQ;UACnBC,IAAI,EAAC,QAAQ;UACbL,IAAI,EAAC,IAAI;UACTM,OAAO,EAAE7C,UAAU,KAAKK,GAAG,CAACU,aAAc;UAC1C+B,QAAQ,EAAE9C,UAAU,KAAK,IAAK;UAC9B+C,kBAAkB,EAAE1D,CAAC,CAAC,sCAAsC,EAAE;YAAEqB,IAAI,EAAEL,GAAG,CAACK;UAAK,CAAC,CAAE;UAClFsC,OAAO,EAAEA,CAAA,KAAM;YACb,KAAK7C,aAAa,CAACE,GAAG,CAAC;UACzB,CAAE;UAAAsB,QAAA,EAEDtC,CAAC,CAAC,iCAAiC;QAAC,CAC/B;MACT,GAnBIgB,GAAG,CAACU,aAoBV,CACF;IAAC,CACe,CACpB;EAAA,CACG,CAAC;AAEX,CAAC;AAACkC,OAAA,CAAA9D,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -14,11 +14,13 @@ var _theme = require("@oxy.so/bloom/theme");
|
|
|
14
14
|
var _surfaces = require("@oxy.so/bloom/surfaces");
|
|
15
15
|
var _useI18n = require("../../hooks/useI18n.js");
|
|
16
16
|
var _fileManagement = require("../../utils/fileManagement.js");
|
|
17
|
+
var _FileAppAccessSection = require("./FileAppAccessSection.js");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
20
|
/**
|
|
20
21
|
* File-detail panel — a rich presented surface (NOT a yes/no confirm): a file's
|
|
21
|
-
* icon + metadata
|
|
22
|
+
* icon + metadata, for the owner the applications that can open it ("Apps with
|
|
23
|
+
* access", ADR 0043 stage 4c), plus download / delete / cancel actions. Each action first
|
|
22
24
|
* dismisses this surface, then runs its handler, so a follow-up delete confirm
|
|
23
25
|
* stacks cleanly above whatever remains. Presented via {@link presentFileDetails}.
|
|
24
26
|
*/
|
|
@@ -88,7 +90,9 @@ const FileDetailsModal = ({
|
|
|
88
90
|
children: file.metadata.description
|
|
89
91
|
})]
|
|
90
92
|
})]
|
|
91
|
-
})
|
|
93
|
+
}), isOwner ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileAppAccessSection.FileAppAccessSection, {
|
|
94
|
+
fileId: file.id
|
|
95
|
+
}) : null]
|
|
92
96
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
93
97
|
style: {
|
|
94
98
|
gap: 8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_card","_typography","_Ionicons","_interopRequireDefault","_button","_theme","_surfaces","_useI18n","_fileManagement","_jsxRuntime","e","__esModule","default","FileDetailsModal","surface","file","onDownload","onDelete","isOwner","t","useI18n","colors","useTheme","jsxs","View","children","Card","appearance","className","jsx","name","getFileIcon","contentType","size","color","primary","Text","filename","formatFileSize","length","Date","uploadDate","toLocaleString","metadata","description","style","gap","Button","tone","onPress","dismiss","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_card","_typography","_Ionicons","_interopRequireDefault","_button","_theme","_surfaces","_useI18n","_fileManagement","_FileAppAccessSection","_jsxRuntime","e","__esModule","default","FileDetailsModal","surface","file","onDownload","onDelete","isOwner","t","useI18n","colors","useTheme","jsxs","View","children","Card","appearance","className","jsx","name","getFileIcon","contentType","size","color","primary","Text","filename","formatFileSize","length","Date","uploadDate","toLocaleString","metadata","description","FileAppAccessSection","fileId","id","style","gap","Button","tone","onPress","dismiss","exports","presentFileDetails","options","surfaces","present"],"sourceRoot":"../../../../../src","sources":["ui/components/fileManagement/FileDetailsModal.tsx"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAA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UACjBrC,UAAU,CAACD,IAAI,CAACgC,EAAE,EAAEhC,IAAI,CAACsB,QAAQ,CAAC;QACpC,CAAE;QAAAZ,QAAA,EAEDN,CAAC,CAAC,iCAAiC;MAAC,CAC/B,CAAC,EACRD,OAAO,gBACN,IAAAT,WAAA,CAAAoB,GAAA,EAAC1B,OAAA,CAAA+C,MAAM;QACLvB,UAAU,EAAC,OAAO;QAClBwB,IAAI,EAAC,QAAQ;QACbC,OAAO,EAAEA,CAAA,KAAM;UACbtC,OAAO,CAACuC,OAAO,CAAC,CAAC;UACjBpC,QAAQ,CAACF,IAAI,CAACgC,EAAE,EAAEhC,IAAI,CAACsB,QAAQ,CAAC;QAClC,CAAE;QAAAZ,QAAA,EAEDN,CAAC,CAAC,uBAAuB;MAAC,CACrB,CAAC,GACP,IAAI,eACR,IAAAV,WAAA,CAAAoB,GAAA,EAAC1B,OAAA,CAAA+C,MAAM;QAACvB,UAAU,EAAC,QAAQ;QAACwB,IAAI,EAAC,SAAS;QAACC,OAAO,EAAEA,CAAA,KAAMtC,OAAO,CAACuC,OAAO,CAAC,CAAE;QAAA5B,QAAA,EACzEN,CAAC,CAAC,eAAe;MAAC,CACb,CAAC;IAAA,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;;AAED;AAAAmC,OAAA,CAAAzC,gBAAA,GAAAA,gBAAA;AAGA;AACO,SAAS0C,kBAAkBA,CAACC,OAAkC,EAAQ;EAC3E,KAAKC,kBAAQ,CAACC,OAAO,CAAE5C,OAAO,iBAAK,IAAAL,WAAA,CAAAoB,GAAA,EAAChB,gBAAgB;IAACC,OAAO,EAAEA,OAAQ;IAAA,GAAK0C;EAAO,CAAG,CAAC,CAAC;AACzF","ignoreList":[]}
|
|
@@ -46,6 +46,7 @@ var _useFollow = require("../hooks/useFollow.js");
|
|
|
46
46
|
var _commitSessionFlow = require("./commitSessionFlow.js");
|
|
47
47
|
var _signInFlowStore = require("../components/signIn/signInFlowStore.js");
|
|
48
48
|
var _useOxyAccountGraph = require("./useOxyAccountGraph.js");
|
|
49
|
+
var _AppAssertionContext = require("../appAssertion/AppAssertionContext.js");
|
|
49
50
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
50
51
|
// `useFollow` imports this module back, so the binding must only be READ inside
|
|
51
52
|
// the provider body — at render time, once every module has evaluated. It is
|
|
@@ -1399,7 +1400,15 @@ const OxyRuntimeProvider = ({
|
|
|
1399
1400
|
value: authActionsValue,
|
|
1400
1401
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OxyRuntimeContext.Provider, {
|
|
1401
1402
|
value: contextValue,
|
|
1402
|
-
children:
|
|
1403
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppAssertionContext.AppAssertionProvider, {
|
|
1404
|
+
oxyServices: oxyServices,
|
|
1405
|
+
clientId: clientId,
|
|
1406
|
+
userId: canUsePrivateApi ? user?.id ?? null : null,
|
|
1407
|
+
sessionId: canUsePrivateApi ? activeSessionId : null,
|
|
1408
|
+
storage: storage,
|
|
1409
|
+
storageKeyPrefix: storageKeyPrefix,
|
|
1410
|
+
children: children
|
|
1411
|
+
})
|
|
1403
1412
|
})
|
|
1404
1413
|
})
|
|
1405
1414
|
});
|