@plasmicapp/host 1.0.98 → 1.0.100

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.
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var root = globalThis;
6
+ if (root.__PlasmicTokenRegistry == null) {
7
+ root.__PlasmicTokenRegistry = [];
8
+ }
9
+ function registerToken(token) {
10
+ root.__PlasmicTokenRegistry.push(token);
11
+ }
12
+
13
+ exports['default'] = registerToken;
14
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":";;;;AAoBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAwB;IAC5D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
@@ -0,0 +1,10 @@
1
+ var root = globalThis;
2
+ if (root.__PlasmicTokenRegistry == null) {
3
+ root.__PlasmicTokenRegistry = [];
4
+ }
5
+ function registerToken(token) {
6
+ root.__PlasmicTokenRegistry.push(token);
7
+ }
8
+
9
+ export { registerToken as default };
10
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":"AAoBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAwB;IAC5D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
@@ -0,0 +1,12 @@
1
+ export declare type TokenType = "color" | "spacing" | "font-family" | "font-size" | "line-height" | "opacity";
2
+ export interface TokenRegistration {
3
+ name: string;
4
+ value: string;
5
+ type: TokenType;
6
+ }
7
+ declare global {
8
+ interface Window {
9
+ __PlasmicTokenRegistry: TokenRegistration[];
10
+ }
11
+ }
12
+ export default function registerToken(token: TokenRegistration): void;
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "dist/index.cjs.js",
3
+ "types": "dist/registerToken.d.ts",
4
+ "module": "dist/index.esm.js"
5
+ }