ember-inspector 4.13.1-alpha.2024.8.9 → 4.13.1-alpha.2025.6.7

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.
Files changed (367) hide show
  1. package/README.md +10 -2
  2. package/app/components/app-picker.hbs +2 -2
  3. package/app/components/component-tree-item.hbs +13 -13
  4. package/app/components/component-tree-toolbar.hbs +3 -3
  5. package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
  6. package/app/components/deprecation-item-source.hbs +1 -1
  7. package/app/components/deprecation-item.hbs +1 -1
  8. package/app/components/deprecations-toolbar.hbs +1 -1
  9. package/app/components/item-types.hbs +7 -7
  10. package/app/components/list-cell.hbs +3 -3
  11. package/app/components/list-content.hbs +4 -3
  12. package/app/components/list-content.ts +96 -0
  13. package/app/components/list.hbs +3 -3
  14. package/app/components/list.js +7 -7
  15. package/app/components/model-types-toolbar.hbs +3 -3
  16. package/app/components/object-inspector/dependent-keys.hbs +4 -4
  17. package/app/components/object-inspector/errors.hbs +4 -4
  18. package/app/components/object-inspector/properties-all.hbs +1 -1
  19. package/app/components/object-inspector/properties-grouped.hbs +5 -5
  20. package/app/components/object-inspector/property.hbs +16 -16
  21. package/app/components/object-inspector/property.ts +26 -17
  22. package/app/components/object-inspector/sort-properties.js +12 -4
  23. package/app/components/object-inspector.hbs +8 -8
  24. package/app/components/object-inspector.js +1 -1
  25. package/app/components/promise-item.hbs +11 -11
  26. package/app/components/promise-item.js +8 -6
  27. package/app/components/promise-tree-toolbar.hbs +5 -5
  28. package/app/components/records-toolbar.hbs +2 -2
  29. package/app/components/render-item.hbs +4 -4
  30. package/app/components/render-item.ts +12 -9
  31. package/app/components/render-tree-toolbar.hbs +1 -1
  32. package/app/components/route-cell-name.hbs +1 -1
  33. package/app/components/route-cell-name.js +3 -2
  34. package/app/components/route-tree-toolbar.hbs +2 -2
  35. package/app/components/scroll-container.js +2 -0
  36. package/app/components/side-nav.hbs +5 -5
  37. package/app/components/side-nav.js +1 -1
  38. package/app/computed/{debounce.js → debounce.ts} +7 -5
  39. package/app/config/environment.d.ts +5 -2
  40. package/app/controllers/app-config.js +1 -0
  41. package/app/controllers/application.js +33 -34
  42. package/app/controllers/component-tree.js +3 -2
  43. package/app/controllers/container-type.js +2 -1
  44. package/app/controllers/container-types/{index.js → index.ts} +5 -2
  45. package/app/controllers/container-types.js +3 -6
  46. package/app/controllers/deprecations.js +16 -11
  47. package/app/controllers/libraries.js +1 -0
  48. package/app/controllers/model-types.js +1 -0
  49. package/app/controllers/promise-tree.ts +149 -0
  50. package/app/controllers/records.js +18 -26
  51. package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
  52. package/app/controllers/route-tree.js +7 -5
  53. package/app/helpers/build-style.js +1 -1
  54. package/app/initializers/setup.js +1 -1
  55. package/app/libs/promise-assembler.ts +249 -0
  56. package/app/libs/resizable-columns.js +10 -10
  57. package/app/models/{promise.js → promise.ts} +72 -69
  58. package/app/{router.js → router.ts} +1 -1
  59. package/app/routes/app-detected.js +3 -5
  60. package/app/routes/application.js +6 -12
  61. package/app/routes/deprecations.js +7 -16
  62. package/app/routes/launch.js +2 -1
  63. package/app/routes/libraries.js +2 -1
  64. package/app/routes/model-type.js +2 -3
  65. package/app/routes/model-types.ts +57 -0
  66. package/app/routes/promise-tree.ts +63 -0
  67. package/app/routes/records.ts +78 -0
  68. package/app/routes/render-tree.ts +93 -0
  69. package/app/routes/route-tree.js +0 -1
  70. package/app/routes/{tab.js → tab.ts} +9 -2
  71. package/app/routes/whats-new.js +1 -1
  72. package/app/services/adapters/{basic.js → basic.ts} +36 -30
  73. package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
  74. package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
  75. package/app/services/adapters/{web-extension.js → web-extension.ts} +43 -46
  76. package/app/services/adapters/websocket.ts +40 -0
  77. package/app/services/layout.ts +88 -0
  78. package/app/services/port.ts +195 -0
  79. package/app/services/storage/{local.js → local.ts} +7 -20
  80. package/app/services/storage/{memory.js → memory.ts} +6 -21
  81. package/app/services/{storage.js → storage.ts} +9 -20
  82. package/app/styles/base.scss +4 -2
  83. package/app/styles/colors.scss +33 -31
  84. package/app/styles/component_tree.scss +56 -51
  85. package/app/styles/dropdown.scss +2 -2
  86. package/app/styles/ember-table.scss +3 -3
  87. package/app/styles/mixin.scss +26 -26
  88. package/app/styles/object_inspector.scss +22 -21
  89. package/app/styles/utils.scss +408 -122
  90. package/app/templates/application.hbs +11 -11
  91. package/app/templates/component-tree.hbs +1 -1
  92. package/app/templates/deprecations.hbs +2 -3
  93. package/app/templates/info.hbs +10 -10
  94. package/app/templates/promise-tree.hbs +1 -1
  95. package/app/templates/render-tree.hbs +1 -1
  96. package/app/templates/route-tree.hbs +1 -1
  97. package/app/utils/escape-reg-exp.ts +3 -2
  98. package/app/utils/nullish.ts +7 -0
  99. package/app/utils/parse-text.ts +4 -5
  100. package/app/utils/truncate.js +0 -1
  101. package/config/ember-cli-update.json +5 -3
  102. package/config/ember-try.js +117 -72
  103. package/config/environment.js +1 -1
  104. package/config/optional-features.json +2 -1
  105. package/dist/bookmarklet/load_inspector.js +30 -11
  106. package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
  107. package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
  108. package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
  109. package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
  110. package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +150 -155
  111. package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +486 -590
  112. package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
  113. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
  114. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
  115. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
  116. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
  117. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
  118. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
  119. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
  120. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
  121. package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
  122. package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +147 -148
  123. package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +5153 -5980
  124. package/dist/bookmarklet/panes-3-16-0/ember_debug.js +250 -268
  125. package/dist/bookmarklet/panes-3-16-0/index.html +3 -4
  126. package/dist/chrome/background.js +26 -21
  127. package/dist/chrome/boot.js +1 -1
  128. package/dist/chrome/content-script.js +11 -11
  129. package/dist/chrome/devtools.js +12 -3
  130. package/dist/chrome/manifest.json +2 -2
  131. package/dist/chrome/options.js +17 -12
  132. package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
  133. package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
  134. package/dist/chrome/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
  135. package/dist/chrome/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
  136. package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +150 -155
  137. package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +486 -590
  138. package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
  139. package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
  140. package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
  141. package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
  142. package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
  143. package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
  144. package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
  145. package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
  146. package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
  147. package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
  148. package/dist/chrome/panes-3-16-0/assets/vendor.css +147 -148
  149. package/dist/chrome/panes-3-16-0/assets/vendor.js +5153 -5980
  150. package/dist/chrome/panes-3-16-0/ember_debug.js +250 -268
  151. package/dist/chrome/panes-3-16-0/index.html +3 -4
  152. package/dist/chrome/scripts/in-page-script.js +19 -13
  153. package/dist/firefox/background.js +26 -21
  154. package/dist/firefox/boot.js +1 -1
  155. package/dist/firefox/content-script.js +11 -11
  156. package/dist/firefox/devtools.js +12 -3
  157. package/dist/firefox/manifest.json +2 -2
  158. package/dist/firefox/options.js +17 -12
  159. package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
  160. package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
  161. package/dist/firefox/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
  162. package/dist/firefox/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
  163. package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +150 -155
  164. package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +486 -590
  165. package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
  166. package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
  167. package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
  168. package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
  169. package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
  170. package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
  171. package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
  172. package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
  173. package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
  174. package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
  175. package/dist/firefox/panes-3-16-0/assets/vendor.css +147 -148
  176. package/dist/firefox/panes-3-16-0/assets/vendor.js +5153 -5980
  177. package/dist/firefox/panes-3-16-0/ember_debug.js +250 -268
  178. package/dist/firefox/panes-3-16-0/index.html +3 -4
  179. package/dist/firefox/scripts/in-page-script.js +19 -13
  180. package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
  181. package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
  182. package/dist/websocket/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
  183. package/dist/websocket/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
  184. package/dist/websocket/assets/ember-inspector.css +150 -155
  185. package/dist/websocket/assets/ember-inspector.js +486 -590
  186. package/dist/websocket/assets/svg/ellipsis.svg +3 -3
  187. package/dist/websocket/assets/svg/nav-bug.svg +1 -1
  188. package/dist/websocket/assets/svg/nav-components.svg +2 -2
  189. package/dist/websocket/assets/svg/nav-container.svg +1 -1
  190. package/dist/websocket/assets/svg/nav-data.svg +1 -1
  191. package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
  192. package/dist/websocket/assets/svg/nav-info.svg +3 -3
  193. package/dist/websocket/assets/svg/nav-promises.svg +2 -2
  194. package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
  195. package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
  196. package/dist/websocket/assets/vendor.css +147 -148
  197. package/dist/websocket/assets/vendor.js +5153 -5980
  198. package/dist/websocket/ember_debug.js +250 -268
  199. package/dist/websocket/index.html +3 -4
  200. package/ember-cli-build.js +11 -11
  201. package/ember_debug/adapters/basic.js +2 -1
  202. package/ember_debug/adapters/bookmarklet.js +1 -0
  203. package/ember_debug/adapters/firefox.js +3 -3
  204. package/ember_debug/adapters/web-extension.js +2 -1
  205. package/ember_debug/data-debug.js +5 -6
  206. package/ember_debug/deprecation-debug.js +8 -8
  207. package/ember_debug/general-debug.js +1 -1
  208. package/ember_debug/libs/capture-render-tree.js +0 -1
  209. package/ember_debug/libs/promise-assembler.js +1 -0
  210. package/ember_debug/libs/render-tree.js +13 -12
  211. package/ember_debug/libs/source-map.js +5 -4
  212. package/ember_debug/libs/view-inspection.js +12 -12
  213. package/ember_debug/main.js +1 -1
  214. package/ember_debug/models/profile-manager.js +2 -1
  215. package/ember_debug/object-inspector.js +19 -18
  216. package/ember_debug/port.js +1 -0
  217. package/ember_debug/promise-debug.js +1 -1
  218. package/ember_debug/route-debug.js +3 -2
  219. package/ember_debug/services/session.js +1 -1
  220. package/ember_debug/utils/classify.js +1 -1
  221. package/ember_debug/utils/ember/debug.js +2 -0
  222. package/ember_debug/utils/ember/loader.js +2 -2
  223. package/ember_debug/utils/ember/runloop.js +2 -0
  224. package/ember_debug/utils/ember-object-names.js +2 -2
  225. package/ember_debug/utils/ember.js +9 -3
  226. package/ember_debug/utils/evented.js +1 -1
  227. package/ember_debug/utils/get-object-name.js +2 -2
  228. package/ember_debug/utils/rsvp.js +1 -0
  229. package/ember_debug/utils/type-check.js +5 -1
  230. package/ember_debug/vendor/startup-wrapper.js +4 -1
  231. package/ember_debug/view-debug.js +3 -2
  232. package/eslint.config.mjs +172 -0
  233. package/gulpfile.js +1 -1
  234. package/lib/ui/addon/components/drag-handle.hbs +4 -4
  235. package/lib/ui/addon/components/drag-handle.js +3 -1
  236. package/lib/ui/addon/components/empty-message.hbs +1 -1
  237. package/lib/ui/addon/components/error-page.hbs +3 -3
  238. package/lib/ui/addon/components/resizable-column.js +1 -1
  239. package/lib/ui/addon/components/toolbar-clear-button.hbs +1 -1
  240. package/lib/ui/addon/components/toolbar-reload-button.hbs +1 -1
  241. package/lib/ui/addon/components/toolbar-search-field.hbs +2 -2
  242. package/lib/ui/addon/styles/_disclosure-triangle.scss +3 -1
  243. package/lib/ui/addon/styles/_drag-handle.scss +7 -7
  244. package/lib/ui/addon/styles/_empty-message.scss +1 -1
  245. package/lib/ui/addon/styles/_error-page.scss +8 -7
  246. package/lib/ui/addon/styles/_list.scss +46 -45
  247. package/lib/ui/addon/styles/_nav.scss +29 -27
  248. package/lib/ui/addon/styles/_object-inspector-toggle.scss +5 -5
  249. package/lib/ui/addon/styles/_pill.scss +4 -4
  250. package/lib/ui/addon/styles/_send-to-console.scss +1 -1
  251. package/lib/ui/addon/styles/_split.scss +17 -20
  252. package/lib/ui/addon/styles/addon.scss +13 -13
  253. package/lib/ui/addon/styles/toolbar/_checkbox.scss +5 -5
  254. package/lib/ui/addon/styles/toolbar/_icon-button.scss +44 -25
  255. package/lib/ui/addon/styles/toolbar/_index.scss +6 -5
  256. package/lib/ui/addon/styles/toolbar/_radio.scss +10 -10
  257. package/lib/ui/addon/styles/toolbar/_search.scss +5 -3
  258. package/package.json +85 -86
  259. package/public/assets/svg/ellipsis.svg +3 -3
  260. package/public/assets/svg/nav-bug.svg +1 -1
  261. package/public/assets/svg/nav-components.svg +2 -2
  262. package/public/assets/svg/nav-container.svg +1 -1
  263. package/public/assets/svg/nav-data.svg +1 -1
  264. package/public/assets/svg/nav-deprecations.svg +3 -3
  265. package/public/assets/svg/nav-info.svg +3 -3
  266. package/public/assets/svg/nav-promises.svg +2 -2
  267. package/public/assets/svg/nav-render-performance.svg +2 -2
  268. package/public/assets/svg/nav-route-tree.svg +7 -7
  269. package/scripts/download-panes.js +1 -1
  270. package/skeletons/bookmarklet/load_inspector.js +30 -11
  271. package/skeletons/web-extension/background.js +26 -21
  272. package/skeletons/web-extension/boot.js +1 -1
  273. package/skeletons/web-extension/content-script.js +11 -11
  274. package/skeletons/web-extension/devtools.js +12 -3
  275. package/skeletons/web-extension/manifest.json +2 -2
  276. package/skeletons/web-extension/options.js +17 -12
  277. package/skeletons/web-extension/scripts/in-page-script.js +19 -13
  278. package/testem.js +0 -1
  279. package/tests/acceptance/app-picker-test.js +4 -4
  280. package/tests/acceptance/component-tree-test.js +43 -57
  281. package/tests/acceptance/container-test.js +0 -2
  282. package/tests/acceptance/data-test.js +8 -10
  283. package/tests/acceptance/deprecation-test.js +8 -12
  284. package/tests/acceptance/info-test.js +2 -2
  285. package/tests/acceptance/object-inspector-test.js +62 -110
  286. package/tests/acceptance/promise-test.js +1 -11
  287. package/tests/acceptance/render-tree-test.js +2 -2
  288. package/tests/acceptance/route-tree-test.js +12 -14
  289. package/tests/acceptance/whats-new-test.js +3 -3
  290. package/tests/ember_debug/container-debug-test.js +4 -4
  291. package/tests/ember_debug/deprecation-debug-test.js +8 -5
  292. package/tests/ember_debug/ember-debug-test.js +1 -4
  293. package/tests/ember_debug/object-inspector-test.js +44 -44
  294. package/tests/ember_debug/profile-manager-test.js +140 -165
  295. package/tests/ember_debug/profile-node-test.js +3 -3
  296. package/tests/ember_debug/promise-assembler-test.js +12 -9
  297. package/tests/ember_debug/promise-debug-test.js +5 -6
  298. package/tests/ember_debug/route-debug-test.js +8 -7
  299. package/tests/ember_debug/view-debug-test.js +179 -181
  300. package/tests/helpers/{index.js → index.ts} +6 -5
  301. package/tests/helpers/setup-ember-debug-test.js +14 -0
  302. package/tests/integration/injection-test.js +12 -13
  303. package/tests/test-adapter.js +15 -15
  304. package/tests/test-helper.js +6 -1
  305. package/tests/unit/check-current-route-test.js +0 -4
  306. package/tests/unit/resizable-columns-test.js +53 -51
  307. package/tests/unit/utils/parse-text-test.js +3 -3
  308. package/tests/unit/utils/search-match-test.js +5 -5
  309. package/tests/unit/utils/type-check-test.js +22 -0
  310. package/tsconfig.json +3 -1
  311. package/types/ember-inspector/index.d.ts +2 -1
  312. package/types/global.d.ts +1 -7
  313. package/.editorconfig +0 -19
  314. package/.ember-cli +0 -15
  315. package/.eslintignore +0 -33
  316. package/.eslintrc.js +0 -86
  317. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
  318. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  319. package/.github/dependabot.yml +0 -14
  320. package/.github/pull_request_template.md +0 -4
  321. package/.github/workflows/build.yml +0 -339
  322. package/.github/workflows/plan-release.yml +0 -83
  323. package/.github/workflows/publish.yml +0 -60
  324. package/.prettierignore +0 -25
  325. package/.prettierrc.js +0 -14
  326. package/.release-plan.json +0 -17
  327. package/.stylelintrc.js +0 -3
  328. package/.template-lintrc.js +0 -12
  329. package/.tool-versions +0 -2
  330. package/.watchmanconfig +0 -3
  331. package/app/components/.gitkeep +0 -0
  332. package/app/components/list-content.js +0 -130
  333. package/app/controllers/.gitkeep +0 -0
  334. package/app/controllers/promise-tree.js +0 -130
  335. package/app/helpers/.gitkeep +0 -0
  336. package/app/libs/promise-assembler.js +0 -169
  337. package/app/models/.gitkeep +0 -0
  338. package/app/routes/.gitkeep +0 -0
  339. package/app/routes/model-types.js +0 -47
  340. package/app/routes/promise-tree.js +0 -48
  341. package/app/routes/records.js +0 -55
  342. package/app/routes/render-tree.js +0 -66
  343. package/app/services/adapters/websocket.js +0 -31
  344. package/app/services/layout.js +0 -39
  345. package/app/services/port.js +0 -90
  346. package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
  347. package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
  348. package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
  349. package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
  350. package/dist/chrome/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
  351. package/dist/chrome/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
  352. package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
  353. package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
  354. package/dist/firefox/panes-3-16-0/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
  355. package/dist/firefox/panes-3-16-0/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
  356. package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
  357. package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
  358. package/dist/websocket/assets/chunk.143.143ca772b0b28102c74a.js +0 -28
  359. package/dist/websocket/assets/chunk.178.b50e140d1ed8777b583e.js +0 -9
  360. package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
  361. package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
  362. package/ember_debug/.eslintrc.js +0 -13
  363. package/tests/helpers/trigger-port.js +0 -6
  364. package/tests/unit/.gitkeep +0 -0
  365. /package/app/{app.js → app.ts} +0 -0
  366. /package/app/controllers/{info.js → info.ts} +0 -0
  367. /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
