2.1.6 • Published 2 years ago
@yext/custom-field-debugger v2.1.6
Custom Field Debugger
Custom Field Debugger works on Yext pages to markup and highlight HTML elements which use data from Yext Knowledge Graph
Usage
On a Yext pages site, install the NPM package:
npm install @yext/custom-field-debugger@latestThen, use the React component, for example:
// src/layouts/main.tsx
import { CustomFieldDebuggerReactProvider } from '@yext/custom-field-debugger';
...
const Main = (props) => {
return (
<CustomFieldDebuggerReactProvider pageProps={props} component={MainInternal}>
<MainInternal />
</CustomFieldDebuggerReactProvider>
)
}
const MainInternal = (props) => {
return (
// Template to render page here
)
}On the page rendered with this template, you can add the URL parameter yextCFDebug=true to enable the Custom Field Debugger.
Development
- Make some changes to the repo.
- Add
"@yext/custom-field-debugger": "file:../custom-field-debugger",topackage.jsonto load your changes locally into a repo for testing. npm run releasein this repo to build the TS files, and generate the TS typesnpm installin the testing repo to fetch the newly built files
Deployment
- Make & commit changes - don't forget to increment the version number
npm run relaseto compile TS to JS, and generate TS typesnpm publishto update the package on npmjs
Common issues (?)
- The version of
reactandreact-domin this repo must match that of the pages repo this package is used in
2.1.2
2 years ago
2.1.1
2 years ago
2.1.4
2 years ago
2.1.3
2 years ago
2.1.6
2 years ago
2.1.5
2 years ago
2.1.0
2 years ago
2.0.9
3 years ago
2.0.8
3 years ago
2.0.7
3 years ago
2.0.6
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago