repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 3.45 kB
JSON
{"ast":null,"code":"\"use strict\";\n\nimport * as React from 'react';\nexport var NavigationBuilderContext = React.createContext({\n onDispatchAction: function onDispatchAction() {\n return undefined;\n },\n onOptionsChange: function onOptionsChange() {\n return undefined;\n },\n scheduleUpdate: function scheduleUpdate() {\n throw new Error(\"Couldn't find a context for scheduling updates.\");\n },\n flushUpdates: function flushUpdates() {\n throw new Error(\"Couldn't find a context for flushing updates.\");\n }\n});","map":{"version":3,"names":["React","NavigationBuilderContext","createContext","onDispatchAction","undefined","onOptionsChange","scheduleUpdate","Error","flushUpdates"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/core/src/NavigationBuilderContext.tsx"],"sourcesContent":["import type {\n NavigationAction,\n NavigationState,\n ParamListBase,\n} from '@react-navigation/routers';\nimport * as React from 'react';\n\nimport type { NavigationHelpers } from './types';\n\nexport type ListenerMap = {\n action: ChildActionListener;\n focus: FocusedNavigationListener;\n};\n\nexport type KeyedListenerMap = {\n getState: GetStateListener;\n beforeRemove: ChildBeforeRemoveListener;\n};\n\nexport type AddListener = <T extends keyof ListenerMap>(\n type: T,\n listener: ListenerMap[T]\n) => void;\n\nexport type AddKeyedListener = <T extends keyof KeyedListenerMap>(\n type: T,\n key: string,\n listener: KeyedListenerMap[T]\n) => void;\n\nexport type ChildActionListener = (\n action: NavigationAction,\n visitedNavigators?: Set<string>\n) => boolean;\n\nexport type FocusedNavigationCallback<T> = (\n navigation: NavigationHelpers<ParamListBase>\n) => T;\n\nexport type FocusedNavigationListener = <T>(\n callback: FocusedNavigationCallback<T>\n) => {\n handled: boolean;\n result: T;\n};\n\nexport type GetStateListener = () => NavigationState;\n\nexport type ChildBeforeRemoveListener = (action: NavigationAction) => boolean;\n\n/**\n * Context which holds the required helpers needed to build nested navigators.\n */\nexport const NavigationBuilderContext = React.createContext<{\n onAction?: (\n action: NavigationAction,\n visitedNavigators?: Set<string>\n ) => boolean;\n addListener?: AddListener;\n addKeyedListener?: AddKeyedListener;\n onRouteFocus?: (key: string) => void;\n onDispatchAction: (action: NavigationAction, noop: boolean) => void;\n onOptionsChange: (options: object) => void;\n scheduleUpdate: (callback: () => void) => void;\n flushUpdates: () => void;\n stackRef?: React.MutableRefObject<string | undefined>;\n}>({\n onDispatchAction: () => undefined,\n onOptionsChange: () => undefined,\n scheduleUpdate: () => {\n throw new Error(\"Couldn't find a context for scheduling updates.\");\n },\n flushUpdates: () => {\n throw new Error(\"Couldn't find a context for flushing updates.\");\n },\n});\n"],"mappings":";;AAKA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAgD9B,OAAO,IAAMC,wBAAwB,GAAGD,KAAK,CAACE,aAAa,CAaxD;EACDC,gBAAgB,EAAE,SAAlBA,gBAAgBA,CAAA;IAAA,OAAQC,SAAS;EAAA;EACjCC,eAAe,EAAE,SAAjBA,eAAeA,CAAA;IAAA,OAAQD,SAAS;EAAA;EAChCE,cAAc,EAAE,SAAhBA,cAAcA,CAAA,EAAQ;IACpB,MAAM,IAAIC,KAAK,CAAC,iDAAiD,CAAC;EACpE,CAAC;EACDC,YAAY,EAAE,SAAdA,YAAYA,CAAA,EAAQ;IAClB,MAAM,IAAID,KAAK,CAAC,+CAA+C,CAAC;EAClE;AACF,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}