coralite 0.31.6 → 0.31.7
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/README.md +1 -1
- package/dist/lib/coralite.d.ts.map +1 -1
- package/dist/lib/index.js +36 -38
- package/dist/lib/index.js.map +3 -3
- package/dist/lib/plugin.d.ts +4 -4
- package/dist/lib/script-manager.d.ts.map +1 -1
- package/dist/plugins/define-component.js +2 -2
- package/dist/plugins/metadata.js +2 -2
- package/dist/plugins/refs.d.ts +3 -0
- package/dist/plugins/refs.d.ts.map +1 -1
- package/dist/plugins/refs.js +6 -7
- package/dist/plugins/static-assets.js +2 -2
- package/dist/types/script.d.ts +11 -6
- package/dist/types/script.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ coralite is a static site generator library built around the emerging [HTML modu
|
|
|
17
17
|
- [Coralite](https://coralite.dev/docs/reference/coralite.html)
|
|
18
18
|
- [Plugin system](https://coralite.dev/docs/reference/plugins/index.html)
|
|
19
19
|
- [Create plugin](https://coralite.dev/docs/reference/plugins/create-plugin.html)
|
|
20
|
-
- The `
|
|
20
|
+
- The `definePlugin` function is the entry point for extending Coralite's functionality.
|
|
21
21
|
- [Define component](https://coralite.dev/docs/reference/plugins/define-component.html)
|
|
22
22
|
- The `defineComponent` plugin is Coralite's core built-in plugin that enables dynamic template functionality.
|
|
23
23
|
- [Ref](https://coralite.dev/docs/reference/plugins/refs-plugin.html)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coralite.d.ts","sourceRoot":"","sources":["../../lib/coralite.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH,2IAXW,cAAc,QAmMxB;;IA3ND;;;;;;;;;;;;;;;;OAgBG;IAEH;;OAEG;IAEH;;;;;;;;;;;;OAYG;IACH,8HAXW,cAAc,EAmMxB;IA1JC,6DAA+B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,GAAC,gBAAgB,GAAC,mBAAmB,GAAC,mBAAmB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,QAC1K,CAAC,GACA,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAc5B;IAED;;;;;;;OAOG;IACH,qBAHW,WAAW,GAAC,cAAc,GAAC,cAAc,GAAC,gBAAgB,GAAC,mBAAmB,GAAC,mBAAmB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,4BAapL;;;wCA1vCU,cAAc,KACZ,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG;oCA9rCN,mBAAmB;4CAAnB,mBAAmB;8BA/Bd,qBAAqB;6BAHT,WAAW;4BAAX,WAAW;+BACiB,YAAY;2CAiCzD,mBAAmB;qCAAnB,mBAAmB;0CAIL,gBAAgB;+BAvBxB,iBAAiB;oCAmBvB,mBAAmB;uCAAnB,mBAAmB;0CAAnB,mBAAmB;qCAAnB,mBAAmB;oCAAnB,mBAAmB"}
|
package/dist/lib/index.js
CHANGED
|
@@ -6840,7 +6840,7 @@ CoraliteCollection.prototype.setItem = async function(value) {
|
|
|
6840
6840
|
throw new Error("Valid HTMLData object must be provided");
|
|
6841
6841
|
}
|
|
6842
6842
|
const pathname = value.path.pathname;
|
|
6843
|
-
const
|
|
6843
|
+
const dirname6 = value.path.dirname;
|
|
6844
6844
|
const originalValue = this.collection[pathname];
|
|
6845
6845
|
if (value.content === void 0 && pathname) {
|
|
6846
6846
|
value.content = await getHtmlFile(pathname);
|
|
@@ -6861,11 +6861,11 @@ CoraliteCollection.prototype.setItem = async function(value) {
|
|
|
6861
6861
|
}
|
|
6862
6862
|
}
|
|
6863
6863
|
this.collection[pathname] = documentValue;
|
|
6864
|
-
if (!this.listByPath[
|
|
6865
|
-
this.listByPath[
|
|
6864
|
+
if (!this.listByPath[dirname6]) {
|
|
6865
|
+
this.listByPath[dirname6] = [];
|
|
6866
6866
|
}
|
|
6867
|
-
if (!this.listByPath[
|
|
6868
|
-
this.listByPath[
|
|
6867
|
+
if (!this.listByPath[dirname6].includes(documentValue)) {
|
|
6868
|
+
this.listByPath[dirname6].push(documentValue);
|
|
6869
6869
|
}
|
|
6870
6870
|
if (!this.list.includes(documentValue)) {
|
|
6871
6871
|
this.list.push(documentValue);
|
|
@@ -6880,18 +6880,18 @@ CoraliteCollection.prototype.deleteItem = async function(value) {
|
|
|
6880
6880
|
throw new Error("Valid pathname must be provided");
|
|
6881
6881
|
}
|
|
6882
6882
|
let pathname;
|
|
6883
|
-
let
|
|
6883
|
+
let dirname6;
|
|
6884
6884
|
let valuesByPath;
|
|
6885
6885
|
let originalValue;
|
|
6886
6886
|
if (typeof value !== "string" && value.path) {
|
|
6887
6887
|
pathname = value.path.pathname;
|
|
6888
|
-
|
|
6889
|
-
valuesByPath = this.listByPath[
|
|
6888
|
+
dirname6 = value.path.dirname;
|
|
6889
|
+
valuesByPath = this.listByPath[dirname6];
|
|
6890
6890
|
originalValue = value;
|
|
6891
6891
|
} else if (typeof value === "string") {
|
|
6892
6892
|
pathname = value;
|
|
6893
|
-
|
|
6894
|
-
valuesByPath = this.listByPath[
|
|
6893
|
+
dirname6 = path.dirname(pathname);
|
|
6894
|
+
valuesByPath = this.listByPath[dirname6];
|
|
6895
6895
|
originalValue = this.collection[pathname];
|
|
6896
6896
|
} else {
|
|
6897
6897
|
throw new Error("Valid pathname must be provided");
|
|
@@ -6924,7 +6924,7 @@ CoraliteCollection.prototype.deleteItem = async function(value) {
|
|
|
6924
6924
|
valuesByPath.splice(pathIndex, 1);
|
|
6925
6925
|
}
|
|
6926
6926
|
if (valuesByPath.length === 0) {
|
|
6927
|
-
delete this.listByPath[
|
|
6927
|
+
delete this.listByPath[dirname6];
|
|
6928
6928
|
}
|
|
6929
6929
|
};
|
|
6930
6930
|
CoraliteCollection.prototype.updateItem = async function(value) {
|
|
@@ -6977,8 +6977,8 @@ CoraliteCollection.prototype.getItem = function(id) {
|
|
|
6977
6977
|
}
|
|
6978
6978
|
return this.collection[id];
|
|
6979
6979
|
};
|
|
6980
|
-
CoraliteCollection.prototype.getListByPath = function(
|
|
6981
|
-
const list = this.listByPath[
|
|
6980
|
+
CoraliteCollection.prototype.getListByPath = function(dirname6) {
|
|
6981
|
+
const list = this.listByPath[dirname6];
|
|
6982
6982
|
if (list) {
|
|
6983
6983
|
return list.slice();
|
|
6984
6984
|
}
|
|
@@ -9465,7 +9465,7 @@ async function transformCss(css, rootClasses, descendantClasses, onError) {
|
|
|
9465
9465
|
import { build } from "esbuild";
|
|
9466
9466
|
import serialize from "serialize-javascript";
|
|
9467
9467
|
import { pathToFileURL, fileURLToPath } from "node:url";
|
|
9468
|
-
import { resolve, parse as parse4 } from "node:path";
|
|
9468
|
+
import { resolve, parse as parse4, dirname as dirname2 } from "node:path";
|
|
9469
9469
|
import { createHash } from "node:crypto";
|
|
9470
9470
|
import { nodeModulesPolyfillPlugin } from "esbuild-plugins-node-modules-polyfill";
|
|
9471
9471
|
function ScriptManager(options = {}) {
|
|
@@ -9994,7 +9994,7 @@ export default {
|
|
|
9994
9994
|
return {
|
|
9995
9995
|
contents,
|
|
9996
9996
|
loader: "js",
|
|
9997
|
-
resolveDir: process.cwd()
|
|
9997
|
+
resolveDir: sharedFn && sharedFn.filePath ? dirname2(sharedFn.filePath) : process.cwd()
|
|
9998
9998
|
};
|
|
9999
9999
|
});
|
|
10000
10000
|
pluginBuild.onLoad({
|
|
@@ -10079,7 +10079,7 @@ export default {
|
|
|
10079
10079
|
return {
|
|
10080
10080
|
contents,
|
|
10081
10081
|
loader: "js",
|
|
10082
|
-
resolveDir: process.cwd()
|
|
10082
|
+
resolveDir: module.rootDir || (module.filePath ? dirname2(module.filePath) : process.cwd())
|
|
10083
10083
|
};
|
|
10084
10084
|
});
|
|
10085
10085
|
pluginBuild.onLoad({
|
|
@@ -10171,7 +10171,7 @@ async function processTokenValue(value, context) {
|
|
|
10171
10171
|
}
|
|
10172
10172
|
return result.root.children;
|
|
10173
10173
|
}
|
|
10174
|
-
var defineComponent =
|
|
10174
|
+
var defineComponent = definePlugin({
|
|
10175
10175
|
name: "defineComponent",
|
|
10176
10176
|
/**
|
|
10177
10177
|
* This function defines a component plugin for the Coralite framework.
|
|
@@ -10322,18 +10322,17 @@ var defineComponent = createPlugin({
|
|
|
10322
10322
|
});
|
|
10323
10323
|
|
|
10324
10324
|
// plugins/refs.js
|
|
10325
|
-
var refsPlugin =
|
|
10325
|
+
var refsPlugin = definePlugin({
|
|
10326
10326
|
name: "refs",
|
|
10327
10327
|
client: {
|
|
10328
10328
|
helpers: {
|
|
10329
10329
|
/**
|
|
10330
10330
|
* Creates a ref resolver function that maps IDs to DOM elements.
|
|
10331
10331
|
*
|
|
10332
|
-
* @
|
|
10333
|
-
* @returns {import('../types/index.js').ScriptPluginHelperLocalInstance}
|
|
10332
|
+
* @returns {ScriptPluginHelperLocalInstance}
|
|
10334
10333
|
*/
|
|
10335
|
-
refs(
|
|
10336
|
-
return ({ values
|
|
10334
|
+
refs() {
|
|
10335
|
+
return ({ values }) => {
|
|
10337
10336
|
const elements = {};
|
|
10338
10337
|
return function(id) {
|
|
10339
10338
|
if (elements[id]) {
|
|
@@ -10343,7 +10342,7 @@ var refsPlugin = createPlugin({
|
|
|
10343
10342
|
if (!refId && typeof refId !== "string") {
|
|
10344
10343
|
return null;
|
|
10345
10344
|
}
|
|
10346
|
-
const element =
|
|
10345
|
+
const element = document.querySelector(`[ref="${refId}"]`);
|
|
10347
10346
|
if (element) {
|
|
10348
10347
|
elements[id] = element;
|
|
10349
10348
|
}
|
|
@@ -10356,7 +10355,7 @@ var refsPlugin = createPlugin({
|
|
|
10356
10355
|
});
|
|
10357
10356
|
|
|
10358
10357
|
// plugins/metadata.js
|
|
10359
|
-
var metadataPlugin =
|
|
10358
|
+
var metadataPlugin = definePlugin({
|
|
10360
10359
|
name: "metadata",
|
|
10361
10360
|
async onPageSet({ elements, values, data: data2 }) {
|
|
10362
10361
|
values.$lang = "";
|
|
@@ -10411,7 +10410,7 @@ var metadataPlugin = createPlugin({
|
|
|
10411
10410
|
});
|
|
10412
10411
|
|
|
10413
10412
|
// lib/plugin.js
|
|
10414
|
-
import { basename, dirname as
|
|
10413
|
+
import { basename, dirname as dirname3 } from "path";
|
|
10415
10414
|
function validateNonEmptyString(value, paramName) {
|
|
10416
10415
|
if (typeof value !== "string" || value.trim().length === 0) {
|
|
10417
10416
|
throw new Error(
|
|
@@ -10485,7 +10484,7 @@ function processComponents(path2) {
|
|
|
10485
10484
|
const componentData = {
|
|
10486
10485
|
path: {
|
|
10487
10486
|
pathname: path2,
|
|
10488
|
-
dirname:
|
|
10487
|
+
dirname: dirname3(path2),
|
|
10489
10488
|
filename: basename(path2)
|
|
10490
10489
|
}
|
|
10491
10490
|
};
|
|
@@ -10496,7 +10495,7 @@ function processComponents(path2) {
|
|
|
10496
10495
|
);
|
|
10497
10496
|
}
|
|
10498
10497
|
}
|
|
10499
|
-
function
|
|
10498
|
+
function definePlugin({
|
|
10500
10499
|
name,
|
|
10501
10500
|
method,
|
|
10502
10501
|
components = [],
|
|
@@ -10585,11 +10584,11 @@ function createPlugin({
|
|
|
10585
10584
|
|
|
10586
10585
|
// plugins/static-assets.js
|
|
10587
10586
|
import { createRequire } from "node:module";
|
|
10588
|
-
import { dirname as
|
|
10587
|
+
import { dirname as dirname4, join as join2 } from "node:path";
|
|
10589
10588
|
import { existsSync as existsSync2 } from "node:fs";
|
|
10590
10589
|
import { cp, mkdir } from "node:fs/promises";
|
|
10591
10590
|
var staticAssetPlugin = (assets = []) => {
|
|
10592
|
-
return
|
|
10591
|
+
return definePlugin({
|
|
10593
10592
|
name: "static-asset-plugin",
|
|
10594
10593
|
onBeforeBuild: async function() {
|
|
10595
10594
|
const outputDir = this.options.output || join2(process.cwd(), "dist");
|
|
@@ -10599,7 +10598,7 @@ var staticAssetPlugin = (assets = []) => {
|
|
|
10599
10598
|
}
|
|
10600
10599
|
const dest = join2(outputDir, asset.dest);
|
|
10601
10600
|
if (asset.src) {
|
|
10602
|
-
await mkdir(
|
|
10601
|
+
await mkdir(dirname4(dest), { recursive: true });
|
|
10603
10602
|
await cp(asset.src, dest, { recursive: true });
|
|
10604
10603
|
continue;
|
|
10605
10604
|
}
|
|
@@ -10609,18 +10608,18 @@ var staticAssetPlugin = (assets = []) => {
|
|
|
10609
10608
|
const require2 = createRequire(join2(process.cwd(), "package.json"));
|
|
10610
10609
|
let pkgPath;
|
|
10611
10610
|
try {
|
|
10612
|
-
pkgPath =
|
|
10611
|
+
pkgPath = dirname4(require2.resolve(`${asset.pkg}/package.json`));
|
|
10613
10612
|
} catch (e) {
|
|
10614
|
-
pkgPath =
|
|
10613
|
+
pkgPath = dirname4(require2.resolve(asset.pkg));
|
|
10615
10614
|
while (pkgPath !== "/" && !existsSync2(join2(pkgPath, "package.json"))) {
|
|
10616
|
-
pkgPath =
|
|
10615
|
+
pkgPath = dirname4(pkgPath);
|
|
10617
10616
|
}
|
|
10618
10617
|
if (pkgPath === "/") {
|
|
10619
10618
|
throw new Error(`staticAssetPlugin could not resolve package.json for package: ${asset.pkg}`);
|
|
10620
10619
|
}
|
|
10621
10620
|
}
|
|
10622
10621
|
const src = join2(pkgPath, asset.path);
|
|
10623
|
-
await mkdir(
|
|
10622
|
+
await mkdir(dirname4(dest), { recursive: true });
|
|
10624
10623
|
await cp(src, dest, { recursive: true });
|
|
10625
10624
|
}
|
|
10626
10625
|
}
|
|
@@ -10629,7 +10628,7 @@ var staticAssetPlugin = (assets = []) => {
|
|
|
10629
10628
|
|
|
10630
10629
|
// lib/coralite.js
|
|
10631
10630
|
import { mkdir as mkdir2, writeFile } from "node:fs/promises";
|
|
10632
|
-
import { dirname as
|
|
10631
|
+
import { dirname as dirname5, join as join3, normalize, relative, resolve as resolve2 } from "node:path";
|
|
10633
10632
|
import { createRequire as createRequire2 } from "node:module";
|
|
10634
10633
|
import { transform } from "esbuild";
|
|
10635
10634
|
|
|
@@ -10915,7 +10914,7 @@ Coralite.prototype.initialise = async function() {
|
|
|
10915
10914
|
const urlPathname = pathToFileURL2(join3("/", relative(rootPath, data2.path.pathname))).pathname;
|
|
10916
10915
|
const values = {
|
|
10917
10916
|
$urlPathname: urlPathname,
|
|
10918
|
-
$urlDirname: pathToFileURL2(
|
|
10917
|
+
$urlDirname: pathToFileURL2(dirname5(urlPathname)).pathname,
|
|
10919
10918
|
$filePathname: data2.path.pathname,
|
|
10920
10919
|
$fileDirname: data2.path.dirname,
|
|
10921
10920
|
$filename: data2.path.filename,
|
|
@@ -11589,7 +11588,6 @@ const globalSetupValuesPromise = getSetups(globalContext);
|
|
|
11589
11588
|
component: {},
|
|
11590
11589
|
signal: globalAbortController.signal
|
|
11591
11590
|
};
|
|
11592
|
-
context.root = window.document;
|
|
11593
11591
|
const setupValues = await globalSetupValuesPromise;
|
|
11594
11592
|
const helpers = await getHelpers(context);
|
|
11595
11593
|
context.helpers = helpers;
|
|
@@ -12513,11 +12511,11 @@ export {
|
|
|
12513
12511
|
cloneComponentInstance,
|
|
12514
12512
|
cloneModuleInstance,
|
|
12515
12513
|
createElement,
|
|
12516
|
-
createPlugin,
|
|
12517
12514
|
createTextNode,
|
|
12518
12515
|
index_default as default,
|
|
12519
12516
|
defineComponent,
|
|
12520
12517
|
defineConfig,
|
|
12518
|
+
definePlugin,
|
|
12521
12519
|
findAndExtractScript,
|
|
12522
12520
|
getHtmlFile,
|
|
12523
12521
|
getHtmlFileSync,
|