@oxide/react-asciidoc 0.0.1-alpha.3 → 0.0.1-alpha.5
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/react-asciidoc.js +6 -7
- package/dist/react-asciidoc.umd.cjs +23 -23
- package/dist/types/hooks/useGetContent.d.ts +3 -0
- package/dist/{index.d.ts → types/index.d.ts} +4 -4
- package/dist/types/templates/Admonition.d.ts +6 -0
- package/dist/types/templates/Audio.d.ts +6 -0
- package/dist/types/templates/CoList.d.ts +6 -0
- package/dist/types/templates/DList.d.ts +6 -0
- package/dist/types/templates/Document.d.ts +6 -0
- package/dist/types/templates/Example.d.ts +6 -0
- package/dist/types/templates/FloatingTitle.d.ts +6 -0
- package/dist/types/templates/Image.d.ts +6 -0
- package/dist/types/templates/Listing.d.ts +6 -0
- package/dist/types/templates/Literal.d.ts +6 -0
- package/dist/types/templates/OList.d.ts +6 -0
- package/dist/types/templates/Open.d.ts +6 -0
- package/dist/types/templates/Outline.d.ts +10 -0
- package/dist/types/templates/PageBreak.d.ts +3 -0
- package/dist/types/templates/Paragraph.d.ts +6 -0
- package/dist/types/templates/Pass.d.ts +6 -0
- package/dist/types/templates/Preamble.d.ts +6 -0
- package/dist/types/templates/Quote.d.ts +6 -0
- package/dist/types/templates/Section.d.ts +6 -0
- package/dist/types/templates/Sidebar.d.ts +6 -0
- package/dist/types/templates/Table.d.ts +6 -0
- package/dist/types/templates/TableOfContents.d.ts +6 -0
- package/dist/types/templates/ThematicBreak.d.ts +3 -0
- package/dist/types/templates/UList.d.ts +6 -0
- package/dist/types/templates/Verse.d.ts +6 -0
- package/dist/types/templates/index.d.ts +26 -0
- package/dist/types/templates/util.d.ts +9 -0
- package/package.json +6 -4
package/dist/react-asciidoc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Gt from "html-react-parser";
|
|
2
2
|
import Xc, { useRef as $_, useState as Zc, useEffect as jc, Fragment as ts, useMemo as _r, createElement as Jc, createContext as f_, useContext as p_ } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license Asciidoctor.js 3.0.0-
|
|
4
|
+
* @license Asciidoctor.js 3.0.0-rc.1 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
5
5
|
*/
|
|
6
6
|
(function(e) {
|
|
7
7
|
var t;
|
|
@@ -218,7 +218,7 @@ import Xc, { useRef as $_, useState as Zc, useEffect as jc, Fragment as ts, useM
|
|
|
218
218
|
var ee;
|
|
219
219
|
return d == null || d == "::" ? d = R : !d.$$is_class && !d.$$is_module && (d = d.$$class), ee = Y(d, A), ee == null && (ee = ce(A), w(d, A, ee)), v.trace_class && pe(ee), ee;
|
|
220
220
|
}, v.get_singleton_class = function(d) {
|
|
221
|
-
return d.$$meta ? d.$$meta : d.hasOwnProperty("$$is_class") ? v.build_class_singleton_class(d) : d.hasOwnProperty("$$is_module") ? v.build_module_singleton_class(d) : v.build_object_singleton_class(d);
|
|
221
|
+
return d.$$is_number && Ie(v.TypeError, "can't define singleton"), d.$$meta ? d.$$meta : d.hasOwnProperty("$$is_class") ? v.build_class_singleton_class(d) : d.hasOwnProperty("$$is_module") ? v.build_module_singleton_class(d) : v.build_object_singleton_class(d);
|
|
222
222
|
};
|
|
223
223
|
function m(d, A) {
|
|
224
224
|
d.hasOwnProperty("$$meta") ? d.$$meta = A : ue(d, "$$meta", A), d.$$frozen ? d.$$meta.$freeze() : Re(d, A.$$prototype);
|
|
@@ -1920,7 +1920,7 @@ Opal.modules["corelib/constants"] = function(e) {
|
|
|
1920
1920
|
var t = e.const_set;
|
|
1921
1921
|
e.nil;
|
|
1922
1922
|
var u = e.$$$;
|
|
1923
|
-
return t("::", "RUBY_PLATFORM", "opal"), t("::", "RUBY_ENGINE", "opal"), t("::", "RUBY_VERSION", "3.2.0"), t("::", "RUBY_ENGINE_VERSION", "1.7.
|
|
1923
|
+
return t("::", "RUBY_PLATFORM", "opal"), t("::", "RUBY_ENGINE", "opal"), t("::", "RUBY_VERSION", "3.2.0"), t("::", "RUBY_ENGINE_VERSION", "1.7.3"), t("::", "RUBY_RELEASE_DATE", "2023-03-23"), t("::", "RUBY_PATCHLEVEL", 0), t("::", "RUBY_REVISION", "0"), t("::", "RUBY_COPYRIGHT", "opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contributors"), t("::", "RUBY_DESCRIPTION", "opal " + u("RUBY_ENGINE_VERSION") + " (" + u("RUBY_RELEASE_DATE") + " revision " + u("RUBY_REVISION") + ")");
|
|
1924
1924
|
};
|
|
1925
1925
|
Opal.modules["opal/base"] = function(e) {
|
|
1926
1926
|
var t = e.Object;
|
|
@@ -4894,7 +4894,7 @@ Opal.modules["corelib/array"] = function(e) {
|
|
|
4894
4894
|
case 1:
|
|
4895
4895
|
return [Ge[A.$rand(Ge.length)]];
|
|
4896
4896
|
case 2:
|
|
4897
|
-
return Je = A.$rand(Ge.length), r = A.$rand(Ge.length), Je
|
|
4897
|
+
return Je = A.$rand(Ge.length), r = A.$rand(Ge.length - 1), Je <= r && r++, [Ge[Je], Ge[r]];
|
|
4898
4898
|
default:
|
|
4899
4899
|
if (Ge.length / be > 3) {
|
|
4900
4900
|
for (ee = !1, ve = 0, ze = xe("Array").$new(be), Je = 1, ze[0] = A.$rand(Ge.length); Je < be; ) {
|
|
@@ -4922,7 +4922,7 @@ Opal.modules["corelib/array"] = function(e) {
|
|
|
4922
4922
|
}
|
|
4923
4923
|
ze = Ge.slice();
|
|
4924
4924
|
for (var re = 0; re < be; re++)
|
|
4925
|
-
K = A.$rand(Ge.length), F = ze[re], ze[re] = ze[K], ze[K] = F;
|
|
4925
|
+
K = A.$rand(Ge.length - re) + re, F = ze[re], ze[re] = ze[K], ze[K] = F;
|
|
4926
4926
|
return be === Ge.length ? ze : ze["$[]"](0, be);
|
|
4927
4927
|
}
|
|
4928
4928
|
}, -1), Q(T, "$select", function Xe() {
|
|
@@ -14869,7 +14869,7 @@ Your browser does not support the video tag.
|
|
|
14869
14869
|
}, gt.newBlockMacroProcessor = function(r, Z) {
|
|
14870
14870
|
return arguments.length === 1 && (Z = r, r = null), this.createBlockMacroProcessor(r, Z).$new();
|
|
14871
14871
|
};
|
|
14872
|
-
var Je = "3.0.0-
|
|
14872
|
+
var Je = "3.0.0-rc.1";
|
|
14873
14873
|
return Opal.Asciidoctor.prototype.getVersion = function() {
|
|
14874
14874
|
return Je;
|
|
14875
14875
|
}, Opal.Asciidoctor;
|
|
@@ -61690,7 +61690,6 @@ export {
|
|
|
61690
61690
|
gr as CaptionedTitle,
|
|
61691
61691
|
Xt as Content,
|
|
61692
61692
|
Zt as Title,
|
|
61693
|
-
u_ as asciidoctor,
|
|
61694
61693
|
Ep as default,
|
|
61695
61694
|
Yt as getRole,
|
|
61696
61695
|
nr as useGetContent
|