@whitedigital-eu/wd-frontend-shared

Shared components, helpers, composables and types for vue frontend SPAs
6,513
Install
npm install @whitedigital-eu/wd-frontend-shared
Latest Version:0.15.6
Vue:3
License:MIT
Last Updated:Aug 5, 2025
Links: GitHub  ·  npm
Maintainer: vairogs

frontend-shared

Shared components, helpers, composables and types for vue frontend SPAs that use a Midone theme (e.g. enigma) and API platform powered API

Publishing

This package uses GitHub Actions for automated versioning and publishing to npm. The workflow can be triggered in two ways:

  1. Commit Message Tags: When pushing to the main branch with specific version bump tags in your commit message:

    • [major]: Bumps the major version (e.g., 1.0.0 → 2.0.0)
    • [minor]: Bumps the minor version (e.g., 1.0.0 → 1.1.0)
    • [patch]: Bumps the patch version (e.g., 1.0.0 → 1.0.1)
  2. Manual Workflow Dispatch: You can manually trigger the workflow from GitHub Actions and specify the release type (patch, minor, major).

When the workflow runs, it will:

  1. Automatically bump the version according to the specified type
  2. Run tests to ensure everything works
  3. Build the package
  4. Publish to npm with public access
  5. Push the version changes back to the repository
  6. Create a GitHub release

Note: Commits without specific version tags will still trigger the publishing process but will create a prerelease version with a beta tag (e.g., 1.0.0-beta.0). These prerelease versions are published to npm with the next tag instead of latest.

Example commit messages:

feat: add new component [minor]
fix: resolve bug in existing component [patch]
BREAKING CHANGE: refactor API [major]

Usage

This package can only be used in an ES module environment. Moreover, since the package exports .vue files, the consuming app should be able to process .vue files.

Installation

Npm: npm i wd-frontend-shared

Yarn: npm add wd-frontend-shared

Pnpm: pnpm add wd-frontend-shared

Setup tailwind config

Your tailwind config should look something like this:

// tailwind.config.js
module.exports = {
    content: [
        // other routes
        './node_modules/@left4code/tw-starter/**/*.js',
        './node_modules/wd-frontend-shared/**/*.vue',
    ]
    // other properties
}

Now you can import and use the components and functions from this library. Refer to library folder structure.

Components

For component usage examples see example all in /src/example

Input components

A complete list of components for any kind of data input. Most input components have 3 props in common:

  1. modelValue: the value provided to component via v-model
  2. label: string: the label of the input
  3. readonly: boolean: should the input be readonly

Some components which depend on other external libraries need to have a unique ID.

All components emit event update:modelValue which updates the value of the property provided via v-model. Some components emit other events as well, see each component definition.

HTML content editor (for CMS)

In order for elfinder to work, jquery, jqueryUI and elfinder must be loaded globally (see index.html)

Related Packages

wd-frontend-shared

Shared components, helpers, composables and types for vue frontend SPAs

11,163 0
pckg-app-frontend

Frontend pckg package

5,788 0
@nlo/nuxt-common

Nuxt3 layer for the common user interface of NLO lottery websites

12,245
@viridial/shared

Shared modules for Real Estate frontend applications - Vue 3, TypeScript, Pinia,...

11,575
@arijs/frontend

Front-end utilities and patterns, components for use with VueJS

10,037 0

Version History

Version Released Vue License
0.15.6 ^3.5.13 MIT
0.15.5 ^3.5.13 MIT
0.15.4 ^3.5.13 MIT
0.15.3 ^3.3.0 MIT
0.15.2 ^3.3.0 MIT
Pre-releases (2)
Version Released Vue License
0.15.7-beta.6 ^3.5.13 MIT
0.15.7-beta.5 ^3.5.13 MIT