@atlaskit/anonymous-assets 0.0.3 → 0.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlassian/anonymous-assets
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 0.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [`cc97e427ef56c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc97e427ef56c) -
16
+ Update package examples
17
+
3
18
  ## 0.0.3
4
19
 
5
20
  ### Patch Changes
@@ -18,8 +18,8 @@ export declare const getAnonymousAvatarWithStyling: (props: GetAnonymousAvatarWi
18
18
  * @param props.index if none is provided, a random anonymous asset it returned
19
19
  */
20
20
  export declare const getAnonymousAsset: (props?: {
21
- index?: number | undefined;
22
- } | undefined) => Promise<AnonymousAsset>;
21
+ index?: number;
22
+ }) => Promise<AnonymousAsset>;
23
23
  /**
24
24
  * Returns all anonymous assets
25
25
  */
@@ -1,10 +1,10 @@
1
1
  export type FetchWithRetryParams = {
2
- url: string;
3
- options?: RequestInit;
4
- shouldRetryOnApiError: boolean;
5
- retries?: number;
6
2
  baseDelay?: number;
7
3
  maxDelay?: number;
4
+ options?: RequestInit;
5
+ retries?: number;
6
+ shouldRetryOnApiError: boolean;
7
+ url: string;
8
8
  };
9
9
  /**
10
10
  * Calculates a backoff time with jitter for exponential backoff retry strategy
@@ -9,8 +9,8 @@ export type AnonymousAsset = {
9
9
  src: string;
10
10
  };
11
11
  export type GetAnonymousAvatarWithStylingProps = {
12
- /** key value pair of additional styling to apply to svg. Key is expected to be kebab-case */
13
- styleProperties: Record<string, string>;
14
12
  /** The optional index to specify which anonymous asset to select. If none is provided, a random index will be selected */
15
13
  index?: number;
14
+ /** key value pair of additional styling to apply to svg. Key is expected to be kebab-case */
15
+ styleProperties: Record<string, string>;
16
16
  } & Omit<FetchWithRetryParams, 'url' | 'shouldRetryOnApiError'>;
@@ -18,8 +18,8 @@ export declare const getAnonymousAvatarWithStyling: (props: GetAnonymousAvatarWi
18
18
  * @param props.index if none is provided, a random anonymous asset it returned
19
19
  */
20
20
  export declare const getAnonymousAsset: (props?: {
21
- index?: number | undefined;
22
- } | undefined) => Promise<AnonymousAsset>;
21
+ index?: number;
22
+ }) => Promise<AnonymousAsset>;
23
23
  /**
24
24
  * Returns all anonymous assets
25
25
  */
@@ -1,10 +1,10 @@
1
1
  export type FetchWithRetryParams = {
2
- url: string;
3
- options?: RequestInit;
4
- shouldRetryOnApiError: boolean;
5
- retries?: number;
6
2
  baseDelay?: number;
7
3
  maxDelay?: number;
4
+ options?: RequestInit;
5
+ retries?: number;
6
+ shouldRetryOnApiError: boolean;
7
+ url: string;
8
8
  };
9
9
  /**
10
10
  * Calculates a backoff time with jitter for exponential backoff retry strategy
@@ -9,8 +9,8 @@ export type AnonymousAsset = {
9
9
  src: string;
10
10
  };
11
11
  export type GetAnonymousAvatarWithStylingProps = {
12
- /** key value pair of additional styling to apply to svg. Key is expected to be kebab-case */
13
- styleProperties: Record<string, string>;
14
12
  /** The optional index to specify which anonymous asset to select. If none is provided, a random index will be selected */
15
13
  index?: number;
14
+ /** key value pair of additional styling to apply to svg. Key is expected to be kebab-case */
15
+ styleProperties: Record<string, string>;
16
16
  } & Omit<FetchWithRetryParams, 'url' | 'shouldRetryOnApiError'>;
package/package.json CHANGED
@@ -39,10 +39,8 @@
39
39
  "@af/integration-testing": "workspace:^",
40
40
  "@af/visual-regression": "workspace:^",
41
41
  "@atlaskit/ssr": "workspace:^",
42
- "@atlaskit/visual-regression": "workspace:^",
43
42
  "@testing-library/react": "^13.4.0",
44
- "react-dom": "^18.2.0",
45
- "typescript": "~5.4.2"
43
+ "react-dom": "^18.2.0"
46
44
  },
47
45
  "techstack": {
48
46
  "@atlassian/frontend": {
@@ -83,7 +81,7 @@
83
81
  }
84
82
  },
85
83
  "name": "@atlaskit/anonymous-assets",
86
- "version": "0.0.3",
84
+ "version": "0.0.5",
87
85
  "description": "Assets for anonymous users",
88
86
  "author": "Atlassian Pty Ltd",
89
87
  "publishConfig": {