Skip to content

Commit

Permalink
Merge pull request #958 from lens-protocol/release/2.3.1
Browse files Browse the repository at this point in the history
release: 2.3.1
  • Loading branch information
cesarenaldi authored Jun 27, 2024
2 parents 428aaa0 + 1d2122d commit 1feb940
Show file tree
Hide file tree
Showing 31 changed files with 1,939 additions and 441 deletions.
7 changes: 7 additions & 0 deletions packages/api-bindings/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @lens-protocol/api-bindings

## 0.12.3

### Patch Changes

- 73c1bfebe: **fix:** expose PublicationOperations#hasQuoted flag.
- 7f080c11b: **fix:** adds `ProfileOperations.hasBlockedMe` field.

## 0.12.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api-bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lens-protocol/api-bindings",
"version": "0.12.2",
"version": "0.12.3",
"description": "Graphql fragments, react hooks, typescript types of lens API.",
"repository": {
"directory": "packages/api-bindings",
Expand Down
4 changes: 3 additions & 1 deletion packages/api-bindings/src/lens/__helpers__/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ function mockProfileOperationsFragment(
overrides?: Partial<gql.ProfileOperations>,
): gql.ProfileOperations {
return {
id: mockProfileId(),
canBlock: false,
canUnblock: false,
canFollow: gql.TriStateValue.Unknown,
canUnfollow: false,
hasBlockedMe: mockOptimisticStatusResultFragment(),
id: mockProfileId(),
isBlockedByMe: mockOptimisticStatusResultFragment(),
isFollowedByMe: mockOptimisticStatusResultFragment(),
isFollowingMe: mockOptimisticStatusResultFragment(),
Expand Down Expand Up @@ -302,6 +303,7 @@ export function mockPublicationOperationsFragment(
canMirror: gql.TriStateValue.Unknown,
canQuote: gql.TriStateValue.Unknown,
hasMirrored: false,
hasQuoted: false,
hasUpvoted: false,
hasDownvoted: false,
hasCollected: mockOptimisticStatusResultFragment(),
Expand Down
12 changes: 8 additions & 4 deletions packages/api-bindings/src/lens/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ fragment ProfileStats on ProfileStats {

fragment ProfileOperations on ProfileOperations {
__typename
canBlock
canUnblock
canFollow
canUnfollow
id
hasBlockedMe {
...OptimisticStatusResult
}
isBlockedByMe {
...OptimisticStatusResult
}
Expand All @@ -239,10 +246,6 @@ fragment ProfileOperations on ProfileOperations {
isFollowingMe {
...OptimisticStatusResult
}
canBlock
canUnblock
canFollow
canUnfollow
}

fragment ProfileOnchainIdentity on ProfileOnchainIdentity {
Expand Down Expand Up @@ -711,6 +714,7 @@ fragment PublicationOperations on PublicationOperations {
canMirror
canQuote
hasMirrored
hasQuoted
canDecrypt {
...CanDecryptResponse
}
Expand Down
Loading

0 comments on commit 1feb940

Please sign in to comment.