-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide ability to detect Calcite version at runtime #8848
Comments
It would also be helpful to include a version comment in the distribution files. The Maps SDK includes the following in their files:
It would be useful to have a copyright and version like that in ours. Especially in the CSS files since they won't be able to log anything. |
@driskull We do provide similar info in the source files: https://unpkg.com/browse/@esri/calcite-components@2.6.0/dist/components/index.js As discussed in our triage session, we might be able to use a similar module or the global config to provide this at runtime. @geospatialem Is this needed for both the lazy-loaded ( |
Explored a few options: 1. component
|
Is this one a showstopper? Seems like it could be. 🤔 |
For that use case, quite possibly. 😞 Just an idea, but for that particular option, we could add a check for a global version and log a warning message with info on subsequent versions vs overriding. @dasa Is there an option that would work best from the Maps SDK perspective? FWIW, @geospatialem has reached out for more info regarding the original request. |
Probably 3 since the version the API is compiled against may not be the version that ends up getting used if the lazy-loaded script is used. |
[Belated] I think we could proceed w/ option 3 for the next milestone and consider option 1 if Stencil adds support for extending classes (or similar). |
**Related Issue:** #8848 ## Summary This updates the globalScript to stamp the version onto an existing global calciteConfig var and will create one if not defined.
Installed and assigned for verification. |
🍡 Verified locally on Any app using calcite should have access to the new |
Check existing issues
Description
To assist with client issue troubleshooting, the user is seeking to display the Esri JavaScript API version in a simple popup using something similar to the Maps SDK's Kernel.version.
Customers have applications that include a mapping experience with Maps SDK for JS and Calcite Design System and it is known that Calcite updates are independent of the JS updates. The enhancement request,
ENH-000165422
, would like to include the Calcite Design System version in the information window.Acceptance Criteria
Relevant Info
ENH-000165422 requested on 02/27/2024
Which Component
N/A - applies to the design system.
Example Use Case
For a user to check the current version of Esri libraries, similar to what is provided in the Maps SDK for JS with Kernel.version for Calcite, where an informational window can provide context to the Calcite version used.
Priority impact
p3 - want for upcoming milestone
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: