@flapsdk/vault-runtime 0.1.40-next.2 → 0.1.40-next.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flapsdk/vault-runtime",
3
- "version": "0.1.40-next.2",
4
- "gitHead": "4a2cedefdd7a6f6d2bbd48283aa8a34dec41b8f0",
3
+ "version": "0.1.40-next.4",
4
+ "gitHead": "3e677efb7f81d50575c5ae9ddd773d4c87a79f54",
5
5
  "description": "Shared runtime surface for Flap Vault UI hosts, Workbench preview, and custom Vault components.",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -2,7 +2,8 @@
2
2
  "runtimeContractVersion": 1,
3
3
  "uiFeatures": {
4
4
  "copyButton": 1,
5
- "streetMap": 1
5
+ "streetMap": 1,
6
+ "streetMapPresentation": 1
6
7
  },
7
8
  "sdkFeatures": {
8
9
  "flapWallet": 1,
@@ -15,7 +16,7 @@
15
16
  "miniAppRouting": 1
16
17
  },
17
18
  "packageName": "@flapsdk/vault-runtime",
18
- "packageVersion": "0.1.40-next.2",
19
+ "packageVersion": "0.1.40-next.4",
19
20
  "stableAuthoringAliases": [
20
21
  "@/src/sdk",
21
22
  "@/src/ui"
package/sdk.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { isStandaloneMiniApp } from './chunk-WQ7WM2BC.js';
3
3
  export { MINI_APP_ROUTING_VERSION, MINI_APP_SLUG_PATTERN, erc20Abi, getTxErrorKind, handleTxError, isMiniAppSlug, isStandaloneMiniApp, standardErc20Abi } from './chunk-WQ7WM2BC.js';
4
- import { useRuntimeDeviceSensors } from './chunk-WTLF4JPJ.js';
5
- export { useDeviceMotion, useDeviceOrientation, useGeolocation } from './chunk-WTLF4JPJ.js';
4
+ import { useRuntimeDeviceSensors } from './chunk-FNM6KION.js';
5
+ export { useDeviceMotion, useDeviceOrientation, useGeolocation } from './chunk-FNM6KION.js';
6
6
  import { createIpfsTextReader, createFlapChainSdk } from './chunk-T4Y5RVCD.js';
7
7
  export { DEVICE_SENSORS_VERSION, FLAP_WALLET_RUNTIME_VERSION } from './chunk-T4Y5RVCD.js';
8
8
  export { IMAGE_UPLOAD_MEDIA_TYPES, MAX_IMAGE_UPLOAD_BYTES, MAX_TEXT_UPLOAD_BYTES, MediaUploadError, RUNTIME_UPLOAD_ENDPOINT, createIpfsUploadResult, createLocalMediaUploader, createLocalNftMetadataReader, nftTokenUriAbi, normalizeInlineNftImage, parseInlineNftMetadata, sanitizeNftMetadataRecord, validateMediaUpload, vaultV2NftAbi } from './chunk-WN4MIMCY.js';
9
9
  export { OracleReadError, buildLocalOracleUrl, createLocalOracleReader, fetchOracleJson, fetchProvisionedOracle } from './chunk-JLI25XFB.js';
10
- import { MiniAppContext, MiniAppRoutingContext, useFlapSdk } from './chunk-2K4HG2TC.js';
11
- export { VideoSessionReadError, createConsumerVideoSessionReader, readVideoSessionLength, readVideoSessionSlice, useVaultContext as useFlapChain, useFlapI18n, useFlapNotify, useFlapSdk, useVaultContext } from './chunk-2K4HG2TC.js';
10
+ import { MiniAppContext, MiniAppRoutingContext, useFlapSdk } from './chunk-5DU4W4CK.js';
11
+ export { VideoSessionReadError, createConsumerVideoSessionReader, readVideoSessionLength, readVideoSessionSlice, useVaultContext as useFlapChain, useFlapI18n, useFlapNotify, useFlapSdk, useVaultContext } from './chunk-5DU4W4CK.js';
12
12
  export { ZERO_ADDRESS, formatCountdown, formatPercentBps, formatTokenAmount, isActionAvailableForPhase, isCustomVaultTaxToken, isValidAddress, parseTokenAmount, readTaxVaultHostContext, resolveTokenMarketPhase, shortenAddress } from './chunk-B4WKI3EW.js';
13
13
  export { isIpfsImageCid, normalizeIpfsImagePath, resolveIpfsImageUrl, resolveIpfsImageUrls } from './chunk-GY7YY67I.js';
14
14
  import './chunk-BUSYA2B4.js';
package/ui.d.mts CHANGED
@@ -222,6 +222,14 @@ type VideoSessionPlayerProps = VideoClipSessionPlayerProps | (ConsumerVideoSessi
222
222
  });
