@valiantys/atlassian-app-frontend 3.0.0-alpha-18 → 3.0.0-alpha-21

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 (28) hide show
  1. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
  2. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +18 -6
  3. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js +1 -0
  4. package/atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js +9 -0
  5. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.cjs.js +1 -0
  6. package/atlassian/shared/frontend-ui-atlaskit-forms/src/lib/option/index.es.js +8 -0
  7. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +90 -0
  8. package/data-access-issue/atlassian-app-frontend.api.md +8 -0
  9. package/data-access-issue/index.d.ts +42 -0
  10. package/package.json +6 -1
  11. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.cjs.js +1 -1
  12. package/shared/frontend-ui-drop-target/src/lib/drop-target-box/index.es.js +7 -9
  13. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.cjs.js +1 -1
  14. package/shared/frontend-ui-load-data-hook/src/lib/load-data-hook/index.es.js +10 -10
  15. package/ui-atlaskit-forms/atlassian-app-frontend-ui-atlaskit-forms.api.json +341 -0
  16. package/ui-atlaskit-forms/atlassian-app-frontend.api.md +19 -0
  17. package/ui-atlaskit-forms/index.cjs.js +1 -0
  18. package/ui-atlaskit-forms/index.d.ts +48 -0
  19. package/ui-atlaskit-forms/index.es.js +4 -0
  20. package/ui-atlaskit-forms/tsdoc-metadata.json +11 -0
  21. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +2 -2
  22. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +1 -1
  23. package/util-atlassian-product-fetch/index.d.ts +1 -1
  24. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +383 -1
  25. package/util-jira-v3-api/atlassian-app-frontend.api.md +45 -1
  26. package/util-jira-v3-api/index.cjs.js +1 -1
  27. package/util-jira-v3-api/index.d.ts +32 -1
  28. package/util-jira-v3-api/index.es.js +6 -4
@@ -3154,6 +3154,327 @@
3154
3154
  ],
3155
3155
  "extendsTokenRanges": []
3156
3156
  },
