@xy-planning-network/trees 0.6.5 → 0.6.6-rc-2

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/README.md CHANGED
@@ -125,20 +125,12 @@ This is the best option when tree shaking and final bundle size is important to
125
125
 
126
126
  ```ts
127
127
  // main.ts
128
-
129
- // include the type interface for the Window global - includes Window.VueBus and Window.Flashes
130
- /// <reference types="@xy-planning-network/trees/types/global" />
131
-
132
128
  import Vue, { createApp } from "vue"
133
- import Mitt from "mitt"
134
129
  import App from "./App.vue"
135
130
 
136
131
  // import your project's main stylesheet
137
132
  import "@/main.css"
138
133
 
139
- // initialize mitt on VueBus for Flashes
140
- window.VueBus = Mitt()
141
-
142
134
  // initialize the app
143
135
  const app = createApp(App)
144
136
  app.mount("#vue-app")
@@ -173,23 +165,16 @@ This example installs all components of Trees globally so you don't need to impo
173
165
 
174
166
  ```ts
175
167
  // main.ts
176
-
177
- // include the type interface for the Window global - includes Window.VueBus and Window.Flashes
178
- /// <reference types="@xy-planning-network/trees/types/global" />
179
168
  // include the type interfaces for Trees components installed globally on the Vue instance
180
169
  /// <reference types="@xy-planning-network/trees/types/components" />
181
170
 
182
171
  import Vue, { createApp } from "vue"
183
- import Mitt from "mitt"
184
172
  import Trees from "@xy-planning-network/trees"
185
173
  import App from "./App.vue"
186
174
 
187
175
  // import your project's main stylesheet
188
176
  import "@/main.css"
189
177
 
190
- // initialize mitt on VueBus for flashes support
191
- window.VueBus = Mitt()
192
-
193
178
  // initialize the app
194
179
  const app = createApp(App)
195
180
 
@@ -285,20 +270,13 @@ export default {
285
270
  ```ts
286
271
  // main.ts
287
272
 
288
- // include the type interface for the Window global - includes Window.VueBus and Window.Flashes
289
- /// <reference types="@xy-planning-network/trees/types/global" />
290
-
291
273
  import Vue, { createApp } from "vue"
292
- import Mitt from "mitt"
293
274
  import App from "./App.vue"
294
275
  import TreesFormComponents from "./plugins/trees"
295
276
 
296
277
  // import your project's main stylesheet
297
278
  import "@/main.css"
298
279
 
299
- // initialize mitt on VueBus for event support
300
- window.VueBus = Mitt()
301
-
302
280
  // initialize the app
303
281
  const app = createApp(App)
304
282