ember-inspector 4.13.1-alpha.2024.8.9 → 4.13.1-alpha.2025.10.1
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/PRIVACY.md +3 -0
- package/README.md +10 -2
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +14 -14
- package/app/components/component-tree-toolbar.hbs +17 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/component-parents.hbs +33 -0
- package/app/components/object-inspector/component-parents.js +43 -0
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-base.js +2 -0
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +36 -34
- package/app/components/object-inspector/property.ts +34 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector/toggle.hbs +9 -0
- package/app/components/object-inspector/toggle.js +6 -0
- package/app/components/object-inspector.hbs +11 -9
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.hbs +4 -4
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.js +3 -1
- package/{lib/ui/addon/components → app/components/ui}/empty-message.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/error-page.hbs +3 -3
- package/{lib/ui/addon/components → app/components/ui}/resizable-column.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-clear-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-reload-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.hbs +2 -2
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +36 -71
- package/app/controllers/component-tree.js +26 -7
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +1 -0
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/index.html +1 -19
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +9 -13
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +2 -2
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +46 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +124 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +9 -20
- package/app/styles/app.scss +1 -0
- package/app/styles/base.scss +6 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +30 -21
- package/{lib/ui/addon/styles → app/styles/ui}/_disclosure-triangle.scss +3 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_drag-handle.scss +7 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_empty-message.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_error-page.scss +8 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_list.scss +46 -45
- package/{lib/ui/addon/styles → app/styles/ui}/_nav.scss +29 -27
- package/app/styles/ui/_object-inspector-toggle.scss +4 -0
- package/{lib/ui/addon/styles → app/styles/ui}/_pill.scss +4 -4
- package/{lib/ui/addon/styles → app/styles/ui}/_send-to-console.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_split.scss +26 -20
- package/app/styles/ui/_ui.scss +13 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_checkbox.scss +5 -5
- package/app/styles/ui/toolbar/_icon-button.scss +80 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_index.scss +6 -5
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_radio.scss +10 -10
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_search.scss +5 -3
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +21 -19
- package/app/templates/component-tree.hbs +4 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +31 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/bookmarklet/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/bookmarklet/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +6 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +115 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +24 -11011
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/index.html +4 -23
- package/dist/bookmarklet/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7663 -0
- package/dist/bookmarklet/panes-3-16-0/port.js +108 -0
- package/dist/bookmarklet/panes-3-16-0/profile-node.js +60 -0
- package/dist/bookmarklet/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/bookmarklet/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/bookmarklet/panes-3-16-0/type-check.js +119 -0
- package/dist/bookmarklet/panes-3-16-0/version.js +90 -0
- package/dist/bookmarklet/panes-3-16-0/versions.js +4 -0
- package/dist/bookmarklet/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +12 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +3 -3
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/chrome/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/chrome/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/chrome/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +6 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/chrome/panes-3-16-0/ember.js +115 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +12 -11021
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/chrome/panes-3-16-0/index.html +4 -23
- package/dist/chrome/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/chrome/panes-3-16-0/main.js +7663 -0
- package/dist/chrome/panes-3-16-0/port.js +108 -0
- package/dist/chrome/panes-3-16-0/profile-node.js +60 -0
- package/dist/chrome/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/chrome/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/chrome/panes-3-16-0/type-check.js +119 -0
- package/dist/chrome/panes-3-16-0/version.js +90 -0
- package/dist/chrome/panes-3-16-0/versions.js +4 -0
- package/dist/chrome/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +12 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +3 -3
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/firefox/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/firefox/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/firefox/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +6 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/firefox/panes-3-16-0/ember.js +115 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +27 -11016
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/firefox/panes-3-16-0/index.html +4 -23
- package/dist/firefox/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/firefox/panes-3-16-0/main.js +7663 -0
- package/dist/firefox/panes-3-16-0/port.js +108 -0
- package/dist/firefox/panes-3-16-0/profile-node.js +60 -0
- package/dist/firefox/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/firefox/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/firefox/panes-3-16-0/type-check.js +119 -0
- package/dist/firefox/panes-3-16-0/version.js +90 -0
- package/dist/firefox/panes-3-16-0/versions.js +4 -0
- package/dist/firefox/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/websocket/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +557 -609
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/focus-point-round.svg +9 -0
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/websocket/assets/vendor.css +4 -841
- package/dist/websocket/assets/vendor.js +4277 -5152
- package/dist/websocket/base-object-HAEdWjmg.js +59 -0
- package/dist/websocket/basic-DfbgtngO.js +144 -0
- package/dist/websocket/basic-debug.js +6 -0
- package/dist/websocket/bookmarklet-debug.js +34 -0
- package/dist/websocket/chrome-debug.js +12 -0
- package/dist/websocket/ember.js +115 -0
- package/dist/websocket/ember_debug.js +48 -11009
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-debug.js +32 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/main.js +7663 -0
- package/dist/websocket/port.js +108 -0
- package/dist/websocket/profile-node.js +60 -0
- package/dist/websocket/promise-assembler.js +218 -0
- package/dist/websocket/runloop-CF-Qpqgy.js +1138 -0
- package/dist/websocket/start-inspector-BPAW_WLv.js +376 -0
- package/dist/websocket/type-check.js +119 -0
- package/dist/websocket/version.js +90 -0
- package/dist/websocket/versions.js +4 -0
- package/dist/websocket/web-extension-C3pMNVSY.js +144 -0
- package/dist/websocket/websocket-debug.js +60 -0
- package/ember-cli-build.js +31 -140
- package/ember_debug/adapters/basic.js +10 -29
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +6 -5
- package/ember_debug/adapters/websocket.js +2 -2
- package/ember_debug/babel.config.cjs +11 -0
- package/ember_debug/container-debug.js +1 -1
- package/ember_debug/data-debug.js +7 -8
- package/ember_debug/debug-port.js +1 -1
- package/ember_debug/deprecation-debug.js +14 -14
- package/ember_debug/entrypoints/basic-debug.js +6 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +6 -0
- package/ember_debug/entrypoints/chrome-debug.js +6 -0
- package/ember_debug/entrypoints/firefox-debug.js +6 -0
- package/ember_debug/entrypoints/websocket-debug.js +6 -0
- package/ember_debug/general-debug.js +4 -4
- package/ember_debug/lib/boot-ember-inspector.js +9 -0
- package/ember_debug/lib/get-applications.js +27 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +30 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +39 -0
- package/ember_debug/lib/setup-instance-initializer.js +16 -0
- package/ember_debug/lib/start-inspector.js +211 -0
- package/ember_debug/lib/version-test.js +73 -0
- package/ember_debug/lib/versions.js +3 -0
- package/ember_debug/libs/capture-render-tree.js +1 -2
- package/ember_debug/libs/promise-assembler.js +5 -4
- package/ember_debug/libs/render-tree.js +37 -44
- package/ember_debug/libs/source-map.js +7 -6
- package/ember_debug/libs/view-inspection.js +25 -17
- package/ember_debug/main.js +18 -21
- package/ember_debug/models/profile-manager.js +6 -6
- package/ember_debug/models/profile-node.js +1 -1
- package/ember_debug/models/promise.js +2 -2
- package/ember_debug/object-inspector.js +71 -65
- package/ember_debug/package.json +27 -0
- package/ember_debug/port.js +5 -4
- package/ember_debug/promise-debug.js +5 -5
- package/ember_debug/render-debug.js +5 -5
- package/ember_debug/rollup.config.js +24 -0
- package/ember_debug/route-debug.js +10 -9
- package/ember_debug/services/session.js +2 -2
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/object/internals.js +1 -11
- package/ember_debug/utils/ember/own-runloop.js +1 -1
- package/ember_debug/utils/ember/runloop.js +7 -10
- package/ember_debug/utils/ember-object-names.js +7 -8
- package/ember_debug/utils/ember.js +120 -14
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +3 -3
- package/ember_debug/utils/type-check.js +9 -5
- package/ember_debug/view-debug.js +12 -6
- package/eslint.config.mjs +173 -0
- package/gulpfile.js +1 -1
- package/package.json +97 -95
- package/pnpm-workspace.yaml +3 -0
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/focus-point-round.svg +9 -0
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/public/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +31 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +12 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +3 -3
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +96 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +8 -10
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +4 -4
- package/tests/ember_debug/container-debug-test.js +4 -4
- package/tests/ember_debug/deprecation-debug-test.js +8 -5
- package/tests/ember_debug/ember-debug-test.js +1 -4
- package/tests/ember_debug/object-inspector-test.js +108 -49
- package/tests/ember_debug/profile-manager-test.js +142 -169
- package/tests/ember_debug/profile-node-test.js +4 -4
- package/tests/ember_debug/promise-assembler-test.js +13 -10
- package/tests/ember_debug/promise-debug-test.js +5 -6
- package/tests/ember_debug/route-debug-test.js +8 -7
- package/tests/ember_debug/view-debug-test.js +257 -182
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +14 -0
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +14 -15
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -4
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +22 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.editorconfig +0 -19
- package/.ember-cli +0 -15
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -14
- package/.github/pull_request_template.md +0 -4
- package/.github/workflows/build.yml +0 -339
- package/.github/workflows/plan-release.yml +0 -83
- package/.github/workflows/publish.yml +0 -60
- package/.prettierignore +0 -25
- package/.prettierrc.js +0 -14
- package/.release-plan.json +0 -17
- package/.stylelintrc.js +0 -3
- package/.template-lintrc.js +0 -12
- package/.tool-versions +0 -2
- package/.watchmanconfig +0 -3
- package/app/components/.gitkeep +0 -0
- package/app/components/list-content.js +0 -130
- package/app/controllers/.gitkeep +0 -0
- package/app/controllers/promise-tree.js +0 -130
- package/app/helpers/.gitkeep +0 -0
- package/app/libs/promise-assembler.js +0 -169
- package/app/models/.gitkeep +0 -0
- package/app/routes/.gitkeep +0 -0
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/websocket/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
- package/dist/websocket/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff2 +0 -0
- package/ember_debug/.eslintrc.js +0 -13
- package/ember_debug/utils/ember/debug.js +0 -20
- package/ember_debug/utils/ember/instrumentation.js +0 -11
- package/ember_debug/utils/ember/loader.js +0 -22
- package/ember_debug/utils/rsvp.js +0 -20
- package/ember_debug/vendor/loader.js +0 -54
- package/ember_debug/vendor/startup-wrapper.js +0 -399
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +0 -12
- package/lib/ui/addon/styles/addon.scss +0 -13
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +0 -61
- package/lib/ui/app/components/ui/disclosure-triangle.js +0 -1
- package/lib/ui/app/components/ui/disclosure.js +0 -1
- package/lib/ui/app/components/ui/drag-handle.js +0 -1
- package/lib/ui/app/components/ui/draggable-column.js +0 -1
- package/lib/ui/app/components/ui/empty-message.js +0 -1
- package/lib/ui/app/components/ui/error-page.js +0 -1
- package/lib/ui/app/components/ui/open-links-in-new-window.js +0 -1
- package/lib/ui/app/components/ui/resizable-column.js +0 -1
- package/lib/ui/app/components/ui/send-to-console.js +0 -1
- package/lib/ui/app/components/ui/toolbar-clear-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-divider.js +0 -1
- package/lib/ui/app/components/ui/toolbar-reload-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-search-field.js +0 -1
- package/lib/ui/app/components/ui/warning-message.js +0 -1
- package/lib/ui/index.js +0 -34
- package/lib/ui/package.json +0 -13
- package/public/assets/fonts/Inter-Bold.woff +0 -0
- package/public/assets/fonts/Inter-Bold.woff2 +0 -0
- package/public/assets/fonts/Inter-Regular.woff +0 -0
- package/public/assets/fonts/Inter-Regular.woff2 +0 -0
- package/tests/helpers/trigger-port.js +0 -6
- package/tests/unit/.gitkeep +0 -0
- /package/app/{app.js → app.ts} +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure-triangle.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/resizable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/send-to-console.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-divider.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/warning-message.hbs +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_goto-source.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_warning.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_divider.scss +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable ember/no-classic-classes */
|
|
1
2
|
import {
|
|
2
3
|
click,
|
|
3
4
|
find,
|
|
@@ -8,28 +9,33 @@ import {
|
|
|
8
9
|
import hasEmberVersion from '@ember/test-helpers/has-ember-version';
|
|
9
10
|
import { A } from '@ember/array';
|
|
10
11
|
import { run } from '@ember/runloop';
|
|
11
|
-
|
|
12
|
+
// eslint-disable-next-line ember/no-classic-components
|
|
13
|
+
import EmberComponent, { setComponentTemplate } from '@ember/component';
|
|
12
14
|
import EmberRoute from '@ember/routing/route';
|
|
13
15
|
import EmberObject from '@ember/object';
|
|
14
16
|
import Controller from '@ember/controller';
|
|
17
|
+
// eslint-disable-next-line ember/no-at-ember-render-modifiers
|
|
15
18
|
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
16
19
|
import QUnit, { module, test } from 'qunit';
|
|
17
20
|
import { hbs } from 'ember-cli-htmlbars';
|
|
18
21
|
import EmberDebug from 'ember-debug/main';
|
|
19
22
|
import setupEmberDebugTest from '../helpers/setup-ember-debug-test';
|
|
20
|
-
import { isInVersionSpecifier } from 'ember-debug/
|
|
21
|
-
import { VERSION } from 'ember-debug/
|
|
23
|
+
import { isInVersionSpecifier } from 'ember-debug/version';
|
|
24
|
+
import { VERSION } from 'ember-debug/ember';
|
|
25
|
+
import GlimmerComponent from '@glimmer/component';
|
|
26
|
+
import { tracked } from '@glimmer/tracking';
|
|
22
27
|
|
|
23
28
|
let templateOnlyComponent = null;
|
|
24
29
|
try {
|
|
25
30
|
// eslint-disable-next-line no-undef,ember/new-module-imports
|
|
26
31
|
templateOnlyComponent = Ember._templateOnlyComponent;
|
|
27
32
|
// eslint-disable-next-line no-empty
|
|
28
|
-
} catch
|
|
33
|
+
} catch {}
|
|
29
34
|
try {
|
|
35
|
+
// eslint-disable-next-line no-undef
|
|
30
36
|
templateOnlyComponent = require('ember').default._templateOnlyComponent;
|
|
31
37
|
// eslint-disable-next-line no-empty
|
|
32
|
-
} catch
|
|
38
|
+
} catch {}
|
|
33
39
|
|
|
34
40
|
// TODO switch to an adapter architecture, similar to the acceptance tests
|
|
35
41
|
async function captureMessage(type, callback) {
|
|
@@ -103,7 +109,7 @@ function matchTree(tree, matchers, name) {
|
|
|
103
109
|
QUnit.assert.strictEqual(
|
|
104
110
|
tree.length,
|
|
105
111
|
matchers.length,
|
|
106
|
-
`${name} tree and matcher should have the same length
|
|
112
|
+
`${name} tree and matcher should have the same length`,
|
|
107
113
|
);
|
|
108
114
|
|
|
109
115
|
for (let i = 0; i < matchers.length; i++) {
|
|
@@ -117,7 +123,7 @@ function match(actual, matcher, message) {
|
|
|
117
123
|
} else if (Array.isArray(matcher)) {
|
|
118
124
|
QUnit.assert.ok(
|
|
119
125
|
matcher.indexOf(actual) > -1,
|
|
120
|
-
`${actual} should be one of ${matcher.join('/')}
|
|
126
|
+
`${actual} should be one of ${matcher.join('/')}`,
|
|
121
127
|
);
|
|
122
128
|
} else if (matcher instanceof RegExp && actual !== null) {
|
|
123
129
|
QUnit.assert.ok(actual.match(matcher), `${actual} should match ${matcher}`);
|
|
@@ -146,23 +152,23 @@ function Serialized(id) {
|
|
|
146
152
|
return (actual) => {
|
|
147
153
|
QUnit.assert.ok(
|
|
148
154
|
typeof actual === 'object' && actual !== null,
|
|
149
|
-
'serialized object should be an object'
|
|
155
|
+
'serialized object should be an object',
|
|
150
156
|
);
|
|
151
157
|
QUnit.assert.ok(
|
|
152
158
|
typeof actual.id === 'string',
|
|
153
|
-
'serialized object should have a string id'
|
|
159
|
+
'serialized object should have a string id',
|
|
154
160
|
);
|
|
155
161
|
|
|
156
162
|
if (id === undefined) {
|
|
157
163
|
QUnit.assert.ok(
|
|
158
164
|
actual.id.match(/^ember[0-9]+$/),
|
|
159
|
-
'serialized object should have an ember guid'
|
|
165
|
+
'serialized object should have an ember guid',
|
|
160
166
|
);
|
|
161
167
|
} else {
|
|
162
168
|
QUnit.assert.strictEqual(
|
|
163
169
|
actual.id,
|
|
164
170
|
id,
|
|
165
|
-
'serialized object should have an ember guid'
|
|
171
|
+
'serialized object should have an ember guid',
|
|
166
172
|
);
|
|
167
173
|
}
|
|
168
174
|
};
|
|
@@ -172,13 +178,13 @@ function RenderNodeID(id) {
|
|
|
172
178
|
return (actual) => {
|
|
173
179
|
QUnit.assert.ok(
|
|
174
180
|
typeof actual === 'string',
|
|
175
|
-
'render node id should be a string'
|
|
181
|
+
'render node id should be a string',
|
|
176
182
|
);
|
|
177
183
|
|
|
178
184
|
if (id === undefined) {
|
|
179
185
|
QUnit.assert.ok(
|
|
180
186
|
actual.match(/^.+render-node:.+$/),
|
|
181
|
-
`render node id should have the right format, actual: ${actual}
|
|
187
|
+
`render node id should have the right format, actual: ${actual}`,
|
|
182
188
|
);
|
|
183
189
|
} else {
|
|
184
190
|
QUnit.assert.strictEqual(actual, id, 'render node id should match');
|
|
@@ -190,32 +196,32 @@ function Args({ names = [], positionals = 0 } = {}) {
|
|
|
190
196
|
return (actual) => {
|
|
191
197
|
QUnit.assert.ok(
|
|
192
198
|
typeof actual === 'object' && actual !== null,
|
|
193
|
-
'serialized args should be an object'
|
|
199
|
+
'serialized args should be an object',
|
|
194
200
|
);
|
|
195
201
|
|
|
196
202
|
QUnit.assert.ok(
|
|
197
203
|
actual !== null && !actual.named.__ARGS__,
|
|
198
|
-
'serialized named args should not have __ARGS__'
|
|
204
|
+
'serialized named args should not have __ARGS__',
|
|
199
205
|
);
|
|
200
206
|
|
|
201
207
|
QUnit.assert.ok(
|
|
202
208
|
typeof actual.named === 'object' && actual !== null,
|
|
203
|
-
'serialized named args should be an object'
|
|
209
|
+
'serialized named args should be an object',
|
|
204
210
|
);
|
|
205
211
|
QUnit.assert.deepEqual(
|
|
206
212
|
Object.keys(actual.named),
|
|
207
213
|
names,
|
|
208
|
-
'serialized named args should have the right keys'
|
|
214
|
+
'serialized named args should have the right keys',
|
|
209
215
|
);
|
|
210
216
|
|
|
211
217
|
QUnit.assert.ok(
|
|
212
218
|
Array.isArray(actual.positional),
|
|
213
|
-
'serialized positional args should be an array'
|
|
219
|
+
'serialized positional args should be an array',
|
|
214
220
|
);
|
|
215
221
|
QUnit.assert.strictEqual(
|
|
216
222
|
actual.positional.length,
|
|
217
223
|
positionals,
|
|
218
|
-
'serialized positional args should have the right number of items'
|
|
224
|
+
'serialized positional args should have the right number of items',
|
|
219
225
|
);
|
|
220
226
|
};
|
|
221
227
|
}
|
|
@@ -240,12 +246,12 @@ function RenderNode(
|
|
|
240
246
|
match(
|
|
241
247
|
actual.instance,
|
|
242
248
|
instance,
|
|
243
|
-
`${name} ${type} should have correct instance
|
|
249
|
+
`${name} ${type} should have correct instance`,
|
|
244
250
|
);
|
|
245
251
|
match(
|
|
246
252
|
actual.template,
|
|
247
253
|
template,
|
|
248
|
-
`${name} ${type} should have correct template
|
|
254
|
+
`${name} ${type} should have correct template`,
|
|
249
255
|
);
|
|
250
256
|
match(actual.bounds, bounds, `${name} ${type} should have correct bounds`);
|
|
251
257
|
matchTree(actual.children, children, `${name} ${type}`);
|
|
@@ -256,7 +262,7 @@ function Component(
|
|
|
256
262
|
{
|
|
257
263
|
name,
|
|
258
264
|
instance = Serialized(),
|
|
259
|
-
template = `my-app/
|
|
265
|
+
template = `my-app/components/${name}.hbs`,
|
|
260
266
|
bounds = 'single',
|
|
261
267
|
...options
|
|
262
268
|
},
|
|
@@ -264,7 +270,7 @@ function Component(
|
|
|
264
270
|
) {
|
|
265
271
|
return RenderNode(
|
|
266
272
|
{ name, instance, template, bounds, ...options, type: 'component' },
|
|
267
|
-
...children
|
|
273
|
+
...children,
|
|
268
274
|
);
|
|
269
275
|
}
|
|
270
276
|
|
|
@@ -280,7 +286,7 @@ function Modifier(
|
|
|
280
286
|
) {
|
|
281
287
|
return RenderNode(
|
|
282
288
|
{ name, instance, template, bounds, ...options, type: 'modifier' },
|
|
283
|
-
...children
|
|
289
|
+
...children,
|
|
284
290
|
);
|
|
285
291
|
}
|
|
286
292
|
|
|
@@ -305,14 +311,25 @@ function HtmlElement(
|
|
|
305
311
|
...options,
|
|
306
312
|
type: 'html-element',
|
|
307
313
|
},
|
|
308
|
-
...children
|
|
314
|
+
...children,
|
|
309
315
|
);
|
|
310
316
|
}
|
|
311
317
|
|
|
318
|
+
function RouteArgs() {
|
|
319
|
+
if (hasEmberVersion(6, 4)) {
|
|
320
|
+
// Related to routable components
|
|
321
|
+
return Args({ names: ['controller', 'model'] });
|
|
322
|
+
}
|
|
323
|
+
if (hasEmberVersion(3, 14)) {
|
|
324
|
+
return Args({ names: ['model'] });
|
|
325
|
+
}
|
|
326
|
+
return Args();
|
|
327
|
+
}
|
|
328
|
+
|
|
312
329
|
function Route(
|
|
313
330
|
{
|
|
314
331
|
name,
|
|
315
|
-
args =
|
|
332
|
+
args = RouteArgs(),
|
|
316
333
|
instance = Serialized(),
|
|
317
334
|
template = `my-app/templates/${name}.hbs`,
|
|
318
335
|
...options
|
|
@@ -323,8 +340,8 @@ function Route(
|
|
|
323
340
|
{ type: 'outlet', name: 'main', instance: undefined, template: null },
|
|
324
341
|
RenderNode(
|
|
325
342
|
{ name, args, instance, template, ...options, type: 'route-template' },
|
|
326
|
-
...children
|
|
327
|
-
)
|
|
343
|
+
...children,
|
|
344
|
+
),
|
|
328
345
|
);
|
|
329
346
|
}
|
|
330
347
|
|
|
@@ -336,7 +353,7 @@ function TopLevel(...children) {
|
|
|
336
353
|
instance: Undefined(),
|
|
337
354
|
template: /^packages\/.+\/templates\/outlet\.hbs$/,
|
|
338
355
|
},
|
|
339
|
-
...children
|
|
356
|
+
...children,
|
|
340
357
|
);
|
|
341
358
|
}
|
|
342
359
|
|
|
@@ -358,6 +375,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
358
375
|
this.route('test-component-in-in-element');
|
|
359
376
|
this.route('wormhole');
|
|
360
377
|
this.route('inputs');
|
|
378
|
+
this.route('component-in-shadow-dom');
|
|
361
379
|
this.route('comments', { resetNamespace: true }, function () {});
|
|
362
380
|
this.route('posts', { resetNamespace: true });
|
|
363
381
|
},
|
|
@@ -376,7 +394,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
376
394
|
},
|
|
377
395
|
});
|
|
378
396
|
},
|
|
379
|
-
})
|
|
397
|
+
}),
|
|
380
398
|
);
|
|
381
399
|
|
|
382
400
|
this.owner.register(
|
|
@@ -389,7 +407,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
389
407
|
},
|
|
390
408
|
});
|
|
391
409
|
},
|
|
392
|
-
})
|
|
410
|
+
}),
|
|
393
411
|
);
|
|
394
412
|
|
|
395
413
|
this.owner.register(
|
|
@@ -402,7 +420,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
402
420
|
},
|
|
403
421
|
});
|
|
404
422
|
},
|
|
405
|
-
})
|
|
423
|
+
}),
|
|
406
424
|
);
|
|
407
425
|
|
|
408
426
|
this.owner.register(
|
|
@@ -415,7 +433,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
415
433
|
},
|
|
416
434
|
});
|
|
417
435
|
},
|
|
418
|
-
})
|
|
436
|
+
}),
|
|
419
437
|
);
|
|
420
438
|
|
|
421
439
|
this.owner.register(
|
|
@@ -428,7 +446,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
428
446
|
},
|
|
429
447
|
});
|
|
430
448
|
},
|
|
431
|
-
})
|
|
449
|
+
}),
|
|
432
450
|
);
|
|
433
451
|
|
|
434
452
|
this.owner.register(
|
|
@@ -441,7 +459,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
441
459
|
},
|
|
442
460
|
});
|
|
443
461
|
},
|
|
444
|
-
})
|
|
462
|
+
}),
|
|
445
463
|
);
|
|
446
464
|
|
|
447
465
|
this.owner.register(
|
|
@@ -450,7 +468,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
450
468
|
model() {
|
|
451
469
|
return A(['first comment', 'second comment', 'third comment']);
|
|
452
470
|
},
|
|
453
|
-
})
|
|
471
|
+
}),
|
|
454
472
|
);
|
|
455
473
|
|
|
456
474
|
this.owner.register(
|
|
@@ -459,7 +477,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
459
477
|
model() {
|
|
460
478
|
return 'String as model';
|
|
461
479
|
},
|
|
462
|
-
})
|
|
480
|
+
}),
|
|
463
481
|
);
|
|
464
482
|
|
|
465
483
|
this.owner.register(
|
|
@@ -468,7 +486,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
468
486
|
toString() {
|
|
469
487
|
return 'App.ApplicationController';
|
|
470
488
|
},
|
|
471
|
-
})
|
|
489
|
+
}),
|
|
472
490
|
);
|
|
473
491
|
|
|
474
492
|
this.owner.register(
|
|
@@ -481,50 +499,108 @@ module('Ember Debug - View', function (hooks) {
|
|
|
481
499
|
toString() {
|
|
482
500
|
return 'App.SimpleController';
|
|
483
501
|
},
|
|
484
|
-
})
|
|
502
|
+
}),
|
|
485
503
|
);
|
|
486
504
|
|
|
487
505
|
this.owner.register(
|
|
488
|
-
'component:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
506
|
+
'component:shadow-dom',
|
|
507
|
+
setComponentTemplate(
|
|
508
|
+
hbs(
|
|
509
|
+
`<div {{did-insert this.setupRoot}} />
|
|
510
|
+
{{#if this.shadow}}
|
|
511
|
+
{{#in-element this.shadow}}
|
|
512
|
+
{{yield}}
|
|
513
|
+
{{/in-element}}
|
|
514
|
+
{{/if}}
|
|
515
|
+
`,
|
|
516
|
+
{
|
|
517
|
+
moduleName: 'my-app/components/shadow-dom.hbs',
|
|
518
|
+
},
|
|
519
|
+
),
|
|
520
|
+
class extends GlimmerComponent {
|
|
521
|
+
@tracked shadow;
|
|
522
|
+
setupRoot = (element) => {
|
|
523
|
+
this.shadow = element.attachShadow({ mode: 'open' });
|
|
524
|
+
window.testShadow = this.shadow;
|
|
525
|
+
};
|
|
493
526
|
},
|
|
494
|
-
|
|
527
|
+
),
|
|
495
528
|
);
|
|
496
529
|
|
|
497
530
|
this.owner.register(
|
|
498
|
-
'component:test-
|
|
499
|
-
|
|
531
|
+
'component:test-foo',
|
|
532
|
+
setComponentTemplate(
|
|
533
|
+
hbs('test-foo', {
|
|
534
|
+
moduleName: 'my-app/components/test-foo.hbs',
|
|
535
|
+
}),
|
|
500
536
|
EmberComponent.extend({
|
|
501
|
-
|
|
537
|
+
classNames: ['simple-component'],
|
|
502
538
|
toString() {
|
|
503
|
-
return 'App.
|
|
539
|
+
return 'App.TestFooComponent';
|
|
504
540
|
},
|
|
505
|
-
})
|
|
541
|
+
}),
|
|
542
|
+
),
|
|
543
|
+
);
|
|
544
|
+
|
|
545
|
+
this.owner.register(
|
|
546
|
+
'component:test-bar',
|
|
547
|
+
setComponentTemplate(
|
|
548
|
+
hbs(
|
|
549
|
+
`<!-- before -->
|
|
550
|
+
<div class="another-component">
|
|
551
|
+
{{@value}}
|
|
552
|
+
<span>test</span>
|
|
553
|
+
<span class="bar-inner">bar</span>
|
|
554
|
+
</div>
|
|
555
|
+
<!-- after -->`,
|
|
556
|
+
{ moduleName: 'my-app/components/test-bar.hbs' },
|
|
557
|
+
),
|
|
558
|
+
templateOnlyComponent?.() ||
|
|
559
|
+
EmberComponent.extend({
|
|
560
|
+
tagName: '',
|
|
561
|
+
toString() {
|
|
562
|
+
return 'App.TestBarComponent';
|
|
563
|
+
},
|
|
564
|
+
}),
|
|
565
|
+
),
|
|
506
566
|
);
|
|
507
567
|
|
|
508
568
|
this.owner.register(
|
|
509
569
|
'component:test-in-element-in-component',
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
this.
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
570
|
+
setComponentTemplate(
|
|
571
|
+
hbs(`
|
|
572
|
+
{{#in-element this.elementTarget}}
|
|
573
|
+
<p class='test-in-element-in-component'>
|
|
574
|
+
App.TestInElementInComponent
|
|
575
|
+
</p>
|
|
576
|
+
{{/in-element}}
|
|
577
|
+
`),
|
|
578
|
+
EmberComponent.extend({
|
|
579
|
+
init(...args) {
|
|
580
|
+
this._super(...args);
|
|
581
|
+
this.elementTarget = document.querySelector('#target');
|
|
582
|
+
},
|
|
583
|
+
toString() {
|
|
584
|
+
return 'App.TestInElementInComponent';
|
|
585
|
+
},
|
|
586
|
+
}),
|
|
587
|
+
),
|
|
519
588
|
);
|
|
520
589
|
|
|
521
590
|
this.owner.register(
|
|
522
591
|
'component:test-component-in-in-element',
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
592
|
+
setComponentTemplate(
|
|
593
|
+
hbs(`
|
|
594
|
+
<p class='test-component-in-in-element'>
|
|
595
|
+
App.TestComponentInElement
|
|
596
|
+
</p>
|
|
597
|
+
`),
|
|
598
|
+
EmberComponent.extend({
|
|
599
|
+
toString() {
|
|
600
|
+
return 'App.TestComponentInElement';
|
|
601
|
+
},
|
|
602
|
+
}),
|
|
603
|
+
),
|
|
528
604
|
);
|
|
529
605
|
|
|
530
606
|
/*
|
|
@@ -539,8 +615,8 @@ module('Ember Debug - View', function (hooks) {
|
|
|
539
615
|
<div id="target"></div>
|
|
540
616
|
{{outlet}}
|
|
541
617
|
</div>`,
|
|
542
|
-
{ moduleName: 'my-app/templates/application.hbs' }
|
|
543
|
-
)
|
|
618
|
+
{ moduleName: 'my-app/templates/application.hbs' },
|
|
619
|
+
),
|
|
544
620
|
);
|
|
545
621
|
|
|
546
622
|
this.owner.register(
|
|
@@ -548,27 +624,29 @@ module('Ember Debug - View', function (hooks) {
|
|
|
548
624
|
hbs(
|
|
549
625
|
`
|
|
550
626
|
<div {{did-insert this.foo}}>
|
|
551
|
-
|
|
627
|
+
<div>
|
|
628
|
+
Simple {{test-foo}} {{test-bar value=(hash x=123 [x.y]=456)}} {{#in-element this.elementTarget}}<TestComponentInInElement />{{/in-element}}
|
|
629
|
+
</div>
|
|
552
630
|
</div>
|
|
553
631
|
`,
|
|
554
632
|
{
|
|
555
633
|
moduleName: 'my-app/templates/simple.hbs',
|
|
556
|
-
}
|
|
557
|
-
)
|
|
634
|
+
},
|
|
635
|
+
),
|
|
558
636
|
);
|
|
559
637
|
|
|
560
638
|
this.owner.register(
|
|
561
639
|
'template:test-in-element-in-component',
|
|
562
640
|
hbs('<TestInElementInComponent />', {
|
|
563
641
|
moduleName: 'my-app/templates/test-in-element-in-component.hbs',
|
|
564
|
-
})
|
|
642
|
+
}),
|
|
565
643
|
);
|
|
566
644
|
|
|
567
645
|
this.owner.register(
|
|
568
646
|
'template:test-component-in-in-element',
|
|
569
647
|
hbs('<TestComponentInInElement />', {
|
|
570
648
|
moduleName: 'my-app/templates/test-component-in-in-element.hbs',
|
|
571
|
-
})
|
|
649
|
+
}),
|
|
572
650
|
);
|
|
573
651
|
|
|
574
652
|
this.owner.register(
|
|
@@ -577,64 +655,32 @@ module('Ember Debug - View', function (hooks) {
|
|
|
577
655
|
'<EmberWormhole @to="target"><div class="in-wormhole">Wormhole</div></EmberWormhole>',
|
|
578
656
|
{
|
|
579
657
|
moduleName: 'my-app/templates/wormhole.hbs',
|
|
580
|
-
}
|
|
581
|
-
)
|
|
658
|
+
},
|
|
659
|
+
),
|
|
582
660
|
);
|
|
583
661
|
this.owner.register(
|
|
584
662
|
'template:inputs',
|
|
585
663
|
hbs('Simple <Input @value="987" />', {
|
|
586
664
|
moduleName: 'my-app/templates/inputs.hbs',
|
|
587
|
-
})
|
|
665
|
+
}),
|
|
666
|
+
);
|
|
667
|
+
|
|
668
|
+
this.owner.register(
|
|
669
|
+
'template:component-in-shadow-dom',
|
|
670
|
+
hbs('<ShadowDom><TestFoo /></ShadowDom>', {
|
|
671
|
+
moduleName: 'my-app/templates/component-in-shadow-dom.hbs',
|
|
672
|
+
}),
|
|
588
673
|
);
|
|
589
674
|
|
|
590
675
|
this.owner.register(
|
|
591
676
|
'template:comments/index',
|
|
592
677
|
hbs('{{#each this.comments as |comment|}}{{comment}}{{/each}}', {
|
|
593
678
|
moduleName: 'my-app/templates/comments/index.hbs',
|
|
594
|
-
})
|
|
679
|
+
}),
|
|
595
680
|
);
|
|
596
681
|
this.owner.register(
|
|
597
682
|
'template:posts',
|
|
598
|
-
hbs('Posts', { moduleName: 'my-app/templates/posts.hbs' })
|
|
599
|
-
);
|
|
600
|
-
this.owner.register(
|
|
601
|
-
'template:components/test-foo',
|
|
602
|
-
hbs('test-foo', {
|
|
603
|
-
moduleName: 'my-app/templates/components/test-foo.hbs',
|
|
604
|
-
})
|
|
605
|
-
);
|
|
606
|
-
this.owner.register(
|
|
607
|
-
'template:components/test-bar',
|
|
608
|
-
hbs(
|
|
609
|
-
`<!-- before -->
|
|
610
|
-
<div class="another-component">
|
|
611
|
-
{{@value}}
|
|
612
|
-
<span>test</span>
|
|
613
|
-
<span class="bar-inner">bar</span>
|
|
614
|
-
</div>
|
|
615
|
-
<!-- after -->`,
|
|
616
|
-
{ moduleName: 'my-app/templates/components/test-bar.hbs' }
|
|
617
|
-
)
|
|
618
|
-
);
|
|
619
|
-
|
|
620
|
-
this.owner.register(
|
|
621
|
-
'template:components/test-component-in-in-element',
|
|
622
|
-
hbs(`
|
|
623
|
-
<p class='test-component-in-in-element'>
|
|
624
|
-
App.TestComponentInElement
|
|
625
|
-
</p>
|
|
626
|
-
`)
|
|
627
|
-
);
|
|
628
|
-
|
|
629
|
-
this.owner.register(
|
|
630
|
-
'template:components/test-in-element-in-component',
|
|
631
|
-
hbs(`
|
|
632
|
-
{{#in-element this.elementTarget}}
|
|
633
|
-
<p class='test-in-element-in-component'>
|
|
634
|
-
App.TestInElementInComponent
|
|
635
|
-
</p>
|
|
636
|
-
{{/in-element}}
|
|
637
|
-
`)
|
|
683
|
+
hbs('Posts', { moduleName: 'my-app/templates/posts.hbs' }),
|
|
638
684
|
);
|
|
639
685
|
|
|
640
686
|
this.owner.register('modifier:did-insert', didInsert);
|
|
@@ -674,7 +720,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
674
720
|
Modifier({
|
|
675
721
|
name: 'deprecated-event-handlers',
|
|
676
722
|
args: Args({ positionals: 1 }),
|
|
677
|
-
})
|
|
723
|
+
}),
|
|
678
724
|
);
|
|
679
725
|
}
|
|
680
726
|
const enableModifierSupport = isInVersionSpecifier('>3.28.0', VERSION);
|
|
@@ -688,7 +734,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
688
734
|
name: '-text-field',
|
|
689
735
|
template: /.*/,
|
|
690
736
|
args: Args({ names: ['target', 'value'], positionals: 0 }),
|
|
691
|
-
})
|
|
737
|
+
}),
|
|
692
738
|
);
|
|
693
739
|
}
|
|
694
740
|
|
|
@@ -698,7 +744,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
698
744
|
name: 'input',
|
|
699
745
|
args: Args({ names: ['id', 'class', 'type'] }),
|
|
700
746
|
},
|
|
701
|
-
...modifiers
|
|
747
|
+
...modifiers,
|
|
702
748
|
);
|
|
703
749
|
if (hasEmberVersion(3, 26)) {
|
|
704
750
|
inputChildren.push(htmlElement);
|
|
@@ -718,10 +764,10 @@ module('Ember Debug - View', function (hooks) {
|
|
|
718
764
|
args: Args({ names: ['value'], positionals: 0 }),
|
|
719
765
|
template: /.*/,
|
|
720
766
|
},
|
|
721
|
-
...inputChildren
|
|
722
|
-
)
|
|
723
|
-
)
|
|
724
|
-
)
|
|
767
|
+
...inputChildren,
|
|
768
|
+
),
|
|
769
|
+
),
|
|
770
|
+
),
|
|
725
771
|
),
|
|
726
772
|
]);
|
|
727
773
|
});
|
|
@@ -747,7 +793,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
747
793
|
QUnit.assert.equal(
|
|
748
794
|
value.details[0].properties[0].value.inspect,
|
|
749
795
|
'{ x: 123, x.y: 456 }',
|
|
750
|
-
'test-bar args value inspect should be correct'
|
|
796
|
+
'test-bar args value inspect should be correct',
|
|
751
797
|
);
|
|
752
798
|
}
|
|
753
799
|
argsTestPromise = testArgsValue();
|
|
@@ -763,7 +809,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
763
809
|
QUnit.assert.equal(
|
|
764
810
|
value.details[1].name,
|
|
765
811
|
'HTMLDivElement',
|
|
766
|
-
'in-element args value inspect should be correct'
|
|
812
|
+
'in-element args value inspect should be correct',
|
|
767
813
|
);
|
|
768
814
|
}
|
|
769
815
|
argsTestPromise = testArgsValue();
|
|
@@ -773,7 +819,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
773
819
|
Component({
|
|
774
820
|
name: 'test-component-in-in-element',
|
|
775
821
|
template: () => null,
|
|
776
|
-
})
|
|
822
|
+
}),
|
|
777
823
|
),
|
|
778
824
|
];
|
|
779
825
|
|
|
@@ -790,9 +836,9 @@ module('Ember Debug - View', function (hooks) {
|
|
|
790
836
|
name: 'did-insert',
|
|
791
837
|
args: Args({ positionals: 1 }),
|
|
792
838
|
}),
|
|
793
|
-
...children
|
|
839
|
+
...children,
|
|
794
840
|
),
|
|
795
|
-
]
|
|
841
|
+
],
|
|
796
842
|
);
|
|
797
843
|
} else {
|
|
798
844
|
root.push(...children);
|
|
@@ -800,13 +846,13 @@ module('Ember Debug - View', function (hooks) {
|
|
|
800
846
|
|
|
801
847
|
matchTree(tree, [
|
|
802
848
|
TopLevel(
|
|
803
|
-
Route({ name: 'application' }, Route({ name: 'simple' }, ...root))
|
|
849
|
+
Route({ name: 'application' }, Route({ name: 'simple' }, ...root)),
|
|
804
850
|
),
|
|
805
851
|
]);
|
|
806
852
|
|
|
807
853
|
QUnit.assert.ok(
|
|
808
854
|
argsTestPromise instanceof Promise,
|
|
809
|
-
'args should be tested'
|
|
855
|
+
'args should be tested',
|
|
810
856
|
);
|
|
811
857
|
await argsTestPromise;
|
|
812
858
|
});
|
|
@@ -818,7 +864,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
818
864
|
.dom(this.element)
|
|
819
865
|
.hasClass(
|
|
820
866
|
'ember-application',
|
|
821
|
-
'The rootElement has the .ember-application CSS class'
|
|
867
|
+
'The rootElement has the .ember-application CSS class',
|
|
822
868
|
);
|
|
823
869
|
|
|
824
870
|
this.element.classList.remove('ember-application');
|
|
@@ -832,7 +878,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
832
878
|
.dom(this.element)
|
|
833
879
|
.doesNotHaveClass(
|
|
834
880
|
'ember-application',
|
|
835
|
-
'The rootElement no longer has the .ember-application CSS class'
|
|
881
|
+
'The rootElement no longer has the .ember-application CSS class',
|
|
836
882
|
);
|
|
837
883
|
|
|
838
884
|
let tree = await getRenderTree();
|
|
@@ -855,7 +901,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
855
901
|
Component({
|
|
856
902
|
name: 'test-component-in-in-element',
|
|
857
903
|
template: () => null,
|
|
858
|
-
})
|
|
904
|
+
}),
|
|
859
905
|
),
|
|
860
906
|
];
|
|
861
907
|
|
|
@@ -872,9 +918,9 @@ module('Ember Debug - View', function (hooks) {
|
|
|
872
918
|
name: 'did-insert',
|
|
873
919
|
args: Args({ positionals: 1 }),
|
|
874
920
|
}),
|
|
875
|
-
...children
|
|
921
|
+
...children,
|
|
876
922
|
),
|
|
877
|
-
]
|
|
923
|
+
],
|
|
878
924
|
);
|
|
879
925
|
} else {
|
|
880
926
|
root.push(...children);
|
|
@@ -882,32 +928,35 @@ module('Ember Debug - View', function (hooks) {
|
|
|
882
928
|
|
|
883
929
|
matchTree(tree, [
|
|
884
930
|
TopLevel(
|
|
885
|
-
Route({ name: 'application' }, Route({ name: 'simple' }, ...root))
|
|
931
|
+
Route({ name: 'application' }, Route({ name: 'simple' }, ...root)),
|
|
886
932
|
),
|
|
887
933
|
]);
|
|
888
934
|
});
|
|
889
935
|
|
|
890
936
|
test('Does not list nested {{yield}} views', async function () {
|
|
891
|
-
this.owner.register('component:x-first', EmberComponent.extend());
|
|
892
|
-
this.owner.register('component:x-second', EmberComponent.extend());
|
|
893
|
-
|
|
894
937
|
this.owner.register(
|
|
895
|
-
'
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
938
|
+
'component:x-first',
|
|
939
|
+
setComponentTemplate(
|
|
940
|
+
hbs('{{#x-second}}{{yield}}{{/x-second}}', {
|
|
941
|
+
moduleName: 'my-app/components/x-first.hbs',
|
|
942
|
+
}),
|
|
943
|
+
EmberComponent.extend(),
|
|
944
|
+
),
|
|
899
945
|
);
|
|
900
946
|
this.owner.register(
|
|
901
|
-
'
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
947
|
+
'component:x-second',
|
|
948
|
+
setComponentTemplate(
|
|
949
|
+
hbs('{{yield}}', {
|
|
950
|
+
moduleName: 'my-app/components/x-second.hbs',
|
|
951
|
+
}),
|
|
952
|
+
EmberComponent.extend(),
|
|
953
|
+
),
|
|
905
954
|
);
|
|
906
955
|
this.owner.register(
|
|
907
|
-
'template:
|
|
908
|
-
hbs('{{
|
|
909
|
-
moduleName: 'my-app/templates/
|
|
910
|
-
})
|
|
956
|
+
'template:posts',
|
|
957
|
+
hbs('{{#x-first}}Foo{{/x-first}}', {
|
|
958
|
+
moduleName: 'my-app/templates/posts.hbs',
|
|
959
|
+
}),
|
|
911
960
|
);
|
|
912
961
|
|
|
913
962
|
await visit('/posts');
|
|
@@ -920,9 +969,9 @@ module('Ember Debug - View', function (hooks) {
|
|
|
920
969
|
{ name: 'application' },
|
|
921
970
|
Route(
|
|
922
971
|
{ name: 'posts' },
|
|
923
|
-
Component({ name: 'x-first' }, Component({ name: 'x-second' }))
|
|
924
|
-
)
|
|
925
|
-
)
|
|
972
|
+
Component({ name: 'x-first' }, Component({ name: 'x-second' })),
|
|
973
|
+
),
|
|
974
|
+
),
|
|
926
975
|
),
|
|
927
976
|
]);
|
|
928
977
|
});
|
|
@@ -946,8 +995,9 @@ module('Ember Debug - View', function (hooks) {
|
|
|
946
995
|
assert.ok(!isVisible(tooltip), 'tooltip is not visible');
|
|
947
996
|
assert.ok(!isVisible(highlight), 'highlight is not visible');
|
|
948
997
|
|
|
998
|
+
// eslint-disable-next-line ember/no-runloop
|
|
949
999
|
run(() =>
|
|
950
|
-
EmberDebug.port.trigger('view:inspectViews', { inspect: true })
|
|
1000
|
+
EmberDebug.port.trigger('view:inspectViews', { inspect: true }),
|
|
951
1001
|
);
|
|
952
1002
|
});
|
|
953
1003
|
|
|
@@ -965,10 +1015,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
965
1015
|
assert
|
|
966
1016
|
.dom('.ember-inspector-tooltip-detail-template', tooltip)
|
|
967
1017
|
.hasText(
|
|
968
|
-
'my-app/
|
|
969
|
-
/\//g,
|
|
970
|
-
'\u200B/\u200B'
|
|
971
|
-
)
|
|
1018
|
+
'my-app/components/test-foo.hbs'.replace(/\//g, '\u200B/\u200B'),
|
|
972
1019
|
);
|
|
973
1020
|
assert
|
|
974
1021
|
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
@@ -983,12 +1030,12 @@ module('Ember Debug - View', function (hooks) {
|
|
|
983
1030
|
assert.strictEqual(
|
|
984
1031
|
actual.width,
|
|
985
1032
|
expected.width,
|
|
986
|
-
'same width as component'
|
|
1033
|
+
'same width as component',
|
|
987
1034
|
);
|
|
988
1035
|
assert.strictEqual(
|
|
989
1036
|
actual.height,
|
|
990
1037
|
expected.height,
|
|
991
|
-
'same height as component'
|
|
1038
|
+
'same height as component',
|
|
992
1039
|
);
|
|
993
1040
|
|
|
994
1041
|
await triggerEvent('.bar-inner', 'mousemove');
|
|
@@ -1000,17 +1047,14 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1000
1047
|
assert
|
|
1001
1048
|
.dom('.ember-inspector-tooltip-detail-template', tooltip)
|
|
1002
1049
|
.hasText(
|
|
1003
|
-
'my-app/
|
|
1004
|
-
/\//g,
|
|
1005
|
-
'\u200B/\u200B'
|
|
1006
|
-
)
|
|
1050
|
+
'my-app/components/test-bar.hbs'.replace(/\//g, '\u200B/\u200B'),
|
|
1007
1051
|
);
|
|
1008
1052
|
assert
|
|
1009
1053
|
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
1010
1054
|
.hasText(
|
|
1011
1055
|
templateOnlyComponent
|
|
1012
1056
|
? 'TemplateOnlyComponent'
|
|
1013
|
-
: 'App.TestBarComponent'
|
|
1057
|
+
: 'App.TestBarComponent',
|
|
1014
1058
|
);
|
|
1015
1059
|
|
|
1016
1060
|
actual = highlight.getBoundingClientRect();
|
|
@@ -1022,12 +1066,12 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1022
1066
|
assert.strictEqual(
|
|
1023
1067
|
actual.width,
|
|
1024
1068
|
expected.width,
|
|
1025
|
-
'same width as component'
|
|
1069
|
+
'same width as component',
|
|
1026
1070
|
);
|
|
1027
1071
|
assert.strictEqual(
|
|
1028
1072
|
actual.height,
|
|
1029
1073
|
expected.height,
|
|
1030
|
-
'same height as component'
|
|
1074
|
+
'same height as component',
|
|
1031
1075
|
);
|
|
1032
1076
|
|
|
1033
1077
|
await triggerEvent(document.body, 'mousemove');
|
|
@@ -1046,10 +1090,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1046
1090
|
assert
|
|
1047
1091
|
.dom('.ember-inspector-tooltip-detail-template', tooltip)
|
|
1048
1092
|
.hasText(
|
|
1049
|
-
'my-app/
|
|
1050
|
-
/\//g,
|
|
1051
|
-
'\u200B/\u200B'
|
|
1052
|
-
)
|
|
1093
|
+
'my-app/components/test-foo.hbs'.replace(/\//g, '\u200B/\u200B'),
|
|
1053
1094
|
);
|
|
1054
1095
|
assert
|
|
1055
1096
|
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
@@ -1065,7 +1106,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1065
1106
|
assert.deepEqual(
|
|
1066
1107
|
actual.height,
|
|
1067
1108
|
expected.height,
|
|
1068
|
-
'same height as component'
|
|
1109
|
+
'same height as component',
|
|
1069
1110
|
);
|
|
1070
1111
|
|
|
1071
1112
|
assert.ok(isVisible(tooltip), 'tooltip is visible');
|
|
@@ -1075,10 +1116,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1075
1116
|
assert
|
|
1076
1117
|
.dom('.ember-inspector-tooltip-detail-template', tooltip)
|
|
1077
1118
|
.hasText(
|
|
1078
|
-
'my-app/
|
|
1079
|
-
/\//g,
|
|
1080
|
-
'\u200B/\u200B'
|
|
1081
|
-
)
|
|
1119
|
+
'my-app/components/test-foo.hbs'.replace(/\//g, '\u200B/\u200B'),
|
|
1082
1120
|
);
|
|
1083
1121
|
assert
|
|
1084
1122
|
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
@@ -1117,7 +1155,6 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1117
1155
|
let actual = highlight.getBoundingClientRect();
|
|
1118
1156
|
let expected = inElement.getBoundingClientRect();
|
|
1119
1157
|
|
|
1120
|
-
// await this.pauseTest();
|
|
1121
1158
|
assert.ok(isVisible(tooltip), 'tooltip is visible');
|
|
1122
1159
|
assert.ok(isVisible(highlight), 'highlight is visible');
|
|
1123
1160
|
|
|
@@ -1127,7 +1164,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1127
1164
|
assert.deepEqual(
|
|
1128
1165
|
actual.height,
|
|
1129
1166
|
expected.height,
|
|
1130
|
-
'same height as component'
|
|
1167
|
+
'same height as component',
|
|
1131
1168
|
);
|
|
1132
1169
|
|
|
1133
1170
|
assert
|
|
@@ -1151,7 +1188,6 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1151
1188
|
let actual = highlight.getBoundingClientRect();
|
|
1152
1189
|
let expected = inElement.getBoundingClientRect();
|
|
1153
1190
|
|
|
1154
|
-
// await this.pauseTest();
|
|
1155
1191
|
assert.ok(isVisible(tooltip), 'tooltip is visible');
|
|
1156
1192
|
assert.ok(isVisible(highlight), 'highlight is visible');
|
|
1157
1193
|
|
|
@@ -1161,7 +1197,7 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1161
1197
|
assert.deepEqual(
|
|
1162
1198
|
actual.height,
|
|
1163
1199
|
expected.height,
|
|
1164
|
-
'same height as component'
|
|
1200
|
+
'same height as component',
|
|
1165
1201
|
);
|
|
1166
1202
|
|
|
1167
1203
|
assert
|
|
@@ -1185,7 +1221,6 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1185
1221
|
let actual = highlight.getBoundingClientRect();
|
|
1186
1222
|
let expected = inElement.getBoundingClientRect();
|
|
1187
1223
|
|
|
1188
|
-
// await this.pauseTest();
|
|
1189
1224
|
assert.ok(isVisible(tooltip), 'tooltip is visible');
|
|
1190
1225
|
assert.ok(isVisible(highlight), 'highlight is visible');
|
|
1191
1226
|
|
|
@@ -1195,12 +1230,52 @@ module('Ember Debug - View', function (hooks) {
|
|
|
1195
1230
|
assert.deepEqual(
|
|
1196
1231
|
actual.height,
|
|
1197
1232
|
expected.height,
|
|
1198
|
-
'same height as component'
|
|
1233
|
+
'same height as component',
|
|
1199
1234
|
);
|
|
1200
1235
|
|
|
1201
1236
|
assert
|
|
1202
1237
|
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
1203
1238
|
.hasText(/ember-wormhole/);
|
|
1204
1239
|
});
|
|
1240
|
+
|
|
1241
|
+
test('component inside shadow dom', async function (assert) {
|
|
1242
|
+
if (isInVersionSpecifier('^5.8.0', VERSION)) {
|
|
1243
|
+
assert.expect(2);
|
|
1244
|
+
return;
|
|
1245
|
+
}
|
|
1246
|
+
await visit('component-in-shadow-dom');
|
|
1247
|
+
await rerender();
|
|
1248
|
+
await getRenderTree();
|
|
1249
|
+
|
|
1250
|
+
const inShadow = window.testShadow.querySelector('.simple-component');
|
|
1251
|
+
|
|
1252
|
+
await click(window.testShadow.host, {
|
|
1253
|
+
clientX: inShadow.getBoundingClientRect().x,
|
|
1254
|
+
clientY: inShadow.getBoundingClientRect().y,
|
|
1255
|
+
});
|
|
1256
|
+
|
|
1257
|
+
assert
|
|
1258
|
+
.dom('.ember-inspector-tooltip-header', tooltip)
|
|
1259
|
+
.hasText('<TestFoo>');
|
|
1260
|
+
|
|
1261
|
+
let actual = highlight.getBoundingClientRect();
|
|
1262
|
+
let expected = inShadow.getBoundingClientRect();
|
|
1263
|
+
|
|
1264
|
+
assert.ok(isVisible(tooltip), 'tooltip is visible');
|
|
1265
|
+
assert.ok(isVisible(highlight), 'highlight is visible');
|
|
1266
|
+
|
|
1267
|
+
assert.deepEqual(actual.x, expected.x, 'same x as component');
|
|
1268
|
+
assert.deepEqual(actual.y, expected.y, 'same y as component');
|
|
1269
|
+
assert.deepEqual(actual.width, expected.width, 'same width as component');
|
|
1270
|
+
assert.deepEqual(
|
|
1271
|
+
actual.height,
|
|
1272
|
+
expected.height,
|
|
1273
|
+
'same height as component',
|
|
1274
|
+
);
|
|
1275
|
+
|
|
1276
|
+
assert
|
|
1277
|
+
.dom('.ember-inspector-tooltip-detail-instance', tooltip)
|
|
1278
|
+
.hasText('App.TestFooComponent');
|
|
1279
|
+
});
|
|
1205
1280
|
});
|
|
1206
1281
|
});
|