@@ -1,60 +0,0 @@
1
- # For every push to the master branch, this checks if the release-plan was
2
- # updated and if it was it will publish stable npm packages based on the
3
- # release plan
4
-
5
- name: Publish Stable
6
-
7
- on:
8
- workflow_dispatch:
9
- push:
10
- branches:
11
- - main
12
- - master
13
-
14
- concurrency:
15
- group: publish-${{ github.head_ref || github.ref }}
16
- cancel-in-progress: true
17
-
18
- jobs:
19
- check-plan:
20
- name: "Check Release Plan"
21
- runs-on: ubuntu-latest
22
- outputs:
23
- command: ${{ steps.check-release.outputs.command }}
24
-
25
- steps:
26
- - uses: actions/checkout@v4
27
- with:
28
- fetch-depth: 0
29
- ref: 'main'
30
- # This will only cause the `check-plan` job to have a result of `success`
31
- # when the .release-plan.json file was changed on the last commit. This
32
- # plus the fact that this action only runs on main will be enough of a guard
33
- - id: check-release
34
- run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT
35
-
36
- publish:
37
- name: "NPM Publish"
38
- runs-on: ubuntu-latest
39
- needs: check-plan
40
- if: needs.check-plan.outputs.command == 'release'
41
-
42
- steps:
43
- - uses: actions/checkout@v4
44
- with:
45
- token: ${{ secrets.GH_PAT }}
46
- - uses: actions/setup-node@v4
47
- with:
48
- node-version: 18
49
- # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
50
- registry-url: 'https://registry.npmjs.org'
51
-
52
- - uses: pnpm/action-setup@v2
53
- with:
54
- version: 8
55
- - run: pnpm install --frozen-lockfile
56
- - name: npm publish
57
- run: pnpm release-plan publish --singlePackage=ember-inspector
58
- env:
59
- GITHUB_AUTH: ${{ secrets.GH_PAT }}
60
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
package/.prettierignore DELETED
@@ -1,25 +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
- .eslintcache
17
- .lint-todo/
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
package/.prettierrc.js DELETED
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- singleQuote: true,
5
- overrides: [
6
- {
7
- files: '**/*.hbs',
8
- options: {
9
- parser: 'glimmer',
10
- singleQuote: false,
11
- },
12
- },
13
- ],
14
- };
@@ -1,17 +0,0 @@
1
- {
2
- "solution": {
3
- "ember-inspector": {
4
- "impact": "patch",
5
- "oldVersion": "4.13.0",
6
- "newVersion": "4.13.1",
7
- "constraints": [
8
- {
9
- "impact": "patch",
10
- "reason": "Appears in changelog section :bug: Bug Fix"
11
- }
12
- ],
13
- "pkgJSONPath": "./package.json"
14
- }
15
- },
16
- "description": "## Release (2024-07-30)\n\nember-inspector 4.13.1 (patch)\n\n#### :bug: Bug Fix\n* `ember-inspector`\n * [#2595](https://github.com/emberjs/ember-inspector/pull/2595) fix boolean edit ([@patricklx](https://github.com/patricklx))\n\n#### Committers: 1\n- Patrick Pircher ([@patricklx](https://github.com/patricklx))\n"
17
- }
package/.stylelintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: 'stylelint-config-ship-shape',
3
- };
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- extends: 'recommended',
5
- rules: {
6
- 'no-down-event-binding': false,
7
- 'no-negated-condition': false,
8
-
9
- // TODO: enable these rules
10
- 'no-positive-tabindex': false,
11
- },
12
- };
package/.tool-versions DELETED
@@ -1,2 +0,0 @@
1
- nodejs 18.18.2
2
- pnpm 8.10.2
package/.watchmanconfig DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "ignore_dirs": ["tmp", "dist"]
3
- }
File without changes
@@ -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
- }
File without changes
@@ -1,130 +0,0 @@
1
- // eslint-disable-next-line ember/no-observers
2
- import { action, observer } from '@ember/object';
3
- import Controller from '@ember/controller';
4
- import { inject as service } from '@ember/service';
5
- import { isEmpty } from '@ember/utils';
6
- import { equal, bool, and, not, filter } from '@ember/object/computed';
7
- import { debounce, next, once } from '@ember/runloop';
8
-
9
- export default Controller.extend({
10
- queryParams: ['filter'],
11
-
12
- adapter: service(),
13
- port: service(),
14
-
15
- createdAfter: null,
16
-
17
- // below used to show the "refresh" message
18
- isEmpty: equal('model.length', 0),
19
- wasCleared: bool('createdAfter'),
20
- neverCleared: not('wasCleared'),
21
- shouldRefresh: and('isEmpty', 'neverCleared'),
22
-
23
- // Keep track of promise stack traces.
24
- // It is opt-in due to performance reasons.
25
- instrumentWithStack: false,
26
-
27
- /* jscs:disable validateIndentation */
28
- filtered: filter(
29
- 'model.@each.{createdAt,fulfilledBranch,rejectedBranch,pendingBranch,isVisible}',
30
- function (item) {
31
- // exclude cleared promises
32
- if (this.createdAfter && item.get('createdAt') < this.createdAfter) {
33
- return false;
34
- }
35
-
36
- if (!item.get('isVisible')) {
37
- return false;
38
- }
39
-
40
- // Exclude non-filter complying promises
41
- // If at least one of their children passes the filter,
42
- // then they pass
43
- let include = true;
44
- if (this.filter === 'pending') {
45
- include = item.get('pendingBranch');
46
- } else if (this.filter === 'rejected') {
47
- include = item.get('rejectedBranch');
48
- } else if (this.filter === 'fulfilled') {
49
- include = item.get('fulfilledBranch');
50
- }
51
- if (!include) {
52
- return false;
53
- }
54
-
55
- // Search filter
56
- // If they or at least one of their children
57
- // match the search, then include them
58
- let search = this.effectiveSearch;
59
- if (!isEmpty(search)) {
60
- return item.matches(search);
61
- }
62
- return true;
63
- }
64
- ),
65
- /* jscs:enable validateIndentation */
66
-
67
- filter: 'all',
68
- searchValue: null,
69
- effectiveSearch: null,
70
-
71
- // eslint-disable-next-line ember/no-observers
72
- searchChanged: observer('searchValue', function () {
73
- debounce(this, this.notifyChange, 500);
74
- }),
75
-
76
- notifyChange() {
77
- this.set('effectiveSearch', this.searchValue);
78
- next(() => {
79
- this.notifyPropertyChange('model');
80
- });
81
- },
82
-
83
- toggleExpand: action(function (promise) {
84
- let isExpanded = !promise.get('isExpanded');
85
- promise.set('isManuallyExpanded', isExpanded);
86
- promise.recalculateExpanded();
87
- let children = promise._allChildren();
88
- if (isExpanded) {
89
- children.forEach((child) => {
90
- let isManuallyExpanded = child.get('isManuallyExpanded');
91
- if (isManuallyExpanded === undefined) {
92
- child.set('isManuallyExpanded', isExpanded);
93
- child.recalculateExpanded();
94
- }
95
- });
96
- }
97
- }),
98
-
99
- tracePromise: action(function (promise) {
100
- this.port.send('promise:tracePromise', { promiseId: promise.get('guid') });
101
- }),
102
-
103
- inspectObject: action(function () {
104
- this.target.send('inspectObject', ...arguments);
105
- }),
106
-
107
- sendValueToConsole: action(function (promise) {
108
- this.port.send('promise:sendValueToConsole', {
109
- promiseId: promise.get('guid'),
110
- });
111
- }),
112
-
113
- setFilter: action(function (filter) {
114
- this.set('filter', filter);
115
- next(() => {
116
- this.notifyPropertyChange('filtered');
117
- });
118
- }),
119
-
120
- updateInstrumentWithStack: action(function (bool) {
121
- this.port.send('promise:setInstrumentWithStack', {
122
- instrumentWithStack: bool,
123
- });
124
- }),
125
-
126
- clear: action(function () {
127
- this.set('createdAfter', new Date());
128
- once(this, this.notifyChange);
129
- }),
130
- });
File without changes
@@ -1,169 +0,0 @@
1
- import { assert } from '@ember/debug';
2
- import { later } from '@ember/runloop';
3
- import EmberObject from '@ember/object';
4
- import EventedMixin from '@ember/object/evented';
5
- import Promise from 'ember-inspector/models/promise';
6
-
7
- export default class PromiseAssembler extends EmberObject.extend(EventedMixin) {
8
- // Used to track whether current message received
9
- // is the first in the request
10
- // Mainly helps in triggering 'firstMessageReceived' event
11
- firstMessageReceived = false;
12
-
13
- init() {
14
- super.init(...arguments);
15
-
16
- this.all = [];
17
- this.topSort = [];
18
- this.topSortMeta = {};
19
- this.promiseIndex = {};
20
- }
21
-
22
- start() {
23
- this.port.on('promise:promisesUpdated', this, this.addOrUpdatePromises);
24
- this.port.send('promise:getAndObservePromises');
25
- }
26
-
27
- stop() {
28
- this.port.off('promise:promisesUpdated', this, this.addOrUpdatePromises);
29
- this.port.send('promise:releasePromises');
30
- this.reset();
31
- }
32
-
33
- reset() {
34
- this.set('topSortMeta', {});
35
- this.set('promiseIndex', {});
36
- this.topSort.clear();
37
-
38
- this.set('firstMessageReceived', false);
39
- let all = this.all;
40
- // Lazily destroy promises
41
- // Allows for a smooth transition on deactivate,
42
- // and thus providing the illusion of better perf
43
- later(
44
- this,
45
- function () {
46
- this.destroyPromises(all);
47
- },
48
- 500
49
- );
50
- this.set('all', []);
51
- }
52
-
53
- destroyPromises(promises) {
54
- promises.forEach(function (item) {
55
- item.destroy();
56
- });
57
- }
58
-
59
- addOrUpdatePromises(message) {
60
- this.rebuildPromises(message.promises);
61
-
62
- if (!this.firstMessageReceived) {
63
- this.set('firstMessageReceived', true);
64
- this.trigger('firstMessageReceived');
65
- }
66
- }
67
-
68
- rebuildPromises(promises) {
69
- promises.forEach((props) => {
70
- props = Object.assign({}, props);
71
- let childrenIds = props.children;
72
- let parentId = props.parent;
73
- delete props.children;
74
- delete props.parent;
75
- if (parentId && parentId !== props.guid) {
76
- props.parent = this.updateOrCreate({ guid: parentId });
77
- }
78
- let promise = this.updateOrCreate(props);
79
- if (childrenIds) {
80
- childrenIds.forEach((childId) => {
81
- // avoid infinite recursion
82
- if (childId === props.guid) {
83
- return;
84
- }
85
- let child = this.updateOrCreate({ guid: childId, parent: promise });
86
- promise.get('children').pushObject(child);
87
- });
88
- }
89
- });
90
- }
91
-
92
- updateTopSort(promise) {
93
- let topSortMeta = this.topSortMeta;
94
- let guid = promise.get('guid');
95
- let meta = topSortMeta[guid];
96
- let isNew = !meta;
97
- let hadParent = false;
98
- let hasParent = !!promise.get('parent');
99
- let topSort = this.topSort;
100
- let parentChanged = isNew;
101
-
102
- if (isNew) {
103
- meta = topSortMeta[guid] = {};
104
- } else {
105
- hadParent = meta.hasParent;
106
- }
107
- if (!isNew && hasParent !== hadParent) {
108
- // todo: implement recursion to reposition children
109
- topSort.removeObject(promise);
110
- parentChanged = true;
111
- }
112
- meta.hasParent = hasParent;
113
- if (parentChanged) {
114
- this.insertInTopSort(promise);
115
- }
116
- }
117
-
118
- insertInTopSort(promise) {
119
- let topSort = this.topSort;
120
- if (promise.get('parent')) {
121
- let parentIndex = topSort.indexOf(promise.get('parent'));
122
- topSort.insertAt(parentIndex + 1, promise);
123
- } else {
124
- topSort.pushObject(promise);
125
- }
126
- promise.get('children').forEach((child) => {
127
- topSort.removeObject(child);
128
- this.insertInTopSort(child);
129
- });
130
- }
131
-
132
- updateOrCreate(props) {
133
- let guid = props.guid;
134
- let promise = this.findOrCreate(guid);
135
-
136
- promise.setProperties(props);
137
-
138
- this.updateTopSort(promise);
139
-
140
- return promise;
141
- }
142
-
143
- createPromise(props) {
144
- let promise = Promise.create(props);
145
- let index = this.get('all.length');
146
-
147
- this.all.pushObject(promise);
148
- this.promiseIndex[promise.get('guid')] = index;
149
- return promise;
150
- }
151
-
152
- find(guid) {
153
- if (guid) {
154
- let index = this.promiseIndex[guid];
155
- if (index !== undefined) {
156
- return this.all.objectAt(index);
157
- }
158
- } else {
159
- return this.all;
160
- }
161
- }
162
-
163
- findOrCreate(guid) {
164
- if (!guid) {
165
- assert('You have tried to findOrCreate without a guid');
166
- }
167
- return this.find(guid) || this.createPromise({ guid });
168
- }
169
- }
File without changes
File without changes
@@ -1,47 +0,0 @@
1
- import { inject as service } from '@ember/service';
2
- import { set, action } from '@ember/object';
3
- import { Promise } from 'rsvp';
4
- import TabRoute from 'ember-inspector/routes/tab';
5
-
6
- export default class ModelTypesRoute extends TabRoute {
7
- @service port;
8
-
9
- model() {
10
- const port = this.port;
11
- return new Promise(function (resolve) {
12
- port.one('data:modelTypesAdded', function (message) {
13
- resolve(message.modelTypes);
14
- });
15
- port.send('data:getModelTypes');
16
- });
17
- }
18
-
19
- setupController(controller, model) {
20
- super.setupController(controller, model);
21
- this.port.on('data:modelTypesAdded', this, this.addModelTypes);
22
- this.port.on('data:modelTypesUpdated', this, this.updateModelTypes);
23
- }
24
-
25
- deactivate() {
26
- this.port.off('data:modelTypesAdded', this, this.addModelTypes);
27
- this.port.off('data:modelTypesUpdated', this, this.updateModelTypes);
28
- this.port.send('data:releaseModelTypes');
29
- }
30
-
31
- @action
32
- addModelTypes(message) {
33
- this.currentModel.pushObjects(message.modelTypes);
34
- }
35
-
36
- @action
37
- updateModelTypes(message) {
38
- let route = this;
39
- message.modelTypes.forEach(function (modelType) {
40
- const currentType = route.currentModel.findBy(
41
- 'objectId',
42
- modelType.objectId
43
- );
44
- set(currentType, 'count', modelType.count);
45
- });
46
- }
47
- }
@@ -1,48 +0,0 @@
1
- import { get, set } from '@ember/object';
2
- import { inject as service } from '@ember/service';
3
- import { Promise } from 'rsvp';
4
- import TabRoute from 'ember-inspector/routes/tab';
5
- import PromiseAssembler from 'ember-inspector/libs/promise-assembler';
6
-
7
- export default class PromiseTreeRoute extends TabRoute {
8
- @service port;
9
-
10
- assembler = PromiseAssembler.create({
11
- port: this.port,
12
- });
13
-
14
- model() {
15
- // block rendering until first batch arrives
16
- // Helps prevent flashing of "please refresh the page"
17
- return new Promise((resolve) => {
18
- this.assembler.one('firstMessageReceived', () => {
19
- resolve(get(this, 'assembler.topSort'));
20
- });
21
- this.assembler.start();
22
- });
23
- }
24
-
25
- setupController() {
26
- super.setupController(...arguments);
27
-
28
- this.port.on(
29
- 'promise:instrumentWithStack',
30
- this,
31
- this.setInstrumentWithStack
32
- );
33
- this.port.send('promise:getInstrumentWithStack');
34
- }
35
-
36
- deactivate() {
37
- this.assembler.stop();
38
- this.port.off(
39
- 'promise:instrumentWithStack',
40
- this,
41
- this.setInstrumentWithStack
42
- );
43
- }
44
-
45
- setInstrumentWithStack(message) {
46
- set(this, 'controller.instrumentWithStack', message.instrumentWithStack);
47
- }
48
- }