@master/css-schema 2.0.0-rc.88 → 2.0.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.
@@ -1,14 +1,9 @@
1
- import { UtilityType } from "./utility-type.js";
1
+ import { MasterCSSKeyframeDefinition, MasterCSSKeyframeDefinition as MasterCSSKeyframeDefinition$1 } from "./keyframes.js";
2
+ import { MasterCSSMixinDefinition, MasterCSSMixinDefinition as MasterCSSMixinDefinition$1, MasterCSSMixinNode, MasterCSSMixinParameter, MasterCSSMixinParameterSyntax, MasterCSSMixinValue, MasterCSSUtilityDefinition, MasterCSSUtilityDefinition as MasterCSSUtilityDefinition$1 } from "./mixin.js";
2
3
  import { PropertiesHyphen } from "csstype";
3
- //#region src/manifest.d.ts
4
+ import { normalizeMasterCSSManifest, serializeMasterCSSManifest } from "./manifest-json.js";
4
5
  type MasterCSSManifestConditionIdentifier = 'container' | 'starting-style' | 'supports' | 'media' | 'layer';
5
6
  type MasterCSSManifestUtilityLayerName = 'base' | 'defaults' | 'components' | 'utilities';
6
- type MasterCSSManifestDefaultMode = 'light' | 'dark' | 'none' | string;
7
- type MasterCSSManifestModeTrigger = 'class' | 'media' | 'host';
8
- type MasterCSSManifestVariantToken = `:${string}` | `::${string}` | `@${string}`;
9
- type MasterCSSManifestUtilityKind = 'number' | 'color' | 'image';
10
- /** Defaults to single for variable/value matchers; multiple is an explicit opt-in. */
11
- type MasterCSSManifestUtilityMatcherValueSegments = 'single' | 'multiple';
12
7
  type MasterCSSManifestCSSDeclarationPrimitive = string | number | null;
13
8
  type MasterCSSManifestCSSDeclarations = PropertiesHyphen | Record<string, MasterCSSManifestCSSDeclarationPrimitive | MasterCSSManifestCSSDeclarationPrimitive[]>;
14
9
  type MasterCSSManifestVariableValue = number | string | false | (number | string)[];
@@ -17,91 +12,14 @@ interface MasterCSSManifestVariableNumericValue {
17
12
  value: number;
18
13
  unit?: string;
19
14
  }
