nodality 1.0.221 → 1.1.0
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/API.md +227 -0
- package/bin/nodality.js +64 -0
- package/dist/animator.cjs.js +1 -1
- package/dist/animator.cjs.js.LICENSE.txt +1 -1
- package/dist/animator.esm.js +1 -1
- package/dist/animator.esm.js.LICENSE.txt +1 -1
- package/dist/audionew.cjs.js +1 -1
- package/dist/audionew.cjs.js.LICENSE.txt +1 -1
- package/dist/audionew.esm.js +1 -1
- package/dist/audionew.esm.js.LICENSE.txt +1 -1
- package/dist/base.cjs.js +1 -1
- package/dist/base.cjs.js.LICENSE.txt +1 -1
- package/dist/base.esm.js +1 -1
- package/dist/base.esm.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.cjs.js +1 -1
- package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-desktop-bar.esm.js +1 -1
- package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.cjs.js +1 -1
- package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/beta-mobile-bar.esm.js +1 -1
- package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
- package/dist/bundle.umd.js +1 -1
- package/dist/bundle.umd.js.LICENSE.txt +131 -1
- package/dist/button.cjs.js +1 -1
- package/dist/button.cjs.js.LICENSE.txt +1 -1
- package/dist/button.esm.js +1 -1
- package/dist/button.esm.js.LICENSE.txt +1 -1
- package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/card-getter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js +1 -1
- package/dist/center.cjs.js.LICENSE.txt +1 -1
- package/dist/center.esm.js +1 -1
- package/dist/center.esm.js.LICENSE.txt +1 -1
- package/dist/checkbox.cjs.js +1 -1
- package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
- package/dist/checkbox.esm.js +1 -1
- package/dist/checkbox.esm.js.LICENSE.txt +1 -1
- package/dist/code.cjs.js +1 -1
- package/dist/code.cjs.js.LICENSE.txt +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/code.esm.js.LICENSE.txt +1 -1
- package/dist/container.cjs.js +1 -1
- package/dist/container.cjs.js.LICENSE.txt +1 -1
- package/dist/container.esm.js +1 -1
- package/dist/container.esm.js.LICENSE.txt +1 -1
- package/dist/data-list.cjs.js +1 -1
- package/dist/data-list.cjs.js.LICENSE.txt +1 -1
- package/dist/data-list.esm.js +1 -1
- package/dist/data-list.esm.js.LICENSE.txt +1 -1
- package/dist/designer.cjs.js +1 -1
- package/dist/designer.cjs.js.LICENSE.txt +97 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +97 -1
- package/dist/element-mapper.cjs.js +1 -1
- package/dist/element-mapper.cjs.js.LICENSE.txt +17 -1
- package/dist/element-mapper.esm.js +1 -1
- package/dist/element-mapper.esm.js.LICENSE.txt +17 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +158 -1
- package/dist/flex-card.cjs.js +1 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +1 -1
- package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-grid.esm.js +1 -1
- package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
- package/dist/flex-row.cjs.js +1 -1
- package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-row.esm.js +1 -1
- package/dist/flex-row.esm.js.LICENSE.txt +1 -1
- package/dist/floating-input.cjs.js +1 -1
- package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
- package/dist/floating-input.esm.js +1 -1
- package/dist/floating-input.esm.js.LICENSE.txt +1 -1
- package/dist/free.cjs.js +1 -1
- package/dist/free.cjs.js.LICENSE.txt +1 -1
- package/dist/free.esm.js +1 -1
- package/dist/free.esm.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
- package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
- package/dist/image-picker.cjs.js +1 -1
- package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
- package/dist/image-picker.esm.js +1 -1
- package/dist/image-picker.esm.js.LICENSE.txt +1 -1
- package/dist/image.cjs.js +1 -1
- package/dist/image.cjs.js.LICENSE.txt +1 -1
- package/dist/image.esm.js +1 -1
- package/dist/image.esm.js.LICENSE.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.LICENSE.txt +158 -1
- package/dist/index.d.ts +962 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +158 -1
- package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
- package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
- package/dist/link-getter.cjs.js +1 -1
- package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
- package/dist/link-getter.esm.js +1 -1
- package/dist/link-getter.esm.js.LICENSE.txt +1 -1
- package/dist/link.cjs.js +1 -1
- package/dist/link.cjs.js.LICENSE.txt +1 -1
- package/dist/link.esm.js +1 -1
- package/dist/link.esm.js.LICENSE.txt +1 -1
- package/dist/meta-adder.cjs.js +1 -1
- package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal-2025.esm.js +1 -1
- package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.cjs.js +1 -1
- package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
- package/dist/multiswitcher.esm.js +1 -1
- package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.cjs.js +1 -1
- package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/new-nav-bar.esm.js +1 -1
- package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/picker.cjs.js +1 -1
- package/dist/picker.cjs.js.LICENSE.txt +1 -1
- package/dist/picker.esm.js +1 -1
- package/dist/picker.esm.js.LICENSE.txt +1 -1
- package/dist/progress.cjs.js +1 -1
- package/dist/progress.cjs.js.LICENSE.txt +1 -1
- package/dist/progress.esm.js +1 -1
- package/dist/progress.esm.js.LICENSE.txt +1 -1
- package/dist/radio.cjs.js +1 -1
- package/dist/radio.cjs.js.LICENSE.txt +1 -1
- package/dist/radio.esm.js +1 -1
- package/dist/radio.esm.js.LICENSE.txt +1 -1
- package/dist/range.cjs.js +1 -1
- package/dist/range.cjs.js.LICENSE.txt +1 -1
- package/dist/range.esm.js +1 -1
- package/dist/range.esm.js.LICENSE.txt +1 -1
- package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
- package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
- package/dist/side-bar.cjs.js +1 -1
- package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-bar.esm.js +1 -1
- package/dist/side-bar.esm.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.cjs.js +1 -1
- package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/side-nav-bar.esm.js +1 -1
- package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
- package/dist/simple-bar.cjs.js +1 -1
- package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
- package/dist/simple-bar.esm.js +1 -1
- package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
- package/dist/slider-2025.cjs.js +1 -1
- package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
- package/dist/slider-2025.esm.js +1 -1
- package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
- package/dist/spacer.cjs.js +1 -1
- package/dist/spacer.cjs.js.LICENSE.txt +1 -1
- package/dist/spacer.esm.js +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +1 -1
- package/dist/stack.esm.js +1 -1
- package/dist/stack.esm.js.LICENSE.txt +1 -1
- package/dist/stacker.cjs.js.LICENSE.txt +1 -1
- package/dist/stacker.esm.js.LICENSE.txt +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.cjs.js.LICENSE.txt +1 -1
- package/dist/table.esm.js +1 -1
- package/dist/table.esm.js.LICENSE.txt +1 -1
- package/dist/text-field.cjs.js +1 -1
- package/dist/text-field.cjs.js.LICENSE.txt +1 -1
- package/dist/text-field.esm.js +1 -1
- package/dist/text-field.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js +1 -1
- package/dist/ulist.cjs.js.LICENSE.txt +1 -1
- package/dist/ulist.esm.js +1 -1
- package/dist/ulist.esm.js.LICENSE.txt +1 -1
- package/dist/video.cjs.js +1 -1
- package/dist/video.cjs.js.LICENSE.txt +1 -1
- package/dist/video.esm.js +1 -1
- package/dist/video.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +1 -1
- package/dist/wrap.esm.js +1 -1
- package/dist/wrap.esm.js.LICENSE.txt +1 -1
- package/dist/zoom-card.cjs.js +1 -1
- package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
- package/dist/zoom-card.esm.js +1 -1
- package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
- package/examples/custom-raster-op.js +174 -0
- package/layout/animator.js +30 -2
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base.js +1 -1
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +3 -2
- package/layout/button.js +1 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +2 -2
- package/layout/circle.js +3 -2
- package/layout/code.js +3 -2
- package/layout/container.js +3 -4
- package/layout/dropdown-2025.js +1 -1
- package/layout/flex-card.js +1 -1
- package/layout/flex-grid.js +1 -1
- package/layout/flex-row.js +3 -2
- package/layout/form-components/custom.js +1 -1
- package/layout/form-components/data-list.js +2 -2
- package/layout/form-components/floating-input.js +2 -2
- package/layout/form-components/form-all.js +2 -2
- package/layout/form-components/form.js +1 -1
- package/layout/form-components/image-picker.js +1 -1
- package/layout/form-components/picker.js +2 -2
- package/layout/form-components/radio.js +2 -2
- package/layout/form-components/radiogroup.js +2 -2
- package/layout/form-components/range.js +2 -2
- package/layout/free.js +3 -4
- package/layout/grid-switcher.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +1 -1
- package/layout/link.js +5 -5
- package/layout/list.js +3 -4
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/morph.js +1003 -0
- package/layout/multiswitcher.js +11 -3
- package/layout/nav-bar.js +2 -3
- package/layout/nav-factor/custom-div.js +2 -2
- package/layout/new-nav-bar.js +11 -4
- package/layout/polygon.js +3 -4
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/scroll-video.js +1 -1
- package/layout/side-bar.js +1 -1
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +3 -4
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/text-field.js +1 -1
- package/layout/text.js +5 -5
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/codegen.js +62 -0
- package/lib/data.js +37 -1
- package/lib/designer.js +18 -1
- package/lib/element-mapper.js +351 -247
- package/lib/keyframe-animation.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/morph-node.js +424 -0
- package/lib/raster-inspect.js +409 -0
- package/lib/raster-ops.js +1980 -81
- package/lib/raster-presets.js +329 -0
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +28 -1
- package/lib/stacker.js +1 -1
- package/lib/suggest.js +66 -0
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/lib/transition.js +205 -0
- package/package.json +20 -7
package/API.md
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Nodality API reference
|
|
2
|
+
|
|
3
|
+
Generated from the documentation site — do not edit by hand.
|
|
4
|
+
Run `node scripts/generate-llms.mjs` in the docs repo to refresh.
|
|
5
|
+
|
|
6
|
+
This file ships inside the npm package so that a coding agent reading
|
|
7
|
+
`node_modules/nodality/` has the API to hand without fetching a website.
|
|
8
|
+
|
|
9
|
+
## The shape of everything
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { Des } from "nodality";
|
|
13
|
+
|
|
14
|
+
const elements = [
|
|
15
|
+
{ type: "h1", text: "Hello" } // elements take `text`, never `value`
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
const nodes = [
|
|
19
|
+
{ op: "blast" } // nodes carry an `op`
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
new Des()
|
|
23
|
+
.nodes(nodes)
|
|
24
|
+
.add(elements)
|
|
25
|
+
.set({ mount: "#mount" });
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Full documentation: https://nodalityjs.github.io
|
|
29
|
+
Machine-readable index: https://nodalityjs.github.io/llms.txt
|
|
30
|
+
|
|
31
|
+
## Pages
|
|
32
|
+
|
|
33
|
+
### api
|
|
34
|
+
|
|
35
|
+
- **Button** — `button.js`
|
|
36
|
+
https://nodalityjs.github.io/docs/api/button
|
|
37
|
+
- **Center** — `center.js`
|
|
38
|
+
https://nodalityjs.github.io/docs/api/center
|
|
39
|
+
- **FlexGrid** — `flex-grid.js`
|
|
40
|
+
https://nodalityjs.github.io/docs/api/flexgrid
|
|
41
|
+
- **FlexRow** — `flex-row.js`
|
|
42
|
+
https://nodalityjs.github.io/docs/api/flexrow
|
|
43
|
+
- **Image** — `image.js`
|
|
44
|
+
https://nodalityjs.github.io/docs/api/image
|
|
45
|
+
- **Link** — `link.js`
|
|
46
|
+
https://nodalityjs.github.io/docs/api/link
|
|
47
|
+
- **Picker** — `picker.js`
|
|
48
|
+
https://nodalityjs.github.io/docs/api/picker
|
|
49
|
+
- **Text** — `text.js`
|
|
50
|
+
https://nodalityjs.github.io/docs/api/text
|
|
51
|
+
- **TextField** — `text-field.js`
|
|
52
|
+
https://nodalityjs.github.io/docs/api/textfield
|
|
53
|
+
- **UList** — `ulist.js`
|
|
54
|
+
https://nodalityjs.github.io/docs/api/ulist
|
|
55
|
+
- **Wrapper** — `container.js`
|
|
56
|
+
https://nodalityjs.github.io/docs/api/wrapper
|
|
57
|
+
|
|
58
|
+
### basics
|
|
59
|
+
|
|
60
|
+
- **Basics** — This library employs an unique approach to building static websites using declarative UI components and nodes that will style them.
|
|
61
|
+
https://nodalityjs.github.io/docs/basics/README
|
|
62
|
+
- **Animation** — Create striking animations using JS responsive API.
|
|
63
|
+
https://nodalityjs.github.io/docs/basics/animation
|
|
64
|
+
- **CDN** — To use Nodality with CDN, use this code:
|
|
65
|
+
https://nodalityjs.github.io/docs/basics/cdn
|
|
66
|
+
- **Custom elements** — To create a custom element using Nodality library, you extend the class.
|
|
67
|
+
https://nodalityjs.github.io/docs/basics/customElements
|
|
68
|
+
- **Designer** — Designer instance accepts nodes and elements arrays.
|
|
69
|
+
https://nodalityjs.github.io/docs/basics/designer
|
|
70
|
+
- **Nodes** — Nodes allow you to simply you to modify the elements.
|
|
71
|
+
https://nodalityjs.github.io/docs/basics/nodes
|
|
72
|
+
- **Getting started** — This library works with *elements* represented as an array of HTML entities, and *nodes* that control the behavior of elements.
|
|
73
|
+
https://nodalityjs.github.io/docs/basics/start
|
|
74
|
+
|
|
75
|
+
### elements
|
|
76
|
+
|
|
77
|
+
- **Card** — Create elements containing , and elements.
|
|
78
|
+
https://nodalityjs.github.io/docs/elements/cards
|
|
79
|
+
- **Circle** — You can use the element to display a simple circle.
|
|
80
|
+
https://nodalityjs.github.io/docs/elements/circle
|
|
81
|
+
- **Code** — You can use the element to display a block of code.
|
|
82
|
+
https://nodalityjs.github.io/docs/elements/code
|
|
83
|
+
- **Dropdown** — Dropdown is used to create expand area upon click or hover.
|
|
84
|
+
https://nodalityjs.github.io/docs/elements/dropdown
|
|
85
|
+
- **Free** — Create free alement to use in conjuction with [Layout](/library/nodes/layout) node.
|
|
86
|
+
https://nodalityjs.github.io/docs/elements/free
|
|
87
|
+
- **AreaGrid** — The `grid` creates an instance of the `AreaGrid` element, designed to organize child elements in a grid layout.
|
|
88
|
+
https://nodalityjs.github.io/docs/elements/grid
|
|
89
|
+
- **HScroller** — You can use the to make a horizontally scrolling gallery.
|
|
90
|
+
https://nodalityjs.github.io/docs/elements/hscroller
|
|
91
|
+
- **Image** — Image allows you to create simple image
|
|
92
|
+
https://nodalityjs.github.io/docs/elements/image
|
|
93
|
+
- **Keyset** — Keyset allows you to set custom CSS properties on elements.
|
|
94
|
+
https://nodalityjs.github.io/docs/elements/keyset
|
|
95
|
+
- **Link** — To create a simple link use the following element.
|
|
96
|
+
https://nodalityjs.github.io/docs/elements/link
|
|
97
|
+
- **Modal** — To create a simple modal.
|
|
98
|
+
https://nodalityjs.github.io/docs/elements/modal
|
|
99
|
+
- **Navigation** — To create a simple navigation use element
|
|
100
|
+
https://nodalityjs.github.io/docs/elements/navigation
|
|
101
|
+
- **Offcanvas** — To create a simple navigation use element.
|
|
102
|
+
https://nodalityjs.github.io/docs/elements/offcanvas
|
|
103
|
+
- **Polygon** — You can use the element to display a block of code.
|
|
104
|
+
https://nodalityjs.github.io/docs/elements/polygon
|
|
105
|
+
- **Elements** — Elements are used to create UI.
|
|
106
|
+
https://nodalityjs.github.io/docs/elements/readme
|
|
107
|
+
- **Responsive wrapper** — The `Wrapper` class allows you to create a responsive element that can dynamically switch its layout between row and column orientations based on specified brea
|
|
108
|
+
https://nodalityjs.github.io/docs/elements/responsive-wrapper
|
|
109
|
+
- **Complex** — The `Wrapper` class allows you to create a responsive element that can dynamically switch its layout between row and column orientations based on specified brea
|
|
110
|
+
https://nodalityjs.github.io/docs/elements/responsive
|
|
111
|
+
- **Row** — Row creates a simple element to allow you to organise children in a row.
|
|
112
|
+
https://nodalityjs.github.io/docs/elements/row
|
|
113
|
+
- **SideNavigation** — To create side navigation use the structure.
|
|
114
|
+
https://nodalityjs.github.io/docs/elements/sidenavigation
|
|
115
|
+
- **Slider** — To create a simple slider, use structure
|
|
116
|
+
https://nodalityjs.github.io/docs/elements/slider
|
|
117
|
+
- **Stack** — To create a simple stack, use object.
|
|
118
|
+
https://nodalityjs.github.io/docs/elements/stack
|
|
119
|
+
- **Switcher** — Switcher allows you to display different views at different breakpoints.
|
|
120
|
+
https://nodalityjs.github.io/docs/elements/switcher
|
|
121
|
+
- **Table** — To create a simple modal.
|
|
122
|
+
https://nodalityjs.github.io/docs/elements/table
|
|
123
|
+
- **Text** — Headers are used to display text.
|
|
124
|
+
https://nodalityjs.github.io/docs/elements/text
|
|
125
|
+
- **UList** — You can use the element to display a list of items.
|
|
126
|
+
https://nodalityjs.github.io/docs/elements/ulist
|
|
127
|
+
- **WeightLayout** — WeightLayout allows you to create flexible layout using attraction weights inside element.
|
|
128
|
+
https://nodalityjs.github.io/docs/elements/weightLayout
|
|
129
|
+
- **Wrap** — Creates a simple wrapper that wraps other elements.
|
|
130
|
+
https://nodalityjs.github.io/docs/elements/wrap
|
|
131
|
+
- **ZoomCard** — To use image as background for the entire card use the element with a background.
|
|
132
|
+
https://nodalityjs.github.io/docs/elements/zoom-card
|
|
133
|
+
|
|
134
|
+
### forms
|
|
135
|
+
|
|
136
|
+
- **Button** — Creates a simple button.
|
|
137
|
+
https://nodalityjs.github.io/docs/forms/button
|
|
138
|
+
- **Checkbox** — A checkbox is used to to select a single option, akin to answering yes or no.
|
|
139
|
+
https://nodalityjs.github.io/docs/forms/checkbox
|
|
140
|
+
- **Complex form** — In this example, the complete form will be shown.
|
|
141
|
+
https://nodalityjs.github.io/docs/forms/complex-form
|
|
142
|
+
- **FilePicker** — Creates a simple filepicker.
|
|
143
|
+
https://nodalityjs.github.io/docs/forms/filepicker
|
|
144
|
+
- **LabelField** — LabelField allows you to create textfield that turns placeholder text into a label.
|
|
145
|
+
https://nodalityjs.github.io/docs/forms/labelfield
|
|
146
|
+
- **Picker** — To create the picker, use the the delcaration in the elements array.
|
|
147
|
+
https://nodalityjs.github.io/docs/forms/picker
|
|
148
|
+
- **Radio** — The `radio` element creates a group of radio buttons for user selection.
|
|
149
|
+
https://nodalityjs.github.io/docs/forms/radio
|
|
150
|
+
- **Basics** — You can create forms easily with this library.
|
|
151
|
+
https://nodalityjs.github.io/docs/forms/readme
|
|
152
|
+
- **TextField** — To create a simple textfield, use the element.
|
|
153
|
+
https://nodalityjs.github.io/docs/forms/textfield
|
|
154
|
+
- **Usage with PHP** — You can use the form with PHP.
|
|
155
|
+
https://nodalityjs.github.io/docs/forms/usewithphp
|
|
156
|
+
|
|
157
|
+
### guides
|
|
158
|
+
|
|
159
|
+
- **Guides** — Guides provide simple cookbooks.
|
|
160
|
+
https://nodalityjs.github.io/docs/guides/README
|
|
161
|
+
- **Deploy** — To deploy your project, first create new Nodality application by running the following command:
|
|
162
|
+
https://nodalityjs.github.io/docs/guides/deploy
|
|
163
|
+
- **Integration** — You can easily integrate this library with React.js and Vue.js libraries.
|
|
164
|
+
https://nodalityjs.github.io/docs/guides/integration
|
|
165
|
+
- **Testing** — Nodality uses Playwright for testing.
|
|
166
|
+
https://nodalityjs.github.io/docs/guides/testing
|
|
167
|
+
- **Tooling** — Create Nodality package allows you to quickly bootstrap a new Nodality application.
|
|
168
|
+
https://nodalityjs.github.io/docs/guides/tooling
|
|
169
|
+
- **Transitions** — This library supports the **CSS View Transition API** to enable smooth animations when navigating between pages.\
|
|
170
|
+
https://nodalityjs.github.io/docs/guides/transitions
|
|
171
|
+
|
|
172
|
+
### nodes
|
|
173
|
+
|
|
174
|
+
- **Animation** — Animation allows you to animate elements.
|
|
175
|
+
https://nodalityjs.github.io/docs/nodes/animation
|
|
176
|
+
- **Blast** — Blast allows user to create outline around element contents.
|
|
177
|
+
https://nodalityjs.github.io/docs/nodes/blast
|
|
178
|
+
- **Copy** — To use the copy operation, we use these nodes:
|
|
179
|
+
https://nodalityjs.github.io/docs/nodes/copy
|
|
180
|
+
- **Filter** — To use the filter, we use this:
|
|
181
|
+
https://nodalityjs.github.io/docs/nodes/filter
|
|
182
|
+
- **Gradient** — To add gradient to an element, use the following object:
|
|
183
|
+
https://nodalityjs.github.io/docs/nodes/gradient
|
|
184
|
+
- **Layout** — To quickly generate common layout variation, we can use the following:
|
|
185
|
+
https://nodalityjs.github.io/docs/nodes/layout
|
|
186
|
+
- **LinkStyle** — Link style operation allows you to style links ( elements.).
|
|
187
|
+
https://nodalityjs.github.io/docs/nodes/linkStyle
|
|
188
|
+
- **Nodes** — Nodes allow you to edit design of the elements.
|
|
189
|
+
https://nodalityjs.github.io/docs/nodes/nodes
|
|
190
|
+
- **Nodes** — Nodes modify beahaviour of the elements.
|
|
191
|
+
https://nodalityjs.github.io/docs/nodes/readme
|
|
192
|
+
- **Shadow** — To use the default shadow, we use the op.
|
|
193
|
+
https://nodalityjs.github.io/docs/nodes/shadow
|
|
194
|
+
- **Span** — Span is a part of text that can have different contents and design from the rest of your text.
|
|
195
|
+
https://nodalityjs.github.io/docs/nodes/span
|
|
196
|
+
- **Transform** — To use the filter, we use this node:
|
|
197
|
+
https://nodalityjs.github.io/docs/nodes/transform
|
|
198
|
+
|
|
199
|
+
### raster
|
|
200
|
+
|
|
201
|
+
- **Raster basics** — Raster ops run your element through a WebGL shader.
|
|
202
|
+
https://nodalityjs.github.io/docs/raster/basics
|
|
203
|
+
- **Composing a pipeline** — A chain is not a list of passes.
|
|
204
|
+
https://nodalityjs.github.io/docs/raster/composition
|
|
205
|
+
- **Raster ops** — Every node has an `op` and a set of options.
|
|
206
|
+
https://nodalityjs.github.io/docs/raster/ops
|
|
207
|
+
|
|
208
|
+
### scrollanimation
|
|
209
|
+
|
|
210
|
+
- **Basics** — To create smooth scroll animations you can use the following:
|
|
211
|
+
https://nodalityjs.github.io/docs/scrollanimation/basics
|
|
212
|
+
- **Scroll Animation** — Create engaging scroll animation
|
|
213
|
+
https://nodalityjs.github.io/docs/scrollanimation/index
|
|
214
|
+
- **ScrollVideo** — Play video as you scroll.
|
|
215
|
+
https://nodalityjs.github.io/docs/scrollanimation/scrollvideo
|
|
216
|
+
- **Together** — Here is how you can combine the elements using the element.
|
|
217
|
+
https://nodalityjs.github.io/docs/scrollanimation/together
|
|
218
|
+
- **TransformAnimation** — Transform element as you scroll down.
|
|
219
|
+
https://nodalityjs.github.io/docs/scrollanimation/transformanimation
|
|
220
|
+
|
|
221
|
+
### ssg
|
|
222
|
+
|
|
223
|
+
- **Prerender API** — The CLI covers the common case.
|
|
224
|
+
https://nodalityjs.github.io/docs/ssg/api
|
|
225
|
+
- **Prerendering** — Nodality builds your page in the browser.
|
|
226
|
+
https://nodalityjs.github.io/docs/ssg/prerender
|
|
227
|
+
|
package/bin/nodality.js
CHANGED
|
@@ -867,6 +867,70 @@ async function runStage(args) {
|
|
|
867
867
|
fs.mkdirSync(path.dirname(dst), { recursive: true });
|
|
868
868
|
fs.copyFileSync(src, dst);
|
|
869
869
|
console.log(`[nodality] stage: bundle → ${path.relative(cwd, dst)}`);
|
|
870
|
+
|
|
871
|
+
// 1b. The bundle does not contain everything it needs. The build
|
|
872
|
+
// externalises raster-ops (so every entry shares ONE op
|
|
873
|
+
// registry) and the layout components, so the bundle emits real
|
|
874
|
+
// `import "../lib/..."` / `"../layout/..."` statements resolved
|
|
875
|
+
// relative to wherever it is SERVED from.
|
|
876
|
+
//
|
|
877
|
+
// Inside the installed package those resolve. Copy the bundle
|
|
878
|
+
// somewhere else — which is exactly what this command does — and
|
|
879
|
+
// every one of them 404s. The failure is silent: the module
|
|
880
|
+
// graph aborts, nothing renders, and the library itself reports
|
|
881
|
+
// no error. A real site (gesos) is how this was found.
|
|
882
|
+
//
|
|
883
|
+
// Walk the graph rather than keep a hand-written list: the first
|
|
884
|
+
// version of this fix listed two filenames and missed the nine
|
|
885
|
+
// ../layout/* externals entirely.
|
|
886
|
+
const readIfExists = (f) => {
|
|
887
|
+
try { return fs.readFileSync(f, "utf8"); } catch (e) { return null; }
|
|
888
|
+
};
|
|
889
|
+
const relSpecs = (code) => {
|
|
890
|
+
const out = [];
|
|
891
|
+
const re = /(?:import|export)[^'"]*?from\s*["'](\.[^"']+)["']|import\s*\(\s*["'](\.[^"']+)["']\s*\)|import\s*["'](\.[^"']+)["']/g;
|
|
892
|
+
let m;
|
|
893
|
+
while ((m = re.exec(code))) out.push(m[1] || m[2] || m[3]);
|
|
894
|
+
return out;
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
// Specifiers in the bundle are relative to dist/, which is where the
|
|
898
|
+
// staged copy sits too — so the same relative path works verbatim.
|
|
899
|
+
const distDir = path.join(pkgRoot, "dist");
|
|
900
|
+
const seen = new Set();
|
|
901
|
+
const queue = relSpecs(fs.readFileSync(src, "utf8"))
|
|
902
|
+
.map((spec) => path.resolve(distDir, spec));
|
|
903
|
+
let copied = 0;
|
|
904
|
+
let missing = 0;
|
|
905
|
+
while (queue.length) {
|
|
906
|
+
const abs = queue.pop();
|
|
907
|
+
if (seen.has(abs)) continue;
|
|
908
|
+
seen.add(abs);
|
|
909
|
+
const rel = path.relative(pkgRoot, abs);
|
|
910
|
+
if (rel.startsWith("..") || path.isAbsolute(rel)) continue;
|
|
911
|
+
const code = readIfExists(abs);
|
|
912
|
+
if (code === null) {
|
|
913
|
+
console.warn(`[nodality] stage: ${rel} missing — the bundle's ` +
|
|
914
|
+
`import of it will 404 at runtime`);
|
|
915
|
+
missing++;
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
const dest = path.join(uploadDir, rel);
|
|
919
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
920
|
+
fs.writeFileSync(dest, code);
|
|
921
|
+
copied++;
|
|
922
|
+
for (const spec of relSpecs(code)) {
|
|
923
|
+
queue.push(path.resolve(path.dirname(abs), spec));
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
if (copied) {
|
|
927
|
+
console.log(`[nodality] stage: ${copied} externalised module(s) → ` +
|
|
928
|
+
`${path.relative(cwd, uploadDir)}/`);
|
|
929
|
+
}
|
|
930
|
+
if (missing) {
|
|
931
|
+
console.warn(`[nodality] stage: ${missing} module(s) could not be ` +
|
|
932
|
+
`staged — the page will 404 on them`);
|
|
933
|
+
}
|
|
870
934
|
}
|
|
871
935
|
}
|
|
872
936
|
|