Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 2.3.1 #958

Merged
merged 6 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading