@farcaster/frame-core 0.1.1 → 0.1.2

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.
Files changed (55) hide show
  1. package/dist/actions/AddMiniApp.d.ts +3 -3
  2. package/dist/actions/AddMiniApp.js +1 -1
  3. package/dist/actions/SignIn.d.ts +2 -2
  4. package/dist/actions/SignIn.js +1 -1
  5. package/dist/actions/index.d.ts +9 -9
  6. package/dist/actions/index.js +9 -9
  7. package/dist/context.d.ts +1 -1
  8. package/dist/index.d.ts +9 -9
  9. package/dist/index.js +9 -9
  10. package/dist/schemas/embeds.js +9 -9
  11. package/dist/schemas/events.js +3 -3
  12. package/dist/schemas/index.d.ts +5 -5
  13. package/dist/schemas/index.js +5 -5
  14. package/dist/schemas/manifest.js +22 -22
  15. package/dist/schemas/notifications.js +2 -2
  16. package/dist/solanaWire.d.ts +1 -1
  17. package/dist/types.d.ts +7 -7
  18. package/dist/types.js +3 -3
  19. package/dist/wallet/index.d.ts +1 -1
  20. package/dist/wallet/index.js +1 -1
  21. package/esm/actions/AddMiniApp.d.ts +3 -3
  22. package/esm/actions/AddMiniApp.js +1 -1
  23. package/esm/actions/SignIn.d.ts +2 -2
  24. package/esm/actions/SignIn.js +1 -1
  25. package/esm/actions/index.d.ts +9 -9
  26. package/esm/actions/index.js +9 -9
  27. package/esm/context.d.ts +1 -1
  28. package/esm/index.d.ts +9 -9
  29. package/esm/index.js +9 -9
  30. package/esm/schemas/embeds.js +1 -1
  31. package/esm/schemas/events.js +1 -1
  32. package/esm/schemas/index.d.ts +5 -5
  33. package/esm/schemas/index.js +5 -5
  34. package/esm/schemas/manifest.js +2 -2
  35. package/esm/schemas/notifications.js +1 -1
  36. package/esm/solanaWire.d.ts +1 -1
  37. package/esm/tsconfig.tsbuildinfo +1 -1
  38. package/esm/types.d.ts +7 -7
  39. package/esm/types.js +2 -2
  40. package/esm/wallet/index.d.ts +1 -1
  41. package/esm/wallet/index.js +1 -1
  42. package/package.json +2 -2
  43. package/src/actions/AddMiniApp.ts +3 -3
  44. package/src/actions/SignIn.ts +2 -2
  45. package/src/actions/index.ts +9 -9
  46. package/src/context.ts +1 -1
  47. package/src/index.ts +9 -9
  48. package/src/schemas/embeds.ts +1 -1
  49. package/src/schemas/events.ts +1 -1
  50. package/src/schemas/index.ts +5 -5
  51. package/src/schemas/manifest.ts +2 -2
  52. package/src/schemas/notifications.ts +1 -1
  53. package/src/solanaWire.ts +1 -1
  54. package/src/types.ts +7 -7
  55. package/src/wallet/index.ts +1 -1
@@ -1,9 +1,9 @@
1
- export * as AddMiniApp from './AddMiniApp'
2
- export * as ComposeCast from './ComposeCast'
3
- export * as Ready from './Ready'
4
- export * as SignIn from './SignIn'
5
- export * as SendToken from './SendToken'
6
- export * as SwapToken from './SwapToken'
7
- export * as ViewCast from './ViewCast'
8
- export * as ViewProfile from './ViewProfile'
9
- export * as ViewToken from './ViewToken'
1
+ export * as AddMiniApp from './AddMiniApp.ts'
2
+ export * as ComposeCast from './ComposeCast.ts'
3
+ export * as Ready from './Ready.ts'
4
+ export * as SignIn from './SignIn.ts'
5
+ export * as SendToken from './SendToken.ts'
6
+ export * as SwapToken from './SwapToken.ts'
7
+ export * as ViewCast from './ViewCast.ts'
8
+ export * as ViewProfile from './ViewProfile.ts'
9
+ export * as ViewToken from './ViewToken.ts'
package/src/context.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { FrameNotificationDetails } from './schemas'
1
+ import type { FrameNotificationDetails } from './schemas/index.ts'
2
2
 
