Files Structure
├── node_modules/
├── package.json
├── package-lock.json
├── prettier.config.js
├── tsconfig.json
├── README.md
├── .editorconfig
└── src/
├── <YOUR_WIDGET>/
│ └── index.tsx
└── config.json
└── index.editor.ts
└── index.view.ts
The <YOUR_WIDGET>
directory contains all necessary files for your custom-built widget.
Files explanation
index.editor.ts
- houses the component's JavaScript logic executed within the editor environment.index.view.ts
- houses the component's JavaScript logic executed within the preview mode.config.json
- specifies the JavaScript and CSS files for both editor and preview modes.
??? De vazut daca e nevoie de descris toate field-urile din config.json
.
The remaining files are part of the standard Brizy third-party package structure.