cbrowser 16.7.2 → 16.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +52 -7
- package/dist/browser.js.map +1 -1
- package/dist/cognitive/index.d.ts.map +1 -1
- package/dist/cognitive/index.js +22 -0
- package/dist/cognitive/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server-remote.d.ts.map +1 -1
- package/dist/mcp-server-remote.js +14 -8
- package/dist/mcp-server-remote.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +14 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/personas.d.ts.map +1 -1
- package/dist/personas.js +17 -2
- package/dist/personas.js.map +1 -1
- package/dist/testing/nl-test-suite.d.ts +2 -0
- package/dist/testing/nl-test-suite.d.ts.map +1 -1
- package/dist/testing/nl-test-suite.js +38 -1
- package/dist/testing/nl-test-suite.js.map +1 -1
- package/dist/values/index.d.ts +14 -0
- package/dist/values/index.d.ts.map +1 -0
- package/dist/values/index.js +17 -0
- package/dist/values/index.js.map +1 -0
- package/dist/values/persona-values.d.ts +36 -0
- package/dist/values/persona-values.d.ts.map +1 -0
- package/dist/values/persona-values.js +343 -0
- package/dist/values/persona-values.js.map +1 -0
- package/dist/values/schwartz-values.d.ts +207 -0
- package/dist/values/schwartz-values.d.ts.map +1 -0
- package/dist/values/schwartz-values.js +130 -0
- package/dist/values/schwartz-values.js.map +1 -0
- package/dist/values/value-mappings.d.ts +97 -0
- package/dist/values/value-mappings.d.ts.map +1 -0
- package/dist/values/value-mappings.js +520 -0
- package/dist/values/value-mappings.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Value Profiles for Built-in Personas
|
|
3
|
+
*
|
|
4
|
+
* Assigns Schwartz value profiles to each persona, enabling
|
|
5
|
+
* prediction of behavioral tendencies and influence susceptibility.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*/
|
|
10
|
+
import { createPersonaValues } from "./schwartz-values.js";
|
|
11
|
+
/**
|
|
12
|
+
* Value profiles for all built-in personas.
|
|
13
|
+
* These extend the existing cognitive trait profiles with motivational depth.
|
|
14
|
+
*/
|
|
15
|
+
export const PERSONA_VALUE_PROFILES = [
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// UX Personas (Public)
|
|
18
|
+
// ============================================================================
|
|
19
|
+
{
|
|
20
|
+
personaName: "power-user",
|
|
21
|
+
values: createPersonaValues({
|
|
22
|
+
selfDirection: 0.9,
|
|
23
|
+
stimulation: 0.7,
|
|
24
|
+
hedonism: 0.4,
|
|
25
|
+
achievement: 0.8,
|
|
26
|
+
power: 0.5,
|
|
27
|
+
security: 0.3,
|
|
28
|
+
conformity: 0.2,
|
|
29
|
+
tradition: 0.2,
|
|
30
|
+
benevolence: 0.4,
|
|
31
|
+
universalism: 0.4,
|
|
32
|
+
}, {
|
|
33
|
+
autonomyNeed: 0.9,
|
|
34
|
+
competenceNeed: 0.8,
|
|
35
|
+
relatednessNeed: 0.4,
|
|
36
|
+
}, "esteem"),
|
|
37
|
+
rationale: "Expert users value autonomy and achievement, comfortable with risk",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
personaName: "first-timer",
|
|
41
|
+
values: createPersonaValues({
|
|
42
|
+
selfDirection: 0.3,
|
|
43
|
+
stimulation: 0.4,
|
|
44
|
+
hedonism: 0.5,
|
|
45
|
+
achievement: 0.5,
|
|
46
|
+
power: 0.3,
|
|
47
|
+
security: 0.8,
|
|
48
|
+
conformity: 0.7,
|
|
49
|
+
tradition: 0.5,
|
|
50
|
+
benevolence: 0.5,
|
|
51
|
+
universalism: 0.5,
|
|
52
|
+
}, {
|
|
53
|
+
autonomyNeed: 0.4,
|
|
54
|
+
competenceNeed: 0.7,
|
|
55
|
+
relatednessNeed: 0.6,
|
|
56
|
+
}, "safety"),
|
|
57
|
+
rationale: "New users need guidance and reassurance, value security",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
personaName: "elderly-user",
|
|
61
|
+
values: createPersonaValues({
|
|
62
|
+
selfDirection: 0.4,
|
|
63
|
+
stimulation: 0.2,
|
|
64
|
+
hedonism: 0.4,
|
|
65
|
+
achievement: 0.4,
|
|
66
|
+
power: 0.3,
|
|
67
|
+
security: 0.9,
|
|
68
|
+
conformity: 0.7,
|
|
69
|
+
tradition: 0.8,
|
|
70
|
+
benevolence: 0.7,
|
|
71
|
+
universalism: 0.6,
|
|
72
|
+
}, {
|
|
73
|
+
autonomyNeed: 0.5,
|
|
74
|
+
competenceNeed: 0.6,
|
|
75
|
+
relatednessNeed: 0.7,
|
|
76
|
+
}, "safety"),
|
|
77
|
+
rationale: "Older users value tradition, security, and familiar patterns",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
personaName: "mobile-user",
|
|
81
|
+
values: createPersonaValues({
|
|
82
|
+
selfDirection: 0.5,
|
|
83
|
+
stimulation: 0.6,
|
|
84
|
+
hedonism: 0.6,
|
|
85
|
+
achievement: 0.6,
|
|
86
|
+
power: 0.4,
|
|
87
|
+
security: 0.4,
|
|
88
|
+
conformity: 0.5,
|
|
89
|
+
tradition: 0.3,
|
|
90
|
+
benevolence: 0.5,
|
|
91
|
+
universalism: 0.5,
|
|
92
|
+
}, {
|
|
93
|
+
autonomyNeed: 0.6,
|
|
94
|
+
competenceNeed: 0.5,
|
|
95
|
+
relatednessNeed: 0.6,
|
|
96
|
+
}, "esteem"),
|
|
97
|
+
rationale: "Mobile users balance efficiency with on-the-go constraints",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
personaName: "distracted-user",
|
|
101
|
+
values: createPersonaValues({
|
|
102
|
+
selfDirection: 0.5,
|
|
103
|
+
stimulation: 0.7,
|
|
104
|
+
hedonism: 0.5,
|
|
105
|
+
achievement: 0.5,
|
|
106
|
+
power: 0.4,
|
|
107
|
+
security: 0.4,
|
|
108
|
+
conformity: 0.5,
|
|
109
|
+
tradition: 0.4,
|
|
110
|
+
benevolence: 0.5,
|
|
111
|
+
universalism: 0.5,
|
|
112
|
+
}, {
|
|
113
|
+
autonomyNeed: 0.5,
|
|
114
|
+
competenceNeed: 0.5,
|
|
115
|
+
relatednessNeed: 0.5,
|
|
116
|
+
}, "esteem"),
|
|
117
|
+
rationale: "Distracted users are stimulation-seeking but time-constrained",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
personaName: "impatient-user",
|
|
121
|
+
values: createPersonaValues({
|
|
122
|
+
selfDirection: 0.6,
|
|
123
|
+
stimulation: 0.7,
|
|
124
|
+
hedonism: 0.4,
|
|
125
|
+
achievement: 0.8,
|
|
126
|
+
power: 0.5,
|
|
127
|
+
security: 0.3,
|
|
128
|
+
conformity: 0.3,
|
|
129
|
+
tradition: 0.2,
|
|
130
|
+
benevolence: 0.4,
|
|
131
|
+
universalism: 0.4,
|
|
132
|
+
}, {
|
|
133
|
+
autonomyNeed: 0.7,
|
|
134
|
+
competenceNeed: 0.7,
|
|
135
|
+
relatednessNeed: 0.3,
|
|
136
|
+
}, "esteem"),
|
|
137
|
+
rationale: "Impatient users prioritize achievement and efficiency over process",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
personaName: "careful-reader",
|
|
141
|
+
values: createPersonaValues({
|
|
142
|
+
selfDirection: 0.5,
|
|
143
|
+
stimulation: 0.3,
|
|
144
|
+
hedonism: 0.4,
|
|
145
|
+
achievement: 0.5,
|
|
146
|
+
power: 0.3,
|
|
147
|
+
security: 0.8,
|
|
148
|
+
conformity: 0.6,
|
|
149
|
+
tradition: 0.6,
|
|
150
|
+
benevolence: 0.5,
|
|
151
|
+
universalism: 0.5,
|
|
152
|
+
}, {
|
|
153
|
+
autonomyNeed: 0.5,
|
|
154
|
+
competenceNeed: 0.7,
|
|
155
|
+
relatednessNeed: 0.5,
|
|
156
|
+
}, "safety"),
|
|
157
|
+
rationale: "Careful readers value security and take time to understand",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
personaName: "explorer",
|
|
161
|
+
values: createPersonaValues({
|
|
162
|
+
selfDirection: 0.9,
|
|
163
|
+
stimulation: 0.9,
|
|
164
|
+
hedonism: 0.6,
|
|
165
|
+
achievement: 0.5,
|
|
166
|
+
power: 0.4,
|
|
167
|
+
security: 0.2,
|
|
168
|
+
conformity: 0.2,
|
|
169
|
+
tradition: 0.2,
|
|
170
|
+
benevolence: 0.5,
|
|
171
|
+
universalism: 0.6,
|
|
172
|
+
}, {
|
|
173
|
+
autonomyNeed: 0.9,
|
|
174
|
+
competenceNeed: 0.6,
|
|
175
|
+
relatednessNeed: 0.4,
|
|
176
|
+
}, "self-actualization"),
|
|
177
|
+
rationale: "Explorers are driven by curiosity and openness to new experiences",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
personaName: "task-focused",
|
|
181
|
+
values: createPersonaValues({
|
|
182
|
+
selfDirection: 0.5,
|
|
183
|
+
stimulation: 0.3,
|
|
184
|
+
hedonism: 0.3,
|
|
185
|
+
achievement: 0.9,
|
|
186
|
+
power: 0.4,
|
|
187
|
+
security: 0.5,
|
|
188
|
+
conformity: 0.5,
|
|
189
|
+
tradition: 0.5,
|
|
190
|
+
benevolence: 0.4,
|
|
191
|
+
universalism: 0.4,
|
|
192
|
+
}, {
|
|
193
|
+
autonomyNeed: 0.5,
|
|
194
|
+
competenceNeed: 0.9,
|
|
195
|
+
relatednessNeed: 0.3,
|
|
196
|
+
}, "esteem"),
|
|
197
|
+
rationale: "Task-focused users prioritize achievement and competence above all",
|
|
198
|
+
},
|
|
199
|
+
// ============================================================================
|
|
200
|
+
// Accessibility Personas (Public)
|
|
201
|
+
// ============================================================================
|
|
202
|
+
{
|
|
203
|
+
personaName: "motor-tremor",
|
|
204
|
+
values: createPersonaValues({
|
|
205
|
+
selfDirection: 0.5,
|
|
206
|
+
stimulation: 0.3,
|
|
207
|
+
hedonism: 0.4,
|
|
208
|
+
achievement: 0.5,
|
|
209
|
+
power: 0.3,
|
|
210
|
+
security: 0.7,
|
|
211
|
+
conformity: 0.5,
|
|
212
|
+
tradition: 0.5,
|
|
213
|
+
benevolence: 0.6,
|
|
214
|
+
universalism: 0.6,
|
|
215
|
+
}, {
|
|
216
|
+
autonomyNeed: 0.7,
|
|
217
|
+
competenceNeed: 0.6,
|
|
218
|
+
relatednessNeed: 0.5,
|
|
219
|
+
}, "safety"),
|
|
220
|
+
rationale: "Motor impairment increases need for security and patience",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
personaName: "low-vision",
|
|
224
|
+
values: createPersonaValues({
|
|
225
|
+
selfDirection: 0.5,
|
|
226
|
+
stimulation: 0.3,
|
|
227
|
+
hedonism: 0.4,
|
|
228
|
+
achievement: 0.5,
|
|
229
|
+
power: 0.3,
|
|
230
|
+
security: 0.7,
|
|
231
|
+
conformity: 0.5,
|
|
232
|
+
tradition: 0.5,
|
|
233
|
+
benevolence: 0.6,
|
|
234
|
+
universalism: 0.6,
|
|
235
|
+
}, {
|
|
236
|
+
autonomyNeed: 0.7,
|
|
237
|
+
competenceNeed: 0.5,
|
|
238
|
+
relatednessNeed: 0.6,
|
|
239
|
+
}, "safety"),
|
|
240
|
+
rationale: "Vision impairment increases reliance on familiar patterns",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
personaName: "adhd",
|
|
244
|
+
values: createPersonaValues({
|
|
245
|
+
selfDirection: 0.6,
|
|
246
|
+
stimulation: 0.9,
|
|
247
|
+
hedonism: 0.6,
|
|
248
|
+
achievement: 0.5,
|
|
249
|
+
power: 0.4,
|
|
250
|
+
security: 0.3,
|
|
251
|
+
conformity: 0.3,
|
|
252
|
+
tradition: 0.2,
|
|
253
|
+
benevolence: 0.5,
|
|
254
|
+
universalism: 0.5,
|
|
255
|
+
}, {
|
|
256
|
+
autonomyNeed: 0.6,
|
|
257
|
+
competenceNeed: 0.5,
|
|
258
|
+
relatednessNeed: 0.5,
|
|
259
|
+
}, "esteem"),
|
|
260
|
+
rationale: "ADHD profile shows high stimulation-seeking, low patience for routine",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
personaName: "color-blind",
|
|
264
|
+
values: createPersonaValues({
|
|
265
|
+
selfDirection: 0.5,
|
|
266
|
+
stimulation: 0.5,
|
|
267
|
+
hedonism: 0.5,
|
|
268
|
+
achievement: 0.5,
|
|
269
|
+
power: 0.5,
|
|
270
|
+
security: 0.5,
|
|
271
|
+
conformity: 0.5,
|
|
272
|
+
tradition: 0.5,
|
|
273
|
+
benevolence: 0.5,
|
|
274
|
+
universalism: 0.5,
|
|
275
|
+
}, {
|
|
276
|
+
autonomyNeed: 0.5,
|
|
277
|
+
competenceNeed: 0.5,
|
|
278
|
+
relatednessNeed: 0.5,
|
|
279
|
+
}, "esteem"),
|
|
280
|
+
rationale: "Color blindness doesn't affect motivational values (neutral profile)",
|
|
281
|
+
},
|
|
282
|
+
// ============================================================================
|
|
283
|
+
// Emotional Personas (Public)
|
|
284
|
+
// ============================================================================
|
|
285
|
+
{
|
|
286
|
+
personaName: "anxious-user",
|
|
287
|
+
values: createPersonaValues({
|
|
288
|
+
selfDirection: 0.3,
|
|
289
|
+
stimulation: 0.2,
|
|
290
|
+
hedonism: 0.4,
|
|
291
|
+
achievement: 0.4,
|
|
292
|
+
power: 0.2,
|
|
293
|
+
security: 0.95,
|
|
294
|
+
conformity: 0.8,
|
|
295
|
+
tradition: 0.7,
|
|
296
|
+
benevolence: 0.6,
|
|
297
|
+
universalism: 0.5,
|
|
298
|
+
}, {
|
|
299
|
+
autonomyNeed: 0.3,
|
|
300
|
+
competenceNeed: 0.6,
|
|
301
|
+
relatednessNeed: 0.7,
|
|
302
|
+
}, "safety"),
|
|
303
|
+
rationale: "Anxiety drives extreme security-seeking and conformity",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
personaName: "confident-user",
|
|
307
|
+
values: createPersonaValues({
|
|
308
|
+
selfDirection: 0.8,
|
|
309
|
+
stimulation: 0.6,
|
|
310
|
+
hedonism: 0.5,
|
|
311
|
+
achievement: 0.8,
|
|
312
|
+
power: 0.6,
|
|
313
|
+
security: 0.3,
|
|
314
|
+
conformity: 0.3,
|
|
315
|
+
tradition: 0.3,
|
|
316
|
+
benevolence: 0.5,
|
|
317
|
+
universalism: 0.5,
|
|
318
|
+
}, {
|
|
319
|
+
autonomyNeed: 0.8,
|
|
320
|
+
competenceNeed: 0.8,
|
|
321
|
+
relatednessNeed: 0.4,
|
|
322
|
+
}, "esteem"),
|
|
323
|
+
rationale: "Confidence enables self-direction and risk-taking",
|
|
324
|
+
},
|
|
325
|
+
];
|
|
326
|
+
/**
|
|
327
|
+
* Lookup value profile by persona name.
|
|
328
|
+
* @param personaName Name of the persona
|
|
329
|
+
* @returns PersonaValues or undefined if not found
|
|
330
|
+
*/
|
|
331
|
+
export function getPersonaValues(personaName) {
|
|
332
|
+
const profile = PERSONA_VALUE_PROFILES.find((p) => p.personaName.toLowerCase() === personaName.toLowerCase());
|
|
333
|
+
return profile?.values;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Check if a persona has a value profile defined.
|
|
337
|
+
* @param personaName Name of the persona
|
|
338
|
+
* @returns true if values are defined
|
|
339
|
+
*/
|
|
340
|
+
export function hasPersonaValues(personaName) {
|
|
341
|
+
return PERSONA_VALUE_PROFILES.some((p) => p.personaName.toLowerCase() === personaName.toLowerCase());
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=persona-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persona-values.js","sourceRoot":"","sources":["../../src/values/persona-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO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,EAAE,GAAG;SAClB,EACD;YACE,YAAY,EAAE,GAAG;YACjB,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,GAAG;SACrB,EACD,QAAQ,CACT;QACD,SAAS,EAAE,wDAAwD;KACpE;IACD;QACE,WAAW,EAAE,gBAAgB;QAC7B,MAAM,EAAE,mBAAmB,CACzB;YACE,aAAa,EAAE,GAAG;YAClB,WAAW,EAAE,GAAG;YAChB,QAAQ,EAAE,GAAG;YACb,WAAW,EAAE,GAAG;YAChB,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,GAAG;YACb,UAAU,EAAE,GAAG;YACf,SAAS,EAAE,GAAG;YACd,WAAW,EAAE,GAAG;YAChB,YAAY,EAAE,GAAG;SAClB,EACD;YACE,YAAY,EAAE,GAAG;YACjB,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,GAAG;SACrB,EACD,QAAQ,CACT;QACD,SAAS,EAAE,mDAAmD;KAC/D;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAClD,MAAM,OAAO,GAAG,sBAAsB,CAAC,IAAI,CACzC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,CACjE,CAAC;IACF,OAAO,OAAO,EAAE,MAAM,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAClD,OAAO,sBAAsB,CAAC,IAAI,CAChC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,CACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schwartz's Theory of Basic Human Values
|
|
3
|
+
*
|
|
4
|
+
* Implements Schwartz's 10 universal values with research citations.
|
|
5
|
+
* This is the foundation for understanding WHO a persona is at a motivational level.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Schwartz, S.H. (1992). Universals in the content and structure of values.
|
|
12
|
+
* Advances in Experimental Social Psychology, 25, 1-65.
|
|
13
|
+
* DOI: 10.1016/S0065-2601(08)60281-6
|
|
14
|
+
*
|
|
15
|
+
* - Schwartz, S.H. (2012). An Overview of the Schwartz Theory of Basic Values.
|
|
16
|
+
* Online Readings in Psychology and Culture, 2(1).
|
|
17
|
+
* DOI: 10.9707/2307-0919.1116
|
|
18
|
+
*
|
|
19
|
+
* - Schwartz, S.H., & Bardi, A. (2001). Value hierarchies across cultures.
|
|
20
|
+
* Journal of Cross-Cultural Psychology, 32(3), 268-290.
|
|
21
|
+
*
|
|
22
|
+
* - Roccas, S., Sagiv, L., Schwartz, S.H., & Knafo, A. (2002). The big five
|
|
23
|
+
* personality factors and personal values. Personality and Social Psychology
|
|
24
|
+
* Bulletin, 28(6), 789-801.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Schwartz's 10 Universal Values
|
|
28
|
+
*
|
|
29
|
+
* These values are found across all cultures and represent fundamental
|
|
30
|
+
* motivational goals that guide human behavior.
|
|
31
|
+
*/
|
|
32
|
+
export interface SchwartzValues {
|
|
33
|
+
/**
|
|
34
|
+
* Self-Direction: Independent thought and action—choosing, creating, exploring.
|
|
35
|
+
* Derived from: Autonomy needs, control over environment
|
|
36
|
+
* Behavioral indicators: Explores options, resists defaults, customizes settings
|
|
37
|
+
*/
|
|
38
|
+
selfDirection: number;
|
|
39
|
+
/**
|
|
40
|
+
* Stimulation: Excitement, novelty, and challenge in life.
|
|
41
|
+
* Derived from: Need for variety, optimal arousal
|
|
42
|
+
* Behavioral indicators: Seeks new features, tries beta versions, clicks "what's new"
|
|
43
|
+
*/
|
|
44
|
+
stimulation: number;
|
|
45
|
+
/**
|
|
46
|
+
* Hedonism: Pleasure and sensuous gratification.
|
|
47
|
+
* Derived from: Pleasure-seeking behavior
|
|
48
|
+
* Behavioral indicators: Responds to aesthetics, seeks enjoyable experiences
|
|
49
|
+
*/
|
|
50
|
+
hedonism: number;
|
|
51
|
+
/**
|
|
52
|
+
* Achievement: Personal success through demonstrating competence.
|
|
53
|
+
* Derived from: Need for social approval, self-efficacy
|
|
54
|
+
* Behavioral indicators: Values efficiency, seeks metrics, focuses on ROI
|
|
55
|
+
*/
|
|
56
|
+
achievement: number;
|
|
57
|
+
/**
|
|
58
|
+
* Power: Social status, prestige, control over people and resources.
|
|
59
|
+
* Derived from: Dominance needs, status hierarchy
|
|
60
|
+
* Behavioral indicators: Attracted to premium branding, exclusive access, authority signals
|
|
61
|
+
*/
|
|
62
|
+
power: number;
|
|
63
|
+
/**
|
|
64
|
+
* Security: Safety, harmony, stability of society and self.
|
|
65
|
+
* Derived from: Uncertainty avoidance, threat protection
|
|
66
|
+
* Behavioral indicators: Risk-averse, seeks guarantees, needs trust signals
|
|
67
|
+
*/
|
|
68
|
+
security: number;
|
|
69
|
+
/**
|
|
70
|
+
* Conformity: Restraint of actions likely to upset or harm others.
|
|
71
|
+
* Derived from: Social norms, group cohesion
|
|
72
|
+
* Behavioral indicators: Follows social norms, influenced by reviews, seeks approval
|
|
73
|
+
*/
|
|
74
|
+
conformity: number;
|
|
75
|
+
/**
|
|
76
|
+
* Tradition: Respect for customs and ideas from culture or religion.
|
|
77
|
+
* Derived from: Group solidarity, cultural continuity
|
|
78
|
+
* Behavioral indicators: Prefers established brands, skeptical of new
|
|
79
|
+
*/
|
|
80
|
+
tradition: number;
|
|
81
|
+
/**
|
|
82
|
+
* Benevolence: Preserving and enhancing welfare of close others.
|
|
83
|
+
* Derived from: Prosocial behavior, in-group care
|
|
84
|
+
* Behavioral indicators: Responds to community, helping, giving back
|
|
85
|
+
*/
|
|
86
|
+
benevolence: number;
|
|
87
|
+
/**
|
|
88
|
+
* Universalism: Understanding, tolerance, protection of all people and nature.
|
|
89
|
+
* Derived from: Survival needs beyond in-group
|
|
90
|
+
* Behavioral indicators: Values sustainability, ethics, social impact
|
|
91
|
+
*/
|
|
92
|
+
universalism: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Higher-Order Value Dimensions (Schwartz, 2012)
|
|
96
|
+
*
|
|
97
|
+
* The 10 values organize into 4 higher-order dimensions based on
|
|
98
|
+
* compatibility and conflict relationships.
|
|
99
|
+
*/
|
|
100
|
+
export interface HigherOrderValues {
|
|
101
|
+
/**
|
|
102
|
+
* Openness to Change: (Self-Direction + Stimulation) / 2
|
|
103
|
+
* Emphasizes independent thought, action, and readiness for new experience.
|
|
104
|
+
* Opposite of Conservation.
|
|
105
|
+
*/
|
|
106
|
+
openness: number;
|
|
107
|
+
/**
|
|
108
|
+
* Self-Enhancement: (Achievement + Power) / 2
|
|
109
|
+
* Emphasizes pursuit of self-interest, success, and dominance.
|
|
110
|
+
* Opposite of Self-Transcendence.
|
|
111
|
+
*/
|
|
112
|
+
selfEnhancement: number;
|
|
113
|
+
/**
|
|
114
|
+
* Conservation: (Security + Conformity + Tradition) / 3
|
|
115
|
+
* Emphasizes self-restriction, order, and resistance to change.
|
|
116
|
+
* Opposite of Openness to Change.
|
|
117
|
+
*/
|
|
118
|
+
conservation: number;
|
|
119
|
+
/**
|
|
120
|
+
* Self-Transcendence: (Benevolence + Universalism) / 2
|
|
121
|
+
* Emphasizes concern for welfare of others and nature.
|
|
122
|
+
* Opposite of Self-Enhancement.
|
|
123
|
+
*/
|
|
124
|
+
selfTranscendence: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Self-Determination Theory Needs (Deci & Ryan, 1985, 2000)
|
|
128
|
+
*
|
|
129
|
+
* @references
|
|
130
|
+
* - Deci, E.L., & Ryan, R.M. (1985). Intrinsic motivation and self-determination
|
|
131
|
+
* in human behavior. New York: Plenum.
|
|
132
|
+
*
|
|
133
|
+
* - Ryan, R.M., & Deci, E.L. (2000). Self-determination theory and the
|
|
134
|
+
* facilitation of intrinsic motivation, social development, and well-being.
|
|
135
|
+
* American Psychologist, 55(1), 68-78.
|
|
136
|
+
* DOI: 10.1037/0003-066X.55.1.68
|
|
137
|
+
*/
|
|
138
|
+
export interface SDTNeeds {
|
|
139
|
+
/**
|
|
140
|
+
* Autonomy: Need for choice and control over one's actions.
|
|
141
|
+
* Related to self-direction value.
|
|
142
|
+
*/
|
|
143
|
+
autonomyNeed: number;
|
|
144
|
+
/**
|
|
145
|
+
* Competence: Need to feel capable and effective.
|
|
146
|
+
* Related to achievement value.
|
|
147
|
+
*/
|
|
148
|
+
competenceNeed: number;
|
|
149
|
+
/**
|
|
150
|
+
* Relatedness: Need for connection with others.
|
|
151
|
+
* Related to benevolence and universalism values.
|
|
152
|
+
*/
|
|
153
|
+
relatednessNeed: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Maslow's Hierarchy of Needs (Maslow, 1943)
|
|
157
|
+
*
|
|
158
|
+
* @references
|
|
159
|
+
* - Maslow, A.H. (1943). A theory of human motivation.
|
|
160
|
+
* Psychological Review, 50(4), 370-396.
|
|
161
|
+
* DOI: 10.1037/h0054346
|
|
162
|
+
*/
|
|
163
|
+
export type MaslowLevel = "physiological" | "safety" | "belonging" | "esteem" | "self-actualization";
|
|
164
|
+
/**
|
|
165
|
+
* Complete Value Profile for a Persona
|
|
166
|
+
*
|
|
167
|
+
* Combines Schwartz values, higher-order dimensions, SDT needs, and Maslow level
|
|
168
|
+
* to create a comprehensive motivational profile.
|
|
169
|
+
*/
|
|
170
|
+
export interface PersonaValues extends SchwartzValues, HigherOrderValues, SDTNeeds {
|
|
171
|
+
/** Current dominant need level (Maslow) */
|
|
172
|
+
maslowLevel: MaslowLevel;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Calculate higher-order values from the 10 basic values.
|
|
176
|
+
*/
|
|
177
|
+
export declare function calculateHigherOrderValues(values: SchwartzValues): HigherOrderValues;
|
|
178
|
+
/**
|
|
179
|
+
* Create a complete PersonaValues from basic Schwartz values and SDT needs.
|
|
180
|
+
*/
|
|
181
|
+
export declare function createPersonaValues(schwartzValues: SchwartzValues, sdtNeeds: SDTNeeds, maslowLevel: MaslowLevel): PersonaValues;
|
|
182
|
+
/**
|
|
183
|
+
* Value-to-Trait Correlations (Research-Supported)
|
|
184
|
+
*
|
|
185
|
+
* Based on Schwartz & Bardi (2001), Roccas et al. (2002).
|
|
186
|
+
* Correlations are moderate (r = 0.35-0.55) - values predict tendencies, not absolutes.
|
|
187
|
+
*
|
|
188
|
+
* Note: Values and traits are PARALLEL dimensions, not hierarchical.
|
|
189
|
+
* Values = WHO (motivations), Traits = HOW (behaviors).
|
|
190
|
+
* They correlate but don't determine each other.
|
|
191
|
+
*/
|
|
192
|
+
export interface ValueTraitCorrelation {
|
|
193
|
+
value: keyof SchwartzValues;
|
|
194
|
+
trait: string;
|
|
195
|
+
direction: "direct" | "inverse";
|
|
196
|
+
strength: "weak" | "moderate" | "strong";
|
|
197
|
+
researchBasis: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Research-supported value-trait correlations.
|
|
201
|
+
*/
|
|
202
|
+
export declare const VALUE_TRAIT_CORRELATIONS: ValueTraitCorrelation[];
|
|
203
|
+
/**
|
|
204
|
+
* Default value profile (neutral/average across all values).
|
|
205
|
+
*/
|
|
206
|
+
export declare const DEFAULT_VALUES: PersonaValues;
|
|
207
|
+
//# sourceMappingURL=schwartz-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schwartz-values.d.ts","sourceRoot":"","sources":["../../src/values/schwartz-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAE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Q,EAClB,WAAW,EAAE,WAAW,GACvB,aAAa,CAQf;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,qBAAqB,EAkD3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aA0B5B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schwartz's Theory of Basic Human Values
|
|
3
|
+
*
|
|
4
|
+
* Implements Schwartz's 10 universal values with research citations.
|
|
5
|
+
* This is the foundation for understanding WHO a persona is at a motivational level.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Schwartz, S.H. (1992). Universals in the content and structure of values.
|
|
12
|
+
* Advances in Experimental Social Psychology, 25, 1-65.
|
|
13
|
+
* DOI: 10.1016/S0065-2601(08)60281-6
|
|
14
|
+
*
|
|
15
|
+
* - Schwartz, S.H. (2012). An Overview of the Schwartz Theory of Basic Values.
|
|
16
|
+
* Online Readings in Psychology and Culture, 2(1).
|
|
17
|
+
* DOI: 10.9707/2307-0919.1116
|
|
18
|
+
*
|
|
19
|
+
* - Schwartz, S.H., & Bardi, A. (2001). Value hierarchies across cultures.
|
|
20
|
+
* Journal of Cross-Cultural Psychology, 32(3), 268-290.
|
|
21
|
+
*
|
|
22
|
+
* - Roccas, S., Sagiv, L., Schwartz, S.H., & Knafo, A. (2002). The big five
|
|
23
|
+
* personality factors and personal values. Personality and Social Psychology
|
|
24
|
+
* Bulletin, 28(6), 789-801.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Calculate higher-order values from the 10 basic values.
|
|
28
|
+
*/
|
|
29
|
+
export function calculateHigherOrderValues(values) {
|
|
30
|
+
return {
|
|
31
|
+
openness: (values.selfDirection + values.stimulation) / 2,
|
|
32
|
+
selfEnhancement: (values.achievement + values.power) / 2,
|
|
33
|
+
conservation: (values.security + values.conformity + values.tradition) / 3,
|
|
34
|
+
selfTranscendence: (values.benevolence + values.universalism) / 2,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a complete PersonaValues from basic Schwartz values and SDT needs.
|
|
39
|
+
*/
|
|
40
|
+
export function createPersonaValues(schwartzValues, sdtNeeds, maslowLevel) {
|
|
41
|
+
const higherOrder = calculateHigherOrderValues(schwartzValues);
|
|
42
|
+
return {
|
|
43
|
+
...schwartzValues,
|
|
44
|
+
...higherOrder,
|
|
45
|
+
...sdtNeeds,
|
|
46
|
+
maslowLevel,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Research-supported value-trait correlations.
|
|
51
|
+
*/
|
|
52
|
+
export const VALUE_TRAIT_CORRELATIONS = [
|
|
53
|
+
{
|
|
54
|
+
value: "security",
|
|
55
|
+
trait: "riskTolerance",
|
|
56
|
+
direction: "inverse",
|
|
57
|
+
strength: "strong",
|
|
58
|
+
researchBasis: "Schwartz & Bardi (2001): r = -0.52",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "security",
|
|
62
|
+
trait: "trustCalibration",
|
|
63
|
+
direction: "inverse",
|
|
64
|
+
strength: "moderate",
|
|
65
|
+
researchBasis: "Security-seekers require more evidence before trust (r = -0.38)",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: "stimulation",
|
|
69
|
+
trait: "curiosity",
|
|
70
|
+
direction: "direct",
|
|
71
|
+
strength: "strong",
|
|
72
|
+
researchBasis: "Roccas et al. (2002): r = 0.55",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: "achievement",
|
|
76
|
+
trait: "patience",
|
|
77
|
+
direction: "inverse",
|
|
78
|
+
strength: "moderate",
|
|
79
|
+
researchBasis: "Achievement-oriented users are less patient with inefficiency (r = -0.40)",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
value: "conformity",
|
|
83
|
+
trait: "socialProofSensitivity",
|
|
84
|
+
direction: "direct",
|
|
85
|
+
strength: "strong",
|
|
86
|
+
researchBasis: "Conformity predicts susceptibility to social proof (r = 0.48)",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: "selfDirection",
|
|
90
|
+
trait: "authoritySensitivity",
|
|
91
|
+
direction: "inverse",
|
|
92
|
+
strength: "moderate",
|
|
93
|
+
researchBasis: "Self-direction reduces compliance with authority (r = -0.42)",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value: "tradition",
|
|
97
|
+
trait: "mentalModelRigidity",
|
|
98
|
+
direction: "direct",
|
|
99
|
+
strength: "moderate",
|
|
100
|
+
researchBasis: "Tradition correlates with resistance to new mental models (r = 0.38)",
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
/**
|
|
104
|
+
* Default value profile (neutral/average across all values).
|
|
105
|
+
*/
|
|
106
|
+
export const DEFAULT_VALUES = {
|
|
107
|
+
// Schwartz values (neutral 0.5)
|
|
108
|
+
selfDirection: 0.5,
|
|
109
|
+
stimulation: 0.5,
|
|
110
|
+
hedonism: 0.5,
|
|
111
|
+
achievement: 0.5,
|
|
112
|
+
power: 0.5,
|
|
113
|
+
security: 0.5,
|
|
114
|
+
conformity: 0.5,
|
|
115
|
+
tradition: 0.5,
|
|
116
|
+
benevolence: 0.5,
|
|
117
|
+
universalism: 0.5,
|
|
118
|
+
// Higher-order (calculated)
|
|
119
|
+
openness: 0.5,
|
|
120
|
+
selfEnhancement: 0.5,
|
|
121
|
+
conservation: 0.5,
|
|
122
|
+
selfTranscendence: 0.5,
|
|
123
|
+
// SDT needs
|
|
124
|
+
autonomyNeed: 0.5,
|
|
125
|
+
competenceNeed: 0.5,
|
|
126
|
+
relatednessNeed: 0.5,
|
|
127
|
+
// Maslow
|
|
128
|
+
maslowLevel: "esteem",
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=schwartz-values.js.map
|