20
- interface MasterCSSManifestConditionBooleanNode {
21
- raw?: string;
22
- name: string;
23
- type: 'boolean';
24
- }
25
- interface MasterCSSManifestConditionNumberNode {
26
- raw?: string;
27
- name?: string;
28
- type: 'number';
29
- value: number;
30
- unit?: string;
31
- operator?: string;
32
- }
33
- interface MasterCSSManifestConditionStringNode {
34
- raw?: string;
35
- name?: string;
36
- type: 'string';
37
- value: string;
38
- }
39
- type MasterCSSManifestConditionValueNode = MasterCSSManifestConditionNumberNode | MasterCSSManifestConditionStringNode;
40
- interface MasterCSSManifestConditionComparisonOperatorNode {
41
- type: 'comparison';
42
- raw?: string;
43
- value: string;
44
- }
45
- interface MasterCSSManifestConditionLogicalOperatorNode {
46
- type: 'logical';
47
- raw?: string;
48
- value: string;
49
- }
50
- type MasterCSSManifestConditionOperatorNode = MasterCSSManifestConditionComparisonOperatorNode | MasterCSSManifestConditionLogicalOperatorNode;
51
- interface MasterCSSManifestConditionGroupNode {
52
- type?: 'group';
53
- raw?: string;
54
- children: MasterCSSManifestConditionNode[];
55
- }
56
- type MasterCSSManifestConditionNode = MasterCSSManifestConditionBooleanNode | MasterCSSManifestConditionValueNode | MasterCSSManifestConditionComparisonOperatorNode | MasterCSSManifestConditionLogicalOperatorNode | MasterCSSManifestConditionGroupNode;
57
- interface MasterCSSManifestCondition {
58
- id: MasterCSSManifestConditionIdentifier;
59
- nodes: MasterCSSManifestConditionNode[];
60
- }
61
- type MasterCSSManifestConditions = Record<string, MasterCSSManifestCondition>;
62
- interface MasterCSSManifestSelectorLiteralNode {
63
- type?: 'attribute' | 'pseudo-class' | 'pseudo-element' | 'class' | 'universal' | 'id';
64
- raw?: string;
65
- value?: string;
66
- children?: MasterCSSManifestSelectorNode[];
67
- }
68
- interface MasterCSSManifestSelectorSeparatorNode {
69
- type: 'separator';
70
- raw?: string;
71
- value: string;
72
- }
73
- interface MasterCSSManifestSelectorCombinatorNode {
74
- type: 'combinator';
75
- raw?: string;
76
- value: string;
77
- }
78
- type MasterCSSManifestSelectorNode = MasterCSSManifestSelectorLiteralNode | MasterCSSManifestSelectorCombinatorNode | MasterCSSManifestSelectorSeparatorNode;
79
- type MasterCSSManifestSelectors = Record<string, MasterCSSManifestSelectorNode[]>;
80
- interface MasterCSSManifestSettings {
81
- rootSize?: number;
82
- baseUnit?: number;
83
- defaultMode?: MasterCSSManifestDefaultMode;
84
- scope?: string;
85
- important?: boolean;
86
- modeTrigger?: MasterCSSManifestModeTrigger;
87
- modes?: string[];
88
- }
89
15
  interface MasterCSSManifestVariable {
90
16
  name?: string;
91
17
  key: string;
92
18
  namespace?: string;
93
19
  type?: MasterCSSManifestVariableType;
94
- value?: MasterCSSManifestVariableValue;
20
+ values: MasterCSSScopedThemeValue[];
95
21
  numeric?: MasterCSSManifestVariableNumericValue;
96
- modes?: Record<string, {
97
- type: MasterCSSManifestVariableType;
98
- value: number | string;
99
- numeric?: MasterCSSManifestVariableNumericValue;
100
- }>;
101
22
  dependencies?: string[];
102
- mode?: string;
103
- inline?: boolean;
104
- static?: boolean;
105
23
  }
106
24
  type MasterCSSManifestVariables = Record<string, MasterCSSManifestVariable[]>;
107
25
  type MasterCSSManifestVariableEntry = MasterCSSManifestVariable & {
@@ -109,106 +27,54 @@ type MasterCSSManifestVariableEntry = MasterCSSManifestVariable & {
109
27
  namespace?: string;
110
28
  type: MasterCSSManifestVariableType;
111
29
  };
112
- type MasterCSSManifestKeyframes<TDeclarations = MasterCSSManifestCSSDeclarations> = Record<'from' | 'to' | string, TDeclarations>;
113
- type MasterCSSManifestAnimations<TDeclarations = MasterCSSManifestCSSDeclarations> = Record<string, MasterCSSManifestKeyframes<TDeclarations>>;
114
- type MasterCSSManifestAnimationOptions = Record<string, {
30
+ interface MasterCSSScopedThemeValue {
31
+ path: string[];
32
+ value: string;
33
+ inline?: boolean;
115
34
  static?: boolean;
116
- }>;
117
- interface MasterCSSManifestVariantBranch {
118
- selector?: string;
119
- selectorNodes?: MasterCSSManifestSelectorNode[];
120
- conditions?: string[];
121
- conditionNodes?: MasterCSSManifestCondition[];
122
- layer?: MasterCSSManifestUtilityLayerName;
123
- }
124
- interface MasterCSSManifestVariant {
125
- token: MasterCSSManifestVariantToken;
126
- branches: MasterCSSManifestVariantBranch[];
127
35
  }
128
- type MasterCSSManifestVariants = MasterCSSManifestVariant[];
129
- type MasterCSSManifestUtilityMatcher = {
130
- type: 'static';
131
- name: string;
132
- } | {
133
- type: 'pattern';
134
- prefix: string;
135
- values: string[];
136
- valueMap?: Record<string, string>;
137
- } | {
138
- type: 'key';
139
- keys: string[];
36
+ type MasterCSSThemeNode = {
37
+ type: 'rule';
38
+ prelude: string;
39
+ children: MasterCSSThemeNode[];
140
40
  } | {
141
- type: 'variable';
142
- keys: string[];
143
- segments?: MasterCSSManifestUtilityMatcherValueSegments;
144
- } | {
145
- type: 'value';
146
- keys: string[];
147
- segments?: MasterCSSManifestUtilityMatcherValueSegments;
41
+ type: 'declaration';
42
+ name: string;
43
+ value: string;
44
+ inline?: boolean;
45
+ static?: boolean;
148
46
  };
149
- type MasterCSSManifestVariableAlias = [key: string, name: string];
150
- type MasterCSSManifestVariableAliasSet = MasterCSSManifestVariableAlias[];
151
- type MasterCSSManifestUtilityEmit = {
152
- type: 'declarations';
153
- declarations: string[];
47
+ type MasterCSSMediaQueryExpression = {
48
+ type: 'true' | 'false';
49
+ } | {
50
+ type: 'feature';
51
+ value: string;
154
52
  } | {
155
- type: 'template';
156
- declarations: MasterCSSManifestCSSDeclarations;
53
+ type: 'media-type';
54
+ name: string;
157
55
  } | {
158
- type: 'property';
159
- property: string;
56
+ type: 'not';
57
+ query: MasterCSSMediaQueryExpression;
160
58
  } | {
161
- type: 'static';
162
- rules: MasterCSSManifestUtilityRule[];
59
+ type: 'and' | 'or';
60
+ queries: MasterCSSMediaQueryExpression[];
163
61
  };
164
- interface MasterCSSManifestUtilityRule<TDeclarations = MasterCSSManifestCSSDeclarations> {
165
- declarations: TDeclarations;
166
- conditions?: string[];
167
- selector?: string;
168
- }
169
- interface MasterCSSManifestUtility {
170
- id: string;
171
- name?: string;
172
- type: UtilityType;
173
- order?: number;
174
- layer?: MasterCSSManifestUtilityLayerName;
175
- key?: string;
176
- subkey?: string;
177
- keys?: string[];
178
- aliasGroups?: string[];
179
- kind?: MasterCSSManifestUtilityKind;
180
- namespaces?: string[];
181
- implicitNamespace?: boolean;
182
- separators?: string[];
183
- conditions?: string[];
184
- variableAliases?: MasterCSSManifestVariableAliasSet;
185
- variableAliasRefs?: string[];
186
- emit: MasterCSSManifestUtilityEmit;
187
- matchers: MasterCSSManifestUtilityMatcher[];
188
- debug?: Record<string, unknown>;
189
- }
190
- type MasterCSSManifestUtilities = MasterCSSManifestUtility[];
191
62
  interface MasterCSSManifest {
192
- /**
193
- * MasterCSSManifest IR schema/codec version.
194
- * This is not a legacy Config compatibility marker; engines must reject
195
- * unsupported manifest versions instead of migrating authoring APIs at runtime.
196
- */
197
- version: 1;
198
- settings?: MasterCSSManifestSettings;
63
+ /** MasterCSSManifest IR schema/codec version; engines reject any other version. */
64
+ version: 6;
65
+ languageVersion: 18;
66
+ keyframes?: MasterCSSKeyframeDefinition$1[];
67
+ animationVariables?: Record<string, string[]>;
68
+ theme?: MasterCSSThemeNode[];
69
+ customMedia?: Record<string, MasterCSSMediaQueryExpression>;
70
+ /** The expanded condition of each custom container, without references. */
71
+ customContainers?: Record<string, string>;
199
72
  variables?: MasterCSSManifestVariables;
200
- animations?: MasterCSSManifestAnimations;
201
- animationOptions?: MasterCSSManifestAnimationOptions;
202
- variants?: MasterCSSManifestVariants;
203
- conditions?: MasterCSSManifestConditions;
204
- breakpointConditions?: MasterCSSManifestConditions;
205
- containerConditions?: MasterCSSManifestConditions;
206
- selectors?: MasterCSSManifestSelectors;
207
- utilities?: MasterCSSManifestUtilities;
73
+ mixins?: MasterCSSMixinDefinition$1[];
74
+ utilities?: MasterCSSUtilityDefinition$1[];
208
75
  debug?: Record<string, unknown>;
209
76
  }
210
77
  declare function getMasterCSSManifestVariableName(namespace: string, variable: Pick<MasterCSSManifestVariable, 'key' | 'name'>): string;
211
78
  declare function flattenMasterCSSManifestVariables(variables: MasterCSSManifestVariables | undefined): MasterCSSManifestVariableEntry[];
212
79
  declare function groupMasterCSSManifestVariables(variables: readonly MasterCSSManifestVariable[] | undefined): MasterCSSManifestVariables | undefined;
213
- //#endregion
214
- export { MasterCSSManifest, MasterCSSManifestAnimationOptions, MasterCSSManifestAnimations, MasterCSSManifestCSSDeclarationPrimitive, MasterCSSManifestCSSDeclarations, MasterCSSManifestCondition, MasterCSSManifestConditionBooleanNode, MasterCSSManifestConditionComparisonOperatorNode, MasterCSSManifestConditionGroupNode, MasterCSSManifestConditionIdentifier, MasterCSSManifestConditionLogicalOperatorNode, MasterCSSManifestConditionNode, MasterCSSManifestConditionNumberNode, MasterCSSManifestConditionOperatorNode, MasterCSSManifestConditionStringNode, MasterCSSManifestConditionValueNode, MasterCSSManifestConditions, MasterCSSManifestDefaultMode, MasterCSSManifestKeyframes, MasterCSSManifestModeTrigger, MasterCSSManifestSelectorCombinatorNode, MasterCSSManifestSelectorLiteralNode, MasterCSSManifestSelectorNode, MasterCSSManifestSelectorSeparatorNode, MasterCSSManifestSelectors, MasterCSSManifestSettings, MasterCSSManifestUtilities, MasterCSSManifestUtility, MasterCSSManifestUtilityEmit, MasterCSSManifestUtilityKind, MasterCSSManifestUtilityLayerName, MasterCSSManifestUtilityMatcher, MasterCSSManifestUtilityMatcherValueSegments, MasterCSSManifestUtilityRule, MasterCSSManifestVariable, MasterCSSManifestVariableAlias, MasterCSSManifestVariableAliasSet, MasterCSSManifestVariableEntry, MasterCSSManifestVariableNumericValue, MasterCSSManifestVariableType, MasterCSSManifestVariableValue, MasterCSSManifestVariables, MasterCSSManifestVariant, MasterCSSManifestVariantBranch, MasterCSSManifestVariantToken, MasterCSSManifestVariants, flattenMasterCSSManifestVariables, getMasterCSSManifestVariableName, groupMasterCSSManifestVariables };
80
+ export { type MasterCSSKeyframeDefinition, MasterCSSManifest, MasterCSSManifestCSSDeclarationPrimitive, MasterCSSManifestCSSDeclarations, MasterCSSManifestConditionIdentifier, MasterCSSManifestUtilityLayerName, MasterCSSManifestVariable, MasterCSSManifestVariableEntry, MasterCSSManifestVariableNumericValue, MasterCSSManifestVariableType, MasterCSSManifestVariableValue, MasterCSSManifestVariables, MasterCSSMediaQueryExpression, type MasterCSSMixinDefinition, type MasterCSSMixinNode, type MasterCSSMixinParameter, type MasterCSSMixinParameterSyntax, type MasterCSSMixinValue, MasterCSSScopedThemeValue, MasterCSSThemeNode, type MasterCSSUtilityDefinition, flattenMasterCSSManifestVariables, getMasterCSSManifestVariableName, groupMasterCSSManifestVariables, normalizeMasterCSSManifest, serializeMasterCSSManifest };
package/dist/manifest.js CHANGED
@@ -1,11 +1,12 @@
1
- //#region src/manifest.ts
1
+ import { normalizeMasterCSSManifest, serializeMasterCSSManifest } from "./manifest-json.js";
2
+ // src/manifest.ts
2
3
  function getMasterCSSManifestVariableName(namespace, variable) {
3
4
  return variable.name || (namespace ? `${namespace}${variable.key ? "-" + variable.key : ""}` : variable.key);
4
5
  }
5
6
  function flattenMasterCSSManifestVariables(variables) {
6
7
  const flattened = [];
7
8
  for (const [namespace, definitions] of Object.entries(variables || {})) for (const definition of definitions) {
8
- const type = definition.type || (typeof definition.value === "number" ? "number" : "string");
9
+ const type = definition.type || "string";
9
10
  flattened.push({
10
11
  ...definition,
11
12
  name: getMasterCSSManifestVariableName(namespace, definition),
@@ -26,5 +27,4 @@ function groupMasterCSSManifestVariables(variables) {
26
27
  }
27
28
  return Object.keys(grouped).length ? grouped : void 0;
28
29
  }
29
- //#endregion
30
- export { flattenMasterCSSManifestVariables, getMasterCSSManifestVariableName, groupMasterCSSManifestVariables };
30
+ export { flattenMasterCSSManifestVariables, getMasterCSSManifestVariableName, groupMasterCSSManifestVariables, normalizeMasterCSSManifest, serializeMasterCSSManifest };
@@ -0,0 +1,49 @@
1
+ import { CSSDirectiveSourceReference } from "./css-directives.js";
2
+ type MasterCSSMixinParameterSyntax = 'integer' | 'number' | 'string' | 'custom-ident';
3
+ interface MasterCSSMixinParameter {
4
+ name: string;
5
+ syntax?: MasterCSSMixinParameterSyntax;
6
+ default?: string;
7
+ source?: CSSDirectiveSourceReference;
8
+ }
9
+ type MasterCSSMixinValue = ({
10
+ type: 'text';
11
+ value: string;
12
+ } | {
13
+ type: 'function';
14
+ name: string;
15
+ value: MasterCSSMixinValue;
16
+ })[];
17
+ type MasterCSSMixinNode = {
18
+ type: 'declaration';
19
+ property: string;
20
+ value: MasterCSSMixinValue;
21
+ source?: CSSDirectiveSourceReference;
22
+ } | {
23
+ type: 'rule';
24
+ selector: string;
25
+ body: MasterCSSMixinNode[];
26
+ } | {
27
+ type: 'condition';
28
+ condition: string;
29
+ body: MasterCSSMixinNode[];
30
+ } | {
31
+ type: 'apply';
32
+ name: string;
33
+ arguments: MasterCSSMixinValue[];
34
+ contents?: MasterCSSMixinNode[];
35
+ source?: CSSDirectiveSourceReference;
36
+ } | {
37
+ type: 'contents';
38
+ fallback: MasterCSSMixinNode[];
39
+ };
40
+ interface MasterCSSMixinDefinition {
41
+ name: string;
42
+ parameters?: MasterCSSMixinParameter[];
43
+ body: MasterCSSMixinNode[];
44
+ source?: CSSDirectiveSourceReference;
45
+ }
46
+ interface MasterCSSUtilityDefinition extends MasterCSSMixinDefinition {
47
+ kind: 'static' | 'token' | 'function';
48
+ }
49
+ export { MasterCSSMixinDefinition, MasterCSSMixinNode, MasterCSSMixinParameter, MasterCSSMixinParameterSyntax, MasterCSSMixinValue, MasterCSSUtilityDefinition };
package/dist/mixin.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,2 @@
1
- //#region src/runtime-style.d.ts
2
1
  declare const MASTER_CSS_RUNTIME_STYLE_ID = "master-css";
3
- //#endregion
4
2
  export { MASTER_CSS_RUNTIME_STYLE_ID };
@@ -1,4 +1,3 @@
1
- //#region src/runtime-style.ts
1
+ // src/runtime-style.ts
2
2
  const MASTER_CSS_RUNTIME_STYLE_ID = "master-css";
3
- //#endregion
4
3
  export { MASTER_CSS_RUNTIME_STYLE_ID };
@@ -1,21 +1,14 @@
1
- //#region src/utility-type.d.ts
2
1
  declare const UtilityType: {
3
2
  /**
4
3
  * semantic utility classes
5
- * @example block, inline
4
+ * @example sr-only, text-sm
6
5
  */
7
6
  readonly Semantic: -2;
8
- /**
9
- * shorthand
10
- * @example border, padding, margin
11
- */
12
- readonly Shorthand: -1;
13
7
  /**
14
8
  * normal
15
- * @example grid-cols
9
+ * @example p-md, font-size:1rem
16
10
  */
17
11
  readonly Normal: 0;
18
12
  };
19
13
  type UtilityType = typeof UtilityType[keyof typeof UtilityType];
20
- //#endregion
21
- export { UtilityType, UtilityType as default };
14
+ export { UtilityType };
@@ -1,20 +1,14 @@
1
- //#region src/utility-type.ts
1
+ // src/utility-type.ts
2
2
  const UtilityType = {
3
3
  /**
4
4
  * semantic utility classes
5
- * @example block, inline
5
+ * @example sr-only, text-sm
6
6
  */
7
7
  Semantic: -2,
8
8
  /**
9
- * shorthand
10
- * @example border, padding, margin
11
- */
12
- Shorthand: -1,
13
- /**
14
9
  * normal
15
- * @example grid-cols
10
+ * @example p-md, font-size:1rem
16
11
  */
17
12
  Normal: 0
18
13
  };
19
- //#endregion
20
- export { UtilityType, UtilityType as default };
14
+ export { UtilityType };
package/package.json CHANGED
@@ -1,99 +1,103 @@
1
1
  {
2
- "name": "@master/css-schema",
3
- "type": "module",
4
- "license": "MIT",
5
- "description": "Public Master CSS schema and wire-format contracts.",
6
- "author": "Aoyue Design LLC.",
7
- "funding": "https://rc.css.master.co/sponsor",
8
- "homepage": "https://css.master.co",
9
- "bugs": {
10
- "url": "https://github.com/master-co/css/issues"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/master-co/css.git",
15
- "directory": "packages/schema"
16
- },
17
- "keywords": [
18
- "schema",
19
- "manifest",
20
- "css",
21
- "mastercss"
22
- ],
23
- "sideEffects": false,
24
- "main": "./dist/index.js",
25
- "jsnext:main": "./dist/index.js",
26
- "esnext": "./dist/index.js",
27
- "module": "./dist/index.js",
28
- "types": "./dist/index.d.ts",
29
- "exports": {
30
- ".": {
31
- "types": "./dist/index.d.ts",
32
- "import": "./dist/index.js",
33
- "default": "./dist/index.js"
2
+ "name": "@master/css-schema",
3
+ "type": "module",
4
+ "engines": {
5
+ "node": "^24"
34
6
  },
35
- "./manifest": {
36
- "types": "./dist/manifest.d.ts",
37
- "import": "./dist/manifest.js",
38
- "default": "./dist/manifest.js"
7
+ "scripts": {
8
+ "build": "bun --bun tsdown --config ../../shared/tsdown-package.config.ts",
9
+ "dev": "bun --bun tsdown --config ../../shared/tsdown-package.config.ts --watch",
10
+ "lint": "bun --bun eslint",
11
+ "type-check": "bun --bun tsc -b tsconfig.typecheck.json",
12
+ "test": "bun --bun vitest run"
39
13
  },
40
- "./manifest-json": {
41
- "types": "./dist/manifest-json.d.ts",
42
- "import": "./dist/manifest-json.js",
43
- "default": "./dist/manifest-json.js"
14
+ "license": "MIT",
15
+ "description": "Public Master CSS schema and wire-format contracts.",
16
+ "author": "Aoyue Design LLC.",
17
+ "homepage": "https://css.master.co",
18
+ "bugs": {
19
+ "url": "https://github.com/master-co/css/issues"
44
20
  },
45
- "./hydration-manifest": {
46
- "types": "./dist/hydration-manifest.d.ts",
47
- "import": "./dist/hydration-manifest.js",
48
- "default": "./dist/hydration-manifest.js"
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/master-co/css.git",
24
+ "directory": "packages/schema"
49
25
  },
50
- "./css-directives": {
51
- "types": "./dist/css-directives.d.ts",
52
- "import": "./dist/css-directives.js",
53
- "default": "./dist/css-directives.js"
26
+ "keywords": [
27
+ "schema",
28
+ "manifest",
29
+ "css",
30
+ "mastercss"
31
+ ],
32
+ "sideEffects": false,
33
+ "types": "./dist/index.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "import": "./dist/index.js",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./manifest": {
41
+ "types": "./dist/manifest.d.ts",
42
+ "import": "./dist/manifest.js",
43
+ "default": "./dist/manifest.js"
44
+ },
45
+ "./hydration-manifest": {
46
+ "types": "./dist/hydration-manifest.d.ts",
47
+ "import": "./dist/hydration-manifest.js",
48
+ "default": "./dist/hydration-manifest.js"
49
+ },
50
+ "./css-directives": {
51
+ "types": "./dist/css-directives.d.ts",
52
+ "import": "./dist/css-directives.js",
53
+ "default": "./dist/css-directives.js"
54
+ },
55
+ "./css-syntax": {
56
+ "types": "./dist/css-syntax.d.ts",
57
+ "import": "./dist/css-syntax.js",
58
+ "default": "./dist/css-syntax.js"
59
+ },
60
+ "./utility-type": {
61
+ "types": "./dist/utility-type.d.ts",
62
+ "import": "./dist/utility-type.js",
63
+ "default": "./dist/utility-type.js"
64
+ },
65
+ "./runtime-style": {
66
+ "types": "./dist/runtime-style.d.ts",
67
+ "import": "./dist/runtime-style.js",
68
+ "default": "./dist/runtime-style.js"
69
+ },
70
+ "./emitted-globals": {
71
+ "types": "./dist/emitted-globals.d.ts",
72
+ "import": "./dist/emitted-globals.js",
73
+ "default": "./dist/emitted-globals.js"
74
+ },
75
+ "./css-common": {
76
+ "types": "./dist/css-common.d.ts",
77
+ "import": "./dist/css-common.js",
78
+ "default": "./dist/css-common.js"
79
+ },
80
+ "./diagnostics": {
81
+ "types": "./dist/diagnostics.d.ts",
82
+ "import": "./dist/diagnostics.js",
83
+ "default": "./dist/diagnostics.js"
84
+ },
85
+ "./integration": {
86
+ "types": "./dist/integration.d.ts",
87
+ "import": "./dist/integration.js",
88
+ "default": "./dist/integration.js"
89
+ }
54
90
  },
55
- "./css-syntax": {
56
- "types": "./dist/css-syntax.d.ts",
57
- "import": "./dist/css-syntax.js",
58
- "default": "./dist/css-syntax.js"
91
+ "files": [
92
+ "dist"
93
+ ],
94
+ "publishConfig": {
95
+ "access": "public",
96
+ "provenance": true
59
97
  },
60
- "./utility-type": {
61
- "types": "./dist/utility-type.d.ts",
62
- "import": "./dist/utility-type.js",
63
- "default": "./dist/utility-type.js"
98
+ "dependencies": {
99
+ "csstype": "^3.2.3"
64
100
  },
65
- "./runtime-style": {
66
- "types": "./dist/runtime-style.d.ts",
67
- "import": "./dist/runtime-style.js",
68
- "default": "./dist/runtime-style.js"
69
- },
70
- "./native-css-shorthand": {
71
- "types": "./dist/native-css-shorthand.d.ts",
72
- "import": "./dist/native-css-shorthand.js",
73
- "default": "./dist/native-css-shorthand.js"
74
- },
75
- "./css-common": {
76
- "types": "./dist/css-common.d.ts",
77
- "import": "./dist/css-common.js",
78
- "default": "./dist/css-common.js"
79
- }
80
- },
81
- "files": [
82
- "dist"
83
- ],
84
- "publishConfig": {
85
- "access": "public",
86
- "provenance": true
87
- },
88
- "dependencies": {
89
- "csstype": "^3.2.3"
90
- },
91
- "version": "2.0.0-rc.88",
92
- "scripts": {
93
- "build": "tsdown --config ../../shared/tsdown-package.config.ts",
94
- "dev": "tsdown --config ../../shared/tsdown-package.config.ts --watch",
95
- "lint": "eslint",
96
- "type-check": "tsc -b tsconfig.typecheck.json",
97
- "test": "vitest"
98
- }
99
- }
101
+ "version": "2.0.1",
102
+ "gitHead": "76012032a62d59365419b6acb74781d62f003874"
103
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (c) Aoyue Design LLC.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,5 +0,0 @@
1
- //#region src/native-css-shorthand.d.ts
2
- declare const nativeCSSShorthandProperties: Set<string>;
3
- declare function isNativeCSSShorthandProperty(property: string): boolean;
4
- //#endregion
5
- export { nativeCSSShorthandProperties as default, isNativeCSSShorthandProperty };