@rdlabo/ionic-theme-ios27 1.2.0-3 → 1.2.0-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/README.md +15 -2
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/css/ionic-theme-ios27.css +1 -1
- package/dist/css/vertical-bars.css +1 -1
- package/dist/focus-controller/index.d.ts +4 -2
- package/dist/focus-controller/index.d.ts.map +1 -1
- package/dist/focus-controller/index.js +100 -57
- package/dist/focus-controller/index.js.map +1 -0
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -60
- package/dist/index.js.map +1 -0
- package/dist/native/components/index.d.ts +13 -10
- package/dist/native/components/index.d.ts.map +1 -1
- package/dist/native/components/index.js +39 -41
- package/dist/native/components/index.js.map +1 -0
- package/dist/native/components/ion-back-button.d.ts +6 -1
- package/dist/native/components/ion-back-button.d.ts.map +1 -1
- package/dist/native/components/ion-back-button.js +19 -13
- package/dist/native/components/ion-back-button.js.map +1 -0
- package/dist/native/components/ion-button.d.ts +8 -2
- package/dist/native/components/ion-button.d.ts.map +1 -1
- package/dist/native/components/ion-button.js +22 -17
- package/dist/native/components/ion-button.js.map +1 -0
- package/dist/native/components/ion-buttons.d.ts +8 -2
- package/dist/native/components/ion-buttons.d.ts.map +1 -1
- package/dist/native/components/ion-buttons.js +29 -33
- package/dist/native/components/ion-buttons.js.map +1 -0
- package/dist/native/components/ion-fab.d.ts +6 -1
- package/dist/native/components/ion-fab.d.ts.map +1 -1
- package/dist/native/components/ion-fab.js +131 -151
- package/dist/native/components/ion-fab.js.map +1 -0
- package/dist/native/components/ion-menu-button.d.ts +8 -2
- package/dist/native/components/ion-menu-button.d.ts.map +1 -1
- package/dist/native/components/ion-menu-button.js +29 -19
- package/dist/native/components/ion-menu-button.js.map +1 -0
- package/dist/native/components/ion-segment.d.ts +6 -1
- package/dist/native/components/ion-segment.d.ts.map +1 -1
- package/dist/native/components/ion-segment.js +29 -23
- package/dist/native/components/ion-segment.js.map +1 -0
- package/dist/native/components/ion-tab-bar.d.ts +6 -1
- package/dist/native/components/ion-tab-bar.d.ts.map +1 -1
- package/dist/native/components/ion-tab-bar.js +49 -40
- package/dist/native/components/ion-tab-bar.js.map +1 -0
- package/dist/native/components/searchable-tabs.d.ts +17 -15
- package/dist/native/components/searchable-tabs.d.ts.map +1 -1
- package/dist/native/components/searchable-tabs.js +382 -434
- package/dist/native/components/searchable-tabs.js.map +1 -0
- package/dist/native/definitions.d.ts +118 -111
- package/dist/native/definitions.d.ts.map +1 -1
- package/dist/native/definitions.js +0 -1
- package/dist/native/foldable/fold-state.d.ts +5 -0
- package/dist/native/foldable/fold-state.d.ts.map +1 -0
- package/dist/native/foldable/fold-state.js +14 -0
- package/dist/native/foldable/fold-state.js.map +1 -0
- package/dist/native/foldable/types.d.ts +12 -0
- package/dist/native/foldable/types.d.ts.map +1 -0
- package/dist/native/foldable/types.js +0 -0
- package/dist/native/index.d.ts +6 -3
- package/dist/native/index.d.ts.map +1 -1
- package/dist/native/index.js +228 -204
- package/dist/native/index.js.map +1 -0
- package/dist/native/prehide.d.ts +4 -2
- package/dist/native/prehide.d.ts.map +1 -1
- package/dist/native/prehide.js +220 -242
- package/dist/native/prehide.js.map +1 -0
- package/dist/native/runtime.d.ts +3 -1
- package/dist/native/runtime.d.ts.map +1 -1
- package/dist/native/runtime.js +626 -730
- package/dist/native/runtime.js.map +1 -0
- package/dist/native/shared/candidate.d.ts +16 -11
- package/dist/native/shared/candidate.d.ts.map +1 -1
- package/dist/native/shared/candidate.js +96 -95
- package/dist/native/shared/candidate.js.map +1 -0
- package/dist/native/shared/crossfade.d.ts +6 -4
- package/dist/native/shared/crossfade.d.ts.map +1 -1
- package/dist/native/shared/crossfade.js +49 -45
- package/dist/native/shared/crossfade.js.map +1 -0
- package/dist/native/shared/dom.d.ts +7 -5
- package/dist/native/shared/dom.d.ts.map +1 -1
- package/dist/native/shared/dom.js +163 -211
- package/dist/native/shared/dom.js.map +1 -0
- package/dist/native/shared/events.d.ts +8 -6
- package/dist/native/shared/events.d.ts.map +1 -1
- package/dist/native/shared/events.js +12 -7
- package/dist/native/shared/events.js.map +1 -0
- package/dist/native/shared/icons.d.ts +4 -2
- package/dist/native/shared/icons.d.ts.map +1 -1
- package/dist/native/shared/icons.js +59 -53
- package/dist/native/shared/icons.js.map +1 -0
- package/dist/native/shared/modal.d.ts +3 -1
- package/dist/native/shared/modal.d.ts.map +1 -1
- package/dist/native/shared/modal.js +156 -139
- package/dist/native/shared/modal.js.map +1 -0
- package/dist/native/vertical-bars-web.d.ts +3 -1
- package/dist/native/vertical-bars-web.d.ts.map +1 -1
- package/dist/native/vertical-bars-web.js +332 -346
- package/dist/native/vertical-bars-web.js.map +1 -0
- package/dist/native-integration/index.d.ts +10 -8
- package/dist/native-integration/index.d.ts.map +1 -1
- package/dist/native-integration/index.js +102 -100
- package/dist/native-integration/index.js.map +1 -0
- package/dist/native-integration/transition.d.ts +3 -1
- package/dist/native-integration/transition.d.ts.map +1 -1
- package/dist/native-integration/transition.js +15 -6
- package/dist/native-integration/transition.js.map +1 -0
- package/dist/searchbar/index.d.ts +4 -2
- package/dist/searchbar/index.d.ts.map +1 -1
- package/dist/searchbar/index.js +64 -56
- package/dist/searchbar/index.js.map +1 -0
- package/dist/segment/index.d.ts +3 -1
- package/dist/segment/index.d.ts.map +1 -1
- package/dist/segment/index.js +465 -324
- package/dist/segment/index.js.map +1 -0
- package/dist/sheets-of-glass/animations.d.ts +13 -12
- package/dist/sheets-of-glass/animations.d.ts.map +1 -1
- package/dist/sheets-of-glass/animations.js +496 -306
- package/dist/sheets-of-glass/animations.js.map +1 -0
- package/dist/sheets-of-glass/index.d.ts +3 -1
- package/dist/sheets-of-glass/index.d.ts.map +1 -1
- package/dist/sheets-of-glass/index.js +294 -357
- package/dist/sheets-of-glass/index.js.map +1 -0
- package/dist/sheets-of-glass/interfaces.d.ts +11 -9
- package/dist/sheets-of-glass/interfaces.d.ts.map +1 -1
- package/dist/sheets-of-glass/interfaces.js +0 -1
- package/dist/tab-bar-searchable/animations/enter.d.ts +4 -2
- package/dist/tab-bar-searchable/animations/enter.d.ts.map +1 -1
- package/dist/tab-bar-searchable/animations/enter.js +50 -69
- package/dist/tab-bar-searchable/animations/enter.js.map +1 -0
- package/dist/tab-bar-searchable/animations/leave.d.ts +4 -2
- package/dist/tab-bar-searchable/animations/leave.d.ts.map +1 -1
- package/dist/tab-bar-searchable/animations/leave.js +48 -62
- package/dist/tab-bar-searchable/animations/leave.js.map +1 -0
- package/dist/tab-bar-searchable/index.d.ts +5 -3
- package/dist/tab-bar-searchable/index.d.ts.map +1 -1
- package/dist/tab-bar-searchable/index.js +123 -135
- package/dist/tab-bar-searchable/index.js.map +1 -0
- package/dist/transition/index.d.ts +9 -8
- package/dist/transition/index.d.ts.map +1 -1
- package/dist/transition/index.js +203 -192
- package/dist/transition/index.js.map +1 -0
- package/dist/transition/ios.transition.d.ts +7 -5
- package/dist/transition/ios.transition.d.ts.map +1 -1
- package/dist/transition/ios.transition.js +15 -11
- package/dist/transition/ios.transition.js.map +1 -0
- package/dist/utils.d.ts +10 -8
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +58 -66
- package/dist/utils.js.map +1 -0
- package/dist/vertical-bars.d.ts +5 -4
- package/dist/vertical-bars.js +4 -2
- package/docs/iphone-duo-with-original-theme.md +18 -29
- package/docs/iphone-duo.md +44 -204
- package/docs/native-ui-shell.md +10 -8
- package/docs/special-markup.md +2 -0
- package/docs/vertical-bars.md +283 -0
- package/ios/Sources/IonicNativeUIShellPlugin/Components/ShellVerticalBars.swift +34 -14
- package/ios/Sources/IonicNativeUIShellPlugin/Shared/ShellSnapshot.swift +2 -0
- package/ios/Tests/IonicNativeUIShellPluginTests/ShellSnapshotTests.swift +3 -0
- package/package.json +9 -6
- package/src/native/components/index.ts +3 -2
- package/src/native/components/ion-button.ts +3 -2
- package/src/native/components/ion-buttons.ts +4 -3
- package/src/native/components/ion-menu-button.ts +3 -2
- package/src/native/definitions.ts +22 -1
- package/src/native/foldable/fold-state.ts +9 -0
- package/src/native/foldable/types.ts +4 -0
- package/src/native/index.ts +17 -3
- package/src/native/prehide.ts +3 -1
- package/src/native/runtime.ts +2 -2
- package/src/native/shared/candidate.ts +39 -10
- package/src/native/shared/dom.ts +4 -4
- package/src/styles/vertical-bars.scss +4 -2
- package/src/vertical-bars.ts +9 -1
- package/dist/vertical-bars.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchable-tabs.js","names":[],"sources":["../../../src/native/components/searchable-tabs.ts"],"sourcesContent":["import { getNativeSearchBindings, requestNativeSearch } from '../../native-integration';\nimport type { NativeSearchBinding } from '../../native-integration';\nimport { excluded, inFixedToolbar, isShellDisabled, marker, text, visible } from '../shared/dom';\nimport { iconSource } from '../shared/icons';\nimport type { Candidate } from '../shared/candidate';\nimport type { ShellItem, ShellSearch, ShellSearchEvent } from '../definitions';\n\ninterface SearchState {\n binding: NativeSearchBinding;\n bar: HTMLIonSearchbarElement;\n input: HTMLInputElement;\n editSequence: number;\n composing: boolean;\n focused: boolean;\n minimumRevision: number;\n valueVersion: number;\n applyingInput: boolean;\n keyboardHidden?: boolean;\n last?: ShellSearch;\n layout?: string;\n rejectedLayout?: string;\n restore: () => void;\n}\n\nexport const createSearchSupport = (doc: Document, id: (element: Element) => string, schedule: () => void) => {\n const states = new Map<NativeSearchBinding, SearchState>();\n let keyboardVisible = false;\n let heldKeyboardResize: string | null = null;\n let keyboardResizeGeneration = 0;\n type KeyboardPlugin = {\n setResizeMode?: (options: { mode: string }) => Promise<void>;\n getResizeMode?: () => Promise<{ mode?: string }>;\n };\n const keyboardPlugin = (): KeyboardPlugin | undefined =>\n (\n doc.defaultView as Window & {\n Capacitor?: { Plugins?: { Keyboard?: KeyboardPlugin } };\n }\n )?.Capacitor?.Plugins?.Keyboard;\n const projected = (binding: NativeSearchBinding) => binding.footer.hasAttribute(marker);\n // Hold Cap resize at none while search is active so WebView shrink does not fight UISearchTab.\n const holdKeyboardResize = () => {\n const keyboard = keyboardPlugin();\n if (!keyboard?.setResizeMode || heldKeyboardResize !== null) return;\n const setResizeMode = keyboard.setResizeMode.bind(keyboard);\n const generation = ++keyboardResizeGeneration;\n heldKeyboardResize = 'native';\n void (async () => {\n let restoreMode = 'native';\n try {\n const current = await keyboard.getResizeMode?.();\n if (typeof current?.mode === 'string') restoreMode = current.mode;\n } catch {\n /* keep default restore target */\n }\n if (generation !== keyboardResizeGeneration) return;\n heldKeyboardResize = restoreMode;\n try {\n await setResizeMode({ mode: 'none' });\n } catch {\n if (generation === keyboardResizeGeneration) heldKeyboardResize = null;\n return;\n }\n // Leave raced ahead of setResizeMode(none) — undo the stale none apply.\n if (generation !== keyboardResizeGeneration) void setResizeMode({ mode: restoreMode }).catch(() => undefined);\n })();\n };\n const hasActiveProjection = () => [...states.keys()].some((binding) => binding.active && projected(binding));\n const releaseKeyboardResize = () => {\n if (hasActiveProjection()) return;\n keyboardResizeGeneration++;\n const mode = heldKeyboardResize;\n heldKeyboardResize = null;\n if (!mode) return;\n void keyboardPlugin()?.setResizeMode?.({ mode });\n };\n const isCurrent = (state: SearchState) =>\n state.bar.isConnected &&\n state.binding.footer.querySelector('ion-searchbar') === state.bar &&\n state.bar.querySelector('input.searchbar-input') === state.input;\n const install = (binding: NativeSearchBinding, bar: HTMLIonSearchbarElement, input: HTMLInputElement): SearchState => {\n const originalFocus = bar.setFocus;\n const ownValue = Object.getOwnPropertyDescriptor(bar, 'value');\n let owner: object | null = bar;\n let value = ownValue;\n while (!value && (owner = Object.getPrototypeOf(owner))) value = Object.getOwnPropertyDescriptor(owner, 'value');\n const focus = async () => {\n if (projected(binding) && (await requestNativeSearch(binding, true, true))) return;\n await originalFocus.call(bar);\n };\n bar.setFocus = focus;\n let wrapped: PropertyDescriptor | undefined;\n if (value?.get && value.set && ownValue?.configurable !== false) {\n const descriptor = value;\n wrapped = {\n configurable: true,\n enumerable: value.enumerable,\n get: () => descriptor.get!.call(bar),\n set: (next: string | null | undefined) => {\n if (state.applyingInput) state.applyingInput = false;\n else state.valueVersion++;\n descriptor.set!.call(bar, next);\n schedule();\n },\n };\n Object.defineProperty(bar, 'value', wrapped);\n }\n const state: SearchState = {\n binding,\n bar,\n input,\n editSequence: 0,\n composing: false,\n focused: false,\n minimumRevision: 0,\n valueVersion: 0,\n applyingInput: false,\n restore: () => {\n if (bar.setFocus === focus) bar.setFocus = originalFocus;\n if (wrapped && Object.getOwnPropertyDescriptor(bar, 'value')?.set === wrapped.set) {\n if (ownValue) Object.defineProperty(bar, 'value', ownValue);\n else Reflect.deleteProperty(bar, 'value');\n }\n binding.active = binding.focused = false;\n },\n };\n states.set(binding, state);\n return state;\n };\n const readIcon = (element: HTMLElement, owner: Element, candidate: Candidate): ShellItem | undefined => {\n const style = getComputedStyle(element);\n const rect = element.getBoundingClientRect();\n const item: ShellItem = {\n id: id(owner),\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n label: text(element),\n accessibilityLabel: owner.getAttribute('aria-label') ?? text(element),\n disabled: false,\n selected: false,\n fontSize: parseFloat(style.fontSize),\n fontWeight: parseInt(style.fontWeight, 10) || 400,\n color: style.color,\n };\n const icon = element.matches('ion-icon') ? element : element.querySelector('ion-icon');\n const svg = icon?.shadowRoot?.querySelector<SVGElement>('svg') ?? element.querySelector<SVGElement>('svg');\n if (svg) {\n const source = iconSource(svg);\n if (!source) return;\n const iconStyle = getComputedStyle(icon ?? svg);\n item.iconWidth = parseFloat(iconStyle.width);\n item.iconHeight = parseFloat(iconStyle.height);\n // ion-searchbar gives its icon a full-height box; SVG meet sizing keeps the glyph square.\n const box = (svg as SVGSVGElement).viewBox?.baseVal;\n if (box?.width && box.height && svg.getAttribute('preserveAspectRatio') !== 'none') {\n const scale = Math.min(item.iconWidth! / box.width, item.iconHeight / box.height);\n item.iconWidth = box.width * scale;\n item.iconHeight = box.height * scale;\n }\n candidate.icons.push({ item, source });\n } else if (!item.label) return;\n return item;\n };\n return {\n keyboard(visible: boolean) {\n keyboardVisible = visible;\n if (!visible) {\n for (const [binding, state] of states) {\n // Ionic can wait for the pre-keyboard height indefinitely after rotation.\n // Release the visibility override we own when native search's keyboard closes.\n if (state.keyboardHidden) binding.tabBar.classList.remove('tab-bar-hidden');\n state.keyboardHidden = false;\n }\n releaseKeyboardResize();\n }\n schedule();\n },\n keepSearchTabsVisible() {\n if (!keyboardVisible) return;\n for (const [binding, state] of states) {\n // Ionic hides bottom tabs for every keyboard, including native search.\n // Correct only that framework class; application styles still apply.\n if (binding.active && projected(binding) && binding.tabBar.classList.contains('tab-bar-hidden')) {\n state.keyboardHidden = true;\n binding.tabBar.classList.remove('tab-bar-hidden');\n }\n }\n },\n decorate(candidates: Candidate[], blocked: (element: HTMLElement) => boolean): Candidate[] {\n const bindings = getNativeSearchBindings(doc);\n for (const [binding, state] of states) {\n if (!bindings.includes(binding) || !isCurrent(state)) {\n this.retire(binding);\n state.restore();\n states.delete(binding);\n }\n }\n const inactive: [Candidate, ShellSearch][] = [];\n const pageHidden = (element: HTMLElement) => !!element.closest('.ion-page-hidden, .ion-page-invisible');\n const retainInactive = (candidate: Candidate, state?: SearchState, keepAvailable = false) => {\n // Keep ShellSearchController across page transitions instead of demoting to UITabBar.\n // While the searchable page is only blocked mid-transition (not yet hidden), keep\n // available:true so native chrome does not swap to ordinary idleBar over album content.\n if (state?.last) inactive.push([candidate, { ...state.last, active: false, available: keepAvailable, focused: false }]);\n };\n for (const binding of bindings) {\n const candidate = candidates.find((c) => c.element === binding.tabBar);\n if (!candidate || candidate.control.search || binding.tabBar.getAttribute('slot') !== 'bottom') continue;\n const fab = binding.trigger.parentElement;\n // Search also supports the existing page-level fixed FAB, outside scrolling content.\n if (\n !fab?.matches('ion-fab[slot=\"fixed\"]') ||\n !(fab.parentElement?.matches('ion-content') || (fab.parentElement?.matches('.ion-page') && !fab.closest('ion-content')))\n )\n continue;\n if (isShellDisabled(fab) || isShellDisabled(binding.footer)) continue;\n const pageUnavailable = blocked(binding.footer) || !!binding.footer.closest(excluded);\n const existing = states.get(binding);\n if (pageUnavailable) {\n retainInactive(candidate, existing, !!existing?.last?.available && !pageHidden(binding.footer));\n if (existing?.last) continue;\n // First registration during a transition: fall through and measure available:false.\n }\n if (binding.active && existing && isCurrent(existing) && existing.last && !pageUnavailable) {\n const back = binding.footer.querySelector<HTMLIonButtonElement>('ion-buttons[slot=start] ion-button');\n // Close must stay eligible; otherwise fall through and demote instead of caching active.\n if (back && !back.disabled && !back.closest(excluded)) {\n candidate.control.search = {\n ...existing.last,\n active: true,\n available: true,\n focused: binding.focused,\n value: existing.bar.value ?? '',\n placeholder: existing.bar.placeholder ?? '',\n disabled: existing.bar.disabled,\n editSequence: existing.editSequence,\n valueVersion: existing.valueVersion,\n };\n existing.last = candidate.control.search;\n candidate.sources = [binding.tabBar, binding.trigger.closest<HTMLElement>('ion-fab') ?? binding.trigger, binding.footer];\n candidate.actions.set(existing.last.trigger.id, binding.trigger);\n candidate.actions.set(existing.last.closeId, back);\n continue;\n }\n }\n if (!visible(binding.trigger) && !pageUnavailable) {\n retainInactive(candidate, existing);\n continue;\n }\n const bar = binding.footer.querySelector<HTMLIonSearchbarElement>('ion-searchbar');\n const input = bar?.querySelector<HTMLInputElement>('input.searchbar-input');\n const back = binding.footer.querySelector<HTMLIonButtonElement>('ion-buttons[slot=start] ion-button');\n if (\n !bar ||\n !input ||\n !back ||\n !binding.footer.matches('ion-footer') ||\n !inFixedToolbar(bar) ||\n !inFixedToolbar(back) ||\n (!pageUnavailable && bar.closest(excluded)) ||\n !bar.classList.contains('ios') ||\n bar.classList.contains('searchbar-classic')\n ) {\n retainInactive(candidate, existing);\n continue;\n }\n if (\n bar.color ||\n back.fill !== 'default' ||\n back.color ||\n bar.maxlength != null ||\n bar.minlength != null ||\n bar.inputmode ||\n bar.enterkeyhint ||\n !['off', 'none'].includes(bar.autocapitalize) ||\n bar.autocomplete !== 'off' ||\n ![false, 'off', undefined].includes(bar.autocorrect) ||\n bar.spellcheck ||\n bar.showClearButton !== 'always' ||\n bar.clearIcon\n ) {\n retainInactive(candidate, existing);\n continue;\n }\n if (bar.showCancelButton !== 'never' || bar.type !== 'search' || !getComputedStyle(input).backdropFilter.includes('blur')) {\n retainInactive(candidate, existing);\n continue;\n }\n const fabButton = binding.trigger as HTMLIonFabButtonElement;\n const nativeTrigger = fabButton.shadowRoot?.querySelector<HTMLElement>('[part=native]');\n if (\n (!pageUnavailable && binding.trigger.closest(excluded)) ||\n (!pageUnavailable && back.closest(excluded)) ||\n back.disabled ||\n fabButton.disabled ||\n fabButton.color ||\n fabButton.type !== 'button' ||\n fabButton.href ||\n !nativeTrigger ||\n getComputedStyle(fabButton).backgroundColor !== 'rgba(0, 0, 0, 0)' ||\n !getComputedStyle(nativeTrigger).backdropFilter.includes('blur')\n ) {\n retainInactive(candidate, existing);\n continue;\n }\n const state = existing ?? install(binding, bar, input);\n const trigger = readIcon(binding.trigger, binding.trigger, candidate);\n const searchIcon = bar.querySelector<HTMLElement>('.searchbar-search-icon');\n const field = searchIcon && readIcon(searchIcon, bar, candidate);\n if (!trigger || !field) {\n retainInactive(candidate, state);\n continue;\n }\n field.label = '';\n field.accessibilityLabel = bar.getAttribute('aria-label') ?? input.getAttribute('aria-label') ?? 'Search';\n // Icon-only search FABs often rely on the searchbar for their accessible\n // name. Carry that semantic name into the independent resting trigger.\n if (!trigger.accessibilityLabel) trigger.accessibilityLabel = field.accessibilityLabel;\n state.layout = JSON.stringify([\n innerWidth,\n innerHeight,\n candidate.control.x,\n candidate.control.y,\n candidate.control.width,\n candidate.control.height,\n candidate.control.rtl,\n trigger.x,\n trigger.y,\n trigger.width,\n trigger.height,\n candidate.control.items,\n candidate.icons.map(({ source }) => source),\n field,\n trigger,\n bar.placeholder,\n bar.disabled,\n ]);\n if (state.rejectedLayout === state.layout) {\n retainInactive(candidate, state);\n continue;\n }\n const available = !pageUnavailable && visible(binding.trigger);\n candidate.control.search = {\n id: id(input),\n field,\n trigger,\n closeId: id(back),\n active: available && binding.active,\n available,\n focused: available && binding.focused,\n value: bar.value ?? '',\n placeholder: bar.placeholder ?? '',\n disabled: bar.disabled,\n editSequence: state.editSequence,\n valueVersion: state.valueVersion,\n };\n state.last = candidate.control.search;\n if (available) {\n candidate.sources = [binding.tabBar, binding.trigger.closest<HTMLElement>('ion-fab') ?? binding.trigger, binding.footer];\n candidate.actions.set(id(binding.trigger), binding.trigger);\n candidate.actions.set(id(back), back);\n }\n }\n for (const [candidate, configuration] of inactive) candidate.control.search ??= configuration;\n const groups = candidates.filter((c) => c.control.search);\n return candidates.filter((c) => !groups.some((group) => group !== c && group.sources?.some((source) => source.contains(c.element))));\n },\n projected,\n hasActive() {\n for (const [binding] of states) if (binding.active && projected(binding)) return true;\n return false;\n },\n begin(binding: NativeSearchBinding, revision: number) {\n const state = states.get(binding);\n if (state) state.minimumRevision = revision;\n },\n /** Enter / focus / leave. `focused` is ignored when leaving. */\n setStatus(binding: NativeSearchBinding, active: boolean, focused = false) {\n if (!active) {\n this.retire(binding);\n return;\n }\n binding.active = true;\n // Projection intent only. Ionic focus/blur events still wait for the native phase.\n binding.focused = focused;\n holdKeyboardResize();\n },\n release(element: HTMLElement) {\n for (const binding of states.keys()) if (binding.footer === element) this.retire(binding);\n },\n reject(ids: string[]) {\n states.forEach((state) => {\n if (ids.includes(id(state.binding.tabBar))) {\n state.rejectedLayout = state.layout;\n // UIKit removed the search surface — do not reuse its cache; project ordinary tabs.\n state.last = undefined;\n }\n });\n },\n event(event: ShellSearchEvent) {\n const state = Array.from(states.values()).find((s) => id(s.input) === event.id && projected(s.binding) && isCurrent(s));\n if (\n !state ||\n !state.binding.active ||\n ((event.phase === 'input' || event.phase === 'clear') && event.valueVersion !== state.valueVersion) ||\n event.revision < state.minimumRevision ||\n event.sequence <= state.editSequence ||\n state.bar.disabled\n )\n return;\n state.editSequence = event.sequence;\n const { input, binding } = state;\n if (event.phase === 'input') {\n if (state.composing !== event.composing)\n input.dispatchEvent(\n new CompositionEvent(event.composing ? 'compositionstart' : 'compositionend', { bubbles: true, data: event.value }),\n );\n state.composing = event.composing;\n input.value = event.value;\n state.applyingInput = true;\n try {\n input.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true, isComposing: event.composing }));\n } finally {\n state.applyingInput = false;\n }\n } else if (event.phase === 'clear') {\n state.bar.querySelector<HTMLButtonElement>('.searchbar-clear-button')?.click();\n } else if (event.phase === 'commit') {\n input.dispatchEvent(new Event('change', { bubbles: true }));\n } else {\n if (state.focused === (event.phase === 'focus')) return;\n state.focused = binding.focused = event.phase === 'focus';\n input.dispatchEvent(new FocusEvent(event.phase, { composed: true }));\n }\n schedule();\n },\n retire(binding: NativeSearchBinding) {\n const state = states.get(binding);\n // Keep ownership until keyboardWillHide can release this class.\n if (state?.keyboardHidden && keyboardVisible) binding.tabBar.classList.add('tab-bar-hidden');\n if (state?.focused) {\n state.focused = false;\n state.input.dispatchEvent(new FocusEvent('blur'));\n }\n binding.active = binding.focused = false;\n releaseKeyboardResize();\n },\n destroy() {\n states.forEach((state) => {\n this.retire(state.binding);\n state.restore();\n });\n states.clear();\n releaseKeyboardResize();\n },\n };\n};\n"],"mappings":";;;;AAwBA,MAAa,uBAAuB,KAAe,IAAkC,aAAyB;CAC5G,MAAM,yBAAS,IAAI,IAAsC;CACzD,IAAI,kBAAkB;CACtB,IAAI,qBAAoC;CACxC,IAAI,2BAA2B;CAK/B,MAAM,uBAEF,IAAI,aAGH,WAAW,SAAS;CACzB,MAAM,aAAa,YAAiC,QAAQ,OAAO,aAAa,MAAM;CAEtF,MAAM,2BAA2B;EAC/B,MAAM,WAAW,eAAe;EAChC,IAAI,CAAC,UAAU,iBAAiB,uBAAuB,MAAM;EAC7D,MAAM,gBAAgB,SAAS,cAAc,KAAK,QAAQ;EAC1D,MAAM,aAAa,EAAE;EACrB,qBAAqB;EACrB,CAAM,YAAY;GAChB,IAAI,cAAc;GAClB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ACxE,IAAI,MAAM,UAAU,UACzB,MAAM,cAAc,IAAI,MAAM,UAAU,EAAE,SAAS,KAAK,CAAC,CAAC;QACrD;IACL,IAAI,MAAM,aAAa,MAAM,UAAU,UAAU;IACjD,MAAM,UAAU,QAAQ,UAAU,MAAM,UAAU;IAClD,MAAM,cAAc,IAAI,WAAW,MAAM,OAAO,EAAE,UAAU,KAAK,CAAC,CAAC;GACrE;GACA,SAAS;EACX;EACA,OAAO,SAA8B;GACnC,MAAM,QAAQ,OAAO,IAAI,OAAO;GAEhC,IAAI,OAAO,kBAAkB,iBAAiB,QAAQ,OAAO,UAAU,IAAI,gBAAgB;GAC3F,IAAI,OAAO,SAAS;IAClB,MAAM,UAAU;IAChB,MAAM,MAAM,cAAc,IAAI,WAAW,MAAM,CAAC;GAClD;GACA,QAAQ,SAAS,QAAQ,UAAU;GACnC,sBAAsB;EACxB;EACA,UAAU;GACR,OAAO,SAAS,UAAU;IACxB,KAAK,OAAO,MAAM,OAAO;IACzB,MAAM,QAAQ;GAChB,CAAC;GACD,OAAO,MAAM;GACb,sBAAsB;EACxB;CACF;AACF"}
|
|
@@ -1,145 +1,152 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { NativeUIShellComponent } from "./components/index.js";
|
|
2
|
+
import { PluginListenerHandle } from "@capacitor/core";
|
|
3
|
+
//#region src/native/definitions.d.ts
|
|
4
4
|
export interface NativeUIShellStatus {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
state: 'web' | 'native' | 'stopped';
|
|
6
|
+
projected: number;
|
|
7
|
+
updates: number;
|
|
8
|
+
reason?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface VerticalControlAreaOptions {
|
|
11
|
+
buttonProjection?: 'source' | 'system';
|
|
12
|
+
buttonDefaultFill?: 'solid' | null;
|
|
13
|
+
}
|
|
14
|
+
export interface NativeUIShellOptions extends VerticalControlAreaOptions {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
controls?: NativeUIShellControls;
|
|
17
|
+
verticalBarsOnly?: boolean;
|
|
14
18
|
}
|
|
15
19
|
export interface NativeUIShellControls {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
tabs?: boolean;
|
|
21
|
+
toolbar?: boolean;
|
|
22
|
+
segment?: boolean;
|
|
23
|
+
fab?: boolean;
|
|
20
24
|
}
|
|
21
25
|
export interface NativeUIShellHandle {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
getStatus(): NativeUIShellStatus;
|
|
27
|
+
suspend(): Promise<NativeUIShellSuspension>;
|
|
28
|
+
destroy(): Promise<void>;
|
|
25
29
|
}
|
|
26
30
|
export type VerticalBarEdge = 'leading' | 'trailing' | null;
|
|
27
31
|
export interface VerticalBarPlacement {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
edge: VerticalBarEdge;
|
|
33
|
+
inset?: number;
|
|
34
|
+
nativeEdge?: VerticalBarEdge;
|
|
31
35
|
}
|
|
32
36
|
export interface VerticalControlAreaHandle extends NativeUIShellHandle {
|
|
33
|
-
|
|
37
|
+
setPlacement(placement: VerticalBarEdge | VerticalBarPlacement, rtl?: boolean): void;
|
|
34
38
|
}
|
|
35
39
|
export interface NativeUIShellSuspension {
|
|
36
|
-
|
|
40
|
+
resume(): Promise<void>;
|
|
37
41
|
}
|
|
38
42
|
export interface Frame {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
43
47
|
}
|
|
44
48
|
export interface ShellBadge {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
value: string;
|
|
50
|
+
color: string;
|
|
51
|
+
textColor: string;
|
|
48
52
|
}
|
|
49
53
|
export interface ShellItem extends Frame {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
id: string;
|
|
55
|
+
label: string;
|
|
56
|
+
accessibilityLabel: string;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
selected: boolean;
|
|
59
|
+
fontSize: number;
|
|
60
|
+
fontWeight: number;
|
|
61
|
+
color: string;
|
|
62
|
+
buttonFill?: 'clear' | 'solid' | 'outline';
|
|
63
|
+
backgroundColor?: string;
|
|
64
|
+
borderColor?: string;
|
|
65
|
+
borderWidth?: number;
|
|
66
|
+
badge?: ShellBadge;
|
|
67
|
+
icon?: string;
|
|
68
|
+
iconWidth?: number;
|
|
69
|
+
iconHeight?: number;
|
|
70
|
+
iconPosition?: 'leading' | 'trailing' | 'top';
|
|
71
|
+
imagePadding?: number;
|
|
72
|
+
contentInsetLeading?: number;
|
|
73
|
+
contentInsetTrailing?: number;
|
|
74
|
+
iconTemplate?: boolean;
|
|
75
|
+
visible?: boolean;
|
|
76
|
+
closeIcon?: string;
|
|
77
|
+
closeIconWidth?: number;
|
|
78
|
+
closeIconHeight?: number;
|
|
79
|
+
iconTransition?: number;
|
|
75
80
|
}
|
|
76
81
|
export interface ShellControl extends Frame {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
id: string;
|
|
83
|
+
kind: NativeUIShellComponent;
|
|
84
|
+
placement?: 'vertical-bars';
|
|
85
|
+
toolbarSlot?: 'start' | 'end';
|
|
86
|
+
items: ShellItem[];
|
|
87
|
+
dark: boolean;
|
|
88
|
+
rtl: boolean;
|
|
89
|
+
tabBarAnchor?: {
|
|
90
|
+
x: 0 | 0.5 | 1;
|
|
91
|
+
y: 0 | 1;
|
|
92
|
+
};
|
|
93
|
+
search?: ShellSearch;
|
|
89
94
|
}
|
|
90
95
|
export interface ShellSearch {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
id: string;
|
|
97
|
+
field: ShellItem;
|
|
98
|
+
trigger: ShellItem;
|
|
99
|
+
closeId: string;
|
|
100
|
+
active: boolean;
|
|
101
|
+
available: boolean;
|
|
102
|
+
focused: boolean;
|
|
103
|
+
value: string;
|
|
104
|
+
placeholder: string;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
editSequence: number;
|
|
107
|
+
valueVersion: number;
|
|
103
108
|
}
|
|
104
109
|
export interface ShellSearchEvent extends ShellActivation {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
valueVersion: number;
|
|
111
|
+
phase: 'input' | 'focus' | 'blur' | 'clear' | 'commit';
|
|
112
|
+
value: string;
|
|
113
|
+
composing: boolean;
|
|
109
114
|
}
|
|
110
115
|
export interface ShellSnapshot {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
revision: number;
|
|
117
|
+
transitionDuration?: number;
|
|
118
|
+
viewportWidth: number;
|
|
119
|
+
verticalBarEdge?: 'left' | 'right';
|
|
120
|
+
verticalBarFrame?: Frame;
|
|
121
|
+
controls: ShellControl[];
|
|
117
122
|
}
|
|
118
123
|
export interface ShellActivation {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
revision: number;
|
|
125
|
+
id: string;
|
|
126
|
+
sequence: number;
|
|
122
127
|
}
|
|
123
128
|
export interface WebViewMetrics {
|
|
124
|
-
|
|
129
|
+
radius: number;
|
|
125
130
|
}
|
|
126
131
|
export interface NativeUIShellPlugin {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
configure(options?: {
|
|
133
|
+
verticalBarsOnly?: boolean;
|
|
134
|
+
}): Promise<{
|
|
135
|
+
supported: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
getWebViewMetrics(): Promise<WebViewMetrics>;
|
|
138
|
+
update(snapshot: ShellSnapshot): Promise<{
|
|
139
|
+
revision: number;
|
|
140
|
+
rejectedSearches?: string[];
|
|
141
|
+
rejectedControls?: string[];
|
|
142
|
+
}>;
|
|
143
|
+
clear(options: {
|
|
144
|
+
revision: number;
|
|
145
|
+
}): Promise<void>;
|
|
146
|
+
addListener(name: 'activate', listener: (event: ShellActivation) => void): Promise<PluginListenerHandle>;
|
|
147
|
+
addListener(name: 'search', listener: (event: ShellSearchEvent) => void): Promise<PluginListenerHandle>;
|
|
148
|
+
addListener(name: 'webViewMetricsChange', listener: (event: WebViewMetrics) => void): Promise<PluginListenerHandle>;
|
|
144
149
|
}
|
|
150
|
+
//#endregion
|
|
151
|
+
export type { NativeUIShellComponent };
|
|
145
152
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","names":[],"sources":["../../src/native/definitions.ts"],"mappings":";;;iBAKiB;EACf;EACA;EACA;EACA;;iBAGe;EASf;EAOA;;iBAGe,6BAA6B;EAE5C;EAEA,WAAW;EAEX;;iBAGe;EAEf;EAEA;EAEA;EAEA;;iBAGe;EAEf,aAAa;EAEb,WAAW,QAAQ;EAEnB,WAAW;;YAID;iBAEK;EACf,MAAM;EAEN;EAEA,aAAa;;iBAGE,kCAAkC;EAEjD,aAAa,WAAW,kBAAkB,sBAAsB;;iBAGjD;EAEf,UAAU;;iBAGK;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe,kBAAkB;EACjC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe,qBAAqB;EACpC;EACA,MAAM;EAEN;EAEA;EACA,OAAO;EACP;EACA;EACA;IAAiB;IAAgB;;EACjC,SAAS;;iBAGM;EACf;EACA,OAAO;EACP,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe,yBAAyB;EACxC;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EAEA;EAEA,mBAAmB;EACnB,UAAU;;iBAGK;EACf;EACA;EACA;;iBAGe;EAEf;;iBAGe;EACf,UAAU;IAAY;MAA+B;IAAU;;EAC/D,qBAAqB,QAAQ;EAC7B,OAAO,UAAU,gBAAgB;IAAU;IAAkB;IAA6B;;EAC1F,MAAM;IAAW;MAAqB;EACtC,YAAY,kBAAkB,WAAW,OAAO,2BAA2B,QAAQ;EACnF,YAAY,gBAAgB,WAAW,OAAO,4BAA4B,QAAQ;EAClF,YAAY,8BAA8B,WAAW,OAAO,0BAA0B,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fold-state.d.ts","names":[],"sources":["../../../src/native/foldable/fold-state.ts"],"mappings":";;wBAGgB,sBAAsB,MAAM,aAAa,MAAM"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/native/foldable/fold-state.ts
|
|
2
|
+
/** Keep posture on ion-app so descendants can follow it through CSS. */
|
|
3
|
+
function applyFoldStateClasses(root, fold) {
|
|
4
|
+
for (const state of [
|
|
5
|
+
"flat",
|
|
6
|
+
"half-opened",
|
|
7
|
+
"closed"
|
|
8
|
+
]) root.classList.toggle(`ios-theme-fold-${state}`, fold.state === state);
|
|
9
|
+
root.classList.toggle("ios-theme-fold-expanded", fold.state === "half-opened" || fold.state === "flat" && !!fold.hingeBounds);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { applyFoldStateClasses };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=fold-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fold-state.js","names":[],"sources":["../../../src/native/foldable/fold-state.ts"],"sourcesContent":["import type { FoldState } from './types';\n\n/** Keep posture on ion-app so descendants can follow it through CSS. */\nexport function applyFoldStateClasses(root: HTMLElement, fold: FoldState): void {\n for (const state of ['flat', 'half-opened', 'closed']) {\n root.classList.toggle(`ios-theme-fold-${state}`, fold.state === state);\n }\n root.classList.toggle('ios-theme-fold-expanded', fold.state === 'half-opened' || (fold.state === 'flat' && !!fold.hingeBounds));\n}\n"],"mappings":";;AAGA,SAAgB,sBAAsB,MAAmB,MAAuB;CAC9E,KAAK,MAAM,SAAS;EAAC;EAAQ;EAAe;CAAQ,GAClD,KAAK,UAAU,OAAO,kBAAkB,SAAS,KAAK,UAAU,KAAK;CAEvE,KAAK,UAAU,OAAO,2BAA2B,KAAK,UAAU,iBAAkB,KAAK,UAAU,UAAU,CAAC,CAAC,KAAK,WAAY;AAChI"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/native/foldable/types.d.ts
|
|
2
|
+
export interface FoldState {
|
|
3
|
+
state: 'flat' | 'half-opened' | 'closed';
|
|
4
|
+
hingeBounds?: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/native/foldable/types.ts"],"mappings":";iBAAiB;EACf;EACA;IAAgB;IAAW;IAAW;IAAe"}
|
|
File without changes
|
package/dist/native/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { NativeUIShellControls, NativeUIShellHandle, NativeUIShellOptions, NativeUIShellPlugin, NativeUIShellStatus, NativeUIShellSuspension, VerticalBarEdge, VerticalBarPlacement, VerticalControlAreaHandle, VerticalControlAreaOptions, WebViewMetrics } from "./definitions.js";
|
|
2
|
+
import { NativeUIShellComponent } from "./components/index.js";
|
|
3
|
+
//#region src/native/index.d.ts
|
|
3
4
|
export declare const IonicNativeUIShell: NativeUIShellPlugin;
|
|
4
5
|
export declare const configureNativeTransition: () => Promise<WebViewMetrics>;
|
|
5
6
|
export declare const setVerticalControlAreaPlacement: (placement: VerticalBarEdge | VerticalBarPlacement, rtl?: boolean) => void;
|
|
6
|
-
export declare const enableVerticalControlArea: () => Promise<VerticalControlAreaHandle>;
|
|
7
|
+
export declare const enableVerticalControlArea: (options?: VerticalControlAreaOptions) => Promise<VerticalControlAreaHandle>;
|
|
7
8
|
export declare const enableNativeUIShell: (options?: NativeUIShellOptions) => Promise<NativeUIShellHandle>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export type { NativeUIShellComponent, NativeUIShellControls, NativeUIShellHandle, NativeUIShellOptions, NativeUIShellStatus, NativeUIShellSuspension, VerticalBarEdge, VerticalBarPlacement, VerticalControlAreaHandle, VerticalControlAreaOptions, WebViewMetrics };
|
|
8
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/native/index.ts"],"mappings":";;;qBA+Ba,oBAAkB;qBAoElB,iCAAsC,QAAQ;qBAiD9C,kCAAmC,WAAW,kBAAkB,sBAAsB;qBAqBtF,4BAAmC,UAAS,+BAAkC,QAAQ;qBAgBtF,sBAAuB,UAAS,yBAA4B,QAAQ"}
|