@atlaskit/anonymous-assets 0.0.4 → 0.0.6

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,19 @@
1
1
  # @atlassian/anonymous-assets
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
14
+ Sorted type and interface props to improve Atlaskit docs
15
+ - Updated dependencies
16
+
3
17
  ## 0.0.4
4
18
 
5
19
  ### 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
@@ -20,14 +20,11 @@
20
20
  },
21
21
  "sideEffects": false,
22
22
  "atlaskit:src": "src/index.ts",
23
- "af:exports": {
24
- ".": "./src/index.ts"
25
- },
26
23
  "dependencies": {
27
24
  "@atlaskit/browser-apis": "^0.0.1",
28
- "@atlaskit/css": "^0.12.0",
29
- "@atlaskit/primitives": "^14.11.0",
30
- "@atlaskit/tokens": "^6.0.0",
25
+ "@atlaskit/css": "^0.13.0",
26
+ "@atlaskit/primitives": "^14.13.0",
27
+ "@atlaskit/tokens": "^6.2.0",
31
28
  "@babel/runtime": "^7.0.0",
32
29
  "@compiled/react": "^0.18.3",
33
30
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -39,10 +36,8 @@
39
36
  "@af/integration-testing": "workspace:^",
40
37
  "@af/visual-regression": "workspace:^",
41
38
  "@atlaskit/ssr": "workspace:^",
42
- "@atlaskit/visual-regression": "workspace:^",
43
39
  "@testing-library/react": "^13.4.0",
44
- "react-dom": "^18.2.0",
45
- "typescript": "~5.4.2"
40
+ "react-dom": "^18.2.0"
46
41
  },
47
42
  "techstack": {
48
43
  "@atlassian/frontend": {
@@ -83,7 +78,7 @@
83
78
  }
84
79
  },
85
80
  "name": "@atlaskit/anonymous-assets",
86
- "version": "0.0.4",
81
+ "version": "0.0.6",
87
82
  "description": "Assets for anonymous users",
88
83
  "author": "Atlassian Pty Ltd",
89
84
  "publishConfig": {