persona-community-5/.pnpm-store/v3/files/50/978ae40c941cb1a86c5b841d60a60d7e626ab6b6d8634957084f40e7c20d43a8e891ebf9527fe4e3fd6947eb11b9b90b65268c2c69f4439d648c639884a917
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

88 lines
3.0 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.feedbackConfigSchema = exports.optionalEmailSettings = exports.reasonsSettings = void 0;
const reasonsBaseProperties = {
hide: {
type: 'boolean',
default: false,
},
component: {
type: 'string',
enum: ['radio', 'checkbox'],
default: 'checkbox',
},
label: { type: 'string' },
items: { type: 'array', items: { type: 'string' } },
};
exports.reasonsSettings = {
type: 'object',
properties: reasonsBaseProperties,
additionalProperties: false,
};
exports.optionalEmailSettings = {
type: 'object',
properties: {
hide: {
type: 'boolean',
default: false,
},
label: { type: 'string' },
placeholder: { type: 'string' },
},
additionalProperties: false,
};
exports.feedbackConfigSchema = {
type: 'object',
properties: {
hide: {
type: 'boolean',
default: false,
},
type: {
type: 'string',
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'],
default: 'sentiment',
},
settings: {
type: 'object',
properties: {
label: { type: 'string' },
submitText: { type: 'string' },
buttonText: { type: 'string' },
component: {
type: 'string',
enum: ['radio', 'checkbox'],
default: 'checkbox',
},
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
leftScaleLabel: { type: 'string' },
rightScaleLabel: { type: 'string' },
reasons: {
type: 'object',
properties: Object.assign(Object.assign({}, reasonsBaseProperties), { like: exports.reasonsSettings, dislike: exports.reasonsSettings, satisfied: exports.reasonsSettings, neutral: exports.reasonsSettings, dissatisfied: exports.reasonsSettings }),
additionalProperties: false,
},
comment: {
type: 'object',
properties: {
hide: {
type: 'boolean',
default: false,
},
label: { type: 'string' },
likeLabel: { type: 'string' },
dislikeLabel: { type: 'string' },
satisfiedLabel: { type: 'string' },
neutralLabel: { type: 'string' },
dissatisfiedLabel: { type: 'string' },
},
additionalProperties: false,
},
optionalEmail: exports.optionalEmailSettings,
},
additionalProperties: false,
},
},
additionalProperties: false,
};
//# sourceMappingURL=feedback-config-schema.js.map