223
223
  declare function VideoSessionPlayer(props: VideoSessionPlayerProps): React.JSX.Element;
224
224
 
225
+ declare const STREET_MAP_RARITY_COLORS: Readonly<{
226
+ common: "#22c55e";
227
+ rare: "#3b82f6";
228
+ epic: "#a855f7";
229
+ legendary: "#fbbf24";
230
+ }>;
231
+ type FlapStreetMapRarity = keyof typeof STREET_MAP_RARITY_COLORS;
232
+ type FlapStreetMapPointKind = "store" | "event";
225
233
  interface FlapStreetMapCoordinate {
226
234
  lat: number;
227
235
  lng: number;
@@ -229,25 +237,61 @@ interface FlapStreetMapCoordinate {
229
237
  interface FlapStreetMapPoint extends FlapStreetMapCoordinate {
230
238
  id: string;
231
239
  title: string;
232
- rarity?: "common" | "rare" | "epic" | "legendary";
240
+ rarity?: FlapStreetMapRarity;
241
+ symbol?: string;
242
+ place?: string;
243
+ city?: string;
244
+ /** Plain display data; monetary units and eligibility remain application-owned. */
245
+ amount?: string | number;
246
+ /** Optional expiry and cooldown deadlines, both in Unix epoch milliseconds. */
247
+ expiresAt?: number;
248
+ respawnAt?: number;
249
+ kind?: FlapStreetMapPointKind;
250
+ }
251
+ interface FlapStreetMapPointState {
252
+ coolingDown: boolean;
253
+ expired: boolean;
254
+ cooldownRemainingMs: number;
255
+ eventRemainingMs: number | null;
233
256
  }
234
257
  interface FlapStreetMapState {
235
258
  status: "loading" | "ready" | "unavailable";
236
259
  reason?: "not-declared" | "invalid-input" | "unsupported" | "load-failed" | "timeout" | "context-lost";
237
260
  }
238
261
 
262
+ /** Immutable required-export sentinel; future revisions use a new name. */
263
+ declare const STREET_MAP_PRESENTATION_V1 = 1;
264
+ interface FlapStreetMapDetailsContext extends FlapStreetMapPointState {
265
+ nowMs: number;
266
+ distanceMeters: number | null;
267
+ claimRadiusMeters: number | null;
268
+ /** Geometric estimate for display, never a claim authorization. */
269
+ withinDisplayRadius: boolean | null;
270
+ close(): void;
271
+ }
239
272
  interface FlapStreetMapProps {
240
273
  points?: readonly FlapStreetMapPoint[];
241
274
  center?: FlapStreetMapCoordinate;
242
275
  userLocation?: FlapStreetMapCoordinate | null;
243
276
  zoom?: number;
277
+ selectedPointId?: string | null;
244
278
  onSelectPoint?: (id: string) => void;
279
+ onSelectionChange?: (point: FlapStreetMapPoint | null) => void;
280
+ /** Project-owned, localized React content; never HTML strings or map popups. */
281
+ renderPointDetails?: (point: FlapStreetMapPoint, context: FlapStreetMapDetailsContext) => React.ReactNode;
282
+ claimRadiusMeters?: number;
283
+ cityClusters?: boolean;
284
+ showPointLabels?: boolean;
285
+ showEventCountdowns?: boolean;
286
+ showNavigation?: boolean;
287
+ showScale?: boolean;
288
+ rarityColors?: Partial<Record<FlapStreetMapRarity, string>>;
289
+ controlLabels?: Partial<Record<"zoomIn" | "zoomOut" | "resetBearing" | "closeDetails", string>>;
245
290
  onStateChange?: (state: FlapStreetMapState) => void;
246
- /** Supply a localized list/manual alternative. The default lists point titles. */
247
291
  fallback?: React.ReactNode;
248
292
  className?: string;
249
293
  }
250
- /** Fixed OpenFreeMap dark map. No permission request, URL, HTML or map-instance API. */
251
- declare function FlapStreetMap({ points, center, userLocation, zoom, onSelectPoint, onStateChange, fallback, className }: FlapStreetMapProps): React.JSX.Element;
294
+ /** Fixed resource/rendering surface. Amounts, claim rules and details remain project-owned. */
295
+ declare function FlapStreetMap({ points, center, userLocation, zoom, selectedPointId, onSelectPoint, onSelectionChange, renderPointDetails, claimRadiusMeters, cityClusters, showPointLabels, showEventCountdowns, showNavigation, showScale, rarityColors, controlLabels, onStateChange, fallback, className, }: FlapStreetMapProps): React.JSX.Element;
252
296
 
253
- export { AddressLink, Alert, BinanceImage, type BinanceImageProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, type CopyButtonProps, Countdown, DataRow, DetailTile, ExternalLink, type ExternalLinkProps, FlapStreetMap, type FlapStreetMapCoordinate, type FlapStreetMapPoint, type FlapStreetMapProps, type FlapStreetMapState, Input, type InputProps, IpfsBackground, type IpfsBackgroundProps, IpfsImage, type IpfsImageProps, IpfsText, type IpfsTextProps, Metric, NftMetadataImage, type NftMetadataImageProps, ReviewedFrame, type ReviewedFrameProps, type ReviewedFrameProvider, StatusBadge, type StatusTone, TxButton, type TxButtonState, VaultBanner, type VideoClipSessionPlayerProps, type VideoSessionClip, VideoSessionPlayer, type VideoSessionPlayerProps, type VideoSessionState, buttonVariants };
297
+ export { AddressLink, Alert, BinanceImage, type BinanceImageProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, type CopyButtonProps, Countdown, DataRow, DetailTile, ExternalLink, type ExternalLinkProps, FlapStreetMap, type FlapStreetMapCoordinate, type FlapStreetMapDetailsContext, type FlapStreetMapPoint, type FlapStreetMapPointKind, type FlapStreetMapPointState, type FlapStreetMapProps, type FlapStreetMapRarity, type FlapStreetMapState, Input, type InputProps, IpfsBackground, type IpfsBackgroundProps, IpfsImage, type IpfsImageProps, IpfsText, type IpfsTextProps, Metric, NftMetadataImage, type NftMetadataImageProps, ReviewedFrame, type ReviewedFrameProps, type ReviewedFrameProvider, STREET_MAP_PRESENTATION_V1, StatusBadge, type StatusTone, TxButton, type TxButtonState, VaultBanner, type VideoClipSessionPlayerProps, type VideoSessionClip, VideoSessionPlayer, type VideoSessionPlayerProps, type VideoSessionState, buttonVariants };
package/ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { AddressLink, Alert, BinanceImage, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, Countdown, DataRow, DetailTile, ExternalLink, FlapStreetMap, Input, IpfsBackground, IpfsImage, IpfsText, Metric, NftMetadataImage, ReviewedFrame, StatusBadge, TxButton, VaultBanner, VideoSessionPlayer, buttonVariants } from './chunk-2K4HG2TC.js';
2
+ export { AddressLink, Alert, BinanceImage, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, Countdown, DataRow, DetailTile, ExternalLink, FlapStreetMap, Input, IpfsBackground, IpfsImage, IpfsText, Metric, NftMetadataImage, ReviewedFrame, STREET_MAP_PRESENTATION_V1, StatusBadge, TxButton, VaultBanner, VideoSessionPlayer, buttonVariants } from './chunk-5DU4W4CK.js';
3
3
  import './chunk-B4WKI3EW.js';
4
4
  import './chunk-GY7YY67I.js';
5
5
  import './chunk-BUSYA2B4.js';