ember-inspector 4.13.1-alpha.2024.8.8 → 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.152107b52f1d9b56abd2.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.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.152107b52f1d9b56abd2.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.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.152107b52f1d9b56abd2.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.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.152107b52f1d9b56abd2.js +0 -28
- package/dist/websocket/assets/chunk.178.fd17fd3a54b4e3a24554.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,4 +1,6 @@
|
|
|
1
|
+
/* eslint-disable ember/no-classic-classes */
|
|
1
2
|
import { find, visit, waitUntil, getSettledState } from '@ember/test-helpers';
|
|
3
|
+
// eslint-disable-next-line ember/no-classic-components
|
|
2
4
|
import EmberComponent from '@ember/component';
|
|
3
5
|
import GlimmerComponent from '@glimmer/component';
|
|
4
6
|
import EmberRoute from '@ember/routing/route';
|
|
@@ -8,10 +10,9 @@ import { hbs } from 'ember-cli-htmlbars';
|
|
|
8
10
|
import EmberDebug from 'ember-debug/main';
|
|
9
11
|
import setupEmberDebugTest from '../helpers/setup-ember-debug-test';
|
|
10
12
|
import { run } from '@ember/runloop';
|
|
11
|
-
import
|
|
12
|
-
import { compareVersion } from 'ember-debug/
|
|
13
|
-
|
|
14
|
-
const { VERSION } = Ember;
|
|
13
|
+
import { VERSION } from 'ember-debug/ember';
|
|
14
|
+
import { compareVersion } from 'ember-debug/version';
|
|
15
|
+
import { setComponentTemplate } from '@ember/component';
|
|
15
16
|
|
|
16
17
|
const isComponentHighlightSupported = compareVersion(VERSION, '3.20.0') !== -1;
|
|
17
18
|
|
|
@@ -26,119 +27,123 @@ const getRounded = (value) => {
|
|
|
26
27
|
}
|
|
27
28
|
return Math.floor(data);
|
|
28
29
|
};
|
|
29
|
-
class OneRootGlimmer extends GlimmerComponent {
|
|
30
|
-
classNames = 'simple-component';
|
|
31
|
-
}
|
|
32
30
|
|
|
33
|
-
const mockedComponents = {
|
|
34
|
-
|
|
35
|
-
component
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
31
|
+
const mockedComponents = () => {
|
|
32
|
+
class OneRootGlimmer extends GlimmerComponent {
|
|
33
|
+
classNames = 'simple-component';
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
text: {
|
|
38
|
+
component: EmberComponent.extend({
|
|
39
|
+
tagName: '',
|
|
40
|
+
}),
|
|
41
|
+
template: hbs('text only', {
|
|
42
|
+
moduleName: 'my-app/templates/components/text.hbs',
|
|
43
|
+
}),
|
|
44
|
+
},
|
|
45
|
+
'text-glimmer': {
|
|
46
|
+
component: class extends GlimmerComponent {},
|
|
47
|
+
template: hbs('text only', {
|
|
48
|
+
moduleName: 'my-app/templates/components/text-glimmer.hbs',
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
comment: {
|
|
52
|
+
component: EmberComponent.extend({
|
|
53
|
+
tagName: '',
|
|
54
|
+
}),
|
|
55
|
+
template: hbs('<!-- comment -->', {
|
|
56
|
+
moduleName: 'my-app/templates/components/comment.hbs',
|
|
57
|
+
}),
|
|
58
|
+
},
|
|
59
|
+
'comment-glimmer': {
|
|
60
|
+
component: class extends GlimmerComponent {},
|
|
61
|
+
template: hbs('<!-- comment -->', {
|
|
62
|
+
moduleName: 'my-app/templates/components/comment-glimmer.hbs',
|
|
63
|
+
}),
|
|
64
|
+
},
|
|
65
|
+
'one-root': {
|
|
66
|
+
component: EmberComponent.extend({
|
|
67
|
+
tagName: '',
|
|
68
|
+
}),
|
|
69
|
+
template: hbs('<div class="simple-component">one root</div>', {
|
|
70
|
+
moduleName: 'my-app/templates/components/one-root.hbs',
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
'one-root-glimmer': {
|
|
74
|
+
component: OneRootGlimmer,
|
|
75
|
+
template: hbs('<div class={{this.classNames}}>one root</div>', {
|
|
76
|
+
moduleName: 'my-app/templates/components/one-root-glimmer.hbs',
|
|
77
|
+
}),
|
|
78
|
+
},
|
|
79
|
+
'two-root': {
|
|
80
|
+
component: EmberComponent.extend({
|
|
81
|
+
tagName: '',
|
|
82
|
+
}),
|
|
83
|
+
template: hbs(
|
|
84
|
+
'<div class="simple-component">one</div><div class="another-component">two</div>',
|
|
85
|
+
{ moduleName: 'my-app/templates/components/two-root.hbs' },
|
|
86
|
+
),
|
|
87
|
+
},
|
|
88
|
+
'two-root-glimmer': {
|
|
89
|
+
component: class extends GlimmerComponent {},
|
|
90
|
+
template: hbs(
|
|
91
|
+
'<div class="simple-component">one</div><div class="another-component">two</div>',
|
|
92
|
+
{ moduleName: 'my-app/templates/components/two-root-glimmer.hbs' },
|
|
93
|
+
),
|
|
94
|
+
},
|
|
95
|
+
'root-comment-root': {
|
|
96
|
+
component: EmberComponent.extend({
|
|
97
|
+
tagName: '',
|
|
98
|
+
}),
|
|
99
|
+
template: hbs(
|
|
100
|
+
'<div class="simple-component">one</div><!-- comment --><div class="another-component">two</div>',
|
|
101
|
+
{ moduleName: 'my-app/templates/components/root-comment-root.hbs' },
|
|
102
|
+
),
|
|
103
|
+
},
|
|
104
|
+
'root-comment-root-glimmer': {
|
|
105
|
+
component: class extends GlimmerComponent {},
|
|
106
|
+
template: hbs(
|
|
107
|
+
'<div class="simple-component">one</div><!-- comment --><div class="another-component">two</div>',
|
|
108
|
+
{
|
|
109
|
+
moduleName:
|
|
110
|
+
'my-app/templates/components/root-comment-root-glimmer.hbs',
|
|
111
|
+
},
|
|
112
|
+
),
|
|
113
|
+
},
|
|
114
|
+
'comment-root-comment': {
|
|
115
|
+
component: EmberComponent.extend({
|
|
116
|
+
tagName: '',
|
|
117
|
+
}),
|
|
118
|
+
template: hbs(
|
|
119
|
+
'<!-- comment 1 --><div class="simple-component">one</div><!-- comment 2 -->',
|
|
120
|
+
{ moduleName: 'my-app/templates/components/comment-root-comment.hbs' },
|
|
121
|
+
),
|
|
122
|
+
},
|
|
123
|
+
'comment-root-comment-glimmer': {
|
|
124
|
+
component: class extends GlimmerComponent {},
|
|
125
|
+
template: hbs(
|
|
126
|
+
'<!-- comment 1 --><div class="simple-component">one</div><!-- comment 2 -->',
|
|
127
|
+
{ moduleName: 'my-app/templates/components/comment-root-comment.hbs' },
|
|
128
|
+
),
|
|
129
|
+
},
|
|
130
|
+
'div-tag': {
|
|
131
|
+
component: EmberComponent.extend({
|
|
132
|
+
classNames: ['simple-component'],
|
|
133
|
+
}),
|
|
134
|
+
template: hbs('text in div', {
|
|
135
|
+
moduleName: 'my-app/templates/components/div-tag.hbs',
|
|
136
|
+
}),
|
|
137
|
+
},
|
|
138
|
+
'div-roots': {
|
|
139
|
+
component: EmberComponent.extend({
|
|
140
|
+
classNames: ['simple-component'],
|
|
141
|
+
}),
|
|
142
|
+
template: hbs('<div>one</div><div>two</div>', {
|
|
143
|
+
moduleName: 'my-app/templates/components/div-roots.hbs',
|
|
144
|
+
}),
|
|
145
|
+
},
|
|
146
|
+
};
|
|
142
147
|
};
|
|
143
148
|
|
|
144
149
|
const mockedRoutes = {
|
|
@@ -237,32 +242,27 @@ const constructBase = (owner) => {
|
|
|
237
242
|
'template:application',
|
|
238
243
|
hbs(
|
|
239
244
|
'<div class="application" style="line-height: normal;">{{outlet}}</div>',
|
|
240
|
-
{ moduleName: 'my-app/templates/application.hbs' }
|
|
241
|
-
)
|
|
245
|
+
{ moduleName: 'my-app/templates/application.hbs' },
|
|
246
|
+
),
|
|
242
247
|
);
|
|
243
248
|
|
|
244
249
|
owner.register('route:home', EmberRoute);
|
|
245
250
|
|
|
246
251
|
owner.register(
|
|
247
252
|
'template:home',
|
|
248
|
-
hbs('Home', { moduleName: 'my-app/templates/home.hbs' })
|
|
253
|
+
hbs('Home', { moduleName: 'my-app/templates/home.hbs' }),
|
|
249
254
|
);
|
|
250
255
|
};
|
|
251
256
|
|
|
252
257
|
const constructComponents = (owner, componentsMap) => {
|
|
253
258
|
for (const componentKey in componentsMap) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
componentsMap[componentKey].
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
owner.register(
|
|
262
|
-
`template:components/${componentKey}`,
|
|
263
|
-
componentsMap[componentKey].template
|
|
264
|
-
);
|
|
265
|
-
}
|
|
259
|
+
owner.register(
|
|
260
|
+
`component:${componentKey}`,
|
|
261
|
+
setComponentTemplate(
|
|
262
|
+
componentsMap[componentKey].template,
|
|
263
|
+
componentsMap[componentKey].component,
|
|
264
|
+
),
|
|
265
|
+
);
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
@@ -274,7 +274,7 @@ const constructRoutes = (owner, routes) => {
|
|
|
274
274
|
if (mockedRoutes[routeKey].controller) {
|
|
275
275
|
owner.register(
|
|
276
276
|
`controller:${routeKey}`,
|
|
277
|
-
mockedRoutes[routeKey].controller
|
|
277
|
+
mockedRoutes[routeKey].controller,
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
if (mockedRoutes[routeKey].template) {
|
|
@@ -296,7 +296,7 @@ const assertNodeSizes = (assert, synthetic, real) => {
|
|
|
296
296
|
assert.strictEqual(
|
|
297
297
|
getRounded(style[styleKey]),
|
|
298
298
|
getRounded(box[boxKey]),
|
|
299
|
-
`same ${boxKey} as component
|
|
299
|
+
`same ${boxKey} as component`,
|
|
300
300
|
);
|
|
301
301
|
}
|
|
302
302
|
};
|
|
@@ -305,7 +305,7 @@ const matchHighlights = (
|
|
|
305
305
|
assert,
|
|
306
306
|
testedRoute,
|
|
307
307
|
newHighlights,
|
|
308
|
-
isGlimmerComponent
|
|
308
|
+
isGlimmerComponent,
|
|
309
309
|
) => {
|
|
310
310
|
const renderedComponents = mockedRoutes[testedRoute].expectedRender.map(
|
|
311
311
|
(selector) => {
|
|
@@ -314,10 +314,10 @@ const matchHighlights = (
|
|
|
314
314
|
component,
|
|
315
315
|
isComponentHighlightSupported
|
|
316
316
|
? 'expected component is rendered'
|
|
317
|
-
: 'expected component is rendered but the component highlight is not supported'
|
|
317
|
+
: 'expected component is rendered but the component highlight is not supported',
|
|
318
318
|
);
|
|
319
319
|
return component;
|
|
320
|
-
}
|
|
320
|
+
},
|
|
321
321
|
);
|
|
322
322
|
|
|
323
323
|
if (isComponentHighlightSupported && !isGlimmerComponent) {
|
|
@@ -327,16 +327,17 @@ const matchHighlights = (
|
|
|
327
327
|
} else {
|
|
328
328
|
assert.notOk(
|
|
329
329
|
newHighlights.length,
|
|
330
|
-
'Should not have any highlight if highlight is not supported'
|
|
330
|
+
'Should not have any highlight if highlight is not supported',
|
|
331
331
|
);
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
|
|
335
335
|
const enableHighlight = () => {
|
|
336
|
+
// eslint-disable-next-line ember/no-runloop
|
|
336
337
|
run(() =>
|
|
337
338
|
EmberDebug.port.trigger('render:updateShouldHighlightRender', {
|
|
338
339
|
shouldHighlightRender: true,
|
|
339
|
-
})
|
|
340
|
+
}),
|
|
340
341
|
);
|
|
341
342
|
};
|
|
342
343
|
|
|
@@ -395,23 +396,21 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
395
396
|
hooks.beforeEach(async function () {
|
|
396
397
|
EmberDebug.IGNORE_DEPRECATIONS = true;
|
|
397
398
|
constructBase(this.owner);
|
|
398
|
-
constructComponents(this.owner, mockedComponents);
|
|
399
|
+
constructComponents(this.owner, mockedComponents());
|
|
399
400
|
});
|
|
400
401
|
|
|
401
402
|
hooks.afterEach(function (assert) {
|
|
402
403
|
const highlights = document.getElementsByClassName(
|
|
403
|
-
'ember-inspector-render-highlight'
|
|
404
|
+
'ember-inspector-render-highlight',
|
|
404
405
|
);
|
|
405
406
|
|
|
406
407
|
assert.notOk(
|
|
407
408
|
highlights?.length,
|
|
408
|
-
'highlights should be destroyed after execution'
|
|
409
|
+
'highlights should be destroyed after execution',
|
|
409
410
|
);
|
|
410
411
|
});
|
|
411
412
|
|
|
412
413
|
test('Should not show highlights for text component - Ember component', async function (assert) {
|
|
413
|
-
assert.expect(2);
|
|
414
|
-
|
|
415
414
|
const testedRoute = 'text-route';
|
|
416
415
|
constructRoutes(this.owner, [testedRoute]);
|
|
417
416
|
|
|
@@ -421,8 +420,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
421
420
|
});
|
|
422
421
|
|
|
423
422
|
test('Should not show highlights for text component - Glimmer component', async function (assert) {
|
|
424
|
-
assert.expect(2);
|
|
425
|
-
|
|
426
423
|
const testedRoute = 'text-glimmer-route';
|
|
427
424
|
constructRoutes(this.owner, [testedRoute]);
|
|
428
425
|
|
|
@@ -432,8 +429,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
432
429
|
});
|
|
433
430
|
|
|
434
431
|
test('Should not show highlights for comment component - Ember component', async function (assert) {
|
|
435
|
-
assert.expect(2);
|
|
436
|
-
|
|
437
432
|
const testedRoute = 'comment-route';
|
|
438
433
|
constructRoutes(this.owner, [testedRoute]);
|
|
439
434
|
|
|
@@ -443,8 +438,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
443
438
|
});
|
|
444
439
|
|
|
445
440
|
test('Should not show highlights for comment component - Glimmer component', async function (assert) {
|
|
446
|
-
assert.expect(2);
|
|
447
|
-
|
|
448
441
|
const testedRoute = 'comment-glimmer-route';
|
|
449
442
|
constructRoutes(this.owner, [testedRoute]);
|
|
450
443
|
|
|
@@ -454,8 +447,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
454
447
|
});
|
|
455
448
|
|
|
456
449
|
test('Should highlight one rootNode Ember component', async function (assert) {
|
|
457
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
458
|
-
|
|
459
450
|
const testedRoute = 'one-root-route';
|
|
460
451
|
constructRoutes(this.owner, [testedRoute]);
|
|
461
452
|
|
|
@@ -465,8 +456,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
465
456
|
});
|
|
466
457
|
|
|
467
458
|
test('Highlight is not supported, should not highlight one rootNode Glimmer component', async function (assert) {
|
|
468
|
-
assert.expect(3);
|
|
469
|
-
|
|
470
459
|
const testedRoute = 'one-root-glimmer-route';
|
|
471
460
|
constructRoutes(this.owner, [testedRoute]);
|
|
472
461
|
|
|
@@ -476,8 +465,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
476
465
|
});
|
|
477
466
|
|
|
478
467
|
test('Should highlight two rootNode ([rootNode, rootNode] and no tagName) Ember component', async function (assert) {
|
|
479
|
-
assert.expect(isComponentHighlightSupported ? 11 : 4);
|
|
480
|
-
|
|
481
468
|
const testedRoute = 'two-root-route';
|
|
482
469
|
constructRoutes(this.owner, [testedRoute]);
|
|
483
470
|
|
|
@@ -487,8 +474,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
487
474
|
});
|
|
488
475
|
|
|
489
476
|
test('Highlight is not supported, should not highlight two rootNode ([rootNode, rootNode] and no tagName) Glimmer component', async function (assert) {
|
|
490
|
-
assert.expect(4);
|
|
491
|
-
|
|
492
477
|
const testedRoute = 'two-root-glimmer-route';
|
|
493
478
|
constructRoutes(this.owner, [testedRoute]);
|
|
494
479
|
|
|
@@ -498,8 +483,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
498
483
|
});
|
|
499
484
|
|
|
500
485
|
test('Should highlight two rootNode with one comment ([rootNode, commentNode, rootNode] and no tagName) Ember component', async function (assert) {
|
|
501
|
-
assert.expect(isComponentHighlightSupported ? 11 : 4);
|
|
502
|
-
|
|
503
486
|
const testedRoute = 'root-comment-root-route';
|
|
504
487
|
constructRoutes(this.owner, [testedRoute]);
|
|
505
488
|
|
|
@@ -509,8 +492,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
509
492
|
});
|
|
510
493
|
|
|
511
494
|
test('Highlight is not supported, should not highlight two rootNode with one comment ([rootNode, commentNode, rootNode] and no tagName) Glimmer component', async function (assert) {
|
|
512
|
-
assert.expect(4);
|
|
513
|
-
|
|
514
495
|
const testedRoute = 'root-comment-root-glimmer-route';
|
|
515
496
|
constructRoutes(this.owner, [testedRoute]);
|
|
516
497
|
|
|
@@ -520,8 +501,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
520
501
|
});
|
|
521
502
|
|
|
522
503
|
test('Should highlight one rootNode with two comment ([commentNode, rootNode, commentNode] and no tagName) Ember component', async function (assert) {
|
|
523
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
524
|
-
|
|
525
504
|
const testedRoute = 'comment-root-comment-route';
|
|
526
505
|
constructRoutes(this.owner, [testedRoute]);
|
|
527
506
|
|
|
@@ -531,8 +510,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
531
510
|
});
|
|
532
511
|
|
|
533
512
|
test('Highlight is not supported, should not highlight one rootNode with two comment ([commentNode, rootNode, commentNode] and no tagName) Glimmer component', async function (assert) {
|
|
534
|
-
assert.expect(3);
|
|
535
|
-
|
|
536
513
|
const testedRoute = 'comment-root-comment-glimmer-route';
|
|
537
514
|
constructRoutes(this.owner, [testedRoute]);
|
|
538
515
|
|
|
@@ -542,8 +519,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
542
519
|
});
|
|
543
520
|
|
|
544
521
|
test('Should highlight tagName div Ember component', async function (assert) {
|
|
545
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
546
|
-
|
|
547
522
|
const testedRoute = 'div-tag-route';
|
|
548
523
|
constructRoutes(this.owner, [testedRoute]);
|
|
549
524
|
|
|
@@ -553,8 +528,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
553
528
|
});
|
|
554
529
|
|
|
555
530
|
test('Should highlight two rootNode ([rootNode, rootNode] and tagName div) Ember component', async function (assert) {
|
|
556
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
557
|
-
|
|
558
531
|
const testedRoute = 'div-roots-route';
|
|
559
532
|
constructRoutes(this.owner, [testedRoute]);
|
|
560
533
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
|
-
import ProfileNode from 'ember-debug/
|
|
2
|
+
import ProfileNode from 'ember-debug/profile-node';
|
|
3
3
|
|
|
4
4
|
module('Ember Debug - ProfileNode', function () {
|
|
5
5
|
test('It can create a ProfileNode', function (assert) {
|
|
@@ -35,12 +35,12 @@ module('Ember Debug - ProfileNode', function () {
|
|
|
35
35
|
|
|
36
36
|
assert.notOk(
|
|
37
37
|
p1.parent,
|
|
38
|
-
'Without a parent parameter, the attribute is not set'
|
|
38
|
+
'Without a parent parameter, the attribute is not set',
|
|
39
39
|
);
|
|
40
40
|
assert.strictEqual(
|
|
41
41
|
p2.parent,
|
|
42
42
|
p1,
|
|
43
|
-
"If passed, p2's parent is assigned to p1"
|
|
43
|
+
"If passed, p2's parent is assigned to p1",
|
|
44
44
|
);
|
|
45
45
|
assert.notOk(p1.time, "p1 has no time because it's unfinished");
|
|
46
46
|
assert.notOk(p2.time, "p2 has no time because it's unfinished");
|
|
@@ -70,7 +70,7 @@ module('Ember Debug - ProfileNode', function () {
|
|
|
70
70
|
|
|
71
71
|
assert.ok(
|
|
72
72
|
JSON.stringify(p1),
|
|
73
|
-
'it can serialize due to no cycles in the object'
|
|
73
|
+
'it can serialize due to no cycles in the object',
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -2,25 +2,28 @@ import { run } from '@ember/runloop';
|
|
|
2
2
|
import Evented from '@ember/object/evented';
|
|
3
3
|
import EmberObject from '@ember/object';
|
|
4
4
|
import { module, test } from 'qunit';
|
|
5
|
-
import PromiseAssembler from 'ember-debug/
|
|
5
|
+
import PromiseAssembler from 'ember-debug/promise-assembler';
|
|
6
6
|
|
|
7
7
|
let assembler;
|
|
8
8
|
|
|
9
9
|
let fakeRSVP;
|
|
10
10
|
|
|
11
11
|
function stubRSVP() {
|
|
12
|
+
// eslint-disable-next-line ember/no-classic-classes
|
|
12
13
|
fakeRSVP = EmberObject.extend(Evented, {
|
|
13
14
|
configure() {},
|
|
14
15
|
}).create();
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
function startAssembler() {
|
|
19
|
+
// eslint-disable-next-line ember/no-runloop
|
|
18
20
|
run(assembler, 'start');
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
22
24
|
hooks.beforeEach(() => {
|
|
23
25
|
stubRSVP();
|
|
26
|
+
// eslint-disable-next-line ember/no-runloop
|
|
24
27
|
run(function () {
|
|
25
28
|
assembler = new PromiseAssembler({
|
|
26
29
|
RSVP: fakeRSVP,
|
|
@@ -30,6 +33,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
30
33
|
|
|
31
34
|
hooks.afterEach(() => {
|
|
32
35
|
if (assembler) {
|
|
36
|
+
// eslint-disable-next-line ember/no-runloop
|
|
33
37
|
run(assembler, 'destroy');
|
|
34
38
|
assembler = null;
|
|
35
39
|
}
|
|
@@ -55,7 +59,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
55
59
|
let promise = event.promise;
|
|
56
60
|
assert.strictEqual(event.promise, assembler.find(promise['guid']));
|
|
57
61
|
|
|
58
|
-
assert.strictEqual(assembler.find().
|
|
62
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
59
63
|
|
|
60
64
|
assert.strictEqual(promise['guid'], 1);
|
|
61
65
|
assert.strictEqual(promise['label'], 'label');
|
|
@@ -88,7 +92,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
88
92
|
assert.strictEqual(assembler.find(parent['guid']), parent);
|
|
89
93
|
assert.strictEqual(assembler.find(child['guid']), child);
|
|
90
94
|
|
|
91
|
-
assert.strictEqual(assembler.find().
|
|
95
|
+
assert.strictEqual(assembler.find().length, 2);
|
|
92
96
|
|
|
93
97
|
assert.strictEqual(parent['guid'], 1);
|
|
94
98
|
assert.strictEqual(parent['label'], 'label');
|
|
@@ -147,7 +151,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
147
151
|
assert.strictEqual(assembler.find(parent['guid']), parent);
|
|
148
152
|
assert.strictEqual(assembler.find(child['guid']), child);
|
|
149
153
|
|
|
150
|
-
assert.strictEqual(assembler.find().
|
|
154
|
+
assert.strictEqual(assembler.find().length, 2);
|
|
151
155
|
|
|
152
156
|
assert.strictEqual(parent['guid'], 1);
|
|
153
157
|
assert.strictEqual(parent['label'], 'label');
|
|
@@ -230,26 +234,25 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
230
234
|
assert.strictEqual(promise['state'], 'rejected');
|
|
231
235
|
assert.strictEqual(promise['reason'], 'reason');
|
|
232
236
|
assert.strictEqual(promise['settledAt'], date);
|
|
233
|
-
assert.strictEqual(assembler.find().
|
|
237
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
234
238
|
});
|
|
235
239
|
|
|
236
240
|
test('#stop', function (assert) {
|
|
237
|
-
assert.expect(3);
|
|
238
|
-
|
|
239
241
|
startAssembler();
|
|
240
242
|
|
|
241
243
|
fakeRSVP.trigger('created', {
|
|
242
244
|
guid: 1,
|
|
243
245
|
});
|
|
244
|
-
assert.strictEqual(assembler.find().
|
|
246
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
245
247
|
|
|
248
|
+
// eslint-disable-next-line ember/no-runloop
|
|
246
249
|
run(assembler, 'stop');
|
|
247
250
|
|
|
248
|
-
assert.strictEqual(assembler.find().
|
|
251
|
+
assert.strictEqual(assembler.find().length, 0);
|
|
249
252
|
assembler.on('created', function () {
|
|
250
253
|
assert.ok(false);
|
|
251
254
|
});
|
|
252
255
|
fakeRSVP.trigger('created', { guid: 1 });
|
|
253
|
-
assert.strictEqual(assembler.find().
|
|
256
|
+
assert.strictEqual(assembler.find().length, 0);
|
|
254
257
|
});
|
|
255
258
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable ember/no-runloop */
|
|
1
2
|
/* eslint-disable ember/avoid-leaking-state-in-ember-objects */
|
|
2
3
|
import { run, later } from '@ember/runloop';
|
|
3
4
|
import { A as emberA } from '@ember/array';
|
|
@@ -56,9 +57,9 @@ module('Ember Debug - Promise Debug', function (hooks) {
|
|
|
56
57
|
|
|
57
58
|
let promises = emberA(message.promises);
|
|
58
59
|
|
|
59
|
-
promise1 = promises.
|
|
60
|
-
child1 = promises.
|
|
61
|
-
promise2 = promises.
|
|
60
|
+
promise1 = promises.find((x) => x.label === 'Promise1');
|
|
61
|
+
child1 = promises.find((x) => x.label === 'Child1');
|
|
62
|
+
promise2 = promises.find((x) => x.label === 'Promise2');
|
|
62
63
|
|
|
63
64
|
assert.strictEqual(promise1.label, 'Promise1');
|
|
64
65
|
assert.strictEqual(promise1.state, 'fulfilled');
|
|
@@ -74,8 +75,6 @@ module('Ember Debug - Promise Debug', function (hooks) {
|
|
|
74
75
|
});
|
|
75
76
|
|
|
76
77
|
test('Updates are published when they happen', function (assert) {
|
|
77
|
-
assert.expect(8);
|
|
78
|
-
|
|
79
78
|
EmberDebug.port.trigger('promise:getAndObservePromises');
|
|
80
79
|
|
|
81
80
|
let p;
|
|
@@ -88,7 +87,7 @@ module('Ember Debug - Promise Debug', function (hooks) {
|
|
|
88
87
|
later(function () {
|
|
89
88
|
assert.strictEqual(name, 'promise:promisesUpdated');
|
|
90
89
|
let promises = emberA(message.promises);
|
|
91
|
-
let promise = promises.
|
|
90
|
+
let promise = promises.find((x) => x.label === 'Promise1');
|
|
92
91
|
assert.ok(!!promise);
|
|
93
92
|
if (promise) {
|
|
94
93
|
assert.strictEqual(promise.label, 'Promise1');
|