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
|
@@ -82,34 +82,34 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
82
82
|
assert.strictEqual(
|
|
83
83
|
resizableColumns.columns[0].width,
|
|
84
84
|
5,
|
|
85
|
-
'first column should have the correct width'
|
|
85
|
+
'first column should have the correct width',
|
|
86
86
|
);
|
|
87
87
|
assert.strictEqual(
|
|
88
88
|
resizableColumns.columns[1].width,
|
|
89
89
|
10,
|
|
90
|
-
'second column should have the correct width'
|
|
90
|
+
'second column should have the correct width',
|
|
91
91
|
);
|
|
92
92
|
assert.strictEqual(
|
|
93
93
|
resizableColumns.columns[2].width,
|
|
94
94
|
15,
|
|
95
|
-
'last column should have the correct width'
|
|
95
|
+
'last column should have the correct width',
|
|
96
96
|
);
|
|
97
97
|
|
|
98
98
|
resizableColumns.updateColumnWidth('1', 15);
|
|
99
99
|
assert.strictEqual(
|
|
100
100
|
resizableColumns.columns[0].width,
|
|
101
101
|
15,
|
|
102
|
-
'first column should have the correct width'
|
|
102
|
+
'first column should have the correct width',
|
|
103
103
|
);
|
|
104
104
|
assert.strictEqual(
|
|
105
105
|
resizableColumns.columns[1].width,
|
|
106
106
|
10,
|
|
107
|
-
'second column should have the correct width'
|
|
107
|
+
'second column should have the correct width',
|
|
108
108
|
);
|
|
109
109
|
assert.strictEqual(
|
|
110
110
|
resizableColumns.columns[2].width,
|
|
111
111
|
5,
|
|
112
|
-
'last column should have the correct width'
|
|
112
|
+
'last column should have the correct width',
|
|
113
113
|
);
|
|
114
114
|
|
|
115
115
|
// Check if it caches the updated widths
|
|
@@ -118,34 +118,34 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
118
118
|
assert.strictEqual(
|
|
119
119
|
resizableColumns.columns[0].width,
|
|
120
120
|
15,
|
|
121
|
-
'first column should have the correct width'
|
|
121
|
+
'first column should have the correct width',
|
|
122
122
|
);
|
|
123
123
|
assert.strictEqual(
|
|
124
124
|
resizableColumns.columns[1].width,
|
|
125
125
|
10,
|
|
126
|
-
'second column should have the correct width'
|
|
126
|
+
'second column should have the correct width',
|
|
127
127
|
);
|
|
128
128
|
assert.strictEqual(
|
|
129
129
|
resizableColumns.columns[2].width,
|
|
130
130
|
5,
|
|
131
|
-
'last column should have the correct width'
|
|
131
|
+
'last column should have the correct width',
|
|
132
132
|
);
|
|
133
133
|
|
|
134
134
|
resizableColumns.resetWidths();
|
|
135
135
|
assert.strictEqual(
|
|
136
136
|
resizableColumns.columns[0].width,
|
|
137
137
|
10,
|
|
138
|
-
'first column should have the correct width'
|
|
138
|
+
'first column should have the correct width',
|
|
139
139
|
);
|
|
140
140
|
assert.strictEqual(
|
|
141
141
|
resizableColumns.columns[1].width,
|
|
142
142
|
10,
|
|
143
|
-
'second column should have the correct width'
|
|
143
|
+
'second column should have the correct width',
|
|
144
144
|
);
|
|
145
145
|
assert.strictEqual(
|
|
146
146
|
resizableColumns.columns[2].width,
|
|
147
147
|
10,
|
|
148
|
-
'last column should have the correct width'
|
|
148
|
+
'last column should have the correct width',
|
|
149
149
|
);
|
|
150
150
|
|
|
151
151
|
// Table width upate
|
|
@@ -153,17 +153,17 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
153
153
|
assert.strictEqual(
|
|
154
154
|
resizableColumns.columns[0].width,
|
|
155
155
|
5,
|
|
156
|
-
'first column should have the correct width'
|
|
156
|
+
'first column should have the correct width',
|
|
157
157
|
);
|
|
158
158
|
assert.strictEqual(
|
|
159
159
|
resizableColumns.columns[1].width,
|
|
160
160
|
5,
|
|
161
|
-
'second column should have the correct width'
|
|
161
|
+
'second column should have the correct width',
|
|
162
162
|
);
|
|
163
163
|
assert.strictEqual(
|
|
164
164
|
resizableColumns.columns[2].width,
|
|
165
165
|
5,
|
|
166
|
-
'last column should have the correct width'
|
|
166
|
+
'last column should have the correct width',
|
|
167
167
|
);
|
|
168
168
|
});
|
|
169
169
|
|
|
@@ -173,12 +173,12 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
173
173
|
assert.strictEqual(
|
|
174
174
|
this.options.storage.keys().length,
|
|
175
175
|
1,
|
|
176
|
-
'Only uses one key'
|
|
176
|
+
'Only uses one key',
|
|
177
177
|
);
|
|
178
178
|
assert.strictEqual(
|
|
179
179
|
this.options.storage.keys()[0],
|
|
180
|
-
'
|
|
181
|
-
'Uses the correct key'
|
|
180
|
+
'list-my-key',
|
|
181
|
+
'Uses the correct key',
|
|
182
182
|
);
|
|
183
183
|
});
|
|
184
184
|
|
|
@@ -188,59 +188,62 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
188
188
|
resizableColumns.build();
|
|
189
189
|
|
|
190
190
|
assert.deepEqual(
|
|
191
|
-
resizableColumns.columns
|
|
191
|
+
resizableColumns.columns
|
|
192
|
+
.filter((col) => col.visible)
|
|
193
|
+
.map((col) => col.id),
|
|
192
194
|
['1', '2'],
|
|
193
|
-
'shows/hides according to schema'
|
|
195
|
+
'shows/hides according to schema',
|
|
196
|
+
);
|
|
197
|
+
assert.deepEqual(
|
|
198
|
+
resizableColumns.getColumnVisibility().map((col) => col.visible),
|
|
199
|
+
[true, true, false],
|
|
194
200
|
);
|
|
195
|
-
assert.deepEqual(resizableColumns.getColumnVisibility().mapBy('visible'), [
|
|
196
|
-
true,
|
|
197
|
-
true,
|
|
198
|
-
false,
|
|
199
|
-
]);
|
|
200
201
|
|
|
201
202
|
resizableColumns.toggleVisibility('3');
|
|
202
203
|
assert.deepEqual(
|
|
203
|
-
resizableColumns.columns
|
|
204
|
+
resizableColumns.columns
|
|
205
|
+
.filter((col) => col.visible)
|
|
206
|
+
.map((col) => col.id),
|
|
204
207
|
['1', '2', '3'],
|
|
205
|
-
'toggles the third column correctly'
|
|
208
|
+
'toggles the third column correctly',
|
|
209
|
+
);
|
|
210
|
+
assert.deepEqual(
|
|
211
|
+
resizableColumns.getColumnVisibility().map((col) => col.visible),
|
|
212
|
+
[true, true, true],
|
|
206
213
|
);
|
|
207
|
-
assert.deepEqual(resizableColumns.getColumnVisibility().mapBy('visible'), [
|
|
208
|
-
true,
|
|
209
|
-
true,
|
|
210
|
-
true,
|
|
211
|
-
]);
|
|
212
214
|
|
|
213
215
|
resizableColumns.toggleVisibility('1');
|
|
214
216
|
assert.deepEqual(
|
|
215
|
-
resizableColumns.columns
|
|
217
|
+
resizableColumns.columns
|
|
218
|
+
.filter((col) => col.visible)
|
|
219
|
+
.map((col) => col.id),
|
|
216
220
|
['2', '3'],
|
|
217
|
-
'toggles the first column correctly'
|
|
221
|
+
'toggles the first column correctly',
|
|
222
|
+
);
|
|
223
|
+
assert.deepEqual(
|
|
224
|
+
resizableColumns.getColumnVisibility().map((col) => col.visible),
|
|
225
|
+
[false, true, true],
|
|
218
226
|
);
|
|
219
|
-
assert.deepEqual(resizableColumns.getColumnVisibility().mapBy('visible'), [
|
|
220
|
-
false,
|
|
221
|
-
true,
|
|
222
|
-
true,
|
|
223
|
-
]);
|
|
224
227
|
|
|
225
228
|
// Confirm correct caching
|
|
226
229
|
resizableColumns = new ResizableColumns(this.options);
|
|
227
230
|
resizableColumns.build();
|
|
228
231
|
assert.deepEqual(
|
|
229
|
-
resizableColumns.columns
|
|
232
|
+
resizableColumns.columns
|
|
233
|
+
.filter((col) => col.visible)
|
|
234
|
+
.map((col) => col.id),
|
|
230
235
|
['2', '3'],
|
|
231
|
-
'caching overrides schema visibility settings'
|
|
236
|
+
'caching overrides schema visibility settings',
|
|
237
|
+
);
|
|
238
|
+
assert.deepEqual(
|
|
239
|
+
resizableColumns.getColumnVisibility().map((col) => col.visible),
|
|
240
|
+
[false, true, true],
|
|
232
241
|
);
|
|
233
|
-
assert.deepEqual(resizableColumns.getColumnVisibility().mapBy('visible'), [
|
|
234
|
-
false,
|
|
235
|
-
true,
|
|
236
|
-
true,
|
|
237
|
-
]);
|
|
238
242
|
});
|
|
239
243
|
|
|
240
244
|
test("resets cache correctly if schema doesn't match cache", function (assert) {
|
|
241
|
-
assert.expect(1);
|
|
242
245
|
this.options.storage.removeItem = (key) => {
|
|
243
|
-
assert.strictEqual(key, '
|
|
246
|
+
assert.strictEqual(key, 'list-my-key', 'cache was cleared');
|
|
244
247
|
};
|
|
245
248
|
let resizableColumns = new ResizableColumns(this.options);
|
|
246
249
|
resizableColumns.build();
|
|
@@ -257,10 +260,9 @@ module('Unit | Lib | ResizableColumns', function (hooks) {
|
|
|
257
260
|
|
|
258
261
|
test('clears expired cache', function (assert) {
|
|
259
262
|
let sixtyDaysAgo = 1000 * 60 * 60 * 24 * 30 * 2;
|
|
260
|
-
storage['
|
|
261
|
-
assert.expect(1);
|
|
263
|
+
storage['list-my-key'] = { updatedAt: Date.now() - sixtyDaysAgo };
|
|
262
264
|
this.options.storage.removeItem = (key) => {
|
|
263
|
-
assert.strictEqual(key, '
|
|
265
|
+
assert.strictEqual(key, 'list-my-key', 'cache was cleared');
|
|
264
266
|
};
|
|
265
267
|
let resizableColumns = new ResizableColumns(this.options);
|
|
266
268
|
resizableColumns.build();
|
|
@@ -7,18 +7,18 @@ module('Unit | Utility | parseText', function () {
|
|
|
7
7
|
assert.strictEqual(
|
|
8
8
|
parseText('foo'),
|
|
9
9
|
'foo',
|
|
10
|
-
'does not add quotes for string'
|
|
10
|
+
'does not add quotes for string',
|
|
11
11
|
);
|
|
12
12
|
assert.strictEqual(
|
|
13
13
|
parseText('"foo"'),
|
|
14
14
|
'foo',
|
|
15
|
-
'removes quotes when simple string is already wrapped in quotes'
|
|
15
|
+
'removes quotes when simple string is already wrapped in quotes',
|
|
16
16
|
);
|
|
17
17
|
assert.strictEqual(parseText('1'), 1);
|
|
18
18
|
assert.strictEqual(
|
|
19
19
|
parseText('"{"name":"teddy"}"'),
|
|
20
20
|
'{"name":"teddy"}',
|
|
21
|
-
'removes quotes around JSON strings'
|
|
21
|
+
'removes quotes around JSON strings',
|
|
22
22
|
);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -5,27 +5,27 @@ module('Unit | Utility | searchMatch', function () {
|
|
|
5
5
|
test('searchMatch returns the correct results', function (assert) {
|
|
6
6
|
assert.ok(
|
|
7
7
|
searchMatch('something-component-test', 'something'),
|
|
8
|
-
'simple search with dash in text'
|
|
8
|
+
'simple search with dash in text',
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
assert.ok(
|
|
12
12
|
searchMatch('something-component-test', 'something-comp'),
|
|
13
|
-
'content with dash; query with dash'
|
|
13
|
+
'content with dash; query with dash',
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
assert.ok(
|
|
17
17
|
searchMatch('something-component-test', 'somethingcomp'),
|
|
18
|
-
'content with dash; query without dash'
|
|
18
|
+
'content with dash; query without dash',
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
assert.ok(
|
|
22
22
|
searchMatch('Something-component-test', 'somethingComp'),
|
|
23
|
-
'content with dash and capital; query with capital and without dash'
|
|
23
|
+
'content with dash and capital; query with capital and without dash',
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
assert.notOk(
|
|
27
27
|
searchMatch('Something-component-test', 'xxx'),
|
|
28
|
-
'match not found'
|
|
28
|
+
'match not found',
|
|
29
29
|
);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { module, test } from 'qunit';
|
|
2
|
+
import TypeCheckImport from 'ember-debug/type-check';
|
|
3
|
+
let inspect;
|
|
4
|
+
|
|
5
|
+
module('Unit | Utility | type-check', function (hooks) {
|
|
6
|
+
hooks.before(async function () {
|
|
7
|
+
inspect = (await TypeCheckImport).inspect;
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
test('inspect | An POJO with Symbols is correctly transformed into preview', async function (assert) {
|
|
11
|
+
let symbol = Symbol('test');
|
|
12
|
+
let symbolValue = Symbol('value');
|
|
13
|
+
|
|
14
|
+
let inspected = {
|
|
15
|
+
[symbol]: 'Symbol Value',
|
|
16
|
+
symbolVal: symbolValue,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
let obj = inspect(inspected);
|
|
20
|
+
|
|
21
|
+
assert.deepEqual(
|
|
22
|
+
obj,
|
|
23
|
+
'{ symbolVal: Symbol(value) }',
|
|
24
|
+
'object is in expected shape',
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
});
|
package/tsconfig.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// layout, which is not resolvable with the Node resolution algorithm, to
|
|
6
6
|
// work with TypeScript.
|
|
7
7
|
"baseUrl": ".",
|
|
8
|
+
"lib": ["ES2023", "DOM"],
|
|
8
9
|
"paths": {
|
|
9
10
|
"ember-debug/deps/*": ["node_modules/*"],
|
|
10
11
|
"ember-debug/*": ["ember_debug/*"],
|
|
@@ -15,7 +16,8 @@
|
|
|
15
16
|
"ui/test-support": ["lib/ui/addon-test-support"],
|
|
16
17
|
"ui/test-support/*": ["lib/ui/addon-test-support/*"],
|
|
17
18
|
"*": ["types/*"]
|
|
18
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"types": ["chrome", "./node_modules/ember-source/types/stable"]
|
|
19
21
|
},
|
|
20
22
|
"include": ["app/**/*", "tests/**/*", "types/**/*", "lib/ui/**/*"]
|
|
21
23
|
}
|
|
@@ -3,7 +3,8 @@ import Ember from 'ember';
|
|
|
3
3
|
declare global {
|
|
4
4
|
// Prevents ESLint from "fixing" this via its auto-fix to turn it into a type
|
|
5
5
|
// alias (e.g. after running any Ember CLI generator)
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
7
8
|
interface Array<T> extends Ember.ArrayPrototypeExtensions<T> {}
|
|
8
9
|
// interface Function extends Ember.FunctionPrototypeExtensions {}
|
|
9
10
|
}
|
package/types/global.d.ts
CHANGED
package/.eslintignore
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# unconventional js
|
|
2
|
-
/blueprints/*/files/
|
|
3
|
-
/vendor/
|
|
4
|
-
|
|
5
|
-
# compiled output
|
|
6
|
-
/dist/
|
|
7
|
-
/tmp/
|
|
8
|
-
|
|
9
|
-
# dependencies
|
|
10
|
-
/bower_components/
|
|
11
|
-
/node_modules/
|
|
12
|
-
|
|
13
|
-
# misc
|
|
14
|
-
/coverage/
|
|
15
|
-
!.*
|
|
16
|
-
.*/
|
|
17
|
-
.eslintcache
|
|
18
|
-
|
|
19
|
-
# ember-try
|
|
20
|
-
/.node_modules.ember-try/
|
|
21
|
-
/bower.json.ember-try
|
|
22
|
-
/npm-shrinkwrap.json.ember-try
|
|
23
|
-
/package.json.ember-try
|
|
24
|
-
/package-lock.json.ember-try
|
|
25
|
-
/yarn.lock.ember-try
|
|
26
|
-
|
|
27
|
-
# ember-inspector specific
|
|
28
|
-
/dist_prev/
|
|
29
|
-
/skeletons/
|
|
30
|
-
/ember_debug/vendor/startup-wrapper.js
|
|
31
|
-
|
|
32
|
-
# Safari build
|
|
33
|
-
/Ember Inspector/
|
package/.eslintrc.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parser: '@babel/eslint-parser',
|
|
6
|
-
parserOptions: {
|
|
7
|
-
ecmaVersion: 2020,
|
|
8
|
-
sourceType: 'module',
|
|
9
|
-
ecmaFeatures: {
|
|
10
|
-
legacyDecorators: true,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
plugins: ['ember'],
|
|
14
|
-
extends: [
|
|
15
|
-
'eslint:recommended',
|
|
16
|
-
'plugin:ember/recommended',
|
|
17
|
-
'plugin:prettier/recommended',
|
|
18
|
-
],
|
|
19
|
-
env: {
|
|
20
|
-
browser: true,
|
|
21
|
-
},
|
|
22
|
-
globals: {
|
|
23
|
-
basicContext: false,
|
|
24
|
-
require: false,
|
|
25
|
-
requireModule: false,
|
|
26
|
-
},
|
|
27
|
-
rules: {
|
|
28
|
-
'no-prototype-builtins': 'off',
|
|
29
|
-
|
|
30
|
-
'ember/no-jquery': 'error',
|
|
31
|
-
|
|
32
|
-
// Temporarily turn these off
|
|
33
|
-
'ember/classic-decorator-hooks': 'off',
|
|
34
|
-
'ember/classic-decorator-no-classic-methods': 'off',
|
|
35
|
-
'ember/no-classic-classes': 'off',
|
|
36
|
-
'ember/no-classic-components': 'off',
|
|
37
|
-
'ember/no-computed-properties-in-native-classes': 'off',
|
|
38
|
-
'ember/no-get': 'off',
|
|
39
|
-
|
|
40
|
-
// Best practice
|
|
41
|
-
'no-duplicate-imports': 'error',
|
|
42
|
-
'ember/no-mixins': 'error',
|
|
43
|
-
},
|
|
44
|
-
overrides: [
|
|
45
|
-
// node files
|
|
46
|
-
{
|
|
47
|
-
files: [
|
|
48
|
-
'./.eslintrc.js',
|
|
49
|
-
'./.prettierrc.js',
|
|
50
|
-
'./.stylelintrc.js',
|
|
51
|
-
'./.template-lintrc.js',
|
|
52
|
-
'./ember-cli-build.js',
|
|
53
|
-
'./testem.js',
|
|
54
|
-
'./blueprints/*/index.js',
|
|
55
|
-
'./config/**/*.js',
|
|
56
|
-
'./lib/*/index.js',
|
|
57
|
-
'./scripts/**/*.js',
|
|
58
|
-
'./server/**/*.js',
|
|
59
|
-
],
|
|
60
|
-
excludedFiles: ['app/**'],
|
|
61
|
-
parserOptions: {
|
|
62
|
-
sourceType: 'script',
|
|
63
|
-
},
|
|
64
|
-
env: {
|
|
65
|
-
browser: false,
|
|
66
|
-
node: true,
|
|
67
|
-
},
|
|
68
|
-
plugins: ['node'],
|
|
69
|
-
extends: ['plugin:node/recommended'],
|
|
70
|
-
rules: {
|
|
71
|
-
// this can be removed once the following is fixed
|
|
72
|
-
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
|
73
|
-
'node/no-unpublished-require': 'off',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
// test files
|
|
78
|
-
files: ['tests/**/*-test.{js,ts}'],
|
|
79
|
-
extends: ['plugin:qunit/recommended'],
|
|
80
|
-
rules: {
|
|
81
|
-
'qunit/no-conditional-assertions': 'off',
|
|
82
|
-
'qunit/no-early-return': 'off',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { action, computed } from '@ember/object';
|
|
2
|
-
import { inject as service } from '@ember/service';
|
|
3
|
-
import Component from '@ember/component';
|
|
4
|
-
import { htmlSafe } from '@ember/template';
|
|
5
|
-
import Evented from '@ember/object/evented';
|
|
6
|
-
import { schedule } from '@ember/runloop';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Base list view config
|
|
10
|
-
*
|
|
11
|
-
* @module Components
|
|
12
|
-
* @extends Component
|
|
13
|
-
* @class List
|
|
14
|
-
* @namespace Components
|
|
15
|
-
*/
|
|
16
|
-
export default class ListContent extends Component.extend(Evented) {
|
|
17
|
-
/**
|
|
18
|
-
* The layout service. Used to observe the app's content height.
|
|
19
|
-
*
|
|
20
|
-
* @property layoutService
|
|
21
|
-
* @type {Service}
|
|
22
|
-
*/
|
|
23
|
-
@service('layout') layoutService;
|
|
24
|
-
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Array of objects representing the columns to render
|
|
30
|
-
* and their corresponding widths. This array is passed
|
|
31
|
-
* through the template.
|
|
32
|
-
*
|
|
33
|
-
* Each item in the array has `width` and `id` properties.
|
|
34
|
-
*
|
|
35
|
-
* @property columns
|
|
36
|
-
* @type {Array}
|
|
37
|
-
*/
|
|
38
|
-
this.columns = [];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Hook called when content element is inserted.
|
|
43
|
-
*
|
|
44
|
-
* @method elementInserted
|
|
45
|
-
*/
|
|
46
|
-
@action
|
|
47
|
-
elementInserted() {
|
|
48
|
-
schedule('afterRender', this, this.setupHeight);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Set up the content height and listen to any updates to that property.
|
|
53
|
-
*
|
|
54
|
-
* @method setupHeight
|
|
55
|
-
*/
|
|
56
|
-
@action
|
|
57
|
-
setupHeight() {
|
|
58
|
-
this.set('contentHeight', this.get('layoutService.contentHeight'));
|
|
59
|
-
this.layoutService.on(
|
|
60
|
-
'content-height-update',
|
|
61
|
-
this,
|
|
62
|
-
this.updateContentHeight
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Triggered whenever the app's content height changes. This usually happens
|
|
68
|
-
* when the window is resized. Once we detect a change we:
|
|
69
|
-
* 1. Update this component's `contentHeight` property and consequently its `height` style.
|
|
70
|
-
* 2. Check the previous height. If previous height was zero that means the inspector launched
|
|
71
|
-
* in the background and was therefore not visible. Go to (a). Otherwise skip (a).
|
|
72
|
-
* a. Rerender the component. This is needed because smoke and mirrors doesn't know that the content height
|
|
73
|
-
* has changed.
|
|
74
|
-
*
|
|
75
|
-
* @method updateContentHeight
|
|
76
|
-
* @param {Number} height The app's new content height
|
|
77
|
-
*/
|
|
78
|
-
updateContentHeight(height) {
|
|
79
|
-
let previousHeight = this.contentHeight;
|
|
80
|
-
this.set('contentHeight', height);
|
|
81
|
-
if (previousHeight === 0 && height > 0) {
|
|
82
|
-
this.rerender();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Hook called before destruction. Clean up events listeners.
|
|
88
|
-
*
|
|
89
|
-
* @method willDestroy
|
|
90
|
-
*/
|
|
91
|
-
willDestroy() {
|
|
92
|
-
this.layoutService.off(
|
|
93
|
-
'content-height-update',
|
|
94
|
-
this,
|
|
95
|
-
this.updateContentHeight
|
|
96
|
-
);
|
|
97
|
-
return super.willDestroy(...arguments);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@computed('height')
|
|
101
|
-
get style() {
|
|
102
|
-
return htmlSafe(`height:${this.height}px`);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Number passed from `list`. Indicates the header height
|
|
107
|
-
* in pixels.
|
|
108
|
-
*
|
|
109
|
-
* @property headerHeight
|
|
110
|
-
* @type {Number}
|
|
111
|
-
*/
|
|
112
|
-
headerHeight = null;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @property height
|
|
116
|
-
* @type {Integer}
|
|
117
|
-
*/
|
|
118
|
-
@computed('contentHeight', 'headerHeight')
|
|
119
|
-
get height() {
|
|
120
|
-
let headerHeight = this.headerHeight;
|
|
121
|
-
let contentHeight = this.contentHeight;
|
|
122
|
-
|
|
123
|
-
// In testing list-view is created before `contentHeight` is set
|
|
124
|
-
// which will trigger an exception
|
|
125
|
-
if (!contentHeight) {
|
|
126
|
-
return 1;
|
|
127
|
-
}
|
|
128
|
-
return contentHeight - headerHeight;
|
|
129
|
-
}
|
|
130
|
-
}
|