@pixerate/editor 0.164.0 → 0.166.0
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/agent/index.cjs +54 -39
- package/dist/agent/index.js +24 -9
- package/dist/animation/index.cjs +6 -5
- package/dist/animation/index.js +5 -4
- package/dist/animation-editor/index.cjs +65 -64
- package/dist/animation-editor/index.js +8 -7
- package/dist/bridge/cli.cjs +3 -3
- package/dist/bridge/cli.js +2 -2
- package/dist/bridge/index.cjs +3 -3
- package/dist/bridge/index.js +2 -2
- package/dist/canvas/index.cjs +89 -87
- package/dist/canvas/index.js +11 -9
- package/dist/chart/controller.d.cts +60 -2
- package/dist/chart/controller.d.ts +60 -2
- package/dist/chart/index.cjs +657 -163
- package/dist/chart/index.d.cts +3 -0
- package/dist/chart/index.d.ts +3 -0
- package/dist/chart/index.js +512 -18
- package/dist/chart/layout-families.d.cts +14 -0
- package/dist/chart/layout-families.d.ts +14 -0
- package/dist/chart/layout-shared.d.cts +5 -0
- package/dist/chart/layout-shared.d.ts +5 -0
- package/dist/chart/links.d.cts +34 -0
- package/dist/chart/links.d.ts +34 -0
- package/dist/chart/mermaid.d.cts +9 -6
- package/dist/chart/mermaid.d.ts +9 -6
- package/dist/chart/race.d.cts +26 -0
- package/dist/chart/race.d.ts +26 -0
- package/dist/chart/schemas.d.cts +5 -0
- package/dist/chart/schemas.d.ts +5 -0
- package/dist/chart/spec.d.cts +3 -2
- package/dist/chart/spec.d.ts +3 -2
- package/dist/chart/style.d.cts +33 -0
- package/dist/chart/style.d.ts +33 -0
- package/dist/chart/types.d.cts +28 -2
- package/dist/chart/types.d.ts +28 -2
- package/dist/{chunk-ZVNAMTFO.cjs → chunk-3FSUJIXN.cjs} +18 -174
- package/dist/{chunk-RQCMSEM5.cjs → chunk-4QUUHTGJ.cjs} +2 -2
- package/dist/{chunk-CIPIESX4.cjs → chunk-4ZC5QJE2.cjs} +3 -3
- package/dist/{chunk-S6X2QRVU.cjs → chunk-5UEFBM2M.cjs} +1 -138
- package/dist/{chunk-5FNGLV2D.js → chunk-5UNQDC3Q.js} +18 -3
- package/dist/{chunk-YSAGBIRW.cjs → chunk-6FYIFGBW.cjs} +16 -16
- package/dist/{chunk-QYZGBVNC.js → chunk-7272D3K2.js} +10 -8
- package/dist/{chunk-462WGGXX.cjs → chunk-AMX23CSN.cjs} +27 -16
- package/dist/{chunk-3VLOOO3G.js → chunk-BDIM6NVW.js} +1 -1
- package/dist/{chunk-R3P2M7HU.cjs → chunk-BPX4Z3N3.cjs} +355 -207
- package/dist/{chunk-D54JHQK2.cjs → chunk-CHLV7UFP.cjs} +51 -51
- package/dist/{chunk-OXERWBKE.js → chunk-DFCAR7AW.js} +3 -3
- package/dist/{chunk-GZ2FM3ZB.js → chunk-DKNEQX7T.js} +6 -162
- package/dist/{chunk-JCXMJUQO.cjs → chunk-EGZM52EO.cjs} +3 -3
- package/dist/{chunk-ES3UEVUT.cjs → chunk-EUIDTZNQ.cjs} +112 -110
- package/dist/{chunk-H3OEM3Q2.js → chunk-F6R67I3A.js} +1 -1
- package/dist/{chunk-3NEZJCBY.js → chunk-FR432ROA.js} +349 -201
- package/dist/chunk-HIDFL5LQ.js +484 -0
- package/dist/{chunk-22KLZZGH.cjs → chunk-HXOBOHH2.cjs} +8 -8
- package/dist/{chunk-MKTDELCD.js → chunk-I5MRJW7B.js} +1 -1
- package/dist/{chunk-SDHZG5TF.js → chunk-ILP77UD6.js} +160 -2
- package/dist/{chunk-Z4P2RBMJ.js → chunk-ITANXMZD.js} +177 -3
- package/dist/chunk-KGRZMHZB.js +204 -0
- package/dist/{chunk-SET6KJOP.js → chunk-LPIKXPBM.js} +1 -1
- package/dist/{chunk-BQWGN5WH.js → chunk-M2TPMYJE.js} +1 -1
- package/dist/{chunk-GTELFJRE.cjs → chunk-M5GLQQWG.cjs} +2 -2
- package/dist/{chunk-4VU4CP7R.js → chunk-MHLU6GRJ.js} +1 -138
- package/dist/{chunk-NZD2MZJC.cjs → chunk-MZFZSVUJ.cjs} +38 -23
- package/dist/{chunk-DAPQGA55.js → chunk-NQQDGGXY.js} +2 -2
- package/dist/chunk-O6OGNDND.js +164 -0
- package/dist/{chunk-PA3IMPPS.cjs → chunk-OVYQAYGH.cjs} +81 -81
- package/dist/{chunk-YXOW456B.js → chunk-PPEDZ5WR.js} +1 -1
- package/dist/{chunk-24M7VD6M.cjs → chunk-S4EIAIEW.cjs} +7 -7
- package/dist/{chunk-M4MIZPQI.cjs → chunk-SJ2CPTQC.cjs} +189 -15
- package/dist/{chunk-YGG7WDWT.cjs → chunk-SZWVMB3B.cjs} +24 -18
- package/dist/chunk-TFF2GTGN.cjs +153 -0
- package/dist/chunk-TTCJPX4U.cjs +204 -0
- package/dist/{chunk-SBQVEBSU.cjs → chunk-UUUTEVX6.cjs} +242 -68
- package/dist/{chunk-WI7QJA7A.cjs → chunk-UXETV2NC.cjs} +161 -3
- package/dist/{chunk-GKNEJ6EN.cjs → chunk-V5L2G22R.cjs} +321 -107
- package/dist/{chunk-TALQONZ5.js → chunk-VB2CY6EG.js} +3 -3
- package/dist/{chunk-QY4KUDMY.js → chunk-VRXXAXUT.js} +2 -2
- package/dist/chunk-VU6WQSMB.cjs +164 -0
- package/dist/{chunk-NHLYK3AX.js → chunk-XBQX76CT.js} +182 -8
- package/dist/{chunk-5AARIS3R.cjs → chunk-XCDGM7TD.cjs} +37 -37
- package/dist/{chunk-POR54B55.js → chunk-XNU45TYA.js} +7 -1
- package/dist/{chunk-EVXQNQND.js → chunk-XZB3TJ6K.js} +16 -5
- package/dist/chunk-YBAPT7NL.js +153 -0
- package/dist/{chunk-SZA42R4N.js → chunk-YUFTVNLX.js} +230 -16
- package/dist/chunk-Z2UQYMPS.cjs +484 -0
- package/dist/color/index.cjs +5 -3
- package/dist/color/index.js +12 -10
- package/dist/diagram/index.cjs +55 -243
- package/dist/diagram/index.js +12 -200
- package/dist/export/index.cjs +7 -6
- package/dist/export/index.js +6 -5
- package/dist/extensions/index.cjs +12 -9
- package/dist/extensions/index.js +11 -8
- package/dist/gradient/index.cjs +29 -27
- package/dist/gradient/index.js +6 -4
- package/dist/image-editor/index.cjs +644 -643
- package/dist/image-editor/index.js +7 -6
- package/dist/index.cjs +21 -18
- package/dist/index.js +14 -11
- package/dist/paint-editor/index.cjs +19 -18
- package/dist/paint-editor/index.js +7 -6
- package/dist/parameters/index.cjs +2 -2
- package/dist/parameters/index.js +1 -1
- package/dist/persistence/assetWrites.d.cts +22 -0
- package/dist/persistence/assetWrites.d.ts +22 -0
- package/dist/persistence/assets.d.cts +71 -0
- package/dist/persistence/assets.d.ts +71 -0
- package/dist/persistence/documentStore.d.cts +17 -1
- package/dist/persistence/documentStore.d.ts +17 -1
- package/dist/persistence/documentTools.d.cts +5 -1
- package/dist/persistence/documentTools.d.ts +5 -1
- package/dist/persistence/editorAutosave.d.cts +7 -0
- package/dist/persistence/editorAutosave.d.ts +7 -0
- package/dist/persistence/index.cjs +141 -21
- package/dist/persistence/index.js +130 -10
- package/dist/persistence/storage.d.cts +13 -1
- package/dist/persistence/storage.d.ts +13 -1
- package/dist/spreadsheet/index.cjs +3 -3
- package/dist/spreadsheet/index.js +2 -2
- package/dist/tokens/index.cjs +11 -3
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +10 -2
- package/dist/tokens/style.d.cts +36 -0
- package/dist/tokens/style.d.ts +36 -0
- package/dist/tools/index.cjs +15 -3
- package/dist/tools/index.d.cts +2 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +14 -2
- package/dist/tools/style-tools.d.cts +19 -0
- package/dist/tools/style-tools.d.ts +19 -0
- package/dist/tools/style.d.cts +212 -0
- package/dist/tools/style.d.ts +212 -0
- package/dist/tools/view.d.cts +6 -0
- package/dist/tools/view.d.ts +6 -0
- package/dist/typography/index.cjs +8 -6
- package/dist/typography/index.js +5 -3
- package/dist/vector/index.cjs +953 -952
- package/dist/vector/index.js +7 -6
- package/dist/video-editor/index.cjs +8 -7
- package/dist/video-editor/index.js +6 -5
- package/package.json +1 -1
- package/skills/pixerate-chart/SKILL.md +20 -2
- package/dist/chunk-ERAGQL2N.cjs +0 -68
- package/dist/chunk-KMU6QJB7.js +0 -68
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSJ2CPTQCcjs = require('./chunk-SJ2CPTQC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkA6QWKBJPcjs = require('./chunk-A6QWKBJP.cjs');
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk5UEFBM2Mcjs = require('./chunk-5UEFBM2M.cjs');
|
|
12
|
+
|
|
9
13
|
// src/tokens/types.ts
|
|
10
14
|
var TOKEN_TYPES = ["color", "number", "string", "boolean"];
|
|
11
15
|
var TokenError = class extends Error {
|
|
@@ -1275,7 +1279,7 @@ function importW3CTokens(state, input, options = {}) {
|
|
|
1275
1279
|
|
|
1276
1280
|
// src/tokens/editorDocument.ts
|
|
1277
1281
|
function createTokensEditorDocument(store) {
|
|
1278
|
-
return
|
|
1282
|
+
return _chunkSJ2CPTQCcjs.defineEditorDocument.call(void 0, {
|
|
1279
1283
|
kind: "tokens",
|
|
1280
1284
|
get: () => store.toJSON(),
|
|
1281
1285
|
load: (document, { history }) => {
|
|
@@ -1307,6 +1311,160 @@ function createTokensEditorDocument(store) {
|
|
|
1307
1311
|
});
|
|
1308
1312
|
}
|
|
1309
1313
|
|
|
1314
|
+
// src/tokens/style.ts
|
|
1315
|
+
function findVariable(state, ref) {
|
|
1316
|
+
return _nullishCoalesce(getTokenVariable(state, ref), () => ( findTokenVariable(state, ref)));
|
|
1317
|
+
}
|
|
1318
|
+
function createTokenStyleSource(store) {
|
|
1319
|
+
return {
|
|
1320
|
+
resolve({ token, mode }) {
|
|
1321
|
+
const state = store.getState();
|
|
1322
|
+
const variable = findVariable(state, token);
|
|
1323
|
+
if (!variable) return { ok: false, message: `there is no design token "${token}".` };
|
|
1324
|
+
let modes;
|
|
1325
|
+
if (mode !== void 0) {
|
|
1326
|
+
const collection = getTokenCollection(state, variable.collectionId);
|
|
1327
|
+
const found = findTokenMode(collection, mode);
|
|
1328
|
+
if (!found) return { ok: false, message: `"${collection.name}" has no mode "${mode}"; its modes are ${collection.modes.map((m) => `"${m.name}"`).join(", ")}.` };
|
|
1329
|
+
modes = { [collection.id]: found.id };
|
|
1330
|
+
}
|
|
1331
|
+
const resolved = resolveToken(state, variable.id, modes);
|
|
1332
|
+
return resolved.ok ? { ok: true, value: resolved.value } : { ok: false, message: `"${token}" does not resolve: ${resolved.message}` };
|
|
1333
|
+
},
|
|
1334
|
+
subscribe: (listener) => store.subscribe(() => listener())
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
var profileOf = (profile) => profile;
|
|
1338
|
+
var requiredVariables = {
|
|
1339
|
+
id: "required-variables",
|
|
1340
|
+
description: `Every variable named in the profile's "required" list exists.`,
|
|
1341
|
+
run(state, profile) {
|
|
1342
|
+
const required = profileOf(profile).required;
|
|
1343
|
+
if (!_optionalChain([required, 'optionalAccess', _23 => _23.length])) throw new Error('the profile has no "required" list.');
|
|
1344
|
+
return required.filter((name) => !findVariable(state, name)).map((name) => ({ severity: "error", message: `The token set has no variable "${name}"; add it (house style requires it).`, target: { variable: name } }));
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
var namePattern = {
|
|
1348
|
+
id: "name-pattern",
|
|
1349
|
+
description: `Every variable name matches the profile's "namePattern" regular expression.`,
|
|
1350
|
+
run(state, profile) {
|
|
1351
|
+
const pattern = profileOf(profile).namePattern;
|
|
1352
|
+
if (!pattern) throw new Error('the profile has no "namePattern".');
|
|
1353
|
+
let re;
|
|
1354
|
+
try {
|
|
1355
|
+
re = new RegExp(pattern);
|
|
1356
|
+
} catch (e4) {
|
|
1357
|
+
throw new Error(`"namePattern" ${pattern} is not a valid regular expression.`);
|
|
1358
|
+
}
|
|
1359
|
+
return state.variables.filter((v) => !re.test(v.name)).map((v) => ({ severity: "warning", message: `Variable "${v.name}" does not match the naming pattern ${pattern}; rename it.`, target: { variableId: v.id } }));
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
var requiredModes = {
|
|
1363
|
+
id: "required-modes",
|
|
1364
|
+
description: `Every collection has the modes named in the profile's "modes" list (e.g. Light and Dark).`,
|
|
1365
|
+
run(state, profile) {
|
|
1366
|
+
const modes = profileOf(profile).modes;
|
|
1367
|
+
if (!_optionalChain([modes, 'optionalAccess', _24 => _24.length])) throw new Error('the profile has no "modes" list.');
|
|
1368
|
+
return state.collections.flatMap(
|
|
1369
|
+
(c) => modes.filter((m) => !findTokenMode(c, m)).map((m) => ({ severity: "error", message: `Collection "${c.name}" has no "${m}" mode; add it.`, target: { collectionId: c.id } }))
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
var contrastPairs = {
|
|
1374
|
+
id: "contrast-pairs",
|
|
1375
|
+
description: `Each foreground / background pair in "contrastPairs" reaches its contrast ratio (default 4.5) in every mode of the foreground's collection.`,
|
|
1376
|
+
run(state, profile) {
|
|
1377
|
+
const pairs = profileOf(profile).contrastPairs;
|
|
1378
|
+
if (!_optionalChain([pairs, 'optionalAccess', _25 => _25.length])) throw new Error('the profile has no "contrastPairs".');
|
|
1379
|
+
const findings = [];
|
|
1380
|
+
for (const { fg, bg, ratio = 4.5 } of pairs) {
|
|
1381
|
+
const f = findVariable(state, fg);
|
|
1382
|
+
const b = findVariable(state, bg);
|
|
1383
|
+
if (!f || !b) {
|
|
1384
|
+
findings.push({ severity: "error", message: `Contrast pair ${fg} on ${bg} names a variable the token set lacks (${!f ? fg : bg}).`, target: { variable: !f ? fg : bg } });
|
|
1385
|
+
continue;
|
|
1386
|
+
}
|
|
1387
|
+
const collection = getTokenCollection(state, f.collectionId);
|
|
1388
|
+
for (const mode of collection.modes) {
|
|
1389
|
+
const modes = { [collection.id]: mode.id, [b.collectionId]: _nullishCoalesce(_optionalChain([findTokenMode, 'call', _26 => _26(getTokenCollection(state, b.collectionId), mode.name), 'optionalAccess', _27 => _27.id]), () => ( mode.id)) };
|
|
1390
|
+
const fv = resolveToken(state, f.id, modes);
|
|
1391
|
+
const bv = resolveToken(state, b.id, modes);
|
|
1392
|
+
const fc = fv.ok && typeof fv.value === "string" ? _chunk5UEFBM2Mcjs.parseColor.call(void 0, fv.value) : null;
|
|
1393
|
+
const bc = bv.ok && typeof bv.value === "string" ? _chunk5UEFBM2Mcjs.parseColor.call(void 0, bv.value) : null;
|
|
1394
|
+
if (!fc || !bc) continue;
|
|
1395
|
+
const r = _chunk5UEFBM2Mcjs.contrastRatio.call(void 0, fc, bc);
|
|
1396
|
+
if (r < ratio) {
|
|
1397
|
+
findings.push({
|
|
1398
|
+
severity: "error",
|
|
1399
|
+
message: `${f.name} on ${b.name} has contrast ${Math.round(r * 100) / 100}:1 in ${mode.name}; want at least ${ratio}:1, so darken or lighten one of them in that mode.`,
|
|
1400
|
+
target: { variableId: f.id, modeId: mode.id }
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
return findings;
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
var tokensStyleDomain = {
|
|
1409
|
+
id: "tokens",
|
|
1410
|
+
title: "Design tokens",
|
|
1411
|
+
description: "Rules for the token set itself: variables that must exist, a naming pattern, required modes and colour pairs that must reach a contrast ratio.",
|
|
1412
|
+
profileSchema: {
|
|
1413
|
+
type: "object",
|
|
1414
|
+
properties: {
|
|
1415
|
+
required: { type: "array", items: { type: "string", minLength: 1 }, description: 'Variable names that must exist, e.g. "brand/primary".' },
|
|
1416
|
+
namePattern: { type: "string", minLength: 1, description: 'Regular expression every variable name must match, e.g. "^[a-z0-9-]+(/[a-z0-9-]+)*$".' },
|
|
1417
|
+
modes: { type: "array", items: { type: "string", minLength: 1 }, description: 'Mode names every collection must have, e.g. ["Light", "Dark"].' },
|
|
1418
|
+
contrastPairs: {
|
|
1419
|
+
type: "array",
|
|
1420
|
+
items: {
|
|
1421
|
+
type: "object",
|
|
1422
|
+
properties: {
|
|
1423
|
+
fg: { type: "string", minLength: 1, description: "Foreground variable name or id." },
|
|
1424
|
+
bg: { type: "string", minLength: 1, description: "Background variable name or id." },
|
|
1425
|
+
ratio: { type: "number", minimum: 1, maximum: 21, description: "Smallest contrast ratio (default 4.5, WCAG AA for text)." }
|
|
1426
|
+
},
|
|
1427
|
+
required: ["fg", "bg"],
|
|
1428
|
+
additionalProperties: false
|
|
1429
|
+
},
|
|
1430
|
+
description: "Colour pairs checked in every mode."
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
additionalProperties: false
|
|
1434
|
+
},
|
|
1435
|
+
checks: [requiredVariables, namePattern, requiredModes, contrastPairs]
|
|
1436
|
+
};
|
|
1437
|
+
function createTokensStyleToolProvider(store, styles, options = {}) {
|
|
1438
|
+
if (!styles.domains.some((d) => d.id === "tokens")) throw new Error('The style resolver has no "tokens" domain; add tokensStyleDomain to its domains.');
|
|
1439
|
+
const check = {
|
|
1440
|
+
name: "check_tokens_style",
|
|
1441
|
+
title: "Check token house style",
|
|
1442
|
+
description: 'Checks the design-token set against the house style (see get_style with domain "tokens"): runs the checks its profile turns on (required-variables, name-pattern, required-modes, contrast-pairs). Returns findings with a severity, a sentence saying how to fix it, a target (variable id or name, mode id, collection id) and the layer that asked for it; plus the checks that ran and the ones skipped with the reason. Fix findings with get_tokens_document / load_tokens_document, then check again.',
|
|
1443
|
+
inputSchema: { type: "object", properties: {}, additionalProperties: false },
|
|
1444
|
+
annotations: { title: "Check token house style", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
1445
|
+
handler: async () => {
|
|
1446
|
+
const { style, ...report } = await styles.check("tokens", store.getState());
|
|
1447
|
+
return {
|
|
1448
|
+
...report,
|
|
1449
|
+
ok: report.findings.length === 0,
|
|
1450
|
+
...style.skills.length ? {} : { note: "No house style applies to design tokens." },
|
|
1451
|
+
...style.issues.length ? { issues: style.issues } : {}
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
return {
|
|
1456
|
+
id: _nullishCoalesce(options.id, () => ( "tokens-style")),
|
|
1457
|
+
namespace: _nullishCoalesce(options.namespace, () => ( "tokens")),
|
|
1458
|
+
title: "Token house style",
|
|
1459
|
+
description: "Check the design-token set against the house style.",
|
|
1460
|
+
skill: "pixerate-tokens",
|
|
1461
|
+
tools: [check]
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|
|
1310
1468
|
|
|
1311
1469
|
|
|
1312
1470
|
|
|
@@ -1361,4 +1519,4 @@ function createTokensEditorDocument(store) {
|
|
|
1361
1519
|
|
|
1362
1520
|
|
|
1363
1521
|
|
|
1364
|
-
exports.TOKEN_TYPES = TOKEN_TYPES; exports.TokenError = TokenError; exports.isTokenAlias = isTokenAlias; exports.EMPTY_TOKEN_STATE = EMPTY_TOKEN_STATE; exports.getTokenCollection = getTokenCollection; exports.getTokenVariable = getTokenVariable; exports.findTokenCollection = findTokenCollection; exports.findTokenVariable = findTokenVariable; exports.getCollectionVariables = getCollectionVariables; exports.getDefaultMode = getDefaultMode; exports.findTokenMode = findTokenMode; exports.getCurrentMode = getCurrentMode; exports.defaultTokenValue = defaultTokenValue; exports.coerceTokenLiteral = coerceTokenLiteral; exports.literalTokenType = literalTokenType; exports.formatTokenValue = formatTokenValue; exports.resolveToken = resolveToken; exports.resolveTokenValue = resolveTokenValue; exports.resolveTokenInMode = resolveTokenInMode; exports.checkTokenAlias = checkTokenAlias; exports.TOKEN_SCOPES_BY_TYPE = TOKEN_SCOPES_BY_TYPE; exports.isTokenScopeKnown = isTokenScopeKnown; exports.normalizeTokenScopes = normalizeTokenScopes; exports.isTokenInScope = isTokenInScope; exports.normalizeTokenName = normalizeTokenName; exports.defaultTokenId = defaultTokenId; exports.createTokenCollection = createTokenCollection; exports.renameTokenCollection = renameTokenCollection; exports.deleteTokenVariables = deleteTokenVariables; exports.deleteTokenCollection = deleteTokenCollection; exports.addTokenMode = addTokenMode; exports.renameTokenMode = renameTokenMode; exports.removeTokenMode = removeTokenMode; exports.moveTokenMode = moveTokenMode; exports.prepareTokenValue = prepareTokenValue; exports.createTokenVariable = createTokenVariable; exports.setTokenValue = setTokenValue; exports.renameTokenVariable = renameTokenVariable; exports.updateTokenVariable = updateTokenVariable; exports.parseTokenState = parseTokenState; exports.TokenStore = TokenStore; exports.createTokenStore = createTokenStore; exports.tokenSlug = tokenSlug; exports.getTokenCssName = getTokenCssName; exports.cssString = cssString; exports.formatTokenCssValue = formatTokenCssValue; exports.exportTokensCss = exportTokensCss; exports.getTokenCssVariables = getTokenCssVariables; exports.W3C_TOKENS_EXTENSION = W3C_TOKENS_EXTENSION; exports.exportW3CTokens = exportW3CTokens; exports.exportW3CTokensJson = exportW3CTokensJson; exports.importW3CTokens = importW3CTokens; exports.createTokensEditorDocument = createTokensEditorDocument;
|
|
1522
|
+
exports.TOKEN_TYPES = TOKEN_TYPES; exports.TokenError = TokenError; exports.isTokenAlias = isTokenAlias; exports.EMPTY_TOKEN_STATE = EMPTY_TOKEN_STATE; exports.getTokenCollection = getTokenCollection; exports.getTokenVariable = getTokenVariable; exports.findTokenCollection = findTokenCollection; exports.findTokenVariable = findTokenVariable; exports.getCollectionVariables = getCollectionVariables; exports.getDefaultMode = getDefaultMode; exports.findTokenMode = findTokenMode; exports.getCurrentMode = getCurrentMode; exports.defaultTokenValue = defaultTokenValue; exports.coerceTokenLiteral = coerceTokenLiteral; exports.literalTokenType = literalTokenType; exports.formatTokenValue = formatTokenValue; exports.resolveToken = resolveToken; exports.resolveTokenValue = resolveTokenValue; exports.resolveTokenInMode = resolveTokenInMode; exports.checkTokenAlias = checkTokenAlias; exports.TOKEN_SCOPES_BY_TYPE = TOKEN_SCOPES_BY_TYPE; exports.isTokenScopeKnown = isTokenScopeKnown; exports.normalizeTokenScopes = normalizeTokenScopes; exports.isTokenInScope = isTokenInScope; exports.normalizeTokenName = normalizeTokenName; exports.defaultTokenId = defaultTokenId; exports.createTokenCollection = createTokenCollection; exports.renameTokenCollection = renameTokenCollection; exports.deleteTokenVariables = deleteTokenVariables; exports.deleteTokenCollection = deleteTokenCollection; exports.addTokenMode = addTokenMode; exports.renameTokenMode = renameTokenMode; exports.removeTokenMode = removeTokenMode; exports.moveTokenMode = moveTokenMode; exports.prepareTokenValue = prepareTokenValue; exports.createTokenVariable = createTokenVariable; exports.setTokenValue = setTokenValue; exports.renameTokenVariable = renameTokenVariable; exports.updateTokenVariable = updateTokenVariable; exports.parseTokenState = parseTokenState; exports.TokenStore = TokenStore; exports.createTokenStore = createTokenStore; exports.tokenSlug = tokenSlug; exports.getTokenCssName = getTokenCssName; exports.cssString = cssString; exports.formatTokenCssValue = formatTokenCssValue; exports.exportTokensCss = exportTokensCss; exports.getTokenCssVariables = getTokenCssVariables; exports.W3C_TOKENS_EXTENSION = W3C_TOKENS_EXTENSION; exports.exportW3CTokens = exportW3CTokens; exports.exportW3CTokensJson = exportW3CTokensJson; exports.importW3CTokens = importW3CTokens; exports.createTokensEditorDocument = createTokensEditorDocument; exports.createTokenStyleSource = createTokenStyleSource; exports.tokensStyleDomain = tokensStyleDomain; exports.createTokensStyleToolProvider = createTokensStyleToolProvider;
|