@fragments-sdk/core 0.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/LICENSE +84 -0
- package/dist/index.d.ts +2873 -0
- package/dist/index.js +1431 -0
- package/dist/index.js.map +1 -0
- package/package.json +75 -0
- package/src/__tests__/preview-runtime.test.tsx +111 -0
- package/src/composition.test.ts +262 -0
- package/src/composition.ts +318 -0
- package/src/constants.ts +114 -0
- package/src/context.ts +2 -0
- package/src/defineFragment.ts +141 -0
- package/src/figma.ts +263 -0
- package/src/fragment-types.ts +214 -0
- package/src/index.ts +207 -0
- package/src/performance-presets.ts +142 -0
- package/src/preview-runtime.tsx +144 -0
- package/src/schema.ts +229 -0
- package/src/storyAdapter.test.ts +571 -0
- package/src/storyAdapter.ts +761 -0
- package/src/storyFilters.test.ts +350 -0
- package/src/storyFilters.ts +253 -0
- package/src/storybook-csf.ts +11 -0
- package/src/token-parser.ts +321 -0
- package/src/token-types.ts +287 -0
- package/src/types.ts +784 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
Licensor: Conan McNicholl
|
|
4
|
+
Software: Fragments SDK (@fragments-sdk/cli, @fragments-sdk/mcp, @fragments-sdk/context)
|
|
5
|
+
|
|
6
|
+
IMPORTANT: The @fragments-sdk/ui package is licensed separately under the MIT License.
|
|
7
|
+
See libs/ui/LICENSE for details.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The individual or entity listed above.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The software identified above, including all source code, object code,
|
|
20
|
+
documentation, and other files provided by the Licensor.
|
|
21
|
+
|
|
22
|
+
### Grant of Rights
|
|
23
|
+
|
|
24
|
+
Subject to the conditions below, the Licensor grants you a non-exclusive,
|
|
25
|
+
worldwide, royalty-free license to use, copy, modify, create derivative works,
|
|
26
|
+
and redistribute the Software, in each case subject to the limitations below.
|
|
27
|
+
|
|
28
|
+
### Limitation — Competing Use
|
|
29
|
+
|
|
30
|
+
You may not use the Software in, or to provide, a Commercial Product or Service
|
|
31
|
+
that competes with the Software or with any product or service that the Licensor
|
|
32
|
+
provides using the Software. A "Commercial Product or Service" is any product or
|
|
33
|
+
service offered to third parties for a fee or other consideration.
|
|
34
|
+
|
|
35
|
+
For clarity, the following uses are always permitted regardless of this limitation:
|
|
36
|
+
|
|
37
|
+
- Using the Software for your own internal business purposes
|
|
38
|
+
- Using the Software to build and deploy your own applications
|
|
39
|
+
- Using the Software for personal, educational, or evaluation purposes
|
|
40
|
+
- Providing professional services (consulting, integration) to your clients
|
|
41
|
+
that involve configuring or extending the Software
|
|
42
|
+
|
|
43
|
+
The following are examples of Competing Use that are NOT permitted:
|
|
44
|
+
|
|
45
|
+
- Offering a hosted developer tools service that repackages or exposes
|
|
46
|
+
the functionality of the Software
|
|
47
|
+
- Selling or distributing a product that is a substitute for any product
|
|
48
|
+
or service offered by the Licensor
|
|
49
|
+
- Building and offering an MCP server, CLI tool, or code intelligence
|
|
50
|
+
platform that is substantially derived from the Software
|
|
51
|
+
|
|
52
|
+
### Change Date and License
|
|
53
|
+
|
|
54
|
+
On the second anniversary of each version's release date, the Licensor grants
|
|
55
|
+
you the rights under the terms of the MIT License for that version.
|
|
56
|
+
The "MIT License" means the license identified by SPDX as "MIT" and published
|
|
57
|
+
at https://opensource.org/licenses/MIT.
|
|
58
|
+
|
|
59
|
+
### No Warranties
|
|
60
|
+
|
|
61
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
62
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
63
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
64
|
+
|
|
65
|
+
### Limitation of Liability
|
|
66
|
+
|
|
67
|
+
IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
68
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
69
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
70
|
+
THE SOFTWARE.
|
|
71
|
+
|
|
72
|
+
### General
|
|
73
|
+
|
|
74
|
+
If any provision of this License is held to be unenforceable, that provision
|
|
75
|
+
shall be reformed only to the extent necessary to make it enforceable, and the
|
|
76
|
+
remaining provisions shall continue in full force and effect.
|
|
77
|
+
|
|
78
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
79
|
+
service marks, or product names of the Licensor, except as required for
|
|
80
|
+
reasonable and customary use in describing the origin of the Software.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
For more information about the Functional Source License, see https://fsl.software/
|