ember-inspector 4.13.1 → 4.15.0
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/.ember-cli +1 -9
- package/.github/workflows/build.yml +33 -112
- package/.github/workflows/plan-release.yml +26 -48
- package/.github/workflows/publish.yml +129 -31
- package/.prettierignore +2 -13
- package/.prettierrc.js +10 -4
- package/.release-plan.json +13 -4
- package/.stylelintignore +8 -0
- package/.stylelintrc.js +10 -1
- package/.template-lintrc.js +2 -1
- package/.tool-versions +2 -2
- package/.watchmanconfig +1 -1
- package/CHANGELOG.md +137 -0
- package/DEVELOPMENT.md +50 -0
- package/PRIVACY.md +3 -0
- package/README.md +14 -50
- package/RELEASE.md +15 -50
- 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 +7 -13
- 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 +6 -4
- 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} +25 -23
- 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 +22 -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.aca67dc376e8cd35b522.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.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 +560 -613
- 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-B1dkgN3d.js +149 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +166 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +10 -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/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7669 -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-6_0lpzTA.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BIYQArZn.js +334 -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-OWnXJ_XK.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +10 -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 +4 -2
- 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.aca67dc376e8cd35b522.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.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 +560 -613
- 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-B1dkgN3d.js +149 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/ember.js +166 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +10 -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/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/chrome/panes-3-16-0/main.js +7669 -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-6_0lpzTA.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BIYQArZn.js +334 -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-OWnXJ_XK.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +10 -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 +4 -2
- 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.aca67dc376e8cd35b522.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.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 +560 -613
- 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-B1dkgN3d.js +149 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/ember.js +166 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +10 -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/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/firefox/panes-3-16-0/main.js +7669 -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-6_0lpzTA.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BIYQArZn.js +334 -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-OWnXJ_XK.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +10 -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.aca67dc376e8cd35b522.js +40 -0
- package/dist/websocket/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +560 -613
- 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-B1dkgN3d.js +149 -0
- package/dist/websocket/basic-debug.js +10 -0
- package/dist/websocket/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/websocket/bookmarklet-debug.js +10 -0
- package/dist/websocket/chrome-P6FSEUf1.js +10 -0
- package/dist/websocket/chrome-debug.js +10 -0
- package/dist/websocket/ember.js +166 -0
- package/dist/websocket/ember_debug.js +7 -11018
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-8F84zphP.js +30 -0
- package/dist/websocket/firefox-debug.js +10 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/websocket/main.js +7669 -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-6_0lpzTA.js +1138 -0
- package/dist/websocket/start-inspector-BIYQArZn.js +334 -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-OWnXJ_XK.js +144 -0
- package/dist/websocket/websocket-BSUvUqER.js +58 -0
- package/dist/websocket/websocket-debug.js +10 -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 +10 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +10 -0
- package/ember_debug/entrypoints/chrome-debug.js +10 -0
- package/ember_debug/entrypoints/firefox-debug.js +10 -0
- package/ember_debug/entrypoints/websocket-debug.js +10 -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 +28 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +32 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +38 -0
- package/ember_debug/lib/setup-instance-initializer.js +17 -0
- package/ember_debug/lib/start-inspector.js +195 -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 +74 -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 +11 -9
- package/ember_debug/utils/ember.js +222 -40
- 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/patches/ember-cli-inject-live-reload.patch +16 -0
- 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 -1
- 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 +14 -11
- 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 +11 -11
- package/tests/ember_debug/container-debug-test.js +5 -14
- package/tests/ember_debug/deprecation-debug-test.js +15 -6
- package/tests/ember_debug/ember-data-test.js +7 -1
- package/tests/ember_debug/ember-debug-test.js +13 -13
- package/tests/ember_debug/object-inspector-test.js +115 -50
- package/tests/ember_debug/profile-manager-test.js +153 -170
- package/tests/ember_debug/profile-node-test.js +9 -5
- package/tests/ember_debug/promise-assembler-test.js +18 -10
- package/tests/ember_debug/promise-debug-test.js +19 -15
- package/tests/ember_debug/render-debug-test.js +8 -1
- package/tests/ember_debug/route-debug-test.js +14 -8
- package/tests/ember_debug/view-debug-test.js +267 -183
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +22 -2
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +37 -81
- 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 +27 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/app/components/list-content.js +0 -130
- package/app/controllers/promise-tree.js +0 -130
- package/app/libs/promise-assembler.js +0 -169
- 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.76a242242ec46a377266.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.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.76a242242ec46a377266.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.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.76a242242ec46a377266.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.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.76a242242ec46a377266.js +0 -28
- package/dist/websocket/assets/chunk.178.b6064b368cf24cc346ec.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/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,19 +1,24 @@
|
|
|
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';
|
|
5
7
|
import Controller from '@ember/controller';
|
|
6
8
|
import { module, test } from 'qunit';
|
|
7
9
|
import { hbs } from 'ember-cli-htmlbars';
|
|
8
|
-
import EmberDebug from 'ember-debug/main';
|
|
9
10
|
import setupEmberDebugTest from '../helpers/setup-ember-debug-test';
|
|
10
11
|
import { run } from '@ember/runloop';
|
|
11
|
-
import Ember from 'ember-debug/utils/ember';
|
|
12
|
-
import { compareVersion } from 'ember-debug/utils/version';
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
import EmberDebugImport from 'ember-debug/main';
|
|
14
|
+
import EmberImport from 'ember-debug/ember';
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
import { compareVersion } from 'ember-debug/version';
|
|
17
|
+
import { setComponentTemplate } from '@ember/component';
|
|
18
|
+
|
|
19
|
+
let EmberDebug;
|
|
20
|
+
|
|
21
|
+
let isComponentHighlightSupported;
|
|
17
22
|
|
|
18
23
|
const getRounded = (value) => {
|
|
19
24
|
let data = value;
|
|
@@ -26,119 +31,123 @@ const getRounded = (value) => {
|
|
|
26
31
|
}
|
|
27
32
|
return Math.floor(data);
|
|
28
33
|
};
|
|
29
|
-
class OneRootGlimmer extends GlimmerComponent {
|
|
30
|
-
classNames = 'simple-component';
|
|
31
|
-
}
|
|
32
34
|
|
|
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
|
-
|
|
35
|
+
const mockedComponents = () => {
|
|
36
|
+
class OneRootGlimmer extends GlimmerComponent {
|
|
37
|
+
classNames = 'simple-component';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
text: {
|
|
42
|
+
component: EmberComponent.extend({
|
|
43
|
+
tagName: '',
|
|
44
|
+
}),
|
|
45
|
+
template: hbs('text only', {
|
|
46
|
+
moduleName: 'my-app/templates/components/text.hbs',
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
'text-glimmer': {
|
|
50
|
+
component: class extends GlimmerComponent {},
|
|
51
|
+
template: hbs('text only', {
|
|
52
|
+
moduleName: 'my-app/templates/components/text-glimmer.hbs',
|
|
53
|
+
}),
|
|
54
|
+
},
|
|
55
|
+
comment: {
|
|
56
|
+
component: EmberComponent.extend({
|
|
57
|
+
tagName: '',
|
|
58
|
+
}),
|
|
59
|
+
template: hbs('<!-- comment -->', {
|
|
60
|
+
moduleName: 'my-app/templates/components/comment.hbs',
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
|
+
'comment-glimmer': {
|
|
64
|
+
component: class extends GlimmerComponent {},
|
|
65
|
+
template: hbs('<!-- comment -->', {
|
|
66
|
+
moduleName: 'my-app/templates/components/comment-glimmer.hbs',
|
|
67
|
+
}),
|
|
68
|
+
},
|
|
69
|
+
'one-root': {
|
|
70
|
+
component: EmberComponent.extend({
|
|
71
|
+
tagName: '',
|
|
72
|
+
}),
|
|
73
|
+
template: hbs('<div class="simple-component">one root</div>', {
|
|
74
|
+
moduleName: 'my-app/templates/components/one-root.hbs',
|
|
75
|
+
}),
|
|
76
|
+
},
|
|
77
|
+
'one-root-glimmer': {
|
|
78
|
+
component: OneRootGlimmer,
|
|
79
|
+
template: hbs('<div class={{this.classNames}}>one root</div>', {
|
|
80
|
+
moduleName: 'my-app/templates/components/one-root-glimmer.hbs',
|
|
81
|
+
}),
|
|
82
|
+
},
|
|
83
|
+
'two-root': {
|
|
84
|
+
component: EmberComponent.extend({
|
|
85
|
+
tagName: '',
|
|
86
|
+
}),
|
|
87
|
+
template: hbs(
|
|
88
|
+
'<div class="simple-component">one</div><div class="another-component">two</div>',
|
|
89
|
+
{ moduleName: 'my-app/templates/components/two-root.hbs' },
|
|
90
|
+
),
|
|
91
|
+
},
|
|
92
|
+
'two-root-glimmer': {
|
|
93
|
+
component: class extends GlimmerComponent {},
|
|
94
|
+
template: hbs(
|
|
95
|
+
'<div class="simple-component">one</div><div class="another-component">two</div>',
|
|
96
|
+
{ moduleName: 'my-app/templates/components/two-root-glimmer.hbs' },
|
|
97
|
+
),
|
|
98
|
+
},
|
|
99
|
+
'root-comment-root': {
|
|
100
|
+
component: EmberComponent.extend({
|
|
101
|
+
tagName: '',
|
|
102
|
+
}),
|
|
103
|
+
template: hbs(
|
|
104
|
+
'<div class="simple-component">one</div><!-- comment --><div class="another-component">two</div>',
|
|
105
|
+
{ moduleName: 'my-app/templates/components/root-comment-root.hbs' },
|
|
106
|
+
),
|
|
107
|
+
},
|
|
108
|
+
'root-comment-root-glimmer': {
|
|
109
|
+
component: class extends GlimmerComponent {},
|
|
110
|
+
template: hbs(
|
|
111
|
+
'<div class="simple-component">one</div><!-- comment --><div class="another-component">two</div>',
|
|
112
|
+
{
|
|
113
|
+
moduleName:
|
|
114
|
+
'my-app/templates/components/root-comment-root-glimmer.hbs',
|
|
115
|
+
},
|
|
116
|
+
),
|
|
117
|
+
},
|
|
118
|
+
'comment-root-comment': {
|
|
119
|
+
component: EmberComponent.extend({
|
|
120
|
+
tagName: '',
|
|
121
|
+
}),
|
|
122
|
+
template: hbs(
|
|
123
|
+
'<!-- comment 1 --><div class="simple-component">one</div><!-- comment 2 -->',
|
|
124
|
+
{ moduleName: 'my-app/templates/components/comment-root-comment.hbs' },
|
|
125
|
+
),
|
|
126
|
+
},
|
|
127
|
+
'comment-root-comment-glimmer': {
|
|
128
|
+
component: class extends GlimmerComponent {},
|
|
129
|
+
template: hbs(
|
|
130
|
+
'<!-- comment 1 --><div class="simple-component">one</div><!-- comment 2 -->',
|
|
131
|
+
{ moduleName: 'my-app/templates/components/comment-root-comment.hbs' },
|
|
132
|
+
),
|
|
133
|
+
},
|
|
134
|
+
'div-tag': {
|
|
135
|
+
component: EmberComponent.extend({
|
|
136
|
+
classNames: ['simple-component'],
|
|
137
|
+
}),
|
|
138
|
+
template: hbs('text in div', {
|
|
139
|
+
moduleName: 'my-app/templates/components/div-tag.hbs',
|
|
140
|
+
}),
|
|
141
|
+
},
|
|
142
|
+
'div-roots': {
|
|
143
|
+
component: EmberComponent.extend({
|
|
144
|
+
classNames: ['simple-component'],
|
|
145
|
+
}),
|
|
146
|
+
template: hbs('<div>one</div><div>two</div>', {
|
|
147
|
+
moduleName: 'my-app/templates/components/div-roots.hbs',
|
|
148
|
+
}),
|
|
149
|
+
},
|
|
150
|
+
};
|
|
142
151
|
};
|
|
143
152
|
|
|
144
153
|
const mockedRoutes = {
|
|
@@ -237,32 +246,27 @@ const constructBase = (owner) => {
|
|
|
237
246
|
'template:application',
|
|
238
247
|
hbs(
|
|
239
248
|
'<div class="application" style="line-height: normal;">{{outlet}}</div>',
|
|
240
|
-
{ moduleName: 'my-app/templates/application.hbs' }
|
|
241
|
-
)
|
|
249
|
+
{ moduleName: 'my-app/templates/application.hbs' },
|
|
250
|
+
),
|
|
242
251
|
);
|
|
243
252
|
|
|
244
253
|
owner.register('route:home', EmberRoute);
|
|
245
254
|
|
|
246
255
|
owner.register(
|
|
247
256
|
'template:home',
|
|
248
|
-
hbs('Home', { moduleName: 'my-app/templates/home.hbs' })
|
|
257
|
+
hbs('Home', { moduleName: 'my-app/templates/home.hbs' }),
|
|
249
258
|
);
|
|
250
259
|
};
|
|
251
260
|
|
|
252
261
|
const constructComponents = (owner, componentsMap) => {
|
|
253
262
|
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
|
-
}
|
|
263
|
+
owner.register(
|
|
264
|
+
`component:${componentKey}`,
|
|
265
|
+
setComponentTemplate(
|
|
266
|
+
componentsMap[componentKey].template,
|
|
267
|
+
componentsMap[componentKey].component,
|
|
268
|
+
),
|
|
269
|
+
);
|
|
266
270
|
}
|
|
267
271
|
};
|
|
268
272
|
|
|
@@ -274,7 +278,7 @@ const constructRoutes = (owner, routes) => {
|
|
|
274
278
|
if (mockedRoutes[routeKey].controller) {
|
|
275
279
|
owner.register(
|
|
276
280
|
`controller:${routeKey}`,
|
|
277
|
-
mockedRoutes[routeKey].controller
|
|
281
|
+
mockedRoutes[routeKey].controller,
|
|
278
282
|
);
|
|
279
283
|
}
|
|
280
284
|
if (mockedRoutes[routeKey].template) {
|
|
@@ -296,7 +300,7 @@ const assertNodeSizes = (assert, synthetic, real) => {
|
|
|
296
300
|
assert.strictEqual(
|
|
297
301
|
getRounded(style[styleKey]),
|
|
298
302
|
getRounded(box[boxKey]),
|
|
299
|
-
`same ${boxKey} as component
|
|
303
|
+
`same ${boxKey} as component`,
|
|
300
304
|
);
|
|
301
305
|
}
|
|
302
306
|
};
|
|
@@ -305,7 +309,7 @@ const matchHighlights = (
|
|
|
305
309
|
assert,
|
|
306
310
|
testedRoute,
|
|
307
311
|
newHighlights,
|
|
308
|
-
isGlimmerComponent
|
|
312
|
+
isGlimmerComponent,
|
|
309
313
|
) => {
|
|
310
314
|
const renderedComponents = mockedRoutes[testedRoute].expectedRender.map(
|
|
311
315
|
(selector) => {
|
|
@@ -314,10 +318,10 @@ const matchHighlights = (
|
|
|
314
318
|
component,
|
|
315
319
|
isComponentHighlightSupported
|
|
316
320
|
? 'expected component is rendered'
|
|
317
|
-
: 'expected component is rendered but the component highlight is not supported'
|
|
321
|
+
: 'expected component is rendered but the component highlight is not supported',
|
|
318
322
|
);
|
|
319
323
|
return component;
|
|
320
|
-
}
|
|
324
|
+
},
|
|
321
325
|
);
|
|
322
326
|
|
|
323
327
|
if (isComponentHighlightSupported && !isGlimmerComponent) {
|
|
@@ -327,16 +331,17 @@ const matchHighlights = (
|
|
|
327
331
|
} else {
|
|
328
332
|
assert.notOk(
|
|
329
333
|
newHighlights.length,
|
|
330
|
-
'Should not have any highlight if highlight is not supported'
|
|
334
|
+
'Should not have any highlight if highlight is not supported',
|
|
331
335
|
);
|
|
332
336
|
}
|
|
333
337
|
};
|
|
334
338
|
|
|
335
339
|
const enableHighlight = () => {
|
|
340
|
+
// eslint-disable-next-line ember/no-runloop
|
|
336
341
|
run(() =>
|
|
337
342
|
EmberDebug.port.trigger('render:updateShouldHighlightRender', {
|
|
338
343
|
shouldHighlightRender: true,
|
|
339
|
-
})
|
|
344
|
+
}),
|
|
340
345
|
);
|
|
341
346
|
};
|
|
342
347
|
|
|
@@ -383,6 +388,12 @@ async function highlightsPromise(testedRoute, isGlimmerComponent) {
|
|
|
383
388
|
}
|
|
384
389
|
|
|
385
390
|
module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
391
|
+
hooks.before(async function () {
|
|
392
|
+
EmberDebug = (await EmberDebugImport).default;
|
|
393
|
+
let VERSION = (await EmberImport).VERSION;
|
|
394
|
+
isComponentHighlightSupported = compareVersion(VERSION, '3.20.0') !== -1;
|
|
395
|
+
});
|
|
396
|
+
|
|
386
397
|
setupEmberDebugTest(hooks, {
|
|
387
398
|
routes() {
|
|
388
399
|
this.route('home');
|
|
@@ -395,23 +406,21 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
395
406
|
hooks.beforeEach(async function () {
|
|
396
407
|
EmberDebug.IGNORE_DEPRECATIONS = true;
|
|
397
408
|
constructBase(this.owner);
|
|
398
|
-
constructComponents(this.owner, mockedComponents);
|
|
409
|
+
constructComponents(this.owner, mockedComponents());
|
|
399
410
|
});
|
|
400
411
|
|
|
401
412
|
hooks.afterEach(function (assert) {
|
|
402
413
|
const highlights = document.getElementsByClassName(
|
|
403
|
-
'ember-inspector-render-highlight'
|
|
414
|
+
'ember-inspector-render-highlight',
|
|
404
415
|
);
|
|
405
416
|
|
|
406
417
|
assert.notOk(
|
|
407
418
|
highlights?.length,
|
|
408
|
-
'highlights should be destroyed after execution'
|
|
419
|
+
'highlights should be destroyed after execution',
|
|
409
420
|
);
|
|
410
421
|
});
|
|
411
422
|
|
|
412
423
|
test('Should not show highlights for text component - Ember component', async function (assert) {
|
|
413
|
-
assert.expect(2);
|
|
414
|
-
|
|
415
424
|
const testedRoute = 'text-route';
|
|
416
425
|
constructRoutes(this.owner, [testedRoute]);
|
|
417
426
|
|
|
@@ -421,8 +430,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
421
430
|
});
|
|
422
431
|
|
|
423
432
|
test('Should not show highlights for text component - Glimmer component', async function (assert) {
|
|
424
|
-
assert.expect(2);
|
|
425
|
-
|
|
426
433
|
const testedRoute = 'text-glimmer-route';
|
|
427
434
|
constructRoutes(this.owner, [testedRoute]);
|
|
428
435
|
|
|
@@ -432,8 +439,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
432
439
|
});
|
|
433
440
|
|
|
434
441
|
test('Should not show highlights for comment component - Ember component', async function (assert) {
|
|
435
|
-
assert.expect(2);
|
|
436
|
-
|
|
437
442
|
const testedRoute = 'comment-route';
|
|
438
443
|
constructRoutes(this.owner, [testedRoute]);
|
|
439
444
|
|
|
@@ -443,8 +448,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
443
448
|
});
|
|
444
449
|
|
|
445
450
|
test('Should not show highlights for comment component - Glimmer component', async function (assert) {
|
|
446
|
-
assert.expect(2);
|
|
447
|
-
|
|
448
451
|
const testedRoute = 'comment-glimmer-route';
|
|
449
452
|
constructRoutes(this.owner, [testedRoute]);
|
|
450
453
|
|
|
@@ -454,8 +457,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
454
457
|
});
|
|
455
458
|
|
|
456
459
|
test('Should highlight one rootNode Ember component', async function (assert) {
|
|
457
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
458
|
-
|
|
459
460
|
const testedRoute = 'one-root-route';
|
|
460
461
|
constructRoutes(this.owner, [testedRoute]);
|
|
461
462
|
|
|
@@ -465,8 +466,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
465
466
|
});
|
|
466
467
|
|
|
467
468
|
test('Highlight is not supported, should not highlight one rootNode Glimmer component', async function (assert) {
|
|
468
|
-
assert.expect(3);
|
|
469
|
-
|
|
470
469
|
const testedRoute = 'one-root-glimmer-route';
|
|
471
470
|
constructRoutes(this.owner, [testedRoute]);
|
|
472
471
|
|
|
@@ -476,8 +475,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
476
475
|
});
|
|
477
476
|
|
|
478
477
|
test('Should highlight two rootNode ([rootNode, rootNode] and no tagName) Ember component', async function (assert) {
|
|
479
|
-
assert.expect(isComponentHighlightSupported ? 11 : 4);
|
|
480
|
-
|
|
481
478
|
const testedRoute = 'two-root-route';
|
|
482
479
|
constructRoutes(this.owner, [testedRoute]);
|
|
483
480
|
|
|
@@ -487,8 +484,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
487
484
|
});
|
|
488
485
|
|
|
489
486
|
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
487
|
const testedRoute = 'two-root-glimmer-route';
|
|
493
488
|
constructRoutes(this.owner, [testedRoute]);
|
|
494
489
|
|
|
@@ -498,8 +493,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
498
493
|
});
|
|
499
494
|
|
|
500
495
|
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
496
|
const testedRoute = 'root-comment-root-route';
|
|
504
497
|
constructRoutes(this.owner, [testedRoute]);
|
|
505
498
|
|
|
@@ -509,8 +502,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
509
502
|
});
|
|
510
503
|
|
|
511
504
|
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
505
|
const testedRoute = 'root-comment-root-glimmer-route';
|
|
515
506
|
constructRoutes(this.owner, [testedRoute]);
|
|
516
507
|
|
|
@@ -520,8 +511,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
520
511
|
});
|
|
521
512
|
|
|
522
513
|
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
514
|
const testedRoute = 'comment-root-comment-route';
|
|
526
515
|
constructRoutes(this.owner, [testedRoute]);
|
|
527
516
|
|
|
@@ -531,8 +520,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
531
520
|
});
|
|
532
521
|
|
|
533
522
|
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
523
|
const testedRoute = 'comment-root-comment-glimmer-route';
|
|
537
524
|
constructRoutes(this.owner, [testedRoute]);
|
|
538
525
|
|
|
@@ -542,8 +529,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
542
529
|
});
|
|
543
530
|
|
|
544
531
|
test('Should highlight tagName div Ember component', async function (assert) {
|
|
545
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
546
|
-
|
|
547
532
|
const testedRoute = 'div-tag-route';
|
|
548
533
|
constructRoutes(this.owner, [testedRoute]);
|
|
549
534
|
|
|
@@ -553,8 +538,6 @@ module('Ember Debug - profile manager component highlight', function (hooks) {
|
|
|
553
538
|
});
|
|
554
539
|
|
|
555
540
|
test('Should highlight two rootNode ([rootNode, rootNode] and tagName div) Ember component', async function (assert) {
|
|
556
|
-
assert.expect(isComponentHighlightSupported ? 6 : 3);
|
|
557
|
-
|
|
558
541
|
const testedRoute = 'div-roots-route';
|
|
559
542
|
constructRoutes(this.owner, [testedRoute]);
|
|
560
543
|
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { module, test } from 'qunit';
|
|
2
|
-
import
|
|
2
|
+
import ProfileNodeImport from 'ember-debug/profile-node';
|
|
3
|
+
let ProfileNode;
|
|
3
4
|
|
|
4
|
-
module('Ember Debug - ProfileNode', function () {
|
|
5
|
+
module('Ember Debug - ProfileNode', function (hooks) {
|
|
6
|
+
hooks.before(async function () {
|
|
7
|
+
ProfileNode = (await ProfileNodeImport).default;
|
|
8
|
+
});
|
|
5
9
|
test('It can create a ProfileNode', function (assert) {
|
|
6
10
|
let p = new ProfileNode(1001, { template: 'application' });
|
|
7
11
|
|
|
@@ -35,12 +39,12 @@ module('Ember Debug - ProfileNode', function () {
|
|
|
35
39
|
|
|
36
40
|
assert.notOk(
|
|
37
41
|
p1.parent,
|
|
38
|
-
'Without a parent parameter, the attribute is not set'
|
|
42
|
+
'Without a parent parameter, the attribute is not set',
|
|
39
43
|
);
|
|
40
44
|
assert.strictEqual(
|
|
41
45
|
p2.parent,
|
|
42
46
|
p1,
|
|
43
|
-
"If passed, p2's parent is assigned to p1"
|
|
47
|
+
"If passed, p2's parent is assigned to p1",
|
|
44
48
|
);
|
|
45
49
|
assert.notOk(p1.time, "p1 has no time because it's unfinished");
|
|
46
50
|
assert.notOk(p2.time, "p2 has no time because it's unfinished");
|
|
@@ -70,7 +74,7 @@ module('Ember Debug - ProfileNode', function () {
|
|
|
70
74
|
|
|
71
75
|
assert.ok(
|
|
72
76
|
JSON.stringify(p1),
|
|
73
|
-
'it can serialize due to no cycles in the object'
|
|
77
|
+
'it can serialize due to no cycles in the object',
|
|
74
78
|
);
|
|
75
79
|
});
|
|
76
80
|
|
|
@@ -2,25 +2,33 @@ 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
|
|
5
|
+
import PromiseAssemblerImport from 'ember-debug/promise-assembler';
|
|
6
|
+
let PromiseAssembler;
|
|
6
7
|
|
|
7
8
|
let assembler;
|
|
8
9
|
|
|
9
10
|
let fakeRSVP;
|
|
10
11
|
|
|
11
12
|
function stubRSVP() {
|
|
13
|
+
// eslint-disable-next-line ember/no-classic-classes
|
|
12
14
|
fakeRSVP = EmberObject.extend(Evented, {
|
|
13
15
|
configure() {},
|
|
14
16
|
}).create();
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
function startAssembler() {
|
|
20
|
+
// eslint-disable-next-line ember/no-runloop
|
|
18
21
|
run(assembler, 'start');
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
25
|
+
hooks.before(async () => {
|
|
26
|
+
PromiseAssembler = (await PromiseAssemblerImport).default;
|
|
27
|
+
});
|
|
28
|
+
|
|
22
29
|
hooks.beforeEach(() => {
|
|
23
30
|
stubRSVP();
|
|
31
|
+
// eslint-disable-next-line ember/no-runloop
|
|
24
32
|
run(function () {
|
|
25
33
|
assembler = new PromiseAssembler({
|
|
26
34
|
RSVP: fakeRSVP,
|
|
@@ -30,6 +38,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
30
38
|
|
|
31
39
|
hooks.afterEach(() => {
|
|
32
40
|
if (assembler) {
|
|
41
|
+
// eslint-disable-next-line ember/no-runloop
|
|
33
42
|
run(assembler, 'destroy');
|
|
34
43
|
assembler = null;
|
|
35
44
|
}
|
|
@@ -55,7 +64,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
55
64
|
let promise = event.promise;
|
|
56
65
|
assert.strictEqual(event.promise, assembler.find(promise['guid']));
|
|
57
66
|
|
|
58
|
-
assert.strictEqual(assembler.find().
|
|
67
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
59
68
|
|
|
60
69
|
assert.strictEqual(promise['guid'], 1);
|
|
61
70
|
assert.strictEqual(promise['label'], 'label');
|
|
@@ -88,7 +97,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
88
97
|
assert.strictEqual(assembler.find(parent['guid']), parent);
|
|
89
98
|
assert.strictEqual(assembler.find(child['guid']), child);
|
|
90
99
|
|
|
91
|
-
assert.strictEqual(assembler.find().
|
|
100
|
+
assert.strictEqual(assembler.find().length, 2);
|
|
92
101
|
|
|
93
102
|
assert.strictEqual(parent['guid'], 1);
|
|
94
103
|
assert.strictEqual(parent['label'], 'label');
|
|
@@ -147,7 +156,7 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
147
156
|
assert.strictEqual(assembler.find(parent['guid']), parent);
|
|
148
157
|
assert.strictEqual(assembler.find(child['guid']), child);
|
|
149
158
|
|
|
150
|
-
assert.strictEqual(assembler.find().
|
|
159
|
+
assert.strictEqual(assembler.find().length, 2);
|
|
151
160
|
|
|
152
161
|
assert.strictEqual(parent['guid'], 1);
|
|
153
162
|
assert.strictEqual(parent['label'], 'label');
|
|
@@ -230,26 +239,25 @@ module('Ember Debug - PromiseAssembler', function (hooks) {
|
|
|
230
239
|
assert.strictEqual(promise['state'], 'rejected');
|
|
231
240
|
assert.strictEqual(promise['reason'], 'reason');
|
|
232
241
|
assert.strictEqual(promise['settledAt'], date);
|
|
233
|
-
assert.strictEqual(assembler.find().
|
|
242
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
234
243
|
});
|
|
235
244
|
|
|
236
245
|
test('#stop', function (assert) {
|
|
237
|
-
assert.expect(3);
|
|
238
|
-
|
|
239
246
|
startAssembler();
|
|
240
247
|
|
|
241
248
|
fakeRSVP.trigger('created', {
|
|
242
249
|
guid: 1,
|
|
243
250
|
});
|
|
244
|
-
assert.strictEqual(assembler.find().
|
|
251
|
+
assert.strictEqual(assembler.find().length, 1);
|
|
245
252
|
|
|
253
|
+
// eslint-disable-next-line ember/no-runloop
|
|
246
254
|
run(assembler, 'stop');
|
|
247
255
|
|
|
248
|
-
assert.strictEqual(assembler.find().
|
|
256
|
+
assert.strictEqual(assembler.find().length, 0);
|
|
249
257
|
assembler.on('created', function () {
|
|
250
258
|
assert.ok(false);
|
|
251
259
|
});
|
|
252
260
|
fakeRSVP.trigger('created', { guid: 1 });
|
|
253
|
-
assert.strictEqual(assembler.find().
|
|
261
|
+
assert.strictEqual(assembler.find().length, 0);
|
|
254
262
|
});
|
|
255
263
|
});
|