@octanejs/vite-plugin 0.1.57 → 0.1.58
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/package.json +4 -4
- package/src/index.js +5 -1
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ripple-ts/adapter": "^0.4.0",
|
|
50
|
-
"@octanejs/app-core": "0.0.
|
|
50
|
+
"@octanejs/app-core": "0.0.54"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"vite": "^8.0.16",
|
|
54
|
-
"octane": "^0.
|
|
54
|
+
"octane": "^0.4.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/jsdom": "30.0.0",
|
|
58
58
|
"@types/node": "^24.13.3",
|
|
59
59
|
"playwright": "^1.61.1",
|
|
60
60
|
"vite": "^8.1.5",
|
|
61
|
-
"octane": "0.
|
|
61
|
+
"octane": "0.4.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/src/index.js
CHANGED
|
@@ -265,7 +265,7 @@ function collect_hydrate_module_paths(config) {
|
|
|
265
265
|
* it). An explicit `profile` (true or false) always takes precedence over
|
|
266
266
|
* `devtools`.
|
|
267
267
|
*
|
|
268
|
-
* @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
|
|
268
|
+
* @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'], exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
|
|
269
269
|
* @returns {Plugin[]}
|
|
270
270
|
*/
|
|
271
271
|
export function octane(inlineOptions = {}) {
|
|
@@ -1098,6 +1098,7 @@ export function octane(inlineOptions = {}) {
|
|
|
1098
1098
|
* strong?: boolean,
|
|
1099
1099
|
* textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'],
|
|
1100
1100
|
* knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'],
|
|
1101
|
+
* domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'],
|
|
1101
1102
|
* exclude?: string[],
|
|
1102
1103
|
* requireDirective?: boolean,
|
|
1103
1104
|
* renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions,
|
|
@@ -1120,6 +1121,9 @@ export function octane(inlineOptions = {}) {
|
|
|
1120
1121
|
if (inlineOptions.knownAttributeSpreads !== undefined) {
|
|
1121
1122
|
compilerOptions.knownAttributeSpreads = inlineOptions.knownAttributeSpreads;
|
|
1122
1123
|
}
|
|
1124
|
+
if (inlineOptions.domBindingFixedProps !== undefined) {
|
|
1125
|
+
compilerOptions.domBindingFixedProps = inlineOptions.domBindingFixedProps;
|
|
1126
|
+
}
|
|
1123
1127
|
if (inlineOptions.exclude !== undefined) compilerOptions.exclude = inlineOptions.exclude;
|
|
1124
1128
|
if (inlineOptions.requireDirective !== undefined) {
|
|
1125
1129
|
compilerOptions.requireDirective = inlineOptions.requireDirective;
|
package/types/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface OctanePluginOptions {
|
|
|
21
21
|
textTypes?: OctaneVitePluginOptions['textTypes'];
|
|
22
22
|
/** Fixed native attribute factories and optional JSX shorthand providers. */
|
|
23
23
|
knownAttributeSpreads?: OctaneVitePluginOptions['knownAttributeSpreads'];
|
|
24
|
+
/** Opt in to fixed primitive child props by name; keep text and IDs live for sharing. */
|
|
25
|
+
domBindingFixedProps?: OctaneVitePluginOptions['domBindingFixedProps'];
|
|
24
26
|
/**
|
|
25
27
|
* Path fragments the compiler's plain `.ts`/`.js` hook-slotting pass must
|
|
26
28
|
* skip. Prefer package manifest `octane.hookSlots.manual` declarations.
|