@omnia/fx 7.12.14 → 7.12.16
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/events/package.json +1 -1
- package/internal-do-not-import-from-here/core/Provide.d.ts +6 -1
- package/internal-do-not-import-from-here/index.d.ts +3 -1
- package/internal-do-not-import-from-here/stores/IdentityStore.d.ts +10 -0
- package/internal-do-not-import-from-here/ux/AnchorLink.d.ts +7 -2
- package/internal-do-not-import-from-here/ux/UxModels.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/filterengine/handler/NumberFilterEngineHandler.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/profilecard/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/PastingOmniaImageFromClipboardHandler.d.ts +27 -2
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/MediaPicker/loc/localize.d.ts +1 -0
- package/messaging/package.json +1 -1
- package/models/package.json +1 -1
- package/package.json +2 -2
- package/services/package.json +1 -1
- package/sp/models/package.json +1 -1
- package/sp/package.json +1 -1
- package/spfx/package.json +1 -1
- package/spfx/tooling/package.json +1 -1
- package/stores/package.json +1 -1
- package/ux/admin/package.json +1 -1
- package/ux/app/package.json +1 -1
- package/ux/editor/package.json +1 -1
- package/ux/package.json +1 -1
- package/ux/richtexteditor/package.json +1 -1
- package/ux/vuetify/package.json +1 -1
package/events/package.json
CHANGED
|
@@ -18,7 +18,12 @@ export declare function Provide<T>(classType: any, constructorArgs?: T): any;
|
|
|
18
18
|
* the name of the interface should follow <classType>Constructor i.e.
|
|
19
19
|
* Type: HttpClient, if supporting constructor arguments an interface named: "HttpClientConstructor" should be supplied.
|
|
20
20
|
*
|
|
21
|
+
* @param provideOptions - Optional settings. Set disposeOnDestroy to false when providing an existing instance that this component
|
|
22
|
+
* does not own (e.g. one created by another component), so it is not disposed when this component is destroyed.
|
|
23
|
+
*
|
|
21
24
|
* E.g.:
|
|
22
25
|
* useInject<HttpClientConstructor>(HttpClient,{someConstructorArg1:"",someConstructorArg2})
|
|
23
26
|
*/
|
|
24
|
-
export declare function useProvide<TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor
|
|
27
|
+
export declare function useProvide<TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor, provideOptions?: {
|
|
28
|
+
disposeOnDestroy?: boolean;
|
|
29
|
+
}): TProvide extends new (...args: any) => infer P ? P : TProvide extends Object ? TProvide : never;
|
|
@@ -49,7 +49,9 @@ export declare function setCurrentManifest(omniaServiceId: any, resourceId: any)
|
|
|
49
49
|
registerApi: typeof Exposes.registerApi;
|
|
50
50
|
ManifestResourceLoader: typeof Exposes.ManifestResourceLoader;
|
|
51
51
|
Provide<T>(classType: any, constructorArgs?: T): any;
|
|
52
|
-
useProvide<TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor
|
|
52
|
+
useProvide<TProvide, TConstructor>(provide: TProvide, constructorArgs?: TConstructor, provideOptions?: {
|
|
53
|
+
disposeOnDestroy?: boolean;
|
|
54
|
+
}): TProvide extends new (...args: any) => infer P ? P : TProvide extends Object ? TProvide : never;
|
|
53
55
|
Inject<T_1>(classType: any, constructorArgs?: T_1): any;
|
|
54
56
|
useInject<TClass, TConstructor_1>(classType: new (...args: any[]) => TClass, constructorArgs?: TConstructor_1): TClass;
|
|
55
57
|
isInjectable(type: any): boolean;
|
|
@@ -15,6 +15,8 @@ export interface IIdentityPickerStore {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class IdentityStore extends Store implements IIdentityPickerStore {
|
|
17
17
|
private identityService;
|
|
18
|
+
private omniaContext;
|
|
19
|
+
private static readonly currentUserWaitMs;
|
|
18
20
|
private identitiesState;
|
|
19
21
|
getters: {
|
|
20
22
|
getResolvedIdentity: (identity: Identity) => IResolvedIdentity;
|
|
@@ -32,5 +34,13 @@ export declare class IdentityStore extends Store implements IIdentityPickerStore
|
|
|
32
34
|
query: StoreAction<unknown, (query: IdentityQuery) => void, (result: ItemQueryResult<IResolvedIdentity>, query: IdentityQuery) => void, (failureReason: any, query: IdentityQuery) => void, (query: IdentityQuery) => Future<ItemQueryResult<IResolvedIdentity>>>;
|
|
33
35
|
};
|
|
34
36
|
protected onActivated(): void;
|
|
37
|
+
private static isAnonymousIdentity;
|
|
38
|
+
private requestIdentities;
|
|
39
|
+
/**
|
|
40
|
+
* Anonymous visitors (anonymous app routes) cannot read the directory, so the server refuses to resolve even their own
|
|
41
|
+
* anonymous identity. When the current user is anonymous, settle the anonymous identity as unresolved without a request.
|
|
42
|
+
* Signed-in users still resolve it from the server, e.g. to show it in permission settings.
|
|
43
|
+
*/
|
|
44
|
+
private settleOrRequestAnonymousIdentities;
|
|
35
45
|
}
|
|
36
46
|
export {};
|
|
@@ -22,7 +22,12 @@ declare class InternalAnchorLinkRouter extends TokenBasedRouter<AnchorLinkRoute,
|
|
|
22
22
|
protected buildContextPath(routeContext: AnchorLinkRoute): string;
|
|
23
23
|
protected resolveRouteFromPath(path: string): AnchorLinkRoute;
|
|
24
24
|
subscribe: (config: AnchorLinkConfiguration) => IMessageBusSubscriptionHandler;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Updates the anchor token in the url without triggering anchor subscribers.
|
|
27
|
+
* @param replace When true, the current history entry is replaced instead of pushing a new one
|
|
28
|
+
* (e.g. when the anchor changes because the user scrolls, which should not register in the browser history).
|
|
29
|
+
*/
|
|
30
|
+
silentNavigate: (anchorName: string, replace?: boolean) => void;
|
|
26
31
|
clearRoute: () => void;
|
|
27
32
|
getTokenValue: (stateData: StateData) => TokenBasedRouteStateData;
|
|
28
33
|
private useConfiguration;
|
|
@@ -43,7 +48,7 @@ export declare class AnchorLink {
|
|
|
43
48
|
disable(): void;
|
|
44
49
|
clear(): void;
|
|
45
50
|
subscribe(config: AnchorLinkConfiguration): IMessageBusSubscriptionHandler;
|
|
46
|
-
silentNavigate(anchorName: string): void;
|
|
51
|
+
silentNavigate(anchorName: string, replace?: boolean): void;
|
|
47
52
|
getTokenValue(stateData: StateData): TokenBasedRouteStateData;
|
|
48
53
|
static combine(path: string, anchorName: string): string | null;
|
|
49
54
|
static split(path: string): string[];
|
package/internal-do-not-import-from-here/ux/filterengine/handler/NumberFilterEngineHandler.d.ts
CHANGED
|
@@ -33,5 +33,10 @@ export default class NumberFilterEngineHandler extends Store implements ITypedFi
|
|
|
33
33
|
isRefinable(): boolean;
|
|
34
34
|
getSelectionCount(): number;
|
|
35
35
|
onActivated: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Query transformers pick the comparison type from the runtime value type, so a string such as
|
|
38
|
+
* "" or "5" becomes a text comparison and matches the wrong items. Keep the value a number or null.
|
|
39
|
+
*/
|
|
40
|
+
private static toNumberValue;
|
|
36
41
|
onDisposing: () => void;
|
|
37
42
|
}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { MediaPickerToolbarProperties } from "@omnia/fx-models";
|
|
1
|
+
import { MediaPickerToolbarProperties, TipTapEditor } from "@omnia/fx-models";
|
|
2
2
|
import { IMediaPicker } from "@omnia/fx/ux";
|
|
3
3
|
interface PastingOmniaImageFromClipboardHandlerProps extends MediaPickerToolbarProperties {
|
|
4
4
|
mediaPicker: IMediaPicker;
|
|
5
5
|
}
|
|
6
6
|
export declare module PastingOmniaImageFromClipboardHandler {
|
|
7
|
-
function onPaste(data: DataTransfer, props: PastingOmniaImageFromClipboardHandlerProps): void
|
|
7
|
+
function onPaste(data: DataTransfer, props: PastingOmniaImageFromClipboardHandlerProps): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Uploads every data:image in the editor (except sourcesToSkip) to the media picker storage and replaces it in place with a media picker image,
|
|
10
|
+
* the same way images pasted from Word are handled. An image that cannot be uploaded is removed, so no base64 image stays in the content.
|
|
11
|
+
* All images are claimed in one transaction: like the Word route's skeletons, a claimed image gets an empty src and a unique id while it
|
|
12
|
+
* uploads, so the base64 data is not in the content handed to the host once the image is claimed (right after the paste, or on the Word route
|
|
13
|
+
* once its images have loaded), and a later sweep never uploads it twice.
|
|
14
|
+
* Always resolves, with the number of images that were removed.
|
|
15
|
+
* */
|
|
16
|
+
function uploadBase64Images(props: PastingOmniaImageFromClipboardHandlerProps, sourcesToSkip: Map<string, number>): Promise<number>;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces every claimed image whose upload has finished with its uploaded image, or removes it when the upload failed.
|
|
19
|
+
* Kept out of the undo history.
|
|
20
|
+
* */
|
|
21
|
+
function applyBase64ImageOutcomes(props: PastingOmniaImageFromClipboardHandlerProps): void;
|
|
22
|
+
/**
|
|
23
|
+
* The toolbar calls this for every transaction. Undo, redo or a stale whole-content setContent can bring back a claimed image
|
|
24
|
+
* whose upload has finished; that can only happen through content the transaction inserts, so only that content is checked.
|
|
25
|
+
* */
|
|
26
|
+
function onEditorTransaction(props: PastingOmniaImageFromClipboardHandlerProps, transaction: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* Counts the data:image sources in the editor now, so a later uploadBase64Images can leave the images that were there before a paste alone.
|
|
29
|
+
* With excludeSelection (a paste, which replaces the selection), images inside the selection are not counted,
|
|
30
|
+
* so pasting over the whole content uploads its base64 images.
|
|
31
|
+
* */
|
|
32
|
+
function getBase64ImageSources(editor: TipTapEditor, excludeSelection: boolean): Map<string, number>;
|
|
8
33
|
}
|
|
9
34
|
export {};
|
package/messaging/package.json
CHANGED
package/models/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "7.12.
|
|
4
|
+
"version": "7.12.16",
|
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Omnia Digital Workplace AB",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@omnia/fx-models": "7.12.
|
|
23
|
+
"@omnia/fx-models": "7.12.16",
|
|
24
24
|
"@microsoft/signalr": "10.0.0",
|
|
25
25
|
"broadcast-channel": "7.3.0",
|
|
26
26
|
"dayjs": "1.11.19",
|
package/services/package.json
CHANGED
package/sp/models/package.json
CHANGED
package/sp/package.json
CHANGED
package/spfx/package.json
CHANGED
package/stores/package.json
CHANGED
package/ux/admin/package.json
CHANGED
package/ux/app/package.json
CHANGED
package/ux/editor/package.json
CHANGED
package/ux/package.json
CHANGED