3157
+ {
3158
+ "kind": "Interface",
3159
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme:interface",
3160
+ "docComment": "",
3161
+ "excerptTokens": [
3162
+ {
3163
+ "kind": "Content",
3164
+ "text": "export interface IssueTypeScheme "
3165
+ }
3166
+ ],
3167
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue-type-scheme.d.ts",
3168
+ "releaseTag": "Public",
3169
+ "name": "IssueTypeScheme",
3170
+ "preserveMemberOrder": false,
3171
+ "members": [
3172
+ {
3173
+ "kind": "PropertySignature",
3174
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#description:member",
3175
+ "docComment": "",
3176
+ "excerptTokens": [
3177
+ {
3178
+ "kind": "Content",
3179
+ "text": "description: "
3180
+ },
3181
+ {
3182
+ "kind": "Content",
3183
+ "text": "string"
3184
+ },
3185
+ {
3186
+ "kind": "Content",
3187
+ "text": ";"
3188
+ }
3189
+ ],
3190
+ "isReadonly": false,
3191
+ "isOptional": false,
3192
+ "releaseTag": "Public",
3193
+ "name": "description",
3194
+ "propertyTypeTokenRange": {
3195
+ "startIndex": 1,
3196
+ "endIndex": 2
3197
+ }
3198
+ },
3199
+ {
3200
+ "kind": "PropertySignature",
3201
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#id:member",
3202
+ "docComment": "",
3203
+ "excerptTokens": [
3204
+ {
3205
+ "kind": "Content",
3206
+ "text": "id: "
3207
+ },
3208
+ {
3209
+ "kind": "Content",
3210
+ "text": "string"
3211
+ },
3212
+ {
3213
+ "kind": "Content",
3214
+ "text": ";"
3215
+ }
3216
+ ],
3217
+ "isReadonly": false,
3218
+ "isOptional": false,
3219
+ "releaseTag": "Public",
3220
+ "name": "id",
3221
+ "propertyTypeTokenRange": {
3222
+ "startIndex": 1,
3223
+ "endIndex": 2
3224
+ }
3225
+ },
3226
+ {
3227
+ "kind": "PropertySignature",
3228
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#issueTypes:member",
3229
+ "docComment": "",
3230
+ "excerptTokens": [
3231
+ {
3232
+ "kind": "Content",
3233
+ "text": "issueTypes: "
3234
+ },
3235
+ {
3236
+ "kind": "Reference",
3237
+ "text": "IssueTypeSchemeIssueTypesPage",
3238
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage:interface"
3239
+ },
3240
+ {
3241
+ "kind": "Content",
3242
+ "text": ";"
3243
+ }
3244
+ ],
3245
+ "isReadonly": false,
3246
+ "isOptional": false,
3247
+ "releaseTag": "Public",
3248
+ "name": "issueTypes",
3249
+ "propertyTypeTokenRange": {
3250
+ "startIndex": 1,
3251
+ "endIndex": 2
3252
+ }
3253
+ },
3254
+ {
3255
+ "kind": "PropertySignature",
3256
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#name:member",
3257
+ "docComment": "",
3258
+ "excerptTokens": [
3259
+ {
3260
+ "kind": "Content",
3261
+ "text": "name: "
3262
+ },
3263
+ {
3264
+ "kind": "Content",
3265
+ "text": "string"
3266
+ },
3267
+ {
3268
+ "kind": "Content",
3269
+ "text": ";"
3270
+ }
3271
+ ],
3272
+ "isReadonly": false,
3273
+ "isOptional": false,
3274
+ "releaseTag": "Public",
3275
+ "name": "name",
3276
+ "propertyTypeTokenRange": {
3277
+ "startIndex": 1,
3278
+ "endIndex": 2
3279
+ }
3280
+ },
3281
+ {
3282
+ "kind": "PropertySignature",
3283
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#projects:member",
3284
+ "docComment": "",
3285
+ "excerptTokens": [
3286
+ {
3287
+ "kind": "Content",
3288
+ "text": "projects?: "
3289
+ },
3290
+ {
3291
+ "kind": "Content",
3292
+ "text": "{\n isLast: boolean;\n maxResults: number;\n startAt: number;\n total: number;\n values: {\n id: string;\n key: string;\n name: string;\n projectTypeKey: string;\n simplified: boolean;\n avatarUrls: "
3293
+ },
3294
+ {
3295
+ "kind": "Reference",
3296
+ "text": "Record",
3297
+ "canonicalReference": "!Record:type"
3298
+ },
3299
+ {
3300
+ "kind": "Content",
3301
+ "text": "<string, string>;\n }[];\n }"
3302
+ },
3303
+ {
3304
+ "kind": "Content",
3305
+ "text": ";"
3306
+ }
3307
+ ],
3308
+ "isReadonly": false,
3309
+ "isOptional": true,
3310
+ "releaseTag": "Public",
3311
+ "name": "projects",
3312
+ "propertyTypeTokenRange": {
3313
+ "startIndex": 1,
3314
+ "endIndex": 4
3315
+ }
3316
+ }
3317
+ ],
3318
+ "extendsTokenRanges": []
3319
+ },
3320
+ {
3321
+ "kind": "Interface",
3322
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage:interface",
3323
+ "docComment": "",
3324
+ "excerptTokens": [
3325
+ {
3326
+ "kind": "Content",
3327
+ "text": "export interface IssueTypeSchemeIssueTypesPage "
3328
+ }
3329
+ ],
3330
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue-type-scheme.d.ts",
3331
+ "releaseTag": "Public",
3332
+ "name": "IssueTypeSchemeIssueTypesPage",
3333
+ "preserveMemberOrder": false,
3334
+ "members": [
3335
+ {
3336
+ "kind": "PropertySignature",
3337
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#isLast:member",
3338
+ "docComment": "",
3339
+ "excerptTokens": [
3340
+ {
3341
+ "kind": "Content",
3342
+ "text": "isLast: "
3343
+ },
3344
+ {
3345
+ "kind": "Content",
3346
+ "text": "boolean"
3347
+ },
3348
+ {
3349
+ "kind": "Content",
3350
+ "text": ";"
3351
+ }
3352
+ ],
3353
+ "isReadonly": false,
3354
+ "isOptional": false,
3355
+ "releaseTag": "Public",
3356
+ "name": "isLast",
3357
+ "propertyTypeTokenRange": {
3358
+ "startIndex": 1,
3359
+ "endIndex": 2
3360
+ }
3361
+ },
3362
+ {
3363
+ "kind": "PropertySignature",
3364
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#maxResults:member",
3365
+ "docComment": "",
3366
+ "excerptTokens": [
3367
+ {
3368
+ "kind": "Content",
3369
+ "text": "maxResults: "
3370
+ },
3371
+ {
3372
+ "kind": "Content",
3373
+ "text": "number"
3374
+ },
3375
+ {
3376
+ "kind": "Content",
3377
+ "text": ";"
3378
+ }
3379
+ ],
3380
+ "isReadonly": false,
3381
+ "isOptional": false,
3382
+ "releaseTag": "Public",
3383
+ "name": "maxResults",
3384
+ "propertyTypeTokenRange": {
3385
+ "startIndex": 1,
3386
+ "endIndex": 2
3387
+ }
3388
+ },
3389
+ {
3390
+ "kind": "PropertySignature",
3391
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#startAt:member",
3392
+ "docComment": "",
3393
+ "excerptTokens": [
3394
+ {
3395
+ "kind": "Content",
3396
+ "text": "startAt: "
3397
+ },
3398
+ {
3399
+ "kind": "Content",
3400
+ "text": "number"
3401
+ },
3402
+ {
3403
+ "kind": "Content",
3404
+ "text": ";"
3405
+ }
3406
+ ],
3407
+ "isReadonly": false,
3408
+ "isOptional": false,
3409
+ "releaseTag": "Public",
3410
+ "name": "startAt",
3411
+ "propertyTypeTokenRange": {
3412
+ "startIndex": 1,
3413
+ "endIndex": 2
3414
+ }
3415
+ },
3416
+ {
3417
+ "kind": "PropertySignature",
3418
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#total:member",
3419
+ "docComment": "",
3420
+ "excerptTokens": [
3421
+ {
3422
+ "kind": "Content",
3423
+ "text": "total: "
3424
+ },
3425
+ {
3426
+ "kind": "Content",
3427
+ "text": "number"
3428
+ },
3429
+ {
3430
+ "kind": "Content",
3431
+ "text": ";"
3432
+ }
3433
+ ],
3434
+ "isReadonly": false,
3435
+ "isOptional": false,
3436
+ "releaseTag": "Public",
3437
+ "name": "total",
3438
+ "propertyTypeTokenRange": {
3439
+ "startIndex": 1,
3440
+ "endIndex": 2
3441
+ }
3442
+ },
3443
+ {
3444
+ "kind": "PropertySignature",
3445
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#values:member",
3446
+ "docComment": "",
3447
+ "excerptTokens": [
3448
+ {
3449
+ "kind": "Content",
3450
+ "text": "values: "
3451
+ },
3452
+ {
3453
+ "kind": "Reference",
3454
+ "text": "IssueTypeDetails",
3455
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeDetails:interface"
3456
+ },
3457
+ {
3458
+ "kind": "Content",
3459
+ "text": "[]"
3460
+ },
3461
+ {
3462
+ "kind": "Content",
3463
+ "text": ";"
3464
+ }
3465
+ ],
3466
+ "isReadonly": false,
3467
+ "isOptional": false,
3468
+ "releaseTag": "Public",
3469
+ "name": "values",
3470
+ "propertyTypeTokenRange": {
3471
+ "startIndex": 1,
3472
+ "endIndex": 3
3473
+ }
3474
+ }
3475
+ ],
3476
+ "extendsTokenRanges": []
3477
+ },
3157
3478
  {
3158
3479
  "kind": "TypeAlias",
3159
3480
  "canonicalReference": "@valiantys/atlassian-app-frontend!JiraCommentResponse:type",
@@ -3781,7 +4102,7 @@
3781
4102
  },
