@valiantys/atlassian-app-frontend 3.0.0 → 3.1.0-alpha-2

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.
Files changed (24) hide show
  1. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.cjs.js +1 -1
  2. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/custom-ui/atlassian-app-forge/index.es.js +1 -1
  3. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -1
  4. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +6 -6
  5. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.cjs.js +1 -1
  6. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/ui-kit/atlassian-app-forge-ui-kit/index.es.js +17 -11
  7. package/package.json +6 -1
  8. package/ui-modal/atlassian-app-frontend-ui-modal.api.json +92 -7
  9. package/ui-modal/atlassian-app-frontend.api.md +9 -1
  10. package/ui-modal/index.cjs.js +1 -1
  11. package/ui-modal/index.d.ts +7 -2
  12. package/ui-modal/index.es.js +9 -9
  13. package/ui-modal-service/atlassian-app-frontend-ui-modal-service.api.json +809 -0
  14. package/ui-modal-service/atlassian-app-frontend.api.md +59 -0
  15. package/ui-modal-service/index.cjs.js +1 -0
  16. package/ui-modal-service/index.d.ts +41 -0
  17. package/ui-modal-service/index.es.js +7 -0
  18. package/ui-modal-service/tsdoc-metadata.json +11 -0
  19. package/valiantys-atlassian-app-frontend-3.1.0-alpha-2.tgz +0 -0
  20. package/valiantys-atlassian-app-frontend-3.0.0.tgz +0 -0
  21. /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service/index.cjs.js +0 -0
  22. /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service/index.es.js +0 -0
  23. /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service-provider/index.cjs.js +0 -0
  24. /package/atlassian/shared/{frontend-ui-modal → frontend-ui-modal-service}/src/lib/modal-service-provider/index.es.js +0 -0
@@ -0,0 +1,59 @@
1
+ ## API Report File for "@valiantys/atlassian-app-frontend"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
8
+ import { ReactNode } from 'react';
9
+
10
+ // @public (undocumented)
11
+ export interface ClosingMessage<P> {
12
+ // (undocumented)
13
+ closing: true;
14
+ // (undocumented)
15
+ payload?: P;
16
+ }
17
+
18
+ // @public (undocumented)
19
+ export interface ModalOptions<C, P> {
20
+ // (undocumented)
21
+ closeOnEscape?: boolean;
22
+ // (undocumented)
23
+ closeOnOverlayClick?: boolean;
24
+ // (undocumented)
25
+ context?: C;
26
+ // (undocumented)
27
+ onClose?: (payload?: P) => any;
28
+ // (undocumented)
29
+ resource?: string | null;
30
+ // Warning: (ae-forgotten-export) The symbol "ModalSize" needs to be exported by the entry point ui-modal-service.d.ts
31
+ //
32
+ // (undocumented)
33
+ size?: ModalSize;
34
+ }
35
+
36
+ // @public (undocumented)
37
+ export interface ModalService {
38
+ // (undocumented)
39
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
40
+ }
41
+
42
+ // Warning: (ae-forgotten-export) The symbol "ModalServiceProviderProps" needs to be exported by the entry point ui-modal-service.d.ts
43
+ //
44
+ // @public (undocumented)
45
+ export function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
46
+
47
+ // @public (undocumented)
48
+ export const useModalService: () => ModalService;
49
+
50
+ // @public (undocumented)
51
+ export class WindowModalService implements ModalService {
52
+ constructor(defaultUrl: string, resourceMap?: Record<string, string>);
53
+ // (undocumented)
54
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
55
+ }
56
+
57
+ // (No @packageDocumentation comment for this package)
58
+
59
+ ```
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.cjs.js"),e=require("../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.cjs.js");exports.WindowModalService=r.WindowModalService;exports.ModalServiceProvider=e.ModalServiceProvider;exports.useModalService=e.useModalService;
@@ -0,0 +1,41 @@
1
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare interface ClosingMessage<P> {
5
+ closing: true;
6
+ payload?: P;
7
+ }
8
+
9
+ export declare interface ModalOptions<C, P> {
10
+ resource?: string | null;
11
+ onClose?: (payload?: P) => any;
12
+ size?: ModalSize;
13
+ context?: C;
14
+ closeOnEscape?: boolean;
15
+ closeOnOverlayClick?: boolean;
16
+ }
17
+
18
+ export declare interface ModalService {
19
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
20
+ }
21
+
22
+ export declare function ModalServiceProvider({ children, modalService, }: ModalServiceProviderProps): JSX_2.Element;
23
+
24
+ declare interface ModalServiceProviderProps {
25
+ children: ReactNode;
26
+ modalService: ModalService;
27
+ }
28
+
29
+ declare type ModalSize = 'small' | 'medium' | 'large' | 'xlarge' | 'max';
30
+
31
+ export declare const useModalService: () => ModalService;
32
+
33
+ export declare class WindowModalService implements ModalService {
34
+ private readonly defaultUrl;
35
+ private readonly resourceMap;
36
+ constructor(defaultUrl: string, resourceMap?: Record<string, string>);
37
+ open<C, P>(options: ModalOptions<C, P>): Promise<void>;
38
+ private features;
39
+ }
40
+
41
+ export { }
@@ -0,0 +1,7 @@
1
+ import { WindowModalService as r } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service/index.es.js";
2
+ import { ModalServiceProvider as i, useModalService as v } from "../atlassian/shared/frontend-ui-modal-service/src/lib/modal-service-provider/index.es.js";
3
+ export {
4
+ i as ModalServiceProvider,
5
+ r as WindowModalService,
6
+ v as useModalService
7
+ };
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.8"
9
+ }
10
+ ]
11
+ }