|
| 1 | +/* eslint-disable @typescript-eslint/ban-ts-comment */ |
| 2 | +// Some packages do not provide types |
| 3 | + |
| 4 | +import * as eDeepTracked from 'ember-deep-tracked'; |
| 5 | +// @ts-expect-error |
| 6 | +import * as focusTrap from 'ember-focus-trap'; |
| 7 | +// @ts-expect-error |
| 8 | +import * as mFocusTrap from 'ember-focus-trap/modifiers/focus-trap'; |
| 9 | +import * as headlessMenu from 'ember-headlessui/components/menu'; |
| 10 | +import * as eModifier from 'ember-modifier'; |
| 11 | +import * as ePrimitives from 'ember-primitives'; |
| 12 | +import * as emberRepl from 'ember-repl'; |
| 13 | +import * as eResources from 'ember-resources'; |
| 14 | +import * as reactiveDebounce from 'reactiveweb/debounce'; |
| 15 | +import * as reactiveFps from 'reactiveweb/fps'; |
| 16 | +import * as reactiveFunction from 'reactiveweb/function'; |
| 17 | +import * as reactiveImage from 'reactiveweb/image'; |
| 18 | +import * as reactiveKeepLatest from 'reactiveweb/keep-latest'; |
| 19 | +import * as reactiveLink from 'reactiveweb/link'; |
| 20 | +import * as reactiveMap from 'reactiveweb/map'; |
| 21 | +import * as reactiveRemoteData from 'reactiveweb/remote-data'; |
| 22 | +import * as reactiveModifier from 'reactiveweb/resource/modifier'; |
| 23 | +import * as reactiveService from 'reactiveweb/resource/service'; |
| 24 | +import * as reactiveSync from 'reactiveweb/sync'; |
| 25 | +import * as reactiveThrottle from 'reactiveweb/throttle'; |
| 26 | +import * as reactiveWaitUntil from 'reactiveweb/wait-until'; |
| 27 | +import * as trackedBuiltIns from 'tracked-built-ins'; |
| 28 | +// @ts-expect-error |
| 29 | +import * as trackedToolbox from 'tracked-toolbox'; |
| 30 | +import * as xstate from 'xstate'; |
| 31 | + |
| 32 | +import * as limberExternalLink from 'limber/components/external-link'; |
| 33 | +import * as limberHeader from 'limber/components/limber/header'; |
| 34 | +import * as limberMenu from 'limber/components/limber/menu'; |
| 35 | +import * as limberShadowed from 'limber/components/shadowed'; |
| 36 | + |
| 37 | +export const importMap = { |
| 38 | + // Own Stuff |
| 39 | + 'limber/components/limber/menu': limberMenu, |
| 40 | + 'limber/components/limber/header': limberHeader, |
| 41 | + 'limber/components/external-link': limberExternalLink, |
| 42 | + 'limber/components/shadowed': limberShadowed, |
| 43 | + |
| 44 | + // Libraries |
| 45 | + 'ember-repl': emberRepl, |
| 46 | + xstate: xstate, |
| 47 | + 'ember-modifier': eModifier, |
| 48 | + 'tracked-built-ins': trackedBuiltIns, |
| 49 | + 'ember-headlessui/components/menu': headlessMenu, |
| 50 | + 'ember-focus-trap': focusTrap, |
| 51 | + 'ember-focus-trap/modifiers/focus-trap': mFocusTrap, |
| 52 | + 'ember-primitives': ePrimitives, |
| 53 | + 'tracked-toolbox': trackedToolbox, |
| 54 | + 'ember-deep-tracked': eDeepTracked, |
| 55 | + 'ember-resources': eResources, |
| 56 | + |
| 57 | + // Reactiveweb *only* has path imports |
| 58 | + 'reactiveweb/debounce': reactiveDebounce, |
| 59 | + 'reactiveweb/ember-concurrency': reactiveDebounce, |
| 60 | + 'reactiveweb/fps': reactiveFps, |
| 61 | + 'reactiveweb/function': reactiveFunction, |
| 62 | + 'reactiveweb/image': reactiveImage, |
| 63 | + 'reactiveweb/keep-latest': reactiveKeepLatest, |
| 64 | + 'reactiveweb/link': reactiveLink, |
| 65 | + 'reactiveweb/map': reactiveMap, |
| 66 | + 'reactiveweb/remote-data': reactiveRemoteData, |
| 67 | + 'reactiveweb/modifier': reactiveModifier, |
| 68 | + 'reactiveweb/service': reactiveService, |
| 69 | + 'reactiveweb/sync': reactiveSync, |
| 70 | + 'reactiveweb/throttle': reactiveThrottle, |
| 71 | + 'reactiveweb/wait-until': reactiveWaitUntil, |
| 72 | + |
| 73 | + // These paths are for backcompat |
| 74 | + // Since code is maintained in URLs, |
| 75 | + // we can't upgrade any of it. |
| 76 | + // |
| 77 | + // We could probably log a deprecation message on these paths |
| 78 | + 'ember-resources/core': eResources, |
| 79 | + 'ember-resources/link': reactiveLink, |
| 80 | + 'ember-resources/service': reactiveService, |
| 81 | + 'ember-resources/modifier': reactiveModifier, |
| 82 | + 'ember-resources/util/map': reactiveMap, |
| 83 | + 'ember-resources/util/debounce': reactiveDebounce, |
| 84 | + 'ember-resources/util/keep-latest': reactiveKeepLatest, |
| 85 | + 'ember-resources/util/function': reactiveFunction, |
| 86 | + 'ember-resources/util/fps': reactiveFps, |
| 87 | + 'ember-resources/util/remote-data': reactiveRemoteData, |
| 88 | +}; |
0 commit comments