3782
4103
  {
3783
4104
  "kind": "Content",
3784
- "text": ">"
4105
+ "text": " | null>"
3785
4106
  },
3786
4107
  {
3787
4108
  "kind": "Content",
@@ -5366,6 +5687,67 @@
5366
5687
  ],
5367
5688
  "extendsTokenRanges": []
5368
5689
  },
5690
+ {
5691
+ "kind": "Function",
5692
+ "canonicalReference": "@valiantys/atlassian-app-frontend!switchAtlassianApiUrlToUseSiteUrl:function(1)",
5693
+ "docComment": "",
5694
+ "excerptTokens": [
5695
+ {
5696
+ "kind": "Content",
5697
+ "text": "export declare function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: "
5698
+ },
5699
+ {
5700
+ "kind": "Content",
5701
+ "text": "string"
5702
+ },
5703
+ {
5704
+ "kind": "Content",
5705
+ "text": ", apiDotAtlassianUrl: "
5706
+ },
5707
+ {
5708
+ "kind": "Content",
5709
+ "text": "string"
5710
+ },
5711
+ {
5712
+ "kind": "Content",
5713
+ "text": "): "
5714
+ },
5715
+ {
5716
+ "kind": "Content",
5717
+ "text": "string"
5718
+ },
5719
+ {
5720
+ "kind": "Content",
5721
+ "text": ";"
5722
+ }
5723
+ ],
5724
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/jira-server-info.d.ts",
5725
+ "returnTypeTokenRange": {
5726
+ "startIndex": 5,
5727
+ "endIndex": 6
5728
+ },
5729
+ "releaseTag": "Public",
5730
+ "overloadIndex": 1,
5731
+ "parameters": [
5732
+ {
5733
+ "parameterName": "siteBaseUrl",
5734
+ "parameterTypeTokenRange": {
5735
+ "startIndex": 1,
5736
+ "endIndex": 2
5737
+ },
5738
+ "isOptional": false
5739
+ },
5740
+ {
5741
+ "parameterName": "apiDotAtlassianUrl",
5742
+ "parameterTypeTokenRange": {
5743
+ "startIndex": 3,
5744
+ "endIndex": 4
5745
+ },
5746
+ "isOptional": false
5747
+ }
5748
+ ],
5749
+ "name": "switchAtlassianApiUrlToUseSiteUrl"
5750
+ },
5369
5751
  {
5370
5752
  "kind": "Interface",
5371
5753
  "canonicalReference": "@valiantys/atlassian-app-frontend!TransitionIssueRequest:interface",
@@ -302,6 +302,47 @@ export interface IssueTypeDetails {
302
302
  subtask: boolean;
303
303
  }
304
304
 
305
+ // @public (undocumented)
306
+ export interface IssueTypeScheme {
307
+ // (undocumented)
308
+ description: string;
309
+ // (undocumented)
310
+ id: string;
311
+ // (undocumented)
312
+ issueTypes: IssueTypeSchemeIssueTypesPage;
313
+ // (undocumented)
314
+ name: string;
315
+ // (undocumented)
316
+ projects?: {
317
+ isLast: boolean;
318
+ maxResults: number;
319
+ startAt: number;
320
+ total: number;
321
+ values: {
322
+ id: string;
323
+ key: string;
324
+ name: string;
325
+ projectTypeKey: string;
326
+ simplified: boolean;
327
+ avatarUrls: Record<string, string>;
328
+ }[];
329
+ };
330
+ }
331
+
332
+ // @public (undocumented)
333
+ export interface IssueTypeSchemeIssueTypesPage {
334
+ // (undocumented)
335
+ isLast: boolean;
336
+ // (undocumented)
337
+ maxResults: number;
338
+ // (undocumented)
339
+ startAt: number;
340
+ // (undocumented)
341
+ total: number;
342
+ // (undocumented)
343
+ values: IssueTypeDetails[];
344
+ }
345
+
305
346
  // @public (undocumented)
306
347
  export type JiraCommentResponse = {
307
348
  comments: IssueComment[];
@@ -357,7 +398,7 @@ export interface PagedResponse<T> {
357
398
  }
358
399
 
359
400
  // @public (undocumented)
360
- export type PagedUsers = PagedResponse<User>;
401
+ export type PagedUsers = PagedResponse<User | null>;
361
402
 
362
403
  // @public (undocumented)
363
404
  export type Precomputation = {
@@ -547,6 +588,9 @@ export interface StaticIssueFields<T = AtlassianDocumentFormat> {
547
588
  workratio?: number;
548
589
  }
549
590
 
591
+ // @public (undocumented)
592
+ export function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: string, apiDotAtlassianUrl: string): string;
593
+
550
594
  // @public (undocumented)
551
595
  export interface TransitionIssueRequest {
552
596
  // (undocumented)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js");exports.FIX_VERSIONS_FIELD=t.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=t.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=t.isAtlassianDocumentFormatTextNode;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js"),t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=e.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=e.isAtlassianDocumentFormatTextNode;exports.switchAtlassianApiUrlToUseSiteUrl=t.switchAtlassianApiUrlToUseSiteUrl;
@@ -189,6 +189,35 @@ export declare interface IssueTypeDetails {
189
189
  subtask: boolean;
190
190
  }
191
191
 
192
+ export declare interface IssueTypeScheme {
193
+ id: string;
194
+ name: string;
195
+ description: string;
196
+ issueTypes: IssueTypeSchemeIssueTypesPage;
197
+ projects?: {
198
+ isLast: boolean;
199
+ maxResults: number;
200
+ startAt: number;
201
+ total: number;
202
+ values: {
203
+ id: string;
204
+ key: string;
205
+ name: string;
206
+ projectTypeKey: string;
207
+ simplified: boolean;
208
+ avatarUrls: Record<string, string>;
209
+ }[];
210
+ };
211
+ }
212
+
213
+ export declare interface IssueTypeSchemeIssueTypesPage {
214
+ isLast: boolean;
215
+ maxResults: number;
216
+ startAt: number;
217
+ total: number;
218
+ values: IssueTypeDetails[];
219
+ }
220
+
192
221
  export declare type JiraCommentResponse = {
193
222
  comments: IssueComment[];
194
223
  maxResults: number;
@@ -221,7 +250,7 @@ export declare interface PagedResponse<T> {
221
250
  values: T[];
222
251
  }
223
252
 
224
- export declare type PagedUsers = PagedResponse<User>;
253
+ export declare type PagedUsers = PagedResponse<User | null>;
225
254
 
226
255
  export declare type Precomputation = {
227
256
  id: string;
@@ -354,6 +383,8 @@ export declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
354
383
  }[];
355
384
  }
356
385
 
386
+ export declare function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: string, apiDotAtlassianUrl: string): string;
387
+
357
388
  export declare interface TransitionIssueRequest {
358
389
  fields?: any;
359
390
  historyMetadata?: HistoryMetadata;
@@ -1,6 +1,8 @@
1
- import { FIX_VERSIONS_FIELD as t, isAtlassianDocumentFormatParagraphNode as e, isAtlassianDocumentFormatTextNode as r } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
1
+ import { FIX_VERSIONS_FIELD as o, isAtlassianDocumentFormatParagraphNode as r, isAtlassianDocumentFormatTextNode as s } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
2
+ import { switchAtlassianApiUrlToUseSiteUrl as i } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js";
2
3
  export {
3
- t as FIX_VERSIONS_FIELD,
4
- e as isAtlassianDocumentFormatParagraphNode,
5
- r as isAtlassianDocumentFormatTextNode
4
+ o as FIX_VERSIONS_FIELD,
5
+ r as isAtlassianDocumentFormatParagraphNode,
6
+ s as isAtlassianDocumentFormatTextNode,
7
+ i as switchAtlassianApiUrlToUseSiteUrl
6
8
  };