@farcaster/frame-sdk 0.0.23 → 0.0.25
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/dist/index.min.js +2 -2
- package/dist/index.min.js.map +4 -4
- package/dist/provider.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
- package/src/provider.ts +2 -2
- package/src/types.ts +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddFrame,
|
|
1
|
+
import type { AddFrame, Context, FrameNotificationDetails, ReadyOptions, SetPrimaryButtonOptions, SignIn } from '@farcaster/frame-core';
|
|
2
2
|
import type { EventEmitter } from 'eventemitter3';
|
|
3
3
|
import type { Provider } from 'ox';
|
|
4
4
|
declare global {
|
|
@@ -29,7 +29,7 @@ export type EventMap = {
|
|
|
29
29
|
export type Emitter = Compute<EventEmitter<EventMap>>;
|
|
30
30
|
type SetPrimaryButton = (options: SetPrimaryButtonOptions) => Promise<void>;
|
|
31
31
|
export type FrameSDK = {
|
|
32
|
-
context: Promise<FrameContext>;
|
|
32
|
+
context: Promise<Context.FrameContext>;
|
|
33
33
|
actions: {
|
|
34
34
|
ready: (options?: Partial<ReadyOptions>) => Promise<void>;
|
|
35
35
|
openUrl: (url: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farcaster/frame-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"comlink": "^4.4.2",
|
|
17
17
|
"eventemitter3": "^5.0.1",
|
|
18
18
|
"ox": "^0.4.4",
|
|
19
|
-
"@farcaster/frame-core": "0.0.
|
|
19
|
+
"@farcaster/frame-core": "0.0.23"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"clean": "rm -rf dist",
|
package/src/provider.ts
CHANGED
|
@@ -112,9 +112,9 @@ if (typeof document !== 'undefined') {
|
|
|
112
112
|
}
|
|
113
113
|
})
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
document.addEventListener('FarcasterFrameEvent', (event) => {
|
|
116
116
|
if (event instanceof MessageEvent) {
|
|
117
|
-
const frameEvent = event.data
|
|
117
|
+
const frameEvent = event.data as FrameClientEvent
|
|
118
118
|
if (frameEvent.event === 'eip6963:announceProvider') {
|
|
119
119
|
announceProvider({
|
|
120
120
|
info: frameEvent.info,
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
AddFrame,
|
|
3
|
-
|
|
3
|
+
Context,
|
|
4
4
|
FrameNotificationDetails,
|
|
5
5
|
ReadyOptions,
|
|
6
6
|
SetPrimaryButtonOptions,
|
|
@@ -46,7 +46,7 @@ export type Emitter = Compute<EventEmitter<EventMap>>
|
|
|
46
46
|
type SetPrimaryButton = (options: SetPrimaryButtonOptions) => Promise<void>
|
|
47
47
|
|
|
48
48
|
export type FrameSDK = {
|
|
49
|
-
context: Promise<FrameContext>
|
|
49
|
+
context: Promise<Context.FrameContext>
|
|
50
50
|
actions: {
|
|
51
51
|
ready: (options?: Partial<ReadyOptions>) => Promise<void>
|
|
52
52
|
openUrl: (url: string) => Promise<void>
|