@opencraft/frontend-plugin-sandbox 1.2.0-alpha.1 → 1.2.0-alpha.2
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.
|
@@ -10,17 +10,20 @@ jobs:
|
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout repository
|
|
12
12
|
uses: actions/checkout@v6
|
|
13
|
+
- name: Set up pnpm
|
|
14
|
+
uses: pnpm/action-setup@v6
|
|
15
|
+
with:
|
|
16
|
+
version: 11
|
|
13
17
|
- name: Setup Node.js
|
|
14
18
|
uses: actions/setup-node@v6
|
|
15
19
|
with:
|
|
16
20
|
node-version: '24'
|
|
17
|
-
cache: 'npm'
|
|
18
21
|
- name: Install dependencies
|
|
19
|
-
run:
|
|
22
|
+
run: pnpm install --frozen-lockfile
|
|
20
23
|
- name: Build
|
|
21
|
-
run:
|
|
24
|
+
run: pnpm run build
|
|
22
25
|
- name: Pack package
|
|
23
|
-
run:
|
|
26
|
+
run: pnpm pack
|
|
24
27
|
- name: Upload package
|
|
25
28
|
id: upload-package
|
|
26
29
|
uses: actions/upload-artifact@v7
|
|
@@ -11,7 +11,7 @@ export const DropDownToggler = ({
|
|
|
11
11
|
return /*#__PURE__*/React.createElement(Avatar, {
|
|
12
12
|
size: "1.5em",
|
|
13
13
|
src: avatar,
|
|
14
|
-
alt: authenticatedUser
|
|
14
|
+
alt: authenticatedUser?.username || 'Account'
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
DropDownToggler.propTypes = DesktopUserMenuTogglePropTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropDownToggler.js","names":["React","useContext","Avatar","DesktopUserMenuTogglePropTypes","AppContext","DropDownToggler","avatar","authenticatedUser","createElement","size","src","alt","username","propTypes"],"sources":["../../src/components/DropDownToggler.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport Avatar from '@edx/frontend-component-header/dist/Avatar';\nimport { DesktopUserMenuTogglePropTypes } from '@edx/frontend-component-header/dist/desktop-header/DesktopUserMenuToggle';\nimport { AppContext } from '@edx/frontend-platform/react';\n\nexport const DropDownToggler = ({ avatar }) => {\n const { authenticatedUser } = useContext(AppContext);\n return (\n <Avatar size=\"1.5em\" src={avatar} alt={authenticatedUser
|
|
1
|
+
{"version":3,"file":"DropDownToggler.js","names":["React","useContext","Avatar","DesktopUserMenuTogglePropTypes","AppContext","DropDownToggler","avatar","authenticatedUser","createElement","size","src","alt","username","propTypes"],"sources":["../../src/components/DropDownToggler.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport Avatar from '@edx/frontend-component-header/dist/Avatar';\nimport { DesktopUserMenuTogglePropTypes } from '@edx/frontend-component-header/dist/desktop-header/DesktopUserMenuToggle';\nimport { AppContext } from '@edx/frontend-platform/react';\n\nexport const DropDownToggler = ({ avatar }) => {\n const { authenticatedUser } = useContext(AppContext);\n return (\n <Avatar size=\"1.5em\" src={avatar} alt={authenticatedUser?.username || 'Account'} />\n );\n};\n\nDropDownToggler.propTypes = DesktopUserMenuTogglePropTypes;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,MAAM,MAAM,4CAA4C;AAC/D,SAASC,8BAA8B,QAAQ,0EAA0E;AACzH,SAASC,UAAU,QAAQ,8BAA8B;AAEzD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAO,CAAC,KAAK;EAC7C,MAAM;IAAEC;EAAkB,CAAC,GAAGN,UAAU,CAACG,UAAU,CAAC;EACpD,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,MAAM;IAACO,IAAI,EAAC,OAAO;IAACC,GAAG,EAAEJ,MAAO;IAACK,GAAG,EAAEJ,iBAAiB,EAAEK,QAAQ,IAAI;EAAU,CAAE,CAAC;AAEvF,CAAC;AAEDP,eAAe,CAACQ,SAAS,GAAGV,8BAA8B","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencraft/frontend-plugin-sandbox",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.2",
|
|
4
4
|
"description": "Plugin for custom headers and footers in OpenCraft's sandboxes",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"typescript": "^5.2.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"prepublish": "pnpm run build",
|
|
38
37
|
"build": "fedx-scripts babel -x .ts,.tsx src --out-dir dist --source-maps --ignore **/*.test.jsx,**/__mocks__,**/__snapshots__,**/setupTest.js --copy-files",
|
|
39
38
|
"lint": "fedx-scripts eslint --ext .ts --ext .tsx src/",
|
|
40
39
|
"lint:fix": "fedx-scripts eslint --fix --ext .ts --ext .tsx src/",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
allowBuilds:
|
|
2
|
+
'@bundled-es-modules/glob': false
|
|
3
|
+
'@parcel/watcher': false
|
|
4
|
+
core-js: false
|
|
5
|
+
core-js-pure: false
|
|
6
|
+
sharp: false
|
|
7
|
+
style-dictionary: false
|
|
8
|
+
unrs-resolver: false
|
|
9
|
+
blockExoticSubdeps: true
|
|
10
|
+
# Supply chain security configuration. See https://pnpm.io/supply-chain-security for more information.
|
|
11
|
+
minimumReleaseAge: 4320 # 3 days
|
|
12
|
+
trustPolicy: no-downgrade
|
|
13
|
+
trustPolicyIgnoreAfter: 43200 # 30 days
|
|
@@ -6,7 +6,7 @@ import { AppContext } from '@edx/frontend-platform/react';
|
|
|
6
6
|
export const DropDownToggler = ({ avatar }) => {
|
|
7
7
|
const { authenticatedUser } = useContext(AppContext);
|
|
8
8
|
return (
|
|
9
|
-
<Avatar size="1.5em" src={avatar} alt={authenticatedUser
|
|
9
|
+
<Avatar size="1.5em" src={avatar} alt={authenticatedUser?.username || 'Account'} />
|
|
10
10
|
);
|
|
11
11
|
};
|
|
12
12
|
|