3
3
  export type CastEmbedLocationContext = {
4
4
  type: 'cast_embed'
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from './actions'
2
- export * from './wallet'
3
- export * as Errors from './errors'
4
- export * as Context from './context'
5
- export * as Manifest from './manifest'
6
- export * from './types'
7
- export * from './schemas'
8
- export * from './solana'
9
- export * from './solanaWire'
1
+ export * from './actions/index.ts'
2
+ export * from './wallet/index.ts'
3
+ export * as Errors from './errors.ts'
4
+ export * as Context from './context.ts'
5
+ export * as Manifest from './manifest.ts'
6
+ export * from './types.ts'
7
+ export * from './schemas/index.ts'
8
+ export * from './solana.ts'
9
+ export * from './solanaWire.ts'
@@ -6,7 +6,7 @@ import {
6
6
  frameNameSchema,
7
7
  hexColorSchema,
8
8
  secureUrlSchema,
9
- } from './shared'
9
+ } from './shared.ts'
10
10
 
11
11
  export const actionLaunchFrameSchema = z.object({
12
12
  type: z.literal('launch_frame'),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod'
2
- import { notificationDetailsSchema } from './notifications'
2
+ import { notificationDetailsSchema } from './notifications.ts'
3
3
 
4
4
  export const eventFrameAddedSchema = z.object({
5
5
  event: z.literal('frame_added'),
@@ -1,5 +1,5 @@
1
- export * from './embeds'
2
- export * from './events'
3
- export * from './shared'
4
- export * from './manifest'
5
- export * from './notifications'
1
+ export * from './embeds.ts'
2
+ export * from './events.ts'
3
+ export * from './shared.ts'
4
+ export * from './manifest.ts'
5
+ export * from './notifications.ts'
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod'
2
- import { miniAppHostCapabilityList } from '../types'
2
+ import { miniAppHostCapabilityList } from '../types.ts'
3
3
  import {
4
4
  buttonTitleSchema,
5
5
  createSimpleStringSchema,
@@ -7,7 +7,7 @@ import {
7
7
  frameNameSchema,
8
8
  hexColorSchema,
9
9
  secureUrlSchema,
10
- } from './shared'
10
+ } from './shared.ts'
11
11
 
12
12
  const primaryCategorySchema = z.enum([
13
13
  'games',
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod'
2
- import { secureUrlSchema } from './shared'
2
+ import { secureUrlSchema } from './shared.ts'
3
3
 
4
4
  export const notificationDetailsSchema = z.object({
5
5
  url: z.string(),
package/src/solanaWire.ts CHANGED
@@ -14,7 +14,7 @@ import type {
14
14
  SolanaWireRequestFn,
15
15
  SolanaWireSignAndSendTransactionRequestArguments,
16
16
  SolanaWireSignTransactionRequestArguments,
17
- } from './solana'
17
+ } from './solana.ts'
18
18
 
19
19
  function serializeTransaction(transaction: SolanaCombinedTransaction): string {
20
20
  return Buffer.from(
package/src/types.ts CHANGED
@@ -8,16 +8,16 @@ import type {
8
8
  ViewCast,
9
9
  ViewProfile,
10
10
  ViewToken,
11
- } from './actions'
12
- import type { FrameContext } from './context'
11
+ } from './actions/index.ts'
12
+ import type { FrameContext } from './context.ts'
13
13
  import type {
14
14
  EventFrameAdded,
15
15
  EventFrameRemoved,
16
16
  EventNotificationsDisabled,
17
17
  EventNotificationsEnabled,
18
- } from './schemas'
19
- import type { SolanaRequestFn, SolanaWireRequestFn } from './solana'
20
- import type { Ethereum } from './wallet'
18
+ } from './schemas/index.ts'
19
+ import type { SolanaRequestFn, SolanaWireRequestFn } from './solana.ts'
20
+ import type { Ethereum } from './wallet/index.ts'
21
21
 
22
22
  export type SetPrimaryButtonOptions = {
23
23
  text: string
@@ -27,8 +27,8 @@ export type SetPrimaryButtonOptions = {
27
27
  }
28
28
 
29
29
  // start backwards compat, remove in 1.0
30
- export * from './wallet/ethereum'
31
- export { DEFAULT_READY_OPTIONS, ReadyOptions } from './actions/Ready'
30
+ export * from './wallet/ethereum.ts'
31
+ export { DEFAULT_READY_OPTIONS, ReadyOptions } from './actions/Ready.ts'
32
32
  export type SignInOptions = SignIn.SignInOptions
33
33
  // end backwards compat
34
34
 
@@ -1 +1 @@
1
- export * as Ethereum from './ethereum'
1
+ export * as Ethereum from './ethereum.ts'