@bimdata/bcf-components 3.0.0-rc.4 → 3.0.0-rc.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.
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install @bimdata/bcf-components
15
15
  Then refer to the next sub-sections on how to use the library depending
16
16
  on which version of Vue you're using.
17
17
 
18
- ### Vue 2.7+ application
18
+ ### Vue 2.7 application
19
19
 
20
20
  **Note:** the library won't work as expected for versions of Vue below **2.7**.
21
21
 
@@ -76,15 +76,16 @@ To setup the library without the use of the plugin you have to provide your own
76
76
  (as described above in the *Using Vue plugin* section) and inject an API client like so:
77
77
 
78
78
  ```js
79
- import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client";
80
- // Import the `setApiClient` function
81
- import { setApiClient } from "@bimdata/bcf-components";
79
+ import { makeBIMDataApiClient } from "@bimdata/typescript-fetch-api-client"; // v8.2+
80
+ // Import `createService` and `setService` utils
81
+ import { createService, setService } from "@bimdata/bcf-components";
82
82
 
83
- // Instanciate BIMData API client (v8.2+)
83
+ // Instanciate BIMData API client
84
84
  const apiClient = makeBIMDataApiClient({ ... });
85
85
 
86
- // Inject API client
87
- setApiClient(apiClient);
86
+ // Initialize library service
87
+ const service = createService(apiClient);
88
+ setService(service);
88
89
  ```
89
90
 
90
91
  Then you can directly use components in your app that way: