@d1vij/jassm 0.1.12 → 0.1.14
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/index.js +22 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -318,6 +318,9 @@ var BaseElements = {
|
|
|
318
318
|
tr: TableRow,
|
|
319
319
|
td: TableData
|
|
320
320
|
};
|
|
321
|
+
// src/components/Loader.tsx
|
|
322
|
+
import { Suspense } from "react";
|
|
323
|
+
|
|
321
324
|
// src/lib/generateElements.ts
|
|
322
325
|
function generateElementsFrom(elements, baseElements = true) {
|
|
323
326
|
if (baseElements) {
|
|
@@ -380,6 +383,24 @@ class CoalescedRegistry extends AbstractRegistry {
|
|
|
380
383
|
this.exports = Object.assign({}, ...registries.map((r) => r.getExports()));
|
|
381
384
|
}
|
|
382
385
|
}
|
|
386
|
+
// src/components/Loader.tsx
|
|
387
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
388
|
+
function MDXFromComponent({
|
|
389
|
+
source: SourceComponent,
|
|
390
|
+
styles,
|
|
391
|
+
fallback,
|
|
392
|
+
elements = BaseElements
|
|
393
|
+
}) {
|
|
394
|
+
return /* @__PURE__ */ jsx14(StyleContext, {
|
|
395
|
+
value: styles,
|
|
396
|
+
children: /* @__PURE__ */ jsx14(Suspense, {
|
|
397
|
+
fallback,
|
|
398
|
+
children: /* @__PURE__ */ jsx14(SourceComponent, {
|
|
399
|
+
components: elements
|
|
400
|
+
})
|
|
401
|
+
})
|
|
402
|
+
});
|
|
403
|
+
}
|
|
383
404
|
export {
|
|
384
405
|
useStyles,
|
|
385
406
|
generateRegistries,
|
|
@@ -387,7 +408,7 @@ export {
|
|
|
387
408
|
StyleContext,
|
|
388
409
|
StyleClassesList,
|
|
389
410
|
Registry,
|
|
390
|
-
|
|
411
|
+
MDXFromComponent,
|
|
391
412
|
CoalescedRegistry,
|
|
392
413
|
BaseElements,
|
|
393
414
|
BaseElementTags
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d1vij/jassm",
|
|
3
3
|
"description": "Just another static site maker. Create simple content driven sites using MDX and React along with Typescript safety.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.14",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/d1vij/jassm",
|
|
29
29
|
"license": "MIT",
|
|
30
|
-
"sideEffects": false,
|
|
31
30
|
"publishConfig": {
|
|
32
31
|
"access": "public"
|
|
33
32
|
},
|