ember-inspector 4.13.1-alpha.2024.8.8 → 4.13.1-alpha.2025.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PRIVACY.md +3 -0
- package/README.md +10 -2
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +14 -14
- package/app/components/component-tree-toolbar.hbs +17 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/component-parents.hbs +33 -0
- package/app/components/object-inspector/component-parents.js +43 -0
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-base.js +2 -0
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +36 -34
- package/app/components/object-inspector/property.ts +34 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector/toggle.hbs +9 -0
- package/app/components/object-inspector/toggle.js +6 -0
- package/app/components/object-inspector.hbs +11 -9
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.hbs +4 -4
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.js +3 -1
- package/{lib/ui/addon/components → app/components/ui}/empty-message.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/error-page.hbs +3 -3
- package/{lib/ui/addon/components → app/components/ui}/resizable-column.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-clear-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-reload-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.hbs +2 -2
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +36 -71
- package/app/controllers/component-tree.js +26 -7
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +1 -0
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/index.html +1 -19
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +9 -13
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +2 -2
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +46 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +124 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +9 -20
- package/app/styles/app.scss +1 -0
- package/app/styles/base.scss +6 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +30 -21
- package/{lib/ui/addon/styles → app/styles/ui}/_disclosure-triangle.scss +3 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_drag-handle.scss +7 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_empty-message.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_error-page.scss +8 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_list.scss +46 -45
- package/{lib/ui/addon/styles → app/styles/ui}/_nav.scss +29 -27
- package/app/styles/ui/_object-inspector-toggle.scss +4 -0
- package/{lib/ui/addon/styles → app/styles/ui}/_pill.scss +4 -4
- package/{lib/ui/addon/styles → app/styles/ui}/_send-to-console.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_split.scss +26 -20
- package/app/styles/ui/_ui.scss +13 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_checkbox.scss +5 -5
- package/app/styles/ui/toolbar/_icon-button.scss +80 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_index.scss +6 -5
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_radio.scss +10 -10
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_search.scss +5 -3
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +21 -19
- package/app/templates/component-tree.hbs +4 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +31 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/bookmarklet/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/bookmarklet/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +6 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +115 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +24 -11011
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/index.html +4 -23
- package/dist/bookmarklet/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7663 -0
- package/dist/bookmarklet/panes-3-16-0/port.js +108 -0
- package/dist/bookmarklet/panes-3-16-0/profile-node.js +60 -0
- package/dist/bookmarklet/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/bookmarklet/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/bookmarklet/panes-3-16-0/type-check.js +119 -0
- package/dist/bookmarklet/panes-3-16-0/version.js +90 -0
- package/dist/bookmarklet/panes-3-16-0/versions.js +4 -0
- package/dist/bookmarklet/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +12 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +3 -3
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/chrome/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/chrome/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/chrome/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +6 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/chrome/panes-3-16-0/ember.js +115 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +12 -11021
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/chrome/panes-3-16-0/index.html +4 -23
- package/dist/chrome/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/chrome/panes-3-16-0/main.js +7663 -0
- package/dist/chrome/panes-3-16-0/port.js +108 -0
- package/dist/chrome/panes-3-16-0/profile-node.js +60 -0
- package/dist/chrome/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/chrome/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/chrome/panes-3-16-0/type-check.js +119 -0
- package/dist/chrome/panes-3-16-0/version.js +90 -0
- package/dist/chrome/panes-3-16-0/versions.js +4 -0
- package/dist/chrome/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +12 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +3 -3
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +557 -609
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/firefox/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/firefox/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/firefox/panes-3-16-0/basic-DfbgtngO.js +144 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +6 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +34 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +12 -0
- package/dist/firefox/panes-3-16-0/ember.js +115 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +27 -11016
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +32 -0
- package/dist/firefox/panes-3-16-0/index.html +4 -23
- package/dist/firefox/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/firefox/panes-3-16-0/main.js +7663 -0
- package/dist/firefox/panes-3-16-0/port.js +108 -0
- package/dist/firefox/panes-3-16-0/profile-node.js +60 -0
- package/dist/firefox/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/firefox/panes-3-16-0/runloop-CF-Qpqgy.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BPAW_WLv.js +376 -0
- package/dist/firefox/panes-3-16-0/type-check.js +119 -0
- package/dist/firefox/panes-3-16-0/version.js +90 -0
- package/dist/firefox/panes-3-16-0/versions.js +4 -0
- package/dist/firefox/panes-3-16-0/web-extension-C3pMNVSY.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +60 -0
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.3530526ca8a0822af855.js +40 -0
- package/dist/websocket/assets/chunk.582.0ae94a39ca88591dff80.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +557 -609
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/focus-point-round.svg +9 -0
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/websocket/assets/vendor.css +4 -841
- package/dist/websocket/assets/vendor.js +4277 -5152
- package/dist/websocket/base-object-HAEdWjmg.js +59 -0
- package/dist/websocket/basic-DfbgtngO.js +144 -0
- package/dist/websocket/basic-debug.js +6 -0
- package/dist/websocket/bookmarklet-debug.js +34 -0
- package/dist/websocket/chrome-debug.js +12 -0
- package/dist/websocket/ember.js +115 -0
- package/dist/websocket/ember_debug.js +48 -11009
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-debug.js +32 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/main.js +7663 -0
- package/dist/websocket/port.js +108 -0
- package/dist/websocket/profile-node.js +60 -0
- package/dist/websocket/promise-assembler.js +218 -0
- package/dist/websocket/runloop-CF-Qpqgy.js +1138 -0
- package/dist/websocket/start-inspector-BPAW_WLv.js +376 -0
- package/dist/websocket/type-check.js +119 -0
- package/dist/websocket/version.js +90 -0
- package/dist/websocket/versions.js +4 -0
- package/dist/websocket/web-extension-C3pMNVSY.js +144 -0
- package/dist/websocket/websocket-debug.js +60 -0
- package/ember-cli-build.js +31 -140
- package/ember_debug/adapters/basic.js +10 -29
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +6 -5
- package/ember_debug/adapters/websocket.js +2 -2
- package/ember_debug/babel.config.cjs +11 -0
- package/ember_debug/container-debug.js +1 -1
- package/ember_debug/data-debug.js +7 -8
- package/ember_debug/debug-port.js +1 -1
- package/ember_debug/deprecation-debug.js +14 -14
- package/ember_debug/entrypoints/basic-debug.js +6 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +6 -0
- package/ember_debug/entrypoints/chrome-debug.js +6 -0
- package/ember_debug/entrypoints/firefox-debug.js +6 -0
- package/ember_debug/entrypoints/websocket-debug.js +6 -0
- package/ember_debug/general-debug.js +4 -4
- package/ember_debug/lib/boot-ember-inspector.js +9 -0
- package/ember_debug/lib/get-applications.js +27 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +30 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +39 -0
- package/ember_debug/lib/setup-instance-initializer.js +16 -0
- package/ember_debug/lib/start-inspector.js +211 -0
- package/ember_debug/lib/version-test.js +73 -0
- package/ember_debug/lib/versions.js +3 -0
- package/ember_debug/libs/capture-render-tree.js +1 -2
- package/ember_debug/libs/promise-assembler.js +5 -4
- package/ember_debug/libs/render-tree.js +37 -44
- package/ember_debug/libs/source-map.js +7 -6
- package/ember_debug/libs/view-inspection.js +25 -17
- package/ember_debug/main.js +18 -21
- package/ember_debug/models/profile-manager.js +6 -6
- package/ember_debug/models/profile-node.js +1 -1
- package/ember_debug/models/promise.js +2 -2
- package/ember_debug/object-inspector.js +71 -65
- package/ember_debug/package.json +27 -0
- package/ember_debug/port.js +5 -4
- package/ember_debug/promise-debug.js +5 -5
- package/ember_debug/render-debug.js +5 -5
- package/ember_debug/rollup.config.js +24 -0
- package/ember_debug/route-debug.js +10 -9
- package/ember_debug/services/session.js +2 -2
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/object/internals.js +1 -11
- package/ember_debug/utils/ember/own-runloop.js +1 -1
- package/ember_debug/utils/ember/runloop.js +7 -10
- package/ember_debug/utils/ember-object-names.js +7 -8
- package/ember_debug/utils/ember.js +120 -14
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +3 -3
- package/ember_debug/utils/type-check.js +9 -5
- package/ember_debug/view-debug.js +12 -6
- package/eslint.config.mjs +173 -0
- package/gulpfile.js +1 -1
- package/package.json +97 -95
- package/pnpm-workspace.yaml +3 -0
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/focus-point-round.svg +9 -0
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/public/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +31 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +12 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +3 -3
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +96 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +8 -10
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +4 -4
- package/tests/ember_debug/container-debug-test.js +4 -4
- package/tests/ember_debug/deprecation-debug-test.js +8 -5
- package/tests/ember_debug/ember-debug-test.js +1 -4
- package/tests/ember_debug/object-inspector-test.js +108 -49
- package/tests/ember_debug/profile-manager-test.js +142 -169
- package/tests/ember_debug/profile-node-test.js +4 -4
- package/tests/ember_debug/promise-assembler-test.js +13 -10
- package/tests/ember_debug/promise-debug-test.js +5 -6
- package/tests/ember_debug/route-debug-test.js +8 -7
- package/tests/ember_debug/view-debug-test.js +257 -182
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +14 -0
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +14 -15
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -4
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +22 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.editorconfig +0 -19
- package/.ember-cli +0 -15
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -14
- package/.github/pull_request_template.md +0 -4
- package/.github/workflows/build.yml +0 -339
- package/.github/workflows/plan-release.yml +0 -83
- package/.github/workflows/publish.yml +0 -60
- package/.prettierignore +0 -25
- package/.prettierrc.js +0 -14
- package/.release-plan.json +0 -17
- package/.stylelintrc.js +0 -3
- package/.template-lintrc.js +0 -12
- package/.tool-versions +0 -2
- package/.watchmanconfig +0 -3
- package/app/components/.gitkeep +0 -0
- package/app/components/list-content.js +0 -130
- package/app/controllers/.gitkeep +0 -0
- package/app/controllers/promise-tree.js +0 -130
- package/app/helpers/.gitkeep +0 -0
- package/app/libs/promise-assembler.js +0 -169
- package/app/models/.gitkeep +0 -0
- package/app/routes/.gitkeep +0 -0
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/websocket/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/websocket/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff2 +0 -0
- package/ember_debug/.eslintrc.js +0 -13
- package/ember_debug/utils/ember/debug.js +0 -20
- package/ember_debug/utils/ember/instrumentation.js +0 -11
- package/ember_debug/utils/ember/loader.js +0 -22
- package/ember_debug/utils/rsvp.js +0 -20
- package/ember_debug/vendor/loader.js +0 -54
- package/ember_debug/vendor/startup-wrapper.js +0 -399
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +0 -12
- package/lib/ui/addon/styles/addon.scss +0 -13
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +0 -61
- package/lib/ui/app/components/ui/disclosure-triangle.js +0 -1
- package/lib/ui/app/components/ui/disclosure.js +0 -1
- package/lib/ui/app/components/ui/drag-handle.js +0 -1
- package/lib/ui/app/components/ui/draggable-column.js +0 -1
- package/lib/ui/app/components/ui/empty-message.js +0 -1
- package/lib/ui/app/components/ui/error-page.js +0 -1
- package/lib/ui/app/components/ui/open-links-in-new-window.js +0 -1
- package/lib/ui/app/components/ui/resizable-column.js +0 -1
- package/lib/ui/app/components/ui/send-to-console.js +0 -1
- package/lib/ui/app/components/ui/toolbar-clear-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-divider.js +0 -1
- package/lib/ui/app/components/ui/toolbar-reload-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-search-field.js +0 -1
- package/lib/ui/app/components/ui/warning-message.js +0 -1
- package/lib/ui/index.js +0 -34
- package/lib/ui/package.json +0 -13
- package/public/assets/fonts/Inter-Bold.woff +0 -0
- package/public/assets/fonts/Inter-Bold.woff2 +0 -0
- package/public/assets/fonts/Inter-Regular.woff +0 -0
- package/public/assets/fonts/Inter-Regular.woff2 +0 -0
- package/tests/helpers/trigger-port.js +0 -6
- package/tests/unit/.gitkeep +0 -0
- /package/app/{app.js → app.ts} +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure-triangle.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/resizable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/send-to-console.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-divider.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/warning-message.hbs +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_goto-source.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_warning.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_divider.scss +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { B as BasicAdapter } from './basic-DfbgtngO.js';
|
|
2
|
+
import { typeOf } from './type-check.js';
|
|
3
|
+
import { getEnv } from './ember.js';
|
|
4
|
+
import { r as run } from './runloop-CF-Qpqgy.js';
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
isArray
|
|
8
|
+
} = Array;
|
|
9
|
+
const {
|
|
10
|
+
keys
|
|
11
|
+
} = Object;
|
|
12
|
+
class WebExtension extends BasicAdapter {
|
|
13
|
+
// eslint-disable-next-line ember/classic-decorator-hooks
|
|
14
|
+
init() {
|
|
15
|
+
this._channel = new MessageChannel();
|
|
16
|
+
this._chromePort = this._channel?.port1;
|
|
17
|
+
super.init();
|
|
18
|
+
}
|
|
19
|
+
connect() {
|
|
20
|
+
const channel = this._channel;
|
|
21
|
+
return super.connect().then(() => {
|
|
22
|
+
window.postMessage('debugger-client', '*', [channel.port2]);
|
|
23
|
+
this._listen();
|
|
24
|
+
}, null);
|
|
25
|
+
}
|
|
26
|
+
sendMessage(options = {}) {
|
|
27
|
+
// If prototype extensions are disabled, `Ember.A()` arrays
|
|
28
|
+
// would not be considered native arrays, so it's not possible to
|
|
29
|
+
// "clone" them through postMessage unless they are converted to a
|
|
30
|
+
// native array.
|
|
31
|
+
options = deepClone(options);
|
|
32
|
+
try {
|
|
33
|
+
this._chromePort.postMessage(options);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.log('failed to send message', e);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Open the devtools "Elements" and select an DOM node.
|
|
41
|
+
*
|
|
42
|
+
* @param {Node|Function} value The DOM node to select
|
|
43
|
+
*/
|
|
44
|
+
inspectValue(value) {
|
|
45
|
+
// NOTE:
|
|
46
|
+
//
|
|
47
|
+
// Basically, we are just trying to call `inspect(node)` here.
|
|
48
|
+
// However, `inspect` is a special function that is in the global
|
|
49
|
+
// scope but not on the global object (i.e. `window.inspect`) does
|
|
50
|
+
// not work. This sometimes causes problems, because, e.g. if the
|
|
51
|
+
// page has a div with the ID `inspect`, `window.inspect` will point
|
|
52
|
+
// to that div and shadow the "global" inspect function with no way
|
|
53
|
+
// to get it back. That causes "`inspect` is not a function" errors.
|
|
54
|
+
//
|
|
55
|
+
// As it turns out, however, when the extension page evals, the
|
|
56
|
+
// `inspect` function does not get shadowed. So, we can ask the
|
|
57
|
+
// inspector extension page to call that function for us, using
|
|
58
|
+
// `inspected.Window.eval('inspect(node)')`.
|
|
59
|
+
//
|
|
60
|
+
// However, since we cannot just send the DOM node directly to the
|
|
61
|
+
// extension, we will have to store it in a temporary global variable
|
|
62
|
+
// so that the extension can find it.
|
|
63
|
+
|
|
64
|
+
let name = `__EMBER_INSPECTOR_${(Math.random() * 100000000).toFixed(0)}`;
|
|
65
|
+
window[name] = value;
|
|
66
|
+
this.namespace.port.send('view:inspectJSValue', {
|
|
67
|
+
name
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
_listen() {
|
|
71
|
+
let chromePort = this._chromePort;
|
|
72
|
+
chromePort.addEventListener('message', event => {
|
|
73
|
+
const message = event.data;
|
|
74
|
+
|
|
75
|
+
// We should generally not be run-wrapping here. Starting a runloop in
|
|
76
|
+
// ember-debug will cause the inspected app to revalidate/rerender. We
|
|
77
|
+
// are generally not intending to cause changes to the rendered output
|
|
78
|
+
// of the app, so this is generally unnecessary, and in big apps this
|
|
79
|
+
// could be quite slow. There is nothing special about the `view:*`
|
|
80
|
+
// messages – I (GC) just happened to have reviewed all of them recently
|
|
81
|
+
// and can be quite sure that they don't need the runloop. We should
|
|
82
|
+
// audit the rest of them and see if we can remove the else branch. I
|
|
83
|
+
// think we most likely can. In the limited cases (if any) where the
|
|
84
|
+
// runloop is needed, the callback code should just do the wrapping
|
|
85
|
+
// themselves.
|
|
86
|
+
if (message.type.startsWith('view:')) {
|
|
87
|
+
this._messageReceived(message);
|
|
88
|
+
} else {
|
|
89
|
+
run(() => {
|
|
90
|
+
this._messageReceived(message);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
chromePort.start();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// On some older Ember version `Ember.ENV.EXTEND_PROTOTYPES` is not
|
|
99
|
+
// guarenteed to be an object. While this code only support 3.4+ (all
|
|
100
|
+
// of which normalizes `EXTEND_PROTOTYPES` for us), startup-wrapper.js
|
|
101
|
+
// eagerly require/load ember-debug modules, which ultimately causes
|
|
102
|
+
// this top-level code to run, even we are going to pick a different
|
|
103
|
+
// adapter later. See GH #1114.
|
|
104
|
+
const HAS_ARRAY_PROTOTYPE_EXTENSIONS = (() => {
|
|
105
|
+
try {
|
|
106
|
+
return getEnv().EXTEND_PROTOTYPES.Array === true;
|
|
107
|
+
} catch {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
})();
|
|
111
|
+
let deepClone;
|
|
112
|
+
if (HAS_ARRAY_PROTOTYPE_EXTENSIONS) {
|
|
113
|
+
deepClone = function deepClone(item) {
|
|
114
|
+
return item;
|
|
115
|
+
};
|
|
116
|
+
} else {
|
|
117
|
+
/**
|
|
118
|
+
* Recursively clones all arrays. Needed because Chrome
|
|
119
|
+
* refuses to clone Ember Arrays when extend prototypes is disabled.
|
|
120
|
+
*
|
|
121
|
+
* If the item passed is an array, a clone of the array is returned.
|
|
122
|
+
* If the item is an object or an array, or array properties/items are cloned.
|
|
123
|
+
*
|
|
124
|
+
* @param {Mixed} item The item to clone
|
|
125
|
+
* @return {Mixed}
|
|
126
|
+
*/
|
|
127
|
+
deepClone = function deepClone(item) {
|
|
128
|
+
let clone = item;
|
|
129
|
+
if (isArray(item)) {
|
|
130
|
+
clone = new Array(item.length);
|
|
131
|
+
item.forEach((child, key) => {
|
|
132
|
+
clone[key] = deepClone(child);
|
|
133
|
+
});
|
|
134
|
+
} else if (item && typeOf(item) === 'object') {
|
|
135
|
+
clone = {};
|
|
136
|
+
keys(item).forEach(key => {
|
|
137
|
+
clone[key] = deepClone(item[key]);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return clone;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { WebExtension as W };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { l as loadEmberDebugInWebpage, o as onEmberReady, s as startInspector } from './start-inspector-BPAW_WLv.js';
|
|
2
|
+
import { B as BasicAdapter, o as onReady } from './basic-DfbgtngO.js';
|
|
3
|
+
import { r as run } from './runloop-CF-Qpqgy.js';
|
|
4
|
+
import './versions.js';
|
|
5
|
+
import './base-object-HAEdWjmg.js';
|
|
6
|
+
import './ember.js';
|
|
7
|
+
|
|
8
|
+
class adapter extends BasicAdapter {
|
|
9
|
+
sendMessage(options = {}) {
|
|
10
|
+
this.socket.emit('emberInspectorMessage', options);
|
|
11
|
+
}
|
|
12
|
+
get socket() {
|
|
13
|
+
return window.EMBER_INSPECTOR_CONFIG.remoteDebugSocket;
|
|
14
|
+
}
|
|
15
|
+
_listen() {
|
|
16
|
+
this.socket.on('emberInspectorMessage', message => {
|
|
17
|
+
// We should generally not be run-wrapping here. Starting a runloop in
|
|
18
|
+
// ember-debug will cause the inspected app to revalidate/rerender. We
|
|
19
|
+
// are generally not intending to cause changes to the rendered output
|
|
20
|
+
// of the app, so this is generally unnecessary, and in big apps this
|
|
21
|
+
// could be quite slow. There is nothing special about the `view:*`
|
|
22
|
+
// messages – I (GC) just happened to have reviewed all of them recently
|
|
23
|
+
// and can be quite sure that they don't need the runloop. We should
|
|
24
|
+
// audit the rest of them and see if we can remove the else branch. I
|
|
25
|
+
// think we most likely can. In the limited cases (if any) where the
|
|
26
|
+
// runloop is needed, the callback code should just do the wrapping
|
|
27
|
+
// themselves.
|
|
28
|
+
if (message.type.startsWith('view:')) {
|
|
29
|
+
this._messageReceived(message);
|
|
30
|
+
} else {
|
|
31
|
+
run(() => {
|
|
32
|
+
this._messageReceived(message);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
_disconnect() {
|
|
38
|
+
this.socket.removeAllListeners('emberInspectorMessage');
|
|
39
|
+
}
|
|
40
|
+
connect() {
|
|
41
|
+
return new Promise((resolve, reject) => {
|
|
42
|
+
onReady(() => {
|
|
43
|
+
if (this.isDestroyed) {
|
|
44
|
+
reject();
|
|
45
|
+
}
|
|
46
|
+
const EMBER_INSPECTOR_CONFIG = window.EMBER_INSPECTOR_CONFIG;
|
|
47
|
+
if (typeof EMBER_INSPECTOR_CONFIG === 'object' && EMBER_INSPECTOR_CONFIG.remoteDebugSocket) {
|
|
48
|
+
resolve();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}).then(() => {
|
|
52
|
+
this._listen();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
willDestroy() {
|
|
56
|
+
this._disconnect();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
loadEmberDebugInWebpage(() => onEmberReady(startInspector(adapter)));
|
package/ember-cli-build.js
CHANGED
|
@@ -7,15 +7,14 @@ const concatFiles = require('broccoli-concat');
|
|
|
7
7
|
const stew = require('broccoli-stew');
|
|
8
8
|
const writeFile = require('broccoli-file-creator');
|
|
9
9
|
const replace = require('broccoli-string-replace');
|
|
10
|
-
const Babel = require('broccoli-babel-transpiler');
|
|
11
|
-
const moduleResolver = require('amd-name-resolver').resolveModules({
|
|
12
|
-
throwOnRootAccess: false,
|
|
13
|
-
});
|
|
14
10
|
const Funnel = require('broccoli-funnel');
|
|
15
|
-
const ensurePosix = require('ensure-posix-path');
|
|
16
|
-
const path = require('path');
|
|
17
11
|
const packageJson = require('./package.json');
|
|
18
|
-
const {
|
|
12
|
+
const { mv } = stew;
|
|
13
|
+
|
|
14
|
+
const {
|
|
15
|
+
EMBER_VERSIONS_SUPPORTED,
|
|
16
|
+
PREVIOUS_EMBER_VERSIONS_SUPPORTED,
|
|
17
|
+
} = require('ember-debug/versions');
|
|
19
18
|
|
|
20
19
|
const options = {
|
|
21
20
|
autoImport: {
|
|
@@ -33,16 +32,6 @@ const options = {
|
|
|
33
32
|
options.minifyJS = { enabled: false };
|
|
34
33
|
options.minifyCSS = { enabled: false };
|
|
35
34
|
|
|
36
|
-
// Stolen from relative-module-paths.js in ember-cli-babel
|
|
37
|
-
function getRelativeModulePath(modulePath) {
|
|
38
|
-
return ensurePosix(path.relative(process.cwd(), modulePath));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Stolen from relative-module-paths.js in ember-cli-babel
|
|
42
|
-
function resolveRelativeModulePath(name, child) {
|
|
43
|
-
return moduleResolver(name, getRelativeModulePath(child));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
35
|
module.exports = function (defaults) {
|
|
47
36
|
let checker = new VersionChecker(defaults);
|
|
48
37
|
let emberChecker = checker.for('ember-source');
|
|
@@ -100,127 +89,32 @@ module.exports = function (defaults) {
|
|
|
100
89
|
app.import('node_modules/compare-versions/index.js');
|
|
101
90
|
app.import('node_modules/normalize.css/normalize.css');
|
|
102
91
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
let sourceMap = new Funnel('node_modules/source-map-js', {
|
|
108
|
-
files: ['**/*.js'],
|
|
109
|
-
destDir: 'ember-debug/deps',
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
sourceMap = new Babel(sourceMap, {
|
|
113
|
-
plugins: ['transform-commonjs'],
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
const backburner = new Funnel('node_modules/backburner.js/dist/es6', {
|
|
117
|
-
files: ['backburner.js'],
|
|
118
|
-
destDir: 'ember-debug/deps',
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
emberDebug = new Funnel(emberDebug, {
|
|
122
|
-
destDir: 'ember-debug',
|
|
123
|
-
include: ['**/*.js'],
|
|
124
|
-
exclude: ['vendor/startup-wrapper.js', 'vendor/loader.js'],
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
emberDebug = mergeTrees([sourceMap, backburner, emberDebug]);
|
|
128
|
-
|
|
129
|
-
emberDebug = new Babel(emberDebug, {
|
|
130
|
-
moduleIds: true,
|
|
131
|
-
getModuleId: getRelativeModulePath,
|
|
132
|
-
plugins: [
|
|
133
|
-
['@babel/plugin-transform-class-properties'],
|
|
134
|
-
['@babel/plugin-transform-class-static-block'],
|
|
135
|
-
['module-resolver', { resolvePath: resolveRelativeModulePath }],
|
|
136
|
-
['@babel/plugin-transform-modules-amd', { noInterop: true }],
|
|
137
|
-
],
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
const previousEmberVersionsSupportedString = `[${packageJson.previousEmberVersionsSupported
|
|
141
|
-
.map(function (item) {
|
|
142
|
-
return `'${item}'`;
|
|
143
|
-
})
|
|
144
|
-
.join(',')}]`;
|
|
145
|
-
const emberVersionsSupportedString = `[${packageJson.emberVersionsSupported
|
|
146
|
-
.map(function (item) {
|
|
147
|
-
return `'${item}'`;
|
|
148
|
-
})
|
|
149
|
-
.join(',')}]`;
|
|
150
|
-
|
|
151
|
-
let startupWrapper = new Funnel('ember_debug', {
|
|
152
|
-
srcDir: 'vendor',
|
|
153
|
-
files: ['startup-wrapper.js'],
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
startupWrapper = replace(startupWrapper, {
|
|
157
|
-
files: ['startup-wrapper.js'],
|
|
158
|
-
patterns: [
|
|
159
|
-
{
|
|
160
|
-
match: /{{EMBER_VERSIONS_SUPPORTED}}/,
|
|
161
|
-
replacement: emberVersionsSupportedString,
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
const loader = new Funnel('ember_debug', {
|
|
167
|
-
srcDir: 'vendor',
|
|
168
|
-
files: ['loader.js'],
|
|
169
|
-
});
|
|
92
|
+
const previousEmberVersionsSupportedString = JSON.stringify(
|
|
93
|
+
PREVIOUS_EMBER_VERSIONS_SUPPORTED,
|
|
94
|
+
);
|
|
95
|
+
const emberVersionsSupportedString = JSON.stringify(EMBER_VERSIONS_SUPPORTED);
|
|
170
96
|
|
|
171
|
-
|
|
97
|
+
const emberDebugs = [];
|
|
172
98
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
outputFile: '/ember_debug.js',
|
|
177
|
-
sourceMapConfig: { enabled: false },
|
|
178
|
-
});
|
|
99
|
+
['basic', 'chrome', 'firefox', 'bookmarklet', 'websocket'].forEach(
|
|
100
|
+
function (dist) {
|
|
101
|
+
let emberDebug = 'ember_debug/dist';
|
|
179
102
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
);
|
|
191
|
-
};
|
|
192
|
-
if (has('ember')) {
|
|
193
|
-
return resolve();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* NOTE: if the above (for some reason) fails and the consuming app has
|
|
199
|
-
* deprecation-workflow's throwOnUnhandled: true
|
|
200
|
-
* or set \`ember-global\`'s handler to 'throw'
|
|
201
|
-
* and is using at least \`ember-source@3.27\`
|
|
202
|
-
*
|
|
203
|
-
* this will throw an exception in the consuming project
|
|
204
|
-
*/
|
|
205
|
-
if (window.Ember) return resolve();
|
|
206
|
-
|
|
207
|
-
window.addEventListener('Ember', resolve, { once: true });
|
|
208
|
-
});
|
|
209
|
-
waitForEmberLoad.then(() => ${content});
|
|
210
|
-
})()
|
|
211
|
-
`;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const emberDebugs = [];
|
|
215
|
-
['basic', 'chrome', 'firefox', 'bookmarklet', 'websocket'].forEach(function (
|
|
216
|
-
dist
|
|
217
|
-
) {
|
|
218
|
-
emberDebugs[dist] = map(emberDebug, '**/*.js', function (content) {
|
|
219
|
-
return wrapWithLoader(
|
|
220
|
-
`(function(adapter, env) {\n${content}\n}('${dist}', '${env}'))`
|
|
103
|
+
let entryPoint = concatFiles(
|
|
104
|
+
new Funnel(emberDebug, {
|
|
105
|
+
destDir: 'ember-debug',
|
|
106
|
+
include: [`${dist}-debug.js`],
|
|
107
|
+
}),
|
|
108
|
+
{
|
|
109
|
+
inputFiles: ['**/*.js'],
|
|
110
|
+
outputFile: '/ember_debug.js',
|
|
111
|
+
sourceMapConfig: { enabled: false },
|
|
112
|
+
},
|
|
221
113
|
);
|
|
222
|
-
|
|
223
|
-
|
|
114
|
+
|
|
115
|
+
emberDebugs[dist] = mergeTrees([emberDebug, entryPoint]);
|
|
116
|
+
},
|
|
117
|
+
);
|
|
224
118
|
|
|
225
119
|
let tree = app.toTree();
|
|
226
120
|
|
|
@@ -236,10 +130,7 @@ module.exports = function (defaults) {
|
|
|
236
130
|
patterns: emberInspectorVersionPattern,
|
|
237
131
|
});
|
|
238
132
|
|
|
239
|
-
const minimumVersion =
|
|
240
|
-
/\./g,
|
|
241
|
-
'-'
|
|
242
|
-
);
|
|
133
|
+
const minimumVersion = EMBER_VERSIONS_SUPPORTED[0].replace(/\./g, '-');
|
|
243
134
|
const webExtensionRoot = `panes-${minimumVersion}`;
|
|
244
135
|
|
|
245
136
|
let tabLabel;
|
|
@@ -310,7 +201,7 @@ module.exports = function (defaults) {
|
|
|
310
201
|
skeletonBookmarklet,
|
|
311
202
|
]);
|
|
312
203
|
|
|
313
|
-
|
|
204
|
+
PREVIOUS_EMBER_VERSIONS_SUPPORTED.forEach(function (version) {
|
|
314
205
|
version = version.replace(/\./g, '-');
|
|
315
206
|
if (env === 'production') {
|
|
316
207
|
const prevDist = `dist_prev/${env}`;
|
|
@@ -330,7 +221,7 @@ module.exports = function (defaults) {
|
|
|
330
221
|
} else {
|
|
331
222
|
const file = writeFile(
|
|
332
223
|
'index.html',
|
|
333
|
-
'This Ember version is not supported in development environment.'
|
|
224
|
+
'This Ember version is not supported in development environment.',
|
|
334
225
|
);
|
|
335
226
|
const emberDebugFile = writeFile('ember_debug.js', 'void(0);');
|
|
336
227
|
chrome = mergeTrees([mv(file, `panes-${version}`), chrome]);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint no-console: 0 */
|
|
2
|
-
import { onReady } from '
|
|
3
|
-
import BaseObject from '../utils/base-object';
|
|
2
|
+
import { onReady } from '../utils/on-ready';
|
|
3
|
+
import BaseObject from '../utils/base-object.js';
|
|
4
4
|
|
|
5
5
|
export default class BasicAdapter extends BaseObject {
|
|
6
|
+
// eslint-disable-next-line ember/classic-decorator-hooks
|
|
6
7
|
init() {
|
|
7
8
|
Promise.resolve(this.connect()).then(() => {
|
|
8
9
|
this.onConnectionReady();
|
|
@@ -11,21 +12,6 @@ export default class BasicAdapter extends BaseObject {
|
|
|
11
12
|
this._messageCallbacks = [];
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
/**
|
|
15
|
-
* Uses the current build's config module to determine
|
|
16
|
-
* the environment.
|
|
17
|
-
*
|
|
18
|
-
* @property environment
|
|
19
|
-
* @type {String}
|
|
20
|
-
*/
|
|
21
|
-
get environment() {
|
|
22
|
-
if (!this.__environment) {
|
|
23
|
-
this.__environment =
|
|
24
|
-
requireModule('ember-debug/config')['default'].environment;
|
|
25
|
-
}
|
|
26
|
-
return this.__environment;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
15
|
debug() {
|
|
30
16
|
return console.debug(...arguments);
|
|
31
17
|
}
|
|
@@ -93,19 +79,14 @@ export default class BasicAdapter extends BaseObject {
|
|
|
93
79
|
* @param {Error} error
|
|
94
80
|
*/
|
|
95
81
|
handleError(error) {
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
error = `Error message: ${error.message}\nStack trace: ${error.stack}`;
|
|
99
|
-
}
|
|
100
|
-
this.warn(
|
|
101
|
-
`Ember Inspector has errored.\n` +
|
|
102
|
-
`This is likely a bug in the inspector itself.\n` +
|
|
103
|
-
`You can report bugs at https://github.com/emberjs/ember-inspector.\n${error}`
|
|
104
|
-
);
|
|
105
|
-
} else {
|
|
106
|
-
this.warn('EmberDebug has errored:');
|
|
107
|
-
throw error;
|
|
82
|
+
if (error && error instanceof Error) {
|
|
83
|
+
error = `Error message: ${error.message}\nStack trace: ${error.stack}`;
|
|
108
84
|
}
|
|
85
|
+
this.warn(
|
|
86
|
+
`Ember Inspector has errored.\n` +
|
|
87
|
+
`This is likely a bug in the inspector itself.\n` +
|
|
88
|
+
`You can report bugs at https://github.com/emberjs/ember-inspector.\n${error}`,
|
|
89
|
+
);
|
|
109
90
|
}
|
|
110
91
|
|
|
111
92
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint no-empty
|
|
1
|
+
/* eslint-disable no-empty */
|
|
2
2
|
import WebExtension from './web-extension';
|
|
3
3
|
|
|
4
4
|
export default class extends WebExtension {
|
|
@@ -9,7 +9,7 @@ export default class extends WebExtension {
|
|
|
9
9
|
// - https://code.google.com/p/fbug/issues/detail?id=7045
|
|
10
10
|
try {
|
|
11
11
|
super.debug(...arguments);
|
|
12
|
-
} catch
|
|
12
|
+
} catch {}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
log() {
|
|
@@ -19,6 +19,6 @@ export default class extends WebExtension {
|
|
|
19
19
|
// - https://code.google.com/p/fbug/issues/detail?id=7045
|
|
20
20
|
try {
|
|
21
21
|
super.log(...arguments);
|
|
22
|
-
} catch
|
|
22
|
+
} catch {}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import BasicAdapter from './basic';
|
|
2
|
-
import { typeOf } from '
|
|
2
|
+
import { typeOf } from '../utils/type-check';
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import { run } from '
|
|
4
|
+
import { getEnv } from '../utils/ember';
|
|
5
|
+
import { run } from '../utils/ember/runloop';
|
|
6
6
|
|
|
7
7
|
const { isArray } = Array;
|
|
8
8
|
const { keys } = Object;
|
|
9
9
|
|
|
10
10
|
export default class extends BasicAdapter {
|
|
11
|
+
// eslint-disable-next-line ember/classic-decorator-hooks
|
|
11
12
|
init() {
|
|
12
13
|
this._channel = new MessageChannel();
|
|
13
14
|
this._chromePort = this._channel?.port1;
|
|
@@ -105,8 +106,8 @@ export default class extends BasicAdapter {
|
|
|
105
106
|
// adapter later. See GH #1114.
|
|
106
107
|
const HAS_ARRAY_PROTOTYPE_EXTENSIONS = (() => {
|
|
107
108
|
try {
|
|
108
|
-
return
|
|
109
|
-
} catch
|
|
109
|
+
return getEnv().EXTEND_PROTOTYPES.Array === true;
|
|
110
|
+
} catch {
|
|
110
111
|
return false;
|
|
111
112
|
}
|
|
112
113
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BasicAdapter from './basic';
|
|
2
|
-
import { onReady } from '
|
|
3
|
-
import { run } from '
|
|
2
|
+
import { onReady } from '../utils/on-ready';
|
|
3
|
+
import { run } from '../utils/ember/runloop';
|
|
4
4
|
|
|
5
5
|
export default class extends BasicAdapter {
|
|
6
6
|
sendMessage(options = {}) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import DebugPort from './debug-port';
|
|
2
|
-
import { guidFor } from '
|
|
1
|
+
import DebugPort from './debug-port.js';
|
|
2
|
+
import { guidFor } from './utils/ember/object/internals';
|
|
3
3
|
|
|
4
4
|
export default class extends DebugPort {
|
|
5
|
+
// eslint-disable-next-line ember/classic-decorator-hooks
|
|
5
6
|
init() {
|
|
6
7
|
super.init();
|
|
7
8
|
this.sentTypes = {};
|
|
@@ -11,7 +12,6 @@ export default class extends DebugPort {
|
|
|
11
12
|
releaseTypesMethod = null;
|
|
12
13
|
releaseRecordsMethod = null;
|
|
13
14
|
|
|
14
|
-
/* eslint-disable ember/no-side-effects */
|
|
15
15
|
get adapter() {
|
|
16
16
|
const owner = this.namespace?.owner;
|
|
17
17
|
|
|
@@ -26,7 +26,6 @@ export default class extends DebugPort {
|
|
|
26
26
|
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
|
-
/* eslint-enable ember/no-side-effects */
|
|
30
29
|
|
|
31
30
|
_resolve(name) {
|
|
32
31
|
const owner = this.namespace?.owner;
|
|
@@ -93,7 +92,7 @@ export default class extends DebugPort {
|
|
|
93
92
|
}
|
|
94
93
|
// make sure keywords can be searched and clonable
|
|
95
94
|
searchKeywords = record.searchKeywords.filter(
|
|
96
|
-
(keyword) => typeof keyword === 'string' || typeof keyword === 'number'
|
|
95
|
+
(keyword) => typeof keyword === 'string' || typeof keyword === 'number',
|
|
97
96
|
);
|
|
98
97
|
return {
|
|
99
98
|
columnValues,
|
|
@@ -142,7 +141,7 @@ export default class extends DebugPort {
|
|
|
142
141
|
},
|
|
143
142
|
(types) => {
|
|
144
143
|
this.modelTypesUpdated(types);
|
|
145
|
-
}
|
|
144
|
+
},
|
|
146
145
|
);
|
|
147
146
|
},
|
|
148
147
|
|
|
@@ -171,7 +170,7 @@ export default class extends DebugPort {
|
|
|
171
170
|
},
|
|
172
171
|
(...args) => {
|
|
173
172
|
this.recordsRemoved(...args);
|
|
174
|
-
}
|
|
173
|
+
},
|
|
175
174
|
);
|
|
176
175
|
this.releaseRecordsMethod = releaseMethod;
|
|
177
176
|
},
|
|
@@ -182,7 +181,7 @@ export default class extends DebugPort {
|
|
|
182
181
|
|
|
183
182
|
inspectModel(message) {
|
|
184
183
|
this.objectInspector.sendObject(
|
|
185
|
-
this.sentRecords[message.objectId].object
|
|
184
|
+
this.sentRecords[message.objectId].object,
|
|
186
185
|
);
|
|
187
186
|
},
|
|
188
187
|
|