@veryfront/ext-css-tailwind 0.1.1271-rc.23194 → 0.1.1271-rc.23211
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/NOTICE +46 -0
- package/README.md +41 -1
- package/esm/deno.d.ts +3 -0
- package/esm/deno.js +13 -4
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/index.js +3 -1
- package/esm/src/plugin-loader.d.ts.map +1 -1
- package/esm/src/plugin-loader.js +1 -1
- package/esm/src/plugin-policy.d.ts +4 -0
- package/esm/src/plugin-policy.d.ts.map +1 -1
- package/esm/src/plugin-policy.js +6 -4
- package/esm/vendor/typography.d.ts +4 -0
- package/esm/vendor/typography.d.ts.map +1 -0
- package/esm/vendor/typography.js +1851 -0
- package/esm/vendor-sources.d.ts +18 -0
- package/esm/vendor-sources.d.ts.map +1 -0
- package/esm/vendor-sources.js +18 -0
- package/package.json +4 -4
package/NOTICE
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
1
|
Veryfront Code
|
|
2
2
|
Copyright 2026 Veryfront GmbH
|
|
3
|
+
|
|
4
|
+
PurgeCSS 8.0.0 in-memory source distribution
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2020 Full Human
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
|
|
27
|
+
@tailwindcss/typography 0.5.19 — reviewed parser-patched source distribution
|
|
28
|
+
MIT License
|
|
29
|
+
|
|
30
|
+
Copyright (c) Tailwind Labs, Inc.
|
|
31
|
+
|
|
32
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
33
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
34
|
+
in the Software without restriction, including without limitation the rights
|
|
35
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
36
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
37
|
+
furnished to do so, subject to the following conditions:
|
|
38
|
+
|
|
39
|
+
The above copyright notice and this permission notice shall be included in all
|
|
40
|
+
copies or substantial portions of the Software.
|
|
41
|
+
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
44
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
45
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
46
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
47
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
48
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ receives a plugin value.
|
|
|
40
40
|
The audited local inventory is:
|
|
41
41
|
|
|
42
42
|
- `@tailwindcss/forms@0.5.11`
|
|
43
|
-
- `@tailwindcss/typography@0.5.19`
|
|
43
|
+
- `@tailwindcss/typography@0.5.19` source distribution with selector-parser 7.1.6
|
|
44
44
|
- `daisyui@5.5.14`
|
|
45
45
|
- `tailwind-scrollbar-hide@2.0.0`
|
|
46
46
|
- `tailwindcss-animate@1.0.7`
|
|
@@ -63,3 +63,43 @@ The extension requests no network or filesystem-write capability.
|
|
|
63
63
|
No factory options. Inherited configuration, accessors, and unknown keys are
|
|
64
64
|
rejected. The base stylesheet is local and mandatory; there is no CDN or empty
|
|
65
65
|
stylesheet fallback.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## Typography parser security
|
|
69
|
+
|
|
70
|
+
The static Typography plugin uses a reviewed distribution of upstream 0.5.19's
|
|
71
|
+
three source modules, bound directly to selector-parser 7.1.6. Upstream 0.5.20
|
|
72
|
+
still pins affected parser 6.0.10. Root dependency overrides are insufficient for
|
|
73
|
+
published npm library consumers, so the extension no longer installs the upstream
|
|
74
|
+
Typography npm package. Styles and selector algorithms are retained; reversible
|
|
75
|
+
edits convert the CommonJS module bindings to a single ESM module, remove one
|
|
76
|
+
unused imported name, and make unchanged local bindings constant for existing
|
|
77
|
+
lint rules. No plugin, config, filesystem or network admission is broadened.
|
|
78
|
+
|
|
79
|
+
Verify all three original source hashes, the MIT license, and the exact bundled
|
|
80
|
+
source offline:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
deno run --frozen --allow-read scripts/build/prepare-typography-source.ts
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`vendor-sources.json` binds the modified distribution and upstream npm pedigree
|
|
87
|
+
for SBOMs. The engine cache identity binds this inventory and its source digest;
|
|
88
|
+
`npmSpecifier` in plugin policy identifies the upstream package, while
|
|
89
|
+
`sourceSpecifier` identifies the actual extension-owned source. Compatibility
|
|
90
|
+
fixtures retain exact CSS hashes produced by the original pinned plugin for eight
|
|
91
|
+
supported stylesheet/theme inputs. Other native and deployed release findings
|
|
92
|
+
remain separately qualified.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
The vendored module uses extension-declared exact aliases for the compiler plugin,
|
|
96
|
+
colors and selector parser. This preserves npm subpaths in supported Node source
|
|
97
|
+
loaders. Its private default export has an explicit opaque type, matching the
|
|
98
|
+
existing plugin loader contract and keeping generated declarations independent
|
|
99
|
+
of Tailwind's private declaration filenames.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
The configuration merge also rejects `__proto__`, `constructor` and `prototype`
|
|
103
|
+
keys before copying a value, and only enumerates own properties. This fixes the
|
|
104
|
+
upstream merge helper's prototype-pollution behavior. Encountering one of those keys aborts the merge before components are produced. The guard is a recorded reversible source
|
|
105
|
+
edit, and valid supported CSS output fixtures remain unchanged.
|
package/esm/deno.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ declare namespace _default {
|
|
|
29
29
|
"veryfront/extensions": string;
|
|
30
30
|
"veryfront/extensions/css": string;
|
|
31
31
|
"veryfront/errors": string;
|
|
32
|
+
"postcss-selector-parser": string;
|
|
33
|
+
"tailwindcss/plugin": string;
|
|
34
|
+
"tailwindcss/colors": string;
|
|
32
35
|
};
|
|
33
36
|
namespace tasks {
|
|
34
37
|
let test: string;
|
package/esm/deno.js
CHANGED
|
@@ -6,16 +6,22 @@ export default {
|
|
|
6
6
|
"extension": true,
|
|
7
7
|
"activation": "auto",
|
|
8
8
|
"contracts": {
|
|
9
|
-
"provides": [
|
|
9
|
+
"provides": [
|
|
10
|
+
"CSSProcessor"
|
|
11
|
+
]
|
|
10
12
|
},
|
|
11
13
|
"npm": {
|
|
12
14
|
"runtimeVersionFromManifest": true
|
|
13
15
|
},
|
|
14
|
-
"capabilities": [
|
|
16
|
+
"capabilities": [
|
|
17
|
+
{
|
|
18
|
+
"type": "fs:read"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
15
21
|
},
|
|
16
22
|
"imports": {
|
|
17
23
|
"@tailwindcss/forms": "npm:@tailwindcss/forms@0.5.11",
|
|
18
|
-
"@tailwindcss/typography": "
|
|
24
|
+
"@tailwindcss/typography": "./vendor/typography.js",
|
|
19
25
|
"daisyui": "npm:daisyui@5.5.14",
|
|
20
26
|
"tailwind-scrollbar-hide": "npm:tailwind-scrollbar-hide@2.0.0",
|
|
21
27
|
"tailwindcss": "npm:tailwindcss@4.2.2",
|
|
@@ -26,7 +32,10 @@ export default {
|
|
|
26
32
|
"@std/testing/bdd": "jsr:@std/testing@1.0.17/bdd",
|
|
27
33
|
"veryfront/extensions": "../../src/extensions/index.ts",
|
|
28
34
|
"veryfront/extensions/css": "../../src/extensions/css/index.ts",
|
|
29
|
-
"veryfront/errors": "../../src/errors/index.ts"
|
|
35
|
+
"veryfront/errors": "../../src/errors/index.ts",
|
|
36
|
+
"postcss-selector-parser": "npm:postcss-selector-parser@7.1.6",
|
|
37
|
+
"tailwindcss/plugin": "npm:tailwindcss@4.2.2/plugin",
|
|
38
|
+
"tailwindcss/colors": "npm:tailwindcss@4.2.2/colors"
|
|
30
39
|
},
|
|
31
40
|
"tasks": {
|
|
32
41
|
"test": "deno test --frozen --allow-read src/"
|
package/esm/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AAqBjG,eAAO,MAAM,2BAA2B,qKAEqD,CAAC;AAqD9F,qBAAa,oBAAqB,YAAW,YAAY;IACvD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,sKAA+B;;IAgBnD,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CA2CxD;AAKD,QAAA,MAAM,WAAW,EAAE,gBAYlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/esm/src/index.js
CHANGED
|
@@ -7,11 +7,12 @@ import { isProxy as isProxyWithoutHooks } from "node:util/types";
|
|
|
7
7
|
import { CSSProcessorName } from "veryfront/extensions/css";
|
|
8
8
|
import { IMPORT_RESOLUTION_ERROR } from "veryfront/errors";
|
|
9
9
|
import { compile } from "tailwindcss";
|
|
10
|
+
import vendorSources from "../vendor-sources.js";
|
|
10
11
|
import extensionPackage from "../deno.js";
|
|
11
12
|
import { exactTailwindVersion } from "./manifest-dependency.js";
|
|
12
13
|
import { loadPlugin } from "./plugin-loader.js";
|
|
13
14
|
import { TAILWIND_PLUGIN_POLICY_IDENTITY } from "./plugin-policy.js";
|
|
14
|
-
const ENGINE_SEMANTICS_VERSION = "veryfront.css-tailwind.
|
|
15
|
+
const ENGINE_SEMANTICS_VERSION = "veryfront.css-tailwind.v5";
|
|
15
16
|
const apply = Reflect.apply;
|
|
16
17
|
const arrayJoin = Array.prototype.join;
|
|
17
18
|
const freeze = Object.freeze;
|
|
@@ -85,6 +86,7 @@ export class TailwindCSSProcessor {
|
|
|
85
86
|
`ext-css-tailwind@${extensionPackage.version}`,
|
|
86
87
|
`tailwindcss@${tailwindVersion}`,
|
|
87
88
|
`base=${sha256(tailwindBaseStylesheet)}`,
|
|
89
|
+
`vendor=${sha256(JSON.stringify(vendorSources))}`,
|
|
88
90
|
`default=${sha256(this.defaultStylesheet)}`,
|
|
89
91
|
`plugins=${sha256(TAILWIND_PLUGIN_POLICY_IDENTITY)}`,
|
|
90
92
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-loader.d.ts","sourceRoot":"","sources":["../../src/src/plugin-loader.ts"],"names":[],"mappings":"AAAA,gEAAgE;
|
|
1
|
+
{"version":3,"file":"plugin-loader.d.ts","sourceRoot":"","sources":["../../src/src/plugin-loader.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAuEhE;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAK9C"}
|
package/esm/src/plugin-loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Static plugin loading owned entirely by ext-css-tailwind. */
|
|
2
2
|
import forms from "@tailwindcss/forms";
|
|
3
|
-
import typography from "
|
|
3
|
+
import typography from "../vendor/typography.js";
|
|
4
4
|
import daisyui from "daisyui";
|
|
5
5
|
import scrollbarHide from "tailwind-scrollbar-hide";
|
|
6
6
|
import tailwindcssAnimate from "tailwindcss-animate";
|
|
@@ -3,7 +3,9 @@ export type TailwindPluginPolicyEntry = Readonly<{
|
|
|
3
3
|
name: string;
|
|
4
4
|
version: string;
|
|
5
5
|
importSpecifier: string;
|
|
6
|
+
/** Exact upstream npm identity; sourceSpecifier records the actual implementation. */
|
|
6
7
|
npmSpecifier: string;
|
|
8
|
+
sourceSpecifier: string;
|
|
7
9
|
}>;
|
|
8
10
|
/**
|
|
9
11
|
* Complete immutable inventory of third-party plugin implementations shipped
|
|
@@ -14,7 +16,9 @@ export declare const TAILWIND_PLUGIN_POLICY: readonly Readonly<{
|
|
|
14
16
|
name: string;
|
|
15
17
|
version: string;
|
|
16
18
|
importSpecifier: string;
|
|
19
|
+
/** Exact upstream npm identity; sourceSpecifier records the actual implementation. */
|
|
17
20
|
npmSpecifier: string;
|
|
21
|
+
sourceSpecifier: string;
|
|
18
22
|
}>[];
|
|
19
23
|
export declare const PACKAGE_SPEC_RE: Readonly<RegExp>;
|
|
20
24
|
export declare function bareName(specifier: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-policy.d.ts","sourceRoot":"","sources":["../../src/src/plugin-policy.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-policy.d.ts","sourceRoot":"","sources":["../../src/src/plugin-policy.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AA6BH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;UAxC3B,MAAM;aACH,MAAM;qBACE,MAAM;IACvB,sFAAsF;kBACxE,MAAM;qBACH,MAAM;IAyCvB,CAAC;AAEH,eAAO,MAAM,eAAe,kBAE3B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAUlD;AAaD,eAAO,MAAM,yBAAyB,mBAAoB,CAAC;AAE3D,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,GAChB,yBAAyB,CAqB3B;AAyBD,eAAO,MAAM,+BAA+B,EAIrC,MAAM,CAAC"}
|
package/esm/src/plugin-policy.js
CHANGED
|
@@ -11,12 +11,13 @@ const regexpExec = RegExp.prototype.exec;
|
|
|
11
11
|
const stringIndexOf = String.prototype.indexOf;
|
|
12
12
|
const stringSlice = String.prototype.slice;
|
|
13
13
|
const stringStartsWith = String.prototype.startsWith;
|
|
14
|
-
function definePlugin(name, version) {
|
|
14
|
+
function definePlugin(name, version, sourceSpecifier = `npm:${name}@${version}`) {
|
|
15
15
|
return freeze({
|
|
16
16
|
name,
|
|
17
17
|
version,
|
|
18
18
|
importSpecifier: name,
|
|
19
19
|
npmSpecifier: `npm:${name}@${version}`,
|
|
20
|
+
sourceSpecifier,
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
@@ -26,7 +27,7 @@ function definePlugin(name, version) {
|
|
|
26
27
|
*/
|
|
27
28
|
export const TAILWIND_PLUGIN_POLICY = freeze([
|
|
28
29
|
definePlugin("tailwindcss-animate", "1.0.7"),
|
|
29
|
-
definePlugin("@tailwindcss/typography", "0.5.19"),
|
|
30
|
+
definePlugin("@tailwindcss/typography", "0.5.19", "./vendor/typography.js"),
|
|
30
31
|
definePlugin("@tailwindcss/forms", "0.5.11"),
|
|
31
32
|
definePlugin("tailwind-scrollbar-hide", "2.0.0"),
|
|
32
33
|
definePlugin("daisyui", "5.5.14"),
|
|
@@ -74,13 +75,14 @@ const identityPlugins = apply(arrayMap, TAILWIND_PLUGIN_POLICY, [
|
|
|
74
75
|
version: entry.version,
|
|
75
76
|
importSpecifier: entry.importSpecifier,
|
|
76
77
|
npmSpecifier: entry.npmSpecifier,
|
|
78
|
+
sourceSpecifier: entry.sourceSpecifier,
|
|
77
79
|
}),
|
|
78
80
|
]);
|
|
79
81
|
apply(arraySort, identityPlugins, [
|
|
80
82
|
(left, right) => left.name < right.name ? -1 : left.name > right.name ? 1 : 0,
|
|
81
83
|
]);
|
|
82
84
|
export const TAILWIND_PLUGIN_POLICY_IDENTITY = apply(jsonStringify, JSON, [{
|
|
83
|
-
schema: "veryfront.tailwind-plugin-policy.
|
|
84
|
-
resolution: "extension-owned-static-
|
|
85
|
+
schema: "veryfront.tailwind-plugin-policy.v4",
|
|
86
|
+
resolution: "extension-owned-static-imports",
|
|
85
87
|
plugins: identityPlugins,
|
|
86
88
|
}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/vendor/typography.js"],"names":[],"mappings":";AAq0DA,sBAAsB;AACtB,0BADW,OAAO,CA0EjB"}
|