@gem-sdk/system 12.0.0-dev.113 → 12.0.0-dev.138
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/cjs/component/createAttr.js +1 -1
- package/dist/cjs/component/createClass.js +1 -1
- package/dist/cjs/component/createContent.js +1 -1
- package/dist/cjs/component/createStateOrContext.js +1 -1
- package/dist/cjs/component/createStyle.js +1 -1
- package/dist/cjs/component/template.js +1 -1
- package/dist/cjs/component/utils/toCamelCaseKeys.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/component/createAttr.js +1 -1
- package/dist/esm/component/createClass.js +1 -1
- package/dist/esm/component/createContent.js +1 -1
- package/dist/esm/component/createStateOrContext.js +1 -1
- package/dist/esm/component/createStyle.js +1 -1
- package/dist/esm/component/template.js +1 -1
- package/dist/esm/component/utils/toCamelCaseKeys.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.createAttr=e=>{if("object"!=typeof e||null===e){console.error("Expected an object as input.");return}return process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function e(e){return"string"==typeof e?e:"object"==typeof e&&null!==e&&Object.keys(e).filter(t=>e[t]).join(" ")}exports.createClass=t=>"object"!=typeof t||null===t?(console.error("Expected an object as input."),""):(process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,function(...t){return t.map(e).filter(Boolean).join(" ")}(t));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.createContent=t=>"string"!=typeof t?(console.error("Invalid content type: Content must be a string."),""):/\{\{(?:[A-Z]+|[a-z]+)\}\}/g.test(t)?(console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".'),""):t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.createStateOrContext=e=>(process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("./utils/toCamelCaseKeys.js");const t=e=>{for(let t in e)(void 0===e[t]||null===e[t]||""===e[t])&&delete e[t]},s=e=>{let s=!process.env.APP_ENV||"development"===process.env.APP_ENV||"staging"===process.env.APP_ENV;return s&&t(e),e};exports.createStyle=s,exports.createStyleReact=t=>e.toCamelCaseKeys(s(t));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=(e,s,t)=>e?"function"==typeof s?s():s:t?"function"==typeof t?t():t:"";exports.For=(e,s)=>e.map((e,t)=>s(e,t)),exports.If=e,exports.Liquid=e=>e,exports.LiquidFor=(e,s)=>`{% for ${e} %}${"string"==typeof s?s:s()}{% endfor %}`,exports.LiquidIf=(e,s,t)=>`{% if ${e} %}${"string"==typeof s?s:s()}${t?`{% else %}${"string"==typeof t?t:t?.()}`:""}{% endif %}`,exports.LiquidUnless=(e,s,t)=>`{% unless ${e} %}${"string"==typeof s?s:s()}${t?`{% else %}${"string"==typeof t?t:t?.()}`:""}{% endunless %}`,exports.Unless=(s,t,o)=>e(!s,t,o);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=t=>{let r={};for(let s in t){let a=t[s],l=s.startsWith("--")?s:s.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());r[l]="object"!=typeof a||null===a||Array.isArray(a)?a:e(a)}return r};exports.toCamelCaseKeys=e;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("./component/createAttr.js"),t=require("./component/createStyle.js"),r=require("./component/createContent.js"),s=require("./component/createClass.js"),o=require("./component/createStateOrContext.js"),a=require("./component/template.js");const c=e.createAttr,n=r.createContent,i=s.createClass;exports.createAttr=e.createAttr,exports.createStyle=t.createStyle,exports.createStyleReact=t.createStyleReact,exports.createContent=r.createContent,exports.createClass=s.createClass,exports.createStateOrContext=o.createStateOrContext,exports.For=a.For,exports.If=a.If,exports.Liquid=a.Liquid,exports.LiquidFor=a.LiquidFor,exports.LiquidIf=a.LiquidIf,exports.LiquidUnless=a.LiquidUnless,exports.Unless=a.Unless,exports.createAttrReact=c,exports.createClassReact=i,exports.createContentReact=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let e=e=>{if("object"!=typeof e||null===e){console.error("Expected an object as input.");return}return process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,e};export{e as createAttr};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function e(e){return"string"==typeof e?e:"object"==typeof e&&null!==e&&Object.keys(e).filter(o=>e[o]).join(" ")}let o=o=>"object"!=typeof o||null===o?(console.error("Expected an object as input."),""):(process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,function(...o){return o.map(e).filter(Boolean).join(" ")}(o));export{o as createClass};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let t=t=>"string"!=typeof t?(console.error("Invalid content type: Content must be a string."),""):/\{\{(?:[A-Z]+|[a-z]+)\}\}/g.test(t)?(console.error('Invalid content format: "{{}}" placeholders must not contain only letters, e.g., "{{Hello}}".'),""):t;export{t as createContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let e=e=>(process.env.APP_ENV&&"development"!==process.env.APP_ENV&&process.env.APP_ENV,e);export{e as createStateOrContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toCamelCaseKeys as e}from"./utils/toCamelCaseKeys.js";let
|
|
1
|
+
import{toCamelCaseKeys as e}from"./utils/toCamelCaseKeys.js";let t=e=>{for(let t in e)(void 0===e[t]||null===e[t]||""===e[t])&&delete e[t]},l=e=>{let l=!process.env.APP_ENV||"development"===process.env.APP_ENV||"staging"===process.env.APP_ENV;return l&&t(e),e},r=t=>e(l(t));export{l as createStyle,r as createStyleReact};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let e=e=>e,i=(e,i)=>e.map((e,n)=>i(e,n)),n=(e,i)=>`{% for ${e} %}${"string"==typeof i?i:i()}{% endfor %}`,t=(e,i,n)=>e?"function"==typeof i?i():i:n?"function"==typeof n?n():n:"",f=(e,i,n)=>`{% if ${e} %}${"string"==typeof i?i:i()}${n?`{% else %}${"string"==typeof n?n:n?.()}`:""}{% endif %}`,s=(e,i,n)=>t(!e,i,n),o=(e,i,n)=>`{% unless ${e} %}${"string"==typeof i?i:i()}${n?`{% else %}${"string"==typeof n?n:n?.()}`:""}{% endunless %}`;export{i as For,t as If,e as Liquid,n as LiquidFor,f as LiquidIf,o as LiquidUnless,s as Unless};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let e=t=>{let r={};for(let a in t){let l=t[a],o=a.startsWith("--")?a:a.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());r[o]="object"!=typeof l||null===l||Array.isArray(l)?l:e(l)}return r};export{e as toCamelCaseKeys};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createAttr as e}from"./component/createAttr.js";export{createStyle,createStyleReact}from"./component/createStyle.js";import{createContent as t}from"./component/createContent.js";import{createClass as r}from"./component/createClass.js";export{createStateOrContext}from"./component/createStateOrContext.js";export{For,If,Liquid,LiquidFor,LiquidIf,LiquidUnless,Unless}from"./component/template.js";let
|
|
1
|
+
import{createAttr as e}from"./component/createAttr.js";export{createStyle,createStyleReact}from"./component/createStyle.js";import{createContent as t}from"./component/createContent.js";import{createClass as r}from"./component/createClass.js";export{createStateOrContext}from"./component/createStateOrContext.js";export{For,If,Liquid,LiquidFor,LiquidIf,LiquidUnless,Unless}from"./component/template.js";let o=e,a=t,c=r;export{e as createAttr,o as createAttrReact,r as createClass,c as createClassReact,t as createContent,a as createContentReact};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/system",
|
|
3
|
-
"version": "12.0.0-dev.
|
|
3
|
+
"version": "12.0.0-dev.138",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "12.0.0-dev.
|
|
24
|
+
"@gem-sdk/core": "12.0.0-dev.138"
|
|
25
25
|
},
|
|
26
26
|
"module": "dist/esm/index.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|