-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: onboard @carbon/ibmdotcom-react to IBM Telemetry 🚀 (#11507)
Adds config file and dependency necessary to start tracking telemetry data via [IBM Telemetry](https://github.com/ibm-telemetry/telemetry-js) **New** - Adds @ibm/telemetry-js dependency - Adds [telemetry.yml](packages/react/telemetry.yml) config file - This file was generated using [IBM Telemetry automated config generator](ibm-telemetry/telemetry-js-config-generator#1) **Changed** - Updates readme telemetry disclosure - Updates postinstall script to use IBM telemetry command - Include `telemetry.yml` in package.json files config **Removed** - Removes `@carbon/telemetry` dependency Please look through [telemetry.yml](packages/react/telemetry.yml) config file and ensure desired props/values have been captured. For more info see [Telemetry Config Schema](https://github.com/ibm-telemetry/telemetry-config-schema?tab=readme-ov-file#jsx-scope) **PLEASE NOTE:** In order for IBM Telemetry to start collecting data for these projects, a new build must be published including these changes.
- Loading branch information
1 parent
0d3f685
commit 3b07994
Showing
8 changed files
with
331 additions
and
5 deletions.
There are no files selected for viewing
Binary file added
BIN
+225 KB
.yarn/cache/@carbon-ibmdotcom-services-npm-1.54.0-ad1ee8ddb8-0370f56b68.zip
Binary file not shown.
Binary file added
BIN
+218 KB
.yarn/cache/@carbon-ibmdotcom-styles-npm-1.54.0-41a55af16d-56652977ca.zip
Binary file not shown.
Binary file added
BIN
+157 KB
.yarn/cache/@carbon-ibmdotcom-utilities-npm-1.54.0-e8ad769e3a-45606730a2.zip
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,307 @@ | ||
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json | ||
|
||
version: 1 | ||
projectId: 15981afa-f735-4515-b4e2-a09b37cb72f6 | ||
endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics | ||
collect: | ||
jsx: | ||
elements: | ||
allowedAttributeNames: | ||
# General | ||
- adjunctLinks | ||
- alt | ||
- aside | ||
- backButtonText | ||
- border | ||
- buttons | ||
- card | ||
- cards | ||
- children | ||
- className | ||
- copy | ||
- cta | ||
- customClassName | ||
- customProfileLogin | ||
- disabled | ||
- disableLocaleButton | ||
- eyebrow | ||
- formatCTAcopy | ||
- heading | ||
- href | ||
- iconPlacement | ||
- image | ||
- initialSearchTerm | ||
- inverse | ||
- isActive | ||
- isSearchActive | ||
- isSideNavExpanded | ||
- items | ||
- labelText | ||
- links | ||
- media | ||
- mediaData | ||
- mediaType | ||
- menuItems | ||
- menuLabel | ||
- navigation | ||
- onBackClick | ||
- onClick | ||
- onClose | ||
- openLightBox | ||
- pictogram | ||
- placeHolderText | ||
- platform | ||
- playingMode | ||
- regionList | ||
- renderLightBox | ||
- searchOpenOnload | ||
- selectedId | ||
- setClearResults | ||
- size | ||
- stickyOffset | ||
- style | ||
- theme | ||
- thumbnail | ||
- title | ||
- type | ||
- videoId | ||
- videoTitle | ||
# BPIDLegalText | ||
- bpidLegalText | ||
# ButtonCTA | ||
- setMediaData | ||
# CalloutQuote | ||
- quote | ||
# Card | ||
- cardStatic | ||
- light | ||
# CardCTA | ||
- disableImage | ||
# CardGroup | ||
- cardsPerRow | ||
# CategoryLink | ||
- highlighted | ||
# Content | ||
- withL1 | ||
# ContentSection | ||
- childrenCustomClassName | ||
# CTA | ||
- customVideoTitle | ||
# DotcomShell | ||
- footerProps | ||
- mastheadProps | ||
# ExpressiveModal | ||
- fullwidth | ||
- open | ||
# ExpressiveModalCloseBtn | ||
- btnClassName | ||
- iconClassName | ||
- iconDescription | ||
# Footer | ||
- langCode | ||
- languageCallback | ||
- languageInitialItem | ||
- languageItems | ||
- languageOnly | ||
# FooterNav | ||
- groups | ||
# HorizontalRule | ||
- contrast | ||
- weight | ||
# IbmLogo | ||
- autoid | ||
- logoData | ||
# Image | ||
- classname | ||
- defaultSrc | ||
- icon | ||
- longDescription | ||
- refImage | ||
- sources | ||
# ImageWithCaption | ||
- lightbox | ||
# LanguageSelector | ||
- callback | ||
- initialSelectedItem | ||
# Layout | ||
- marginBottom | ||
- marginTop | ||
- nested | ||
# LeadspaceWithSearch | ||
- searchProps | ||
# LegalNav | ||
- button | ||
# LinkWithIcon | ||
- iconInline | ||
# LocaleButton | ||
- aria | ||
- displayLang | ||
# LocaleModal | ||
- closeFunc | ||
- isOpen | ||
- localeData | ||
- localeDisplay | ||
- setIsOpen | ||
# LocaleModalCountries | ||
- currentRegion | ||
- searchLabel | ||
# LocaleModalRegions | ||
- closeModalLabel | ||
- returnButtonLabel | ||
- setCurrentRegion | ||
- setIsFiltering | ||
# LogoGrid | ||
- ctaCopy | ||
- ctaHref | ||
- hideBorder | ||
- logosGroup | ||
# Masthead | ||
- customTypeaheadApi | ||
- hasProfile | ||
- hasSearch | ||
- mastheadL1Data | ||
- multiSection | ||
- selectedMenuItem | ||
# MastheadL1 | ||
- navigationL1 | ||
- titleLink | ||
# MastheadProfile | ||
- overflowMenuItemProps | ||
- overflowMenuProps | ||
- profileMenu | ||
# MastheadSearch | ||
- navType | ||
- onChangeSearchActive | ||
- renderValue | ||
# MastheadSearchInput | ||
- componentInputProps | ||
- disableFocus | ||
- dispatch | ||
- searchIconClick | ||
# MastheadSearchSuggestion | ||
- getSuggestionValue | ||
- isHighlighted | ||
- query | ||
- suggestion | ||
# MegaMenu | ||
- data | ||
# Quote | ||
- markType | ||
- source | ||
# RightNavigation | ||
- hasHighlights | ||
- viewAllLinkHref | ||
- viewAllLinkTitle | ||
# ScrollAnimations | ||
- animation | ||
- keepAnimations | ||
- selectorTargets | ||
# SideNavIcon | ||
- small | ||
# SideNavMenu | ||
- defaultExpanded | ||
- isbackbutton | ||
- large | ||
- onToggle | ||
- renderIcon | ||
# SideNavMenuSection | ||
- show | ||
# SideNavMenuWithBackForward | ||
- titleUrl | ||
# TableOfContents | ||
- headingContent | ||
- menuRule | ||
# TOCMobile | ||
- updateState | ||
# VideoImageOverlay | ||
- embedVideo | ||
- videoData | ||
# VideoPlayer | ||
- aspectRatio | ||
- autoPlay | ||
- caption | ||
- showCaption | ||
# React | ||
- key | ||
- ref | ||
allowedAttributeStringValues: | ||
# General - iconPlacement | ||
- left | ||
- right | ||
# General - mediaType | ||
- image | ||
- video | ||
# General - playingMode | ||
- inline | ||
- lightbox | ||
# General - size | ||
- fluid | ||
- large | ||
- medium | ||
- small | ||
- super | ||
- tall | ||
# General - style | ||
- button | ||
- card | ||
- feature | ||
- horizontal | ||
- text | ||
- vertical | ||
- vertical-end | ||
# General - theme | ||
- g10 | ||
- g100 | ||
- g90 | ||
- white | ||
# General - type | ||
- 1-3 | ||
- 2-1 | ||
- centered | ||
- dashed | ||
- default | ||
- download | ||
- external | ||
- jump | ||
- left | ||
- local | ||
- micro | ||
- short | ||
- solid | ||
- video | ||
# HorizontalRule - contrast | ||
- high-contrast | ||
- low-contrast | ||
- medium-contrast | ||
# HorizontalRule - weight | ||
- thick | ||
- thin | ||
# Layout - marginBottom | ||
- layout-01 | ||
- layout-02 | ||
- layout-03 | ||
- layout-04 | ||
- layout-05 | ||
- layout-06 | ||
- layout-07 | ||
# Layout - marginTop | ||
- layout-01 | ||
- layout-02 | ||
- layout-03 | ||
- layout-04 | ||
- layout-05 | ||
- layout-06 | ||
- layout-07 | ||
# MastheadSearch - navType | ||
- alt | ||
- default | ||
- eco | ||
# Quote - markType | ||
- cornerBracket | ||
- doubleAngle | ||
- doubleCurved | ||
- lowHighReversedDoubleCurved | ||
- singleAngle | ||
- singleCurved | ||
npm: | ||
dependencies: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters