@particle-academy/fancy-cms-ui 0.0.1-dev.2 → 0.0.1-dev.4
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/chunk-7YYLYBLI.js +47 -0
- package/dist/chunk-7YYLYBLI.js.map +1 -0
- package/dist/editor.cjs +232 -82
- package/dist/editor.cjs.map +1 -1
- package/dist/editor.d.cts +19 -9
- package/dist/editor.d.ts +19 -9
- package/dist/editor.js +222 -82
- package/dist/editor.js.map +1 -1
- package/dist/index.js +1 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,49 +1,4 @@
|
|
|
1
|
+
export { keyBetween } from './chunk-7YYLYBLI.js';
|
|
1
2
|
export { DEFAULT_BREAKPOINTS, childrenOf, descendantIds, emitDocCss, emptyDoc, invert, isBinding, reduce, reduceAll } from './chunk-HYHNMW47.js';
|
|
2
|
-
|
|
3
|
-
// src/document/fractional.ts
|
|
4
|
-
var BASE = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
5
|
-
var RADIX = BASE.length;
|
|
6
|
-
var MID = Math.floor(RADIX / 2);
|
|
7
|
-
function val(c) {
|
|
8
|
-
const i = BASE.indexOf(c);
|
|
9
|
-
return i < 0 ? 0 : i;
|
|
10
|
-
}
|
|
11
|
-
function keyBetween(a, b) {
|
|
12
|
-
if (a === null) a = "";
|
|
13
|
-
if (b === null) {
|
|
14
|
-
return a + BASE[MID];
|
|
15
|
-
}
|
|
16
|
-
if (a >= b) {
|
|
17
|
-
throw new Error(`keyBetween: lower bound "${a}" is not below upper bound "${b}"`);
|
|
18
|
-
}
|
|
19
|
-
let result = "";
|
|
20
|
-
let i = 0;
|
|
21
|
-
for (; ; ) {
|
|
22
|
-
const ca = i < a.length ? val(a[i]) : 0;
|
|
23
|
-
const cb = i < b.length ? val(b[i]) : RADIX;
|
|
24
|
-
if (cb - ca > 1) {
|
|
25
|
-
result += BASE[ca + Math.floor((cb - ca) / 2)];
|
|
26
|
-
return result;
|
|
27
|
-
}
|
|
28
|
-
if (ca === cb) {
|
|
29
|
-
result += BASE[ca];
|
|
30
|
-
i++;
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
result += BASE[ca];
|
|
34
|
-
i++;
|
|
35
|
-
for (; ; ) {
|
|
36
|
-
const da = i < a.length ? val(a[i]) : 0;
|
|
37
|
-
if (RADIX - da > 1) {
|
|
38
|
-
result += BASE[da + Math.floor((RADIX - da) / 2)];
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
result += BASE[da];
|
|
42
|
-
i++;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { keyBetween };
|
|
48
3
|
//# sourceMappingURL=index.js.map
|
|
49
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/fancy-cms-ui",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.4",
|
|
4
4
|
"description": "Editor + isomorphic renderer for fancy-cms — the Stages document model, PageOp op-spine, the JS style→CSS emitter (one half of the dual-emitter pair with the PHP particle-academy/fancy-cms), and the React renderer. Built on the Fancy UI suite.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|