- Added web-component
- copy_to_clipboard -> ftd.copy_to_clipboard
- http -> ftd.http
Breaking Change: Renamed `fpm` To `fastn`
`fpm` cli is renamed to `fastn`. We renamed `FPM.ftd` to `FASTN.ftd` and `-- import: fpm` becomes `-- import: fastn`. We have also renamed github repository `fpm` to `fastn`.- Fastn PR: fastn-stack/fastn-old#755
Inbuilt Clamp: no longer supported Clamp example
- Regular Clamp
-- integer $num: 0
-- ftd.integer: $num
$on-click$: $clamp($a = $num, by = 1, clamp = 6)
-- void clamp(a,by,clamp):
integer $a:
integer by:
integer clamp:
a = (a + by) % clamp
- Clamp with min and max
-- integer $num: 1
-- ftd.integer: $num
$on-click$: $clamp($a = $num, by = 1, min = 1, max = 6)
-- void clamp(a,by,min,max):
integer $a:
integer by: 1
integer min: 0
integer max: 5
a = (((a - min) + by) % (max - min)) + min
Breaking change Inherited types changed
Breaking changes
$inherited.types.copy-relaxed
->$inherited.types.copy-regular
$inherited.types.copy-tight
->$inherited.types.copy-small
$inherited.types.label-big
->$inherited.types.label-large
Headings:
$inherited.types.heading-tiny
is added- rest have weight, line-height, weight updates
Copy:
- added
$inherited.types.copy-regular
and$inherited.types.copy-small
- rest have size and
$inherited.types.line-height
changes
Specialized Text:
$inherited.types.source-code
is added- rest have size and line-height changes
Labels:
$inherited.types.label-big
is changed to label-large$inherited.types.label-small
is updated with new size and line-height values
Button:
- All button types which are added are new
- added
$inherited.types.button-large
,$inherited.types.button-medium
,$inherited.types.button-small
, link types
Breaking change: Merged spacing with spacing-mode
- use
spacing.fixed.px: 20
instead ofspacing.px: 20
- use
spacing: space-around
instead ofspacing-mode: space-around
(same forspace-between
andspace-evenly
)
- Major Change: Converted executor from recursion to loop
- Added white-space css
- Added basic ftd functions
- Added
ftd.breakpoint-width
ftd.device
type string to or-type- Added
ftd.code
- Added CSS and JS
- Added classes property
- Added ftd.device
- Added resize
- Change min-height, min-width, max-width, max-height type from ftd.length to ftd.resizing
- or-type constant construction shorthand (only short-hand allowed) The Video link