# Page Builder

This package provides functionality for a CMS-like page builder in Laravel. It includes tools for managing pages and their content, offering a seamless experience for developers and end-users.

## Features

- Integration with Vue 3 for modern frontend development.
- Pre-built components like `PageBuilder`, `SlideEdit`, and `PageRender`.

## Installation

You can install the package via `pnpm`:

```bash
pnpm install @dcodegroup-au/page-builder
```

## Usage

### Importing Components

To use the components in your Vue 3 application, import them as follows:

```javascript
import { createApp } from 'vue'

import App from './App.vue'
import { PageBuilder, SlideEdit, PageRender } from '@dcodegroup-au/page-builder'
import '@dcodegroup-au/page-builder/dist/page-builder.css'

const app = createApp(App)
app.component('SlideEdit', SlideEdit)
app.component('PageBuilder', PageBuilder)
app.component('PageRender', PageRender)

app.mount('#app')
```

### Example Application

You can run the example application included in the repository:

```bash
cd example
pnpm run dev
```

## Development

### Building the Package

To build the package, run:

```bash
pnpm run build
```

## Publishing

This package is automatically published to the NPM registry when changes are pushed to the `main` branch. The publishing process is handled by a GitHub Actions workflow.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request on the [GitHub repository](https://github.com/DCODE-GROUP/page-builder).

## License

This package is licensed under the ISC License. See the [LICENSE](LICENSE) file for more details.

## Support

For issues or feature requests, please visit the [GitHub Issues page](https://github.com/DCODE-GROUP/page-builder/issues).
```