Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@okta/odyssey-react-theme

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@okta/odyssey-react-theme - npm Package Compare versions

Comparing version
0.14.6
to
0.15.0
+1
-1
dist/withTheme/stylesheet.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../src/withTheme/stylesheet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qBAAa,WAAY,SAAQ,GAAG,CAAC,MAAM,CAAC;IAC1C,OAAO,CAAC,OAAO,CAAmB;;IASlC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAM7C"}
{"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../src/withTheme/stylesheet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qBAAa,WAAY,SAAQ,GAAG,CAAC,MAAM,CAAC;IAC1C,OAAO,CAAC,OAAO,CAAmB;;IAWlC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAM7C"}

@@ -17,2 +17,3 @@ /*!

el.setAttribute("data-ods", "");
el.setAttribute("nonce", window.cspNonce);
this.element = document.head.appendChild(el);

@@ -19,0 +20,0 @@ }

@@ -1,1 +0,1 @@

{"version":3,"sources":["../../src/withTheme/stylesheet.ts"],"names":["OStyleSheet","Set","constructor","el","document","createElement","setAttribute","element","head","appendChild","inject","key","styles","has","innerHTML","add"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,MAAMA,WAAN,SAA0BC,GAA1B,CAAsC;AAG3CC,EAAAA,WAAW,GAAG;AACZ;AACA,UAAMC,EAAE,GAAGC,QAAQ,CAACC,aAAT,CAAuB,OAAvB,CAAX;AACAF,IAAAA,EAAE,CAACG,YAAH,CAAgB,UAAhB,EAA4B,EAA5B;AACA,SAAKC,OAAL,GAAeH,QAAQ,CAACI,IAAT,CAAcC,WAAd,CAA0BN,EAA1B,CAAf;AACD;;AAEDO,EAAAA,MAAM,CAACC,GAAD,EAAcC,MAAd,EAAuC;AAC3C,QAAI,KAAKC,GAAL,CAASF,GAAT,CAAJ,EAAmB,OAAO,KAAP;AACnB,SAAKJ,OAAL,CAAaO,SAAb,IAA0BF,MAA1B;AACA,SAAKG,GAAL,CAASJ,GAAT;AACA,WAAO,IAAP;AACD;;AAf0C","sourcesContent":["/*!\n * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport class OStyleSheet extends Set<string> {\n private element: HTMLStyleElement;\n\n constructor() {\n super();\n const el = document.createElement(\"style\");\n el.setAttribute(\"data-ods\", \"\");\n this.element = document.head.appendChild(el);\n }\n\n inject(key: string, styles: string): boolean {\n if (this.has(key)) return false;\n this.element.innerHTML += styles;\n this.add(key);\n return true;\n }\n}\n"],"file":"stylesheet.js"}
{"version":3,"sources":["../../src/withTheme/stylesheet.ts"],"names":["OStyleSheet","Set","constructor","el","document","createElement","setAttribute","window","cspNonce","element","head","appendChild","inject","key","styles","has","innerHTML","add"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,MAAMA,WAAN,SAA0BC,GAA1B,CAAsC;AAG3CC,EAAAA,WAAW,GAAG;AACZ;AACA,UAAMC,EAAE,GAAGC,QAAQ,CAACC,aAAT,CAAuB,OAAvB,CAAX;AACAF,IAAAA,EAAE,CAACG,YAAH,CAAgB,UAAhB,EAA4B,EAA5B;AAEAH,IAAAA,EAAE,CAACG,YAAH,CAAgB,OAAhB,EAAyBC,MAAM,CAACC,QAAhC;AACA,SAAKC,OAAL,GAAeL,QAAQ,CAACM,IAAT,CAAcC,WAAd,CAA0BR,EAA1B,CAAf;AACD;;AAEDS,EAAAA,MAAM,CAACC,GAAD,EAAcC,MAAd,EAAuC;AAC3C,QAAI,KAAKC,GAAL,CAASF,GAAT,CAAJ,EAAmB,OAAO,KAAP;AACnB,SAAKJ,OAAL,CAAaO,SAAb,IAA0BF,MAA1B;AACA,SAAKG,GAAL,CAASJ,GAAT;AACA,WAAO,IAAP;AACD;;AAjB0C","sourcesContent":["/*!\n * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport class OStyleSheet extends Set<string> {\n private element: HTMLStyleElement;\n\n constructor() {\n super();\n const el = document.createElement(\"style\");\n el.setAttribute(\"data-ods\", \"\");\n // @ts-expect-error ts(2339)\n el.setAttribute(\"nonce\", window.cspNonce);\n this.element = document.head.appendChild(el);\n }\n\n inject(key: string, styles: string): boolean {\n if (this.has(key)) return false;\n this.element.innerHTML += styles;\n this.add(key);\n return true;\n }\n}\n"],"file":"stylesheet.js"}
{
"name": "@okta/odyssey-react-theme",
"version": "0.14.6",
"version": "0.15.0",
"description": "React theme logic for Odyssey, Okta's design system",

@@ -23,3 +23,3 @@ "author": "Okta, Inc.",

"dependencies": {
"@okta/odyssey-design-tokens": "^0.14.6",
"@okta/odyssey-design-tokens": "^0.15.0",
"hoist-non-react-statics": "^3.3.2"

@@ -31,3 +31,3 @@ },

},
"gitHead": "bc451562d0c3345c720d93a7d65b1774a155a150"
"gitHead": "0b9b95e150ac14ec2d65e74d97353ee8b